From bf8234cb3de4306cb266a9d4dbe9be5b46fe4af3 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 20 Aug 2025 11:26:46 +1000 Subject: [PATCH 01/30] init --- .../FrontDoor.Autorest/.gitattributes | 1 + src/FrontDoor/FrontDoor.Autorest/.gitignore | 16 + .../Properties/AssemblyInfo.cs | 26 + src/FrontDoor/FrontDoor.Autorest/README.md | 408 ++++++ ...ontDoorWebApplicationFirewallPolicies.json | 85 ++ .../frontDoors-frontendEndpoints.json | 95 ++ .../frontDoors-rulesEngines.json | 95 ++ .../UX/Microsoft.Network/frontDoors.json | 85 ++ .../custom/Az.FrontDoor.custom.psm1 | 17 + .../Enable-AzFrontDoorCustomDomainHttps.ps1 | 248 ++++ .../custom/New-AzFrontDoor.ps1 | 275 +++++ .../custom/New-AzFrontDoorBackendObject.ps1 | 96 ++ .../New-AzFrontDoorBackendPoolObject.ps1 | 81 ++ ...w-AzFrontDoorBackendPoolsSettingObject.ps1 | 51 + .../New-AzFrontDoorFrontendEndpointObject.ps1 | 119 ++ ...ew-AzFrontDoorHealthProbeSettingObject.ps1 | 76 ++ ...-AzFrontDoorLoadBalancingSettingObject.ps1 | 65 + .../New-AzFrontDoorRoutingRuleObject.ps1 | 214 ++++ ...New-AzFrontDoorRulesEngineActionObject.ps1 | 202 +++ ...ontDoorRulesEngineMatchConditionObject.ps1 | 76 ++ .../New-AzFrontDoorRulesEngineRuleObject.ps1 | 71 ++ .../New-AzFrontDoorWafCustomRuleObject.ps1 | 94 ++ ...zFrontDoorWafManagedRuleOverrideObject.ps1 | 67 + .../custom/New-AzFrontDoorWafPolicy.ps1 | 307 +++++ .../FrontDoor.Autorest/custom/README.md | 41 + .../custom/Set-AzFrontDoor.ps1 | 271 ++++ .../custom/Update-AzFrontDoorWafPolicy.ps1 | 325 +++++ ...ew-AzFrontDoorCacheConfigurationObject.ps1 | 68 + ...FrontDoorForwardingConfigurationObject.ps1 | 67 + .../New-AzFrontDoorHeaderActionObject.ps1 | 61 + .../New-AzFrontDoorPolicySettingsObject.ps1 | 93 ++ ...AzFrontDoorRedirectConfigurationObject.ps1 | 80 ++ ...DoorWafCustomRuleGroupByVariableObject.ps1 | 49 + ...w-AzFrontDoorWafLogScrubbingRuleObject.ps1 | 69 ++ ...zFrontDoorWafLogScrubbingSettingObject.ps1 | 55 + ...FrontDoorWafManagedRuleExclusionObject.ps1 | 62 + .../New-AzFrontDoorWafManagedRuleObject.ps1 | 73 ++ ...New-AzFrontDoorWafMatchConditionObject.ps1 | 81 ++ ...-AzFrontDoorWafRuleGroupOverrideObject.ps1 | 60 + .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 136 ++ .../Disable-AzFrontDoorCustomDomainHttps.md | 260 ++++ .../Enable-AzFrontDoorCustomDomainHttps.md | 386 ++++++ .../docs/Get-AzFrontDoor.md | 157 +++ .../docs/Get-AzFrontDoorFrontendEndpoint.md | 189 +++ .../docs/Get-AzFrontDoorRulesEngine.md | 188 +++ ...-AzFrontDoorWafManagedRuleSetDefinition.md | 93 ++ .../docs/Get-AzFrontDoorWafPolicy.md | 157 +++ .../docs/New-AzFrontDoor.md | 384 ++++++ .../docs/New-AzFrontDoorBackendObject.md | 236 ++++ .../docs/New-AzFrontDoorBackendPoolObject.md | 167 +++ ...ew-AzFrontDoorBackendPoolsSettingObject.md | 93 ++ ...New-AzFrontDoorCacheConfigurationObject.md | 123 ++ ...zFrontDoorForwardingConfigurationObject.md | 123 ++ .../New-AzFrontDoorFrontendEndpointObject.md | 263 ++++ .../docs/New-AzFrontDoorHeaderActionObject.md | 107 ++ ...New-AzFrontDoorHealthProbeSettingObject.md | 168 +++ ...w-AzFrontDoorLoadBalancingSettingObject.md | 136 ++ .../New-AzFrontDoorPolicySettingsObject.md | 187 +++ ...-AzFrontDoorRedirectConfigurationObject.md | 160 +++ .../docs/New-AzFrontDoorRoutingRuleObject.md | 467 +++++++ .../docs/New-AzFrontDoorRulesEngine.md | 260 ++++ .../New-AzFrontDoorRulesEngineActionObject.md | 375 ++++++ ...rontDoorRulesEngineMatchConditionObject.md | 154 +++ .../New-AzFrontDoorRulesEngineRuleObject.md | 139 +++ ...tDoorWafCustomRuleGroupByVariableObject.md | 75 ++ .../New-AzFrontDoorWafCustomRuleObject.md | 200 +++ ...ew-AzFrontDoorWafLogScrubbingRuleObject.md | 122 ++ ...AzFrontDoorWafLogScrubbingSettingObject.md | 92 ++ ...zFrontDoorWafManagedRuleExclusionObject.md | 106 ++ .../New-AzFrontDoorWafManagedRuleObject.md | 136 ++ ...AzFrontDoorWafManagedRuleOverrideObject.md | 122 ++ .../New-AzFrontDoorWafMatchConditionObject.md | 153 +++ .../docs/New-AzFrontDoorWafPolicy.md | 432 +++++++ ...w-AzFrontDoorWafRuleGroupOverrideObject.md | 107 ++ .../FrontDoor.Autorest/docs/README.md | 11 + .../docs/Remove-AzFrontDoor.md | 223 ++++ .../docs/Remove-AzFrontDoorContent.md | 314 +++++ .../docs/Remove-AzFrontDoorRulesEngine.md | 260 ++++ .../docs/Remove-AzFrontDoorWafPolicy.md | 223 ++++ .../docs/Set-AzFrontDoor.md | 384 ++++++ .../docs/Set-AzFrontDoorRulesEngine.md | 215 ++++ .../docs/Update-AzFrontDoorWafPolicy.md | 417 +++++++ .../Disable-AzFrontDoorCustomDomainHttps.md | 22 + .../Enable-AzFrontDoorCustomDomainHttps.md | 22 + .../examples/Get-AzFrontDoor.md | 22 + .../Get-AzFrontDoorFrontendEndpoint.md | 22 + .../examples/Get-AzFrontDoorRulesEngine.md | 22 + ...-AzFrontDoorWafManagedRuleSetDefinition.md | 22 + .../examples/Get-AzFrontDoorWafPolicy.md | 22 + .../examples/New-AzFrontDoor.md | 22 + .../examples/New-AzFrontDoorBackendObject.md | 22 + .../New-AzFrontDoorBackendPoolObject.md | 22 + ...ew-AzFrontDoorBackendPoolsSettingObject.md | 22 + ...New-AzFrontDoorCacheConfigurationObject.md | 22 + ...zFrontDoorForwardingConfigurationObject.md | 22 + .../New-AzFrontDoorFrontendEndpointObject.md | 22 + .../New-AzFrontDoorHeaderActionObject.md | 22 + ...New-AzFrontDoorHealthProbeSettingObject.md | 22 + ...w-AzFrontDoorLoadBalancingSettingObject.md | 22 + .../New-AzFrontDoorPolicySettingsObject.md | 22 + ...-AzFrontDoorRedirectConfigurationObject.md | 22 + .../New-AzFrontDoorRoutingRuleObject.md | 22 + .../examples/New-AzFrontDoorRulesEngine.md | 22 + .../New-AzFrontDoorRulesEngineActionObject.md | 22 + ...rontDoorRulesEngineMatchConditionObject.md | 22 + .../New-AzFrontDoorRulesEngineRuleObject.md | 22 + ...tDoorWafCustomRuleGroupByVariableObject.md | 22 + .../New-AzFrontDoorWafCustomRuleObject.md | 22 + ...ew-AzFrontDoorWafLogScrubbingRuleObject.md | 22 + ...AzFrontDoorWafLogScrubbingSettingObject.md | 22 + ...zFrontDoorWafManagedRuleExclusionObject.md | 22 + .../New-AzFrontDoorWafManagedRuleObject.md | 22 + ...AzFrontDoorWafManagedRuleOverrideObject.md | 22 + .../New-AzFrontDoorWafMatchConditionObject.md | 22 + .../examples/New-AzFrontDoorWafPolicy.md | 22 + ...w-AzFrontDoorWafRuleGroupOverrideObject.md | 22 + .../examples/Remove-AzFrontDoor.md | 22 + .../examples/Remove-AzFrontDoorContent.md | 22 + .../examples/Remove-AzFrontDoorRulesEngine.md | 22 + .../examples/Remove-AzFrontDoorWafPolicy.md | 22 + .../examples/Set-AzFrontDoor.md | 22 + .../examples/Set-AzFrontDoorRulesEngine.md | 22 + .../examples/Update-AzFrontDoorWafPolicy.md | 22 + src/FrontDoor/FrontDoor.Autorest/how-to.md | 58 + .../FrontDoor.Autorest/resources/README.md | 11 + ...ble-AzFrontDoorCustomDomainHttps.Tests.ps1 | 29 + ...zFrontDoorCustomDomainHttps.Recording.json | 1100 +++++++++++++++++ ...ble-AzFrontDoorCustomDomainHttps.Tests.ps1 | 83 ++ .../test/Get-AzFrontDoor.Recording.json | 46 + .../test/Get-AzFrontDoor.Tests.ps1 | 34 + ...AzFrontDoorFrontendEndpoint.Recording.json | 46 + .../Get-AzFrontDoorFrontendEndpoint.Tests.ps1 | 33 + .../test/Get-AzFrontDoorRulesEngine.Tests.ps1 | 36 + ...WafManagedRuleSetDefinition.Recording.json | 46 + ...tDoorWafManagedRuleSetDefinition.Tests.ps1 | 21 + .../Get-AzFrontDoorWafPolicy.Recording.json | 46 + .../test/Get-AzFrontDoorWafPolicy.Tests.ps1 | 73 ++ .../test/New-AzFrontDoor.Tests.ps1 | 29 + .../New-AzFrontDoorBackendObject.Tests.ps1 | 32 + ...New-AzFrontDoorBackendPoolObject.Tests.ps1 | 30 + ...ontDoorBackendPoolsSettingObject.Tests.ps1 | 23 + ...rontDoorCacheConfigurationObject.Tests.ps1 | 21 + ...oorForwardingConfigurationObject.Tests.ps1 | 21 + ...zFrontDoorFrontendEndpointObject.Tests.ps1 | 28 + ...ew-AzFrontDoorHeaderActionObject.Tests.ps1 | 24 + ...rontDoorHealthProbeSettingObject.Tests.ps1 | 27 + ...ntDoorLoadBalancingSettingObject.Tests.ps1 | 25 + ...-AzFrontDoorPolicySettingsObject.Tests.ps1 | 21 + ...tDoorRedirectConfigurationObject.Tests.ps1 | 21 + ...New-AzFrontDoorRoutingRuleObject.Tests.ps1 | 49 + .../New-AzFrontDoorRulesEngine.Recording.json | 85 ++ .../test/New-AzFrontDoorRulesEngine.Tests.ps1 | 41 + ...FrontDoorRulesEngineActionObject.Tests.ps1 | 41 + ...rRulesEngineMatchConditionObject.Tests.ps1 | 27 + ...AzFrontDoorRulesEngineRuleObject.Tests.ps1 | 31 + ...fCustomRuleGroupByVariableObject.Tests.ps1 | 22 + ...w-AzFrontDoorWafCustomRuleObject.Tests.ps1 | 28 + ...ontDoorWafLogScrubbingRuleObject.Tests.ps1 | 24 + ...DoorWafLogScrubbingSettingObject.Tests.ps1 | 24 + ...oorWafManagedRuleExclusionObject.Tests.ps1 | 24 + ...-AzFrontDoorWafManagedRuleObject.Tests.ps1 | 28 + ...DoorWafManagedRuleOverrideObject.Tests.ps1 | 24 + ...FrontDoorWafMatchConditionObject.Tests.ps1 | 26 + .../New-AzFrontDoorWafPolicy.Recording.json | 129 ++ .../test/New-AzFrontDoorWafPolicy.Tests.ps1 | 46 + ...ntDoorWafRuleGroupOverrideObject.Tests.ps1 | 25 + .../FrontDoor.Autorest/test/README.md | 17 + .../test/Remove-AzFrontDoor.Recording.json | 529 ++++++++ .../test/Remove-AzFrontDoor.Tests.ps1 | 39 + .../test/Remove-AzFrontDoorContent.Tests.ps1 | 41 + ...move-AzFrontDoorRulesEngine.Recording.json | 127 ++ .../Remove-AzFrontDoorRulesEngine.Tests.ps1 | 45 + ...Remove-AzFrontDoorWafPolicy.Recording.json | 171 +++ .../Remove-AzFrontDoorWafPolicy.Tests.ps1 | 46 + .../test/Set-AzFrontDoor.Recording.json | 305 +++++ .../test/Set-AzFrontDoor.Tests.ps1 | 50 + .../Set-AzFrontDoorRulesEngine.Recording.json | 173 +++ .../test/Set-AzFrontDoorRulesEngine.Tests.ps1 | 33 + .../Update-AzFrontDoorRulesEngine.Tests.ps1 | 29 + ...Update-AzFrontDoorWafPolicy.Recording.json | 173 +++ .../Update-AzFrontDoorWafPolicy.Tests.ps1 | 44 + .../FrontDoor.Autorest/test/env.json | 9 + .../FrontDoor.Autorest/test/loadEnv.ps1 | 29 + .../FrontDoor.Autorest/test/utils.ps1 | 128 ++ .../utils/Get-SubscriptionIdTestSafe.ps1 | 7 + .../utils/Unprotect-SecureString.ps1 | 16 + src/FrontDoor/FrontDoor.sln | 101 ++ src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 52 +- src/FrontDoor/FrontDoor/help/Az.FrontDoor.md | 87 +- .../Disable-AzFrontDoorCustomDomainHttps.md | 204 +-- .../Enable-AzFrontDoorCustomDomainHttps.md | 359 +++--- .../FrontDoor/help/Get-AzFrontDoor.md | 199 ++- .../help/Get-AzFrontDoorFrontendEndpoint.md | 174 ++- .../help/Get-AzFrontDoorRulesEngine.md | 137 +- ...-AzFrontDoorWafManagedRuleSetDefinition.md | 64 +- .../help/Get-AzFrontDoorWafPolicy.md | 109 +- .../FrontDoor/help/New-AzFrontDoor.md | 241 ++-- .../help/New-AzFrontDoorBackendObject.md | 95 +- .../help/New-AzFrontDoorBackendPoolObject.md | 86 +- ...ew-AzFrontDoorBackendPoolsSettingObject.md | 61 +- ...New-AzFrontDoorCacheConfigurationObject.md | 123 ++ ...zFrontDoorForwardingConfigurationObject.md | 122 ++ .../New-AzFrontDoorFrontendEndpointObject.md | 107 +- .../help/New-AzFrontDoorHeaderActionObject.md | 51 +- ...New-AzFrontDoorHealthProbeSettingObject.md | 81 +- ...w-AzFrontDoorLoadBalancingSettingObject.md | 65 +- .../New-AzFrontDoorPolicySettingsObject.md | 187 +++ ...-AzFrontDoorRedirectConfigurationObject.md | 159 +++ .../help/New-AzFrontDoorRoutingRuleObject.md | 257 ++-- .../help/New-AzFrontDoorRulesEngine.md | 152 ++- .../New-AzFrontDoorRulesEngineActionObject.md | 235 ++-- ...rontDoorRulesEngineMatchConditionObject.md | 72 +- .../New-AzFrontDoorRulesEngineRuleObject.md | 93 +- ...tDoorWafCustomRuleGroupByVariableObject.md | 48 +- .../New-AzFrontDoorWafCustomRuleObject.md | 94 +- ...ew-AzFrontDoorWafLogScrubbingRuleObject.md | 58 +- ...AzFrontDoorWafLogScrubbingSettingObject.md | 55 +- ...zFrontDoorWafManagedRuleExclusionObject.md | 61 +- .../New-AzFrontDoorWafManagedRuleObject.md | 83 +- ...AzFrontDoorWafManagedRuleOverrideObject.md | 67 +- .../New-AzFrontDoorWafMatchConditionObject.md | 73 +- .../help/New-AzFrontDoorWafPolicy.md | 230 +++- ...w-AzFrontDoorWafRuleGroupOverrideObject.md | 65 +- .../FrontDoor/help/Remove-AzFrontDoor.md | 124 +- .../help/Remove-AzFrontDoorContent.md | 202 ++- .../help/Remove-AzFrontDoorRulesEngine.md | 141 ++- .../help/Remove-AzFrontDoorWafPolicy.md | 120 +- .../FrontDoor/help/Set-AzFrontDoor.md | 351 ++---- .../help/Set-AzFrontDoorRulesEngine.md | 134 +- .../help/Update-AzFrontDoorWafPolicy.md | 253 ++-- 230 files changed, 21979 insertions(+), 2429 deletions(-) create mode 100644 src/FrontDoor/FrontDoor.Autorest/.gitattributes create mode 100644 src/FrontDoor/FrontDoor.Autorest/.gitignore create mode 100644 src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/FrontDoor/FrontDoor.Autorest/README.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-frontendEndpoints.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-rulesEngines.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/Az.FrontDoor.custom.psm1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoor.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/README.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoor.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCacheConfigurationObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorForwardingConfigurationObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorHeaderActionObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorPolicySettingsObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorRedirectConfigurationObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafMatchConditionObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafManagedRuleSetDefinition.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafPolicy.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolsSettingObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorCacheConfigurationObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorForwardingConfigurationObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorFrontendEndpointObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHeaderActionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHealthProbeSettingObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorLoadBalancingSettingObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRedirectConfigurationObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineMatchConditionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingSettingObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleExclusionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafMatchConditionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafRuleGroupOverrideObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/README.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorWafPolicy.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafManagedRuleSetDefinition.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafPolicy.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolsSettingObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorCacheConfigurationObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorForwardingConfigurationObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorFrontendEndpointObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHeaderActionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHealthProbeSettingObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorLoadBalancingSettingObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorPolicySettingsObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRedirectConfigurationObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRoutingRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineMatchConditionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingSettingObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleExclusionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleOverrideObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafMatchConditionObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafPolicy.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafRuleGroupOverrideObject.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorContent.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorWafPolicy.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Update-AzFrontDoorWafPolicy.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/how-to.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/resources/README.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Disable-AzFrontDoorCustomDomainHttps.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorRulesEngine.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolsSettingObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorCacheConfigurationObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorForwardingConfigurationObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorFrontendEndpointObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHeaderActionObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHealthProbeSettingObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorLoadBalancingSettingObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorPolicySettingsObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRedirectConfigurationObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRoutingRuleObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineActionObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineMatchConditionObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineRuleObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleGroupByVariableObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingRuleObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingSettingObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleExclusionObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleOverrideObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafMatchConditionObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafRuleGroupOverrideObject.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/README.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorContent.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/env.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/loadEnv.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/utils.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/utils/Unprotect-SecureString.ps1 create mode 100644 src/FrontDoor/FrontDoor/help/New-AzFrontDoorCacheConfigurationObject.md create mode 100644 src/FrontDoor/FrontDoor/help/New-AzFrontDoorForwardingConfigurationObject.md create mode 100644 src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md create mode 100644 src/FrontDoor/FrontDoor/help/New-AzFrontDoorRedirectConfigurationObject.md diff --git a/src/FrontDoor/FrontDoor.Autorest/.gitattributes b/src/FrontDoor/FrontDoor.Autorest/.gitattributes new file mode 100644 index 000000000000..2125666142eb --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/.gitattributes @@ -0,0 +1 @@ +* text=auto \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/.gitignore b/src/FrontDoor/FrontDoor.Autorest/.gitignore new file mode 100644 index 000000000000..6ec158bd9768 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/.gitignore @@ -0,0 +1,16 @@ +bin +obj +.vs +generated +internal +exports +tools +test/*-TestResults.xml +license.txt +/*.ps1 +/*.psd1 +/*.ps1xml +/*.psm1 +/*.snk +/*.csproj +/*.nuspec \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..b6db8e525a56 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - FrontDoor")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.13.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/FrontDoor/FrontDoor.Autorest/README.md b/src/FrontDoor/FrontDoor.Autorest/README.md new file mode 100644 index 000000000000..1af5161f73ad --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/README.md @@ -0,0 +1,408 @@ + +# Az.FrontDoor +This directory contains the PowerShell module for the FrontDoor service. + +--- +## Info +- Modifiable: yes +- Generated: all +- Committed: yes +- Packaged: yes + +--- +## Detail +This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. + +## Module Requirements +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater + +## Authentication +AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. + +## Development +For information on how to develop for `Az.FrontDoor`, see [how-to.md](how-to.md). + + +### AutoRest Configuration +> see https://aka.ms/autorest + +```yaml +# pin the swagger version by using the commit id instead of branch name +commit: cf9f241708ed82f2dad218fed3c09ca5fd191311 +require: +# readme.azure.noprofile.md is the common configuration file + - $(this-folder)/../../readme.azure.noprofile.md +# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally +input-file: +# You need to specify your swagger files here. + - $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/webapplicationfirewall.json + - $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/network.json + - $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/frontdoor.json + +try-require: + - $(repo)/specification/xxx/resource-manager/readme.powershell.md + +# For new RP, the version is 0.1.0 +module-version: 0.1.0 +# Normally, title is the service name +title: FrontDoor +subject-prefix: $(service-name) + +# The next three configurations are exclusive to v3, and in v4, they are activated by default. If you are still using v3, please uncomment them. +# identity-correction-for-post: true +# resourcegroup-append: true +# nested-object-to-string: true + +directive: + # Following are common directives which are normally required in all the RPs + # 1. Remove the unexpanded parameter set + # 2. For New-* cmdlets, ViaIdentity is not required + # Following two directives are v4 specific + - where: + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) + remove: true + - where: + variant: ^CreateViaIdentity.*$ + remove: true + - no-inline: # choose ONE of these models to disable inlining + - BackendPoolsSettings + - RouteConfiguration + - PolicySettingsLogScrubbing + - CacheConfiguration + - RulesEngineAction + - PolicySettings + + - from: swagger-document + where: $.definitions.RouteUpdatePropertiesParameters.properties.supportedProtocols + transform: delete $.default + - from: swagger-document + where: $.definitions.PolicySettings.properties.logScrubbing + transform: $['x-ms-client-flatten'] = false; + - from: swagger-document + where: $.definitions.FrontendEndpointProperties.properties.customHttpsConfiguration + transform: >- + return { + "description": "The configuration specifying how to enable HTTPS", + "$ref": "#/definitions/CustomHttpsConfiguration" + } + + # For New object model cmdlet + - model-cmdlet: + # - model-name: Backend + # cmdlet-name: New-AzFrontDoorBackendObject + # - model-name: BackendPool + # cmdlet-name: New-AzFrontDoorBackendPoolObject + # - model-name: BackendPoolsSettings + # cmdlet-name: New-AzFrontDoorBackendPoolsSettingsObject + # - model-name: FrontendEndpoint + # cmdlet-name: New-AzFrontDoorFrontendEndpointObject + - model-name: HeaderAction + cmdlet-name: New-AzFrontDoorHeaderActionObject + # - model-name: HealthProbeSettingsModel + # cmdlet-name: New-AzFrontDoorHealthProbeSettingObject + # - model-name: LoadBalancingSettingsModel + # cmdlet-name: New-AzFrontDoorLoadBalancingSettingObject + # - model-name: RoutingRule + # cmdlet-name: New-AzFrontDoorRoutingRuleObject + # - model-name: RulesEngineAction + # cmdlet-name: New-AzFrontDoorRulesEngineActionObject + # - model-name: RulesEngineMatchCondition + # cmdlet-name: New-AzFrontDoorRulesEngineMatchConditionObject + # - model-name: RulesEngineRule + # cmdlet-name: New-AzFrontDoorRulesEngineRuleObject + # - model-name: CustomRule + # cmdlet-name: New-AzFrontDoorWafCustomRuleObject + # - model-name: ManagedRuleOverride + # cmdlet-name: New-AzFrontDoorWafManagedRuleOverrideObject + - model-name: MatchCondition + cmdlet-name: New-AzFrontDoorWafMatchConditionObject + - model-name: ManagedRuleGroupOverride + cmdlet-name: New-AzFrontDoorWafRuleGroupOverrideObject + - model-name: GroupByVariable + cmdlet-name: New-AzFrontDoorWafCustomRuleGroupByVariableObject + - model-name: ManagedRuleExclusion + cmdlet-name: New-AzFrontDoorWafManagedRuleExclusionObject + - model-name: ManagedRuleSet + cmdlet-name: New-AzFrontDoorWafManagedRuleObject + - model-name: PolicySettingsLogScrubbing + cmdlet-name: New-AzFrontDoorWafLogScrubbingSettingObject + - model-name: WebApplicationFirewallScrubbingRules + cmdlet-name: New-AzFrontDoorWafLogScrubbingRuleObject + - model-name: ForwardingConfiguration + cmdlet-name: New-AzFrontDoorForwardingConfigurationObject + - model-name: RedirectConfiguration + cmdlet-name: New-AzFrontDoorRedirectConfigurationObject + - model-name: CacheConfiguration + cmdlet-name: New-AzFrontDoorCacheConfigurationObject + # - model-name: RouteConfiguration + # cmdlet-name: New-AzFrontDoorRouteConfigurationObject + - model-name: PolicySettings + cmdlet-name: New-AzFrontDoorPolicySettingsObject + + # Rename + - where: + subject: Policy + set: + subject: WafPolicy + - where: + verb: Get + subject: ManagedRuleSet + set: + verb: Get + subject: WafManagedRuleSetDefinition + # Hide Waf + - where: + verb: New + subject: WafPolicy + hide: true + - where: + verb: Update + subject: WafPolicy + hide: true + - remove-operation: Policies_Update + # Hide unused + - where: + verb: Test + hide: true + - where: + verb: Set + hide: true + + - where: + subject: FrontendEndpointHttps + set: + subject: CustomDomainHttps + - where: + verb: Enable + subject: CustomDomainHttps + parameter-name: KeyVaultCertificateSourceParameterSecretName + set: + parameter-name: SecretName + - where: + verb: Enable + subject: CustomDomainHttps + parameter-name: KeyVaultCertificateSourceParameterSecretVersion + set: + parameter-name: SecretVersion + - where: + verb: Enable + subject: CustomDomainHttps + parameter-name: FrontDoorCertificateSourceParameterCertificateType + set: + parameter-name: CertificateType + - where: + verb: Enable + subject: CustomDomainHttps + parameter-name: MinimumTlsVersion + set: + default: + script: '1.2' + - where: + verb: Enable + subject: CustomDomainHttps + hide: true + - where: + verb: Set + subject: RulesEngine + hide: true + + # AzFrontDoor + - where: + subject: FrontDoor + parameter-name: Location + hide: true + set: + default: + script: '"global"' + - where: + verb: New + subject: FrontDoor + parameter-name: EnabledState + set: + default: + script: '"Enabled"' + # Customize + - where: + verb: New + subject: FrontDoor + hide: true + - where: + verb: Update + subject: FrontDoor + hide: true + # AzFrontDoorWafPolicy + - where: + subject: WafPolicy + parameter-name: Location + hide: true + set: + default: + script: '"global"' + + # Clear-AzFrontDoorEndpointContent rename to Remove-AzFrontDoorContent + - where: + verb: Clear + subject: EndpointContent + set: + verb: Remove + subject: Content + + # Update Rules Engine alias + - where: + verb: Update + subject: RulesEngine + set: + verb: Set + + # Breaking change avoid rename + # New-AzFrontDoorHeaderActionObject + - where: + model-name: HeaderAction + property-name: Type + set: + property-name: HeaderActionType + + - where: + model-name: Backend + property-name: HostHeader + set: + property-name: BackendHostHeader + + - where: + model-name: BackendPoolsSettings + property-name: SendRecvTimeoutSecond + set: + property-name: SendRecvTimeoutInSeconds + + - where: + model-name: FrontendEndpoint + property-name: CustomHttpsConfigurationCertificateSource + set: + property-name: CertificateSource + - where: + model-name: FrontendEndpoint + property-name: CustomHttpsConfigurationMinimumTlsVersion + set: + property-name: MinimumTlsVersion + - where: + model-name: FrontendEndpoint + property-name: FrontDoorCertificateSourceParameterCertificateType + set: + property-name: CertificateType + - where: + model-name: FrontendEndpoint + property-name: KeyVaultCertificateSourceParameterSecretName + set: + property-name: SecretName + - where: + model-name: FrontendEndpoint + property-name: KeyVaultCertificateSourceParameterSecretVersion + set: + property-name: SecretVersion + - where: + model-name: FrontendEndpoint + property-name: SessionAffinityTtlSecond + set: + property-name: SessionAffinityTtlInSeconds + - where: + model-name: FrontendEndpoint + property-name: VaultId + set: + property-name: Vault + - where: + model-name: FrontendEndpoint + property-name: CustomHttpsConfigurationProtocolType + set: + property-name: ProtocolType + + - where: + model-name: HealthProbeSettingsModel + property-name: IntervalInSecond + set: + property-name: IntervalInSeconds + + - where: + model-name: LoadBalancingSettingsModel + property-name: AdditionalLatencyMillisecond + set: + property-name: AdditionalLatencyInMilliseconds + + - where: + model-name: CustomRule + property-name: RateLimitDurationInMinute + set: + property-name: RateLimitDurationInMinutes + + - where: + model-name: WebApplicationFirewallPolicy + property-name: CustomRule + set: + property-name: CustomRuleList + - where: + model-name: WebApplicationFirewallPolicy + property-name: CustomRuleRules + set: + property-name: CustomRule + + - where: + model-name: ManagedRuleExclusion + property-name: MatchVariable + set: + property-name: Variable + - where: + model-name: ManagedRuleExclusion + property-name: SelectorMatchOperator + set: + property-name: Operator + + - where: + model-name: ManagedRuleSet + property-name: RuleSetType + set: + property-name: Type + - where: + model-name: ManagedRuleSet + property-name: RuleSetVersion + set: + property-name: Version + + - where: + model-name: ManagedRuleGroupOverride + property-name: Rule + set: + property-name: ManagedRuleOverride + + - where: + model-name: MatchCondition + property-name: Operator + set: + property-name: OperatorProperty + + - where: + model-name: RulesEngineMatchCondition + property-name: RulesEngineMatchValue + set: + property-name: MatchValue + - where: + model-name: RulesEngineMatchCondition + property-name: RulesEngineMatchVariable + set: + property-name: MatchVariable + - where: + model-name: RulesEngineMatchCondition + property-name: RulesEngineOperator + set: + property-name: Operator + - where: + model-name: PolicySettings + property-name: JavascriptChallengeExpirationInMinute + set: + property-name: JavascriptChallengeExpirationInMinutes + - where: + model-name: PolicySettings + property-name: LogScrubbing + set: + property-name: LogScrubbingSetting + + +``` diff --git a/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies.json b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies.json new file mode 100644 index 000000000000..729750fe8174 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies.json @@ -0,0 +1,85 @@ +{ + "resourceType": "FrontDoorWebApplicationFirewallPolicies", + "apiVersion": "2024-02-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor" + }, + "commands": [ + { + "name": "Get-AzFrontDoorWafPolicy", + "description": "Retrieve protection policy with specified name within a resource group.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafpolicy" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Retrieve protection policy with specified name within a resource group.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.policyName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzFrontDoorWafPolicy", + "description": "Deletes Policy", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorwafpolicy" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes Policy", + "parameters": [ + { + "name": "-Name", + "value": "[Path.policyName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-frontendEndpoints.json b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-frontendEndpoints.json new file mode 100644 index 000000000000..4951d4cf66e1 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-frontendEndpoints.json @@ -0,0 +1,95 @@ +{ + "resourceType": "frontDoors/frontendEndpoints", + "apiVersion": "2021-06-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor" + }, + "commands": [ + { + "name": "Disable-AzFrontDoorCustomDomainHttps", + "description": "Disables a frontendEndpoint for HTTPS traffic", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/disable-azfrontdoorcustomdomainhttps" + }, + "parameterSets": [ + { + "parameters": [ + "-FrontDoorName ", + "-FrontendEndpointName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Disables a frontendEndpoint for HTTPS traffic", + "parameters": [ + { + "name": "-FrontDoorName", + "value": "[Path.frontDoorName]" + }, + { + "name": "-FrontendEndpointName", + "value": "[Path.frontendEndpointName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Get-AzFrontDoorFrontendEndpoint", + "description": "Gets a Frontend endpoint with the specified name within the specified Front Door.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint" + }, + "parameterSets": [ + { + "parameters": [ + "-FrontDoorName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a Frontend endpoint with the specified name within the specified Front Door.", + "parameters": [ + { + "name": "-FrontDoorName", + "value": "[Path.frontDoorName]" + }, + { + "name": "-Name", + "value": "[Path.frontendEndpointName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-rulesEngines.json b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-rulesEngines.json new file mode 100644 index 000000000000..f0c393538a13 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-rulesEngines.json @@ -0,0 +1,95 @@ +{ + "resourceType": "frontDoors/rulesEngines", + "apiVersion": "2021-06-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor" + }, + "commands": [ + { + "name": "Get-AzFrontDoorRulesEngine", + "description": "Gets a Rules Engine Configuration with the specified name within the specified Front Door.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorrulesengine" + }, + "parameterSets": [ + { + "parameters": [ + "-FrontDoorName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a Rules Engine Configuration with the specified name within the specified Front Door.", + "parameters": [ + { + "name": "-FrontDoorName", + "value": "[Path.frontDoorName]" + }, + { + "name": "-Name", + "value": "[Path.rulesEngineName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzFrontDoorRulesEngine", + "description": "Deletes an existing Rules Engine Configuration with the specified parameters.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorrulesengine" + }, + "parameterSets": [ + { + "parameters": [ + "-FrontDoorName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes an existing Rules Engine Configuration with the specified parameters.", + "parameters": [ + { + "name": "-FrontDoorName", + "value": "[Path.frontDoorName]" + }, + { + "name": "-Name", + "value": "[Path.rulesEngineName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors.json b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors.json new file mode 100644 index 000000000000..1bca96581de0 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors.json @@ -0,0 +1,85 @@ +{ + "resourceType": "frontDoors", + "apiVersion": "2021-06-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor" + }, + "commands": [ + { + "name": "Get-AzFrontDoor", + "description": "Gets a Front Door with the specified Front Door name under the specified subscription and resource group.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoor" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a Front Door with the specified Front Door name under the specified subscription and resource group.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.frontDoorName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzFrontDoor", + "description": "Deletes an existing Front Door with the specified parameters.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoor" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes an existing Front Door with the specified parameters.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.frontDoorName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Az.FrontDoor.custom.psm1 b/src/FrontDoor/FrontDoor.Autorest/custom/Az.FrontDoor.custom.psm1 new file mode 100644 index 000000000000..2c6b1750b23a --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Az.FrontDoor.custom.psm1 @@ -0,0 +1,17 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.FrontDoor.private.dll') + + # Load the internal module + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.FrontDoor.internal.psm1' + if(Test-Path $internalModulePath) { + $null = Import-Module -Name $internalModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export script cmdlets + Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) +# endregion diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 new file mode 100644 index 000000000000..ab252e9acec0 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 @@ -0,0 +1,248 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Enables a frontendEndpoint for HTTPS traffic +.Description +Enables a frontendEndpoint for HTTPS traffic +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMHTTPSCONFIGURATION : Https settings for a domain + CertificateSource : Defines the source of the SSL certificate + MinimumTlsVersion : The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [FrontDoorCertificateSourceParameterCertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [KeyVaultCertificateSourceParameterSecretName ]: The name of the Key Vault secret representing the full certificate PFX + [KeyVaultCertificateSourceParameterSecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [VaultId ]: Resource ID. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps +#> +function Enable-AzFrontDoorCustomDomainHttps { + [OutputType([System.Boolean])] + [CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + param( + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${FrontendEndpointName}, + + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Enable')] + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaJsonFilePath')] + [Parameter(ParameterSetName='EnableViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] + [System.String] + # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + ${MinimumTlsVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Key Vault secret representing the full certificate PFX + ${SecretName}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The version of the Key Vault secret representing the full certificate PFX + ${SecretVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${VaultId}, + + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Enable operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Enable operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + if ($PSBoundParameters.ContainsKey('VaultId')) { + $PSBoundParameters.CertificateSource = 'AzureKeyVault' + } else { + $PSBoundParameters.CertificateSource = 'FrontDoor' + $PSBoundParameters.CertificateType = "Dedicated" + } + + Az.FrontDoor.internal\Enable-AzFrontDoorCustomDomainHttps @PSBoundParameters + } +} + \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoor.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoor.ps1 new file mode 100644 index 000000000000..386c5a8423c4 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoor.ps1 @@ -0,0 +1,275 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +create a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +create a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutSecond ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CustomHttpsConfigurationCertificateSource ]: Defines the source of the SSL certificate + [CustomHttpsConfigurationMinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [FrontDoorCertificateSourceParameterCertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [KeyVaultCertificateSourceParameterSecretName ]: The name of the Key Vault secret representing the full certificate PFX + [KeyVaultCertificateSourceParameterSecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [Name ]: Resource name. + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlSecond ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [VaultId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSecond ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyMillisecond ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor +#> +function New-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [switch] + ${DisableCertificateNameCheck}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState} = 'Enabled', + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + + process { + $duplicateCheck = Get-AzFrontDoor -ResourceGroupName $ResourceGroupName + + foreach ($fd in $duplicateCheck) { + if ($fd.Name -eq $Name) { + throw "Front Door with name $Name already exists in resource group $ResourceGroupName" + } + } + + Az.FrontDoor.internal\New-AzFrontDoor @PSBoundParameters + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 new file mode 100644 index 000000000000..fc9029c21b91 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 @@ -0,0 +1,96 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for Backend. +.Description +Create an in-memory object for Backend. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject +#> +function New-AzFrontDoorBackendObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend')] + [CmdletBinding(PositionalBinding=$false)] + Param( + [Parameter(HelpMessage="Location of the backend (IP address or FQDN).")] + [string] + $Address, + [Parameter(HelpMessage="The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host.")] + [string] + $BackendHostHeader = $Address, + [Parameter(HelpMessage="Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $EnabledState = 'Enabled', + [Parameter(HelpMessage="The HTTP TCP port number. Must be between 1 and 65535.")] + [int] + $HttpPort = 80, + [Parameter(HelpMessage="The HTTPS TCP port number. Must be between 1 and 65535.")] + [int] + $HttpsPort = 443, + [Parameter(HelpMessage="Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy.")] + [int] + [ValidateRange(0, [int]::MaxValue)] + $Priority = 1, + [Parameter(HelpMessage="The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.")] + [string] + $PrivateLinkAlias, + [Parameter(HelpMessage="A custom message to be included in the approval request to connect to the Private Link.")] + [string] + $PrivateLinkApprovalMessage, + [Parameter(HelpMessage="The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.")] + [string] + $PrivateLinkLocation, + [Parameter(HelpMessage="The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.")] + [string] + $PrivateLinkResourceId, + [Parameter(HelpMessage="Weight of this endpoint for load balancing purposes.")] + [int] + $Weight = 50 + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend]::New() + + if ($PSBoundParameters.ContainsKey('Address')) { + $Object.Address = $Address + } + $Object.BackendHostHeader = $BackendHostHeader + $Object.EnabledState = $EnabledState + $Object.HttpPort = $HttpPort + $Object.HttpsPort = $HttpsPort + $Object.Priority = $Priority + if ($PSBoundParameters.ContainsKey('PrivateLinkAlias')) { + $Object.PrivateLinkAlias = $PrivateLinkAlias + } + if ($PSBoundParameters.ContainsKey('PrivateLinkApprovalMessage')) { + $Object.PrivateLinkApprovalMessage = $PrivateLinkApprovalMessage + } + if ($PSBoundParameters.ContainsKey('PrivateLinkLocation')) { + $Object.PrivateLinkLocation = $PrivateLinkLocation + } + if ($PSBoundParameters.ContainsKey('PrivateLinkResourceId')) { + $Object.PrivateLinkResourceId = $PrivateLinkResourceId + } + $Object.Weight = $Weight + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 new file mode 100644 index 000000000000..84cf69190fe4 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 @@ -0,0 +1,81 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for BackendPool. +.Description +Create an in-memory object for BackendPool. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject +#> +function New-AzFrontDoorBackendPoolObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="The set of backends for this pool.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend[]] + $Backend, + [Parameter(HelpMessage="Resource ID.")] + [string] + $HealthProbeSettingsName, + [Parameter(HelpMessage="Resource ID.")] + [string] + $LoadBalancingSettingsName, + [Parameter(HelpMessage="Resource name.")] + [string] + $Name, + [Parameter(HelpMessage="Resource ID.")] + [string] + $Id, + [Parameter(HelpMessage="Resource ID.")] + [string] + $FrontDoorName, + [Parameter(HelpMessage="Resource ID.")] + [string] + $ResourceGroupName + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool]::New() + + $subId = (Get-AzContext).Subscription.Id + + if ($PSBoundParameters.ContainsKey('Backend')) { + $Object.Backend = $Backend + } + if ($PSBoundParameters.ContainsKey('HealthProbeSettingsName')) { + $HealthProbeSettingId = "/subscriptions/$subId/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/HealthProbeSettings/$HealthProbeSettingsName" + $Object.HealthProbeSettingId = $HealthProbeSettingId + } + if ($PSBoundParameters.ContainsKey('LoadBalancingSettingsName')) { + $LoadBalancingSettingId = "/subscriptions/$subId/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/LoadBalancingSettings/$LoadBalancingSettingsName" + $Object.LoadBalancingSettingId = $LoadBalancingSettingId + } + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + if ($PSBoundParameters.ContainsKey('Id')) { + $Object.Id = $Id + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 new file mode 100644 index 000000000000..18e7e51ba0e0 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 @@ -0,0 +1,51 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for BackendPoolsSettings. +.Description +Create an in-memory object for BackendPoolsSettings. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject +#> +function New-AzFrontDoorBackendPoolsSettingObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $EnforceCertificateNameCheck = 'Enabled', + [Parameter(HelpMessage="Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.")] + [int] + $SendRecvTimeoutInSeconds = 30 + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings]::New() + + $Object.EnforceCertificateNameCheck = $EnforceCertificateNameCheck + $Object.SendRecvTimeoutInSeconds = $SendRecvTimeoutInSeconds + + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 new file mode 100644 index 000000000000..770f44dec4ed --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 @@ -0,0 +1,119 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for FrontendEndpoint. +.Description +Create an in-memory object for FrontendEndpoint. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject +#> +function New-AzFrontDoorFrontendEndpointObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Defines the source of the SSL certificate.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + [string] + $CertificateSource, + [Parameter(HelpMessage="The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [string] + $MinimumTlsVersion, + [Parameter(HelpMessage="Defines the type of the certificate used for secure connections to a frontendEndpoint.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + [string] + $CertificateType, + [Parameter(HelpMessage="The host name of the frontendEndpoint. Must be a domain name.")] + [string] + $HostName, + [Parameter(HelpMessage="The name of the Key Vault secret representing the full certificate PFX.")] + [string] + $SecretName, + [Parameter(HelpMessage="The version of the Key Vault secret representing the full certificate PFX.")] + [string] + $SecretVersion, + [Parameter(HelpMessage="Resource name.")] + [string] + $Name, + [Parameter(HelpMessage="Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $SessionAffinityEnabledState = 'Enabled', + [Parameter(HelpMessage="UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.")] + [int] + $SessionAffinityTtlInSeconds = 0, + [Parameter(HelpMessage="Resource ID.")] + [string] + $Vault, + [Parameter(HelpMessage="Resource ID.")] + [string] + [Alias("WebApplicationFirewallPolicyLink")] + $WebApplicationFirewallPolicyLinkId, + [Parameter(HelpMessage="Resource ID.")] + [string] + $Id, + # This was ignored by autorest because of only one enum + [Parameter(HelpMessage="The TLS extension protocol that is used for secure delivery")] + [string] + $ProtocolType = "ServerNameIndication" + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint]::New() + + if ($PSBoundParameters.ContainsKey('CertificateSource')) { + $Object.CertificateSource = $CertificateSource + } + if ($PSBoundParameters.ContainsKey('MinimumTlsVersion')) { + $Object.MinimumTlsVersion = $MinimumTlsVersion + } + if ($PSBoundParameters.ContainsKey('CertificateType')) { + $Object.CertificateType = $CertificateType + } + if ($PSBoundParameters.ContainsKey('HostName')) { + $Object.HostName = $HostName + } + if ($PSBoundParameters.ContainsKey('SecretName')) { + $Object.SecretName = $SecretName + } + if ($PSBoundParameters.ContainsKey('SecretVersion')) { + $Object.SecretVersion = $SecretVersion + } + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + $Object.SessionAffinityEnabledState = $SessionAffinityEnabledState + $Object.SessionAffinityTtlInSeconds = $SessionAffinityTtlInSeconds + if ($PSBoundParameters.ContainsKey('Vault')) { + $Object.Vault = $Vault + } + if ($PSBoundParameters.ContainsKey('WebApplicationFirewallPolicyLinkId')) { + $Object.WebApplicationFirewallPolicyLinkId = $WebApplicationFirewallPolicyLinkId + } + if ($PSBoundParameters.ContainsKey('Id')) { + $Object.Id = $Id + } + # $Object.ProtocolType = $ProtocolType + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 new file mode 100644 index 000000000000..e81a05dcefb7 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 @@ -0,0 +1,76 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for HealthProbeSettingsModel. +.Description +Create an in-memory object for HealthProbeSettingsModel. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject +#> +function New-AzFrontDoorHealthProbeSettingObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $EnabledState = 'Enabled', + [Parameter(HelpMessage="Configures which HTTP method to use to probe the backends defined under backendPools.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] + [string] + $HealthProbeMethod = 'HEAD', + [Parameter(HelpMessage="The number of seconds between health probes.")] + [int] + $IntervalInSeconds = 30, + [Parameter(HelpMessage="Resource name.")] + [string] + $Name, + [Parameter(HelpMessage="The path to use for the health probe. Default is /.")] + [string] + $Path = "/", + [Parameter(HelpMessage="Protocol scheme to use for this probe.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + [string] + $Protocol = "Http", + [Parameter(HelpMessage="Resource ID.")] + [string] + $Id + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel]::New() + + $Object.EnabledState = $EnabledState + $Object.HealthProbeMethod = $HealthProbeMethod + $Object.IntervalInSeconds = $IntervalInSeconds + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + $Object.Path = $Path + $Object.Protocol = $Protocol + if ($PSBoundParameters.ContainsKey('Id')) { + $Object.Id = $Id + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 new file mode 100644 index 000000000000..aa4d7c0e1261 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 @@ -0,0 +1,65 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for LoadBalancingSettingsModel. +.Description +Create an in-memory object for LoadBalancingSettingsModel. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject +#> +function New-AzFrontDoorLoadBalancingSettingObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="The additional latency in milliseconds for probes to fall into the lowest latency bucket.")] + [int] + $AdditionalLatencyInMilliseconds = 0, + [Parameter(HelpMessage="Resource name.")] + [string] + $Name, + [Parameter(HelpMessage="The number of samples to consider for load balancing decisions.")] + [int] + $SampleSize = 4, + [Parameter(HelpMessage="The number of samples within the sample period that must succeed.")] + [int] + $SuccessfulSamplesRequired = 2, + [Parameter(HelpMessage="Resource ID.")] + [string] + $Id + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel]::New() + + $Object.AdditionalLatencyInMilliseconds = $AdditionalLatencyInMilliseconds + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + $Object.SampleSize = $SampleSize + $Object.SuccessfulSamplesRequired = $SuccessfulSamplesRequired + if ($PSBoundParameters.ContainsKey('Id')) { + $Object.Id = $Id + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 new file mode 100644 index 000000000000..f0f91414406e --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 @@ -0,0 +1,214 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RoutingRule. +.Description +Create an in-memory object for RoutingRule. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject +#> +function New-AzFrontDoorRoutingRuleObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule')] + [CmdletBinding(DefaultParameterSetName= 'ForwardingParameterSet')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Protocol schemes to match for this rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + [string[]] + $AcceptedProtocol = @('Http', 'Https'), + [Parameter(HelpMessage="Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $EnabledState = 'Enabled', + [Parameter(HelpMessage="Frontend endpoints associated with this rule.")] + [string[]] + $FrontendEndpointName, + [Parameter(HelpMessage="Resource name.")] + [string] + $Name, + [Parameter(HelpMessage="Resource Group name.")] + [string] + $ResourceGroupName, + [Parameter(HelpMessage="The name of the Front Door to which this routing rule belongs.")] + [string] + $FrontDoorName, + [Parameter(HelpMessage="The route patterns of the rule.")] + [string[]] + $PatternsToMatch = @('/*'), + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] + $RouteConfiguration, + [Parameter(HelpMessage="Resource ID.")] + [string] + $RuleEngineName, + [Parameter(HelpMessage="Resource ID.")] + [string] + $WebApplicationFirewallPolicyLinkId, + [Parameter(HelpMessage="Resource ID.")] + [string] + $Id, + + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="Resource ID.")] + [string] + $BackendPoolName, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] + [System.TimeSpan] + $CacheDuration, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="Whether to use dynamic compression for cached content.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $DynamicCompression, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")] + [string] + $QueryParameter, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="Treatment of URL query terms when forming the cache key.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [string] + $QueryParameterStripDirective, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] + [string] + $CustomForwardingPath, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [string] + $ForwardingProtocol = 'MatchRequest', + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [bool] + $EnableCaching, + + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] + [string] + $CustomFragment, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] + [string] + $CustomHost, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] + [string] + $CustomPath, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] + [string] + $CustomQueryString, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="The protocol of the destination to where the traffic is redirected.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [string] + $RedirectProtocol, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="The redirect type the rule will use when redirecting traffic.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [string] + $RedirectType + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule]::New() + $subId = (Get-AzContext).Subscription.Id + + switch ($PSCmdlet.ParameterSetName) { + "ForwardingParameterSet" { + $ForwardingConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration]::New() + + $BackendPoolId = "/subscriptions/$subid/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/BackendPools/$BackendPoolName" + if ($PSBoundParameters.ContainsKey('BackendPoolName')) { + $BackendPoolId = "/subscriptions/$subid/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/BackendPools/$BackendPoolName" + $ForwardingConfiguration.BackendPoolId = $BackendPoolId + } + + if ($PSBoundParameters.ContainsKey('EnableCaching') -and $true -eq $EnableCaching) { + $CacheConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration]::New() + + if ($PSBoundParameters.ContainsKey('CacheDuration')) { + $CacheConfiguration.CacheDuration = $CacheDuration + } + $CacheConfiguration.DynamicCompression = $PSBoundParameters.ContainsKey('DynamicCompression')? $DynamicCompression : 'Enabled' + if ($PSBoundParameters.ContainsKey('QueryParameter')) { + $CacheConfiguration.QueryParameter = $QueryParameter + } + $CacheConfiguration.QueryParameterStripDirective = $PSBoundParameters.ContainsKey('QueryParameterStripDirective')? $QueryParameterStripDirective : 'StripAll' + $ForwardingConfiguration.CacheConfiguration = $CacheConfiguration + } + + if ($PSBoundParameters.ContainsKey('CustomForwardingPath')) { + $ForwardingConfiguration.CustomForwardingPath = $CustomForwardingPath + } + $ForwardingConfiguration.ForwardingProtocol = $PSBoundParameters.ContainsKey('ForwardingProtocol')? $ForwardingProtocol : 'MatchRequest' + $Object.RouteConfiguration = $ForwardingConfiguration + } + "RedirectParameterSet" { + $RedirectConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration]::New() + + if ($PSBoundParameters.ContainsKey('CustomFragment')) { + $RedirectConfiguration.CustomFragment = $CustomFragment + } + $RedirectConfiguration.CustomHost = $PSBoundParameters.ContainsKey('CustomHost')? $CustomHost : '' + $RedirectConfiguration.CustomPath = $PSBoundParameters.ContainsKey('CustomPath')? $CustomPath : '' + if ($PSBoundParameters.ContainsKey('CustomQueryString')) { + $RedirectConfiguration.CustomQueryString = $CustomQueryString + } + $RedirectConfiguration.RedirectProtocol = $PSBoundParameters.ContainsKey('RedirectProtocol')? $RedirectProtocol : 'MatchRequest' + $RedirectConfiguration.RedirectType = $PSBoundParameters.ContainsKey('RedirectType')? $RedirectType : 'Moved' + + $Object.RouteConfiguration = $RedirectConfiguration + } + } + + $Object.AcceptedProtocol = $AcceptedProtocol + $Object.EnabledState = $EnabledState + if ($PSBoundParameters.ContainsKey('FrontendEndpointName')) { + $FrontendEndpoint = $FrontendEndpointName | ForEach-Object { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource]@{ + Id = "/subscriptions/$subid/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/FrontendEndpoints/$_" + } + } + $Object.FrontendEndpoint = $FrontendEndpoint + } + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + + $Object.PatternsToMatch = $PatternsToMatch + + if ($PSBoundParameters.ContainsKey('RuleEngineName')) { + $RuleEngineId = "/subscriptions/$subid/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/RulesEngines/$RuleEngineName" + $Object.RuleEngineId = $RuleEngineId + } + if ($PSBoundParameters.ContainsKey('WebApplicationFirewallPolicyLinkId')) { + $Object.WebApplicationFirewallPolicyLinkId = $WebApplicationFirewallPolicyLinkId + } + if ($PSBoundParameters.ContainsKey('Id')) { + $Object.Id = $Id + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 new file mode 100644 index 000000000000..8d8969ecc02a --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 @@ -0,0 +1,202 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RulesEngineAction. +.Description +Create an in-memory object for RulesEngineAction. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject +#> +function New-AzFrontDoorRulesEngineActionObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction')] + [CmdletBinding(DefaultParameterSetName= 'ForwardingParameterSet')] + [CmdletBinding(PositionalBinding=$false)] + Param( + [Parameter(HelpMessage="A list of header actions to apply from the request from AFD to the origin.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] + $RequestHeaderAction, + [Parameter(HelpMessage="A list of header actions to apply from the response from AFD to the client.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] + $ResponseHeaderAction, + [Parameter(HelpMessage="Override the route configuration.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] + $RouteConfigurationOverride, + + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="Resource ID.")] + [string] + $BackendPoolName, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="The name of the Front Door to which this routing rule belongs.")] + [string] + $FrontDoorName, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="The resource group name that the RoutingRule will be created in.")] + [string] + $ResourceGroupName, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] + [System.TimeSpan] + $CacheDuration, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="Whether to use dynamic compression for cached content.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $DynamicCompression, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")] + [string] + $QueryParameter, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="Treatment of URL query terms when forming the cache key.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [string] + $QueryParameterStripDirective, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] + [string] + $CustomForwardingPath, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [string] + $ForwardingProtocol, + [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [bool] + $EnableCaching, + + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] + [string] + $CustomFragment, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] + [string] + $CustomHost, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] + [string] + $CustomPath, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] + [string] + $CustomQueryString, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="The protocol of the destination to where the traffic is redirected.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [string] + $RedirectProtocol, + [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(HelpMessage="The redirect type the rule will use when redirecting traffic.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [string] + $RedirectType + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction]::New() + $subId = (Get-AzContext).Subscription.Id + $nullOverride = $false + + if ($PSBoundParameters.ContainsKey('RequestHeaderAction')) { + $Object.RequestHeaderAction = $RequestHeaderAction + } + if ($PSBoundParameters.ContainsKey('ResponseHeaderAction')) { + $Object.ResponseHeaderAction = $ResponseHeaderAction + } + + switch ($PSCmdlet.ParameterSetName) { + "ForwardingParameterSet" { + if ( + !$PSBoundParameters.ContainsKey("BackendPoolName") -and + !$PSBoundParameters.ContainsKey("FrontDoorName") -and + !$PSBoundParameters.ContainsKey("ResourceGroupName") -and + !$PSBoundParameters.ContainsKey("EnableCaching") -and + !$PSBoundParameters.ContainsKey("ForwardingProtocol") -and + !$PSBoundParameters.ContainsKey("QueryParameterStripDirective") -and + !$PSBoundParameters.ContainsKey("DynamicCompression") -and + !$PSBoundParameters.ContainsKey("QueryParameter") -and + !$PSBoundParameters.ContainsKey("CacheDuration") -and + !$PSBoundParameters.ContainsKey("CustomForwardingPath") -and + !$PSBoundParameters.ContainsKey("CacheDuration") + ) + { + $nullOverride = $true + break + } + + $ForwardingConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration]::New() + + $BackendPoolId = "/subscriptions/$subid/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/BackendPools/$BackendPoolName" + if ($PSBoundParameters.ContainsKey('BackendPoolName')) { + $BackendPoolId = "/subscriptions/$subid/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/BackendPools/$BackendPoolName" + $ForwardingConfiguration.BackendPoolId = $BackendPoolId + } + + if ($PSBoundParameters.ContainsKey('EnableCaching') -and $true -eq $EnableCaching) { + $CacheConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration]::New() + + if ($PSBoundParameters.ContainsKey('CacheDuration')) { + $CacheConfiguration.CacheDuration = $CacheDuration + } + $CacheConfiguration.DynamicCompression = $PSBoundParameters.ContainsKey('DynamicCompression')? $DynamicCompression : 'Enabled' + if ($PSBoundParameters.ContainsKey('QueryParameter')) { + $CacheConfiguration.QueryParameter = $QueryParameter + } + $CacheConfiguration.QueryParameterStripDirective = $PSBoundParameters.ContainsKey('QueryParameterStripDirective')? $QueryParameterStripDirective : 'StripAll' + $ForwardingConfiguration.CacheConfiguration = $CacheConfiguration + } + + if ($PSBoundParameters.ContainsKey('CustomForwardingPath')) { + $ForwardingConfiguration.CustomForwardingPath = $CustomForwardingPath + } + $ForwardingConfiguration.ForwardingProtocol = $PSBoundParameters.ContainsKey('ForwardingProtocol')? $ForwardingProtocol : 'MatchRequest' + + $Object.RouteConfigurationOverride = $ForwardingConfiguration + break + } + "RedirectParameterSet" { + $RedirectConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration]::New() + + if ($PSBoundParameters.ContainsKey('CustomFragment')) { + $RedirectConfiguration.CustomFragment = $CustomFragment + } + $RedirectConfiguration.CustomHost = $PSBoundParameters.ContainsKey('CustomHost')? $CustomHost : '' + $RedirectConfiguration.CustomPath = $PSBoundParameters.ContainsKey('CustomPath')? $CustomPath : '' + if ($PSBoundParameters.ContainsKey('CustomQueryString')) { + $RedirectConfiguration.CustomQueryString = $CustomQueryString + } + $RedirectConfiguration.RedirectProtocol = $PSBoundParameters.ContainsKey('RedirectProtocol')? $RedirectProtocol : 'MatchRequest' + $RedirectConfiguration.RedirectType = $PSBoundParameters.ContainsKey('RedirectType')? $RedirectType : 'Moved' + + $Object.RouteConfigurationOverride = $RedirectConfiguration + break + } + } + + if ( ($Object.RequestHeaderAction.Count -eq 0) -and ($Object.ResponseHeaderAction.Count -eq 0) -and ($true -eq $nullOverride) ) { + throw "Rules engine action must contain at least one of the following actions: RequestHeaderActions, ResponseHeaderActions, or RouteConfigurationOverride " + } + + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 new file mode 100644 index 000000000000..7f9faee1e2c5 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 @@ -0,0 +1,76 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RulesEngineMatchCondition. +.Description +Create an in-memory object for RulesEngineMatchCondition. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject +#> +function New-AzFrontDoorRulesEngineMatchConditionObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Describes if this is negate condition or not.")] + [bool] + $NegateCondition = $false, + [Parameter(Mandatory, HelpMessage="Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.")] + [string[]] + $MatchValue, + [Parameter(Mandatory, HelpMessage="Match Variable.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] + [string] + $MatchVariable, + [Parameter(Mandatory, HelpMessage="Describes operator to apply to the match condition.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] + [string] + $Operator = "Any", + [Parameter(HelpMessage="Name of selector in RequestHeader or RequestBody to be matched.")] + [string] + $Selector, + [Parameter(HelpMessage="List of transforms.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + [string[]] + $Transform + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition]::New() + + $Object.NegateCondition = $NegateCondition + if ($PSBoundParameters.ContainsKey('MatchValue')) { + $Object.MatchValue = $MatchValue + } + if ($PSBoundParameters.ContainsKey('MatchVariable')) { + $Object.MatchVariable = $MatchVariable + } + $Object.Operator = $Operator + if ($PSBoundParameters.ContainsKey('Selector')) { + $Object.Selector = $Selector + } + if ($PSBoundParameters.ContainsKey('Transform')) { + $Object.Transform = $Transform + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 new file mode 100644 index 000000000000..bf74c52d6895 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 @@ -0,0 +1,71 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RulesEngineRule. +.Description +Create an in-memory object for RulesEngineRule. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject +#> +function New-AzFrontDoorRulesEngineRuleObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="Actions to perform on the request and response if all of the match conditions are met.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction] + $Action, + [Parameter(HelpMessage="A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition[]] + $MatchCondition, + [Parameter(HelpMessage="If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] + [string] + $MatchProcessingBehavior, + [Parameter(Mandatory, HelpMessage="A name to refer to this specific rule.")] + [string] + $Name, + [Parameter(Mandatory, HelpMessage="A priority assigned to this rule. .")] + [int] + [ValidateRange(0, [int]::MaxValue)] + $Priority = 0 + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule]::New() + + if ($PSBoundParameters.ContainsKey('Action')) { + $Object.Action = $Action + } + if ($PSBoundParameters.ContainsKey('MatchCondition')) { + $Object.MatchCondition = $MatchCondition + } + if ($PSBoundParameters.ContainsKey('MatchProcessingBehavior')) { + $Object.MatchProcessingBehavior = $MatchProcessingBehavior + } + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + $Object.Priority = $Priority + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 new file mode 100644 index 000000000000..445cbc1e169a --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 @@ -0,0 +1,94 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for CustomRule. +.Description +Create an in-memory object for CustomRule. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject +#> +function New-AzFrontDoorWafCustomRuleObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="Describes what action to be applied when rule matches.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] + [string] + $Action, + [Parameter(HelpMessage="Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [string] + $EnabledState = 'Enabled', + [Parameter(HelpMessage="Describes the list of variables to group the rate limit requests.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable[]] + [Alias("CustomRule")] + $GroupBy, + [Parameter(Mandatory, HelpMessage="List of match conditions.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition[]] + $MatchCondition, + [Parameter(HelpMessage="Describes the name of the rule.")] + [string] + $Name, + [Parameter(Mandatory, HelpMessage="Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.")] + [int] + [ValidateRange(0, [int]::MaxValue)] + $Priority = 0, + [Parameter(HelpMessage="Time window for resetting the rate limit count. Default is 1 minute.")] + [int] + $RateLimitDurationInMinutes = 1, + [Parameter(HelpMessage="Number of allowed requests per client within the time window.")] + [int] + $RateLimitThreshold, + [Parameter(Mandatory, HelpMessage="Describes type of rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] + [string] + $RuleType + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule]::New() + + if ($PSBoundParameters.ContainsKey('Action')) { + $Object.Action = $Action + } + $Object.EnabledState = $EnabledState + if ($PSBoundParameters.ContainsKey('GroupBy')) { + $Object.GroupBy = $GroupBy + } + if ($PSBoundParameters.ContainsKey('MatchCondition')) { + $Object.MatchCondition = $MatchCondition + } + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + $Object.Priority = $Priority + $Object.RateLimitDurationInMinutes = $RateLimitDurationInMinutes + if ($PSBoundParameters.ContainsKey('RateLimitThreshold')) { + $Object.RateLimitThreshold = $RateLimitThreshold + } + if ($PSBoundParameters.ContainsKey('RuleType')) { + $Object.RuleType = $RuleType + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 new file mode 100644 index 000000000000..f108a34a5b9f --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 @@ -0,0 +1,67 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ManagedRuleOverride. +.Description +Create an in-memory object for ManagedRuleOverride. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject +#> +function New-AzFrontDoorWafManagedRuleOverrideObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Describes the override action to be applied when rule matches.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] + [string] + $Action, + [Parameter(HelpMessage="Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [string] + $Disabled, + [Parameter(HelpMessage="Describes the exclusions that are applied to this specific rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + $Exclusion, + [Parameter(Mandatory, HelpMessage="Identifier for the managed rule.")] + [string] + $RuleId + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride]::New() + + if ($PSBoundParameters.ContainsKey('Action')) { + $Object.Action = $Action + } + if ($PSBoundParameters.ContainsKey('EnabledState')) { + $Object.EnabledState = $Disabled + } + if ($PSBoundParameters.ContainsKey('Exclusion')) { + $Object.Exclusion = $Exclusion + } + if ($PSBoundParameters.ContainsKey('RuleId')) { + $Object.RuleId = $RuleId + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..7c1b681c1da6 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,307 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +create policy with specified rule set name within a resource group. +.Description +create policy with specified rule set name within a resource group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + Operator : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinute ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +LOGSCRUBBING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + +MANAGEDRULESET : List of rule sets. + RuleSetType : Defines the rule set type to use. + RuleSetVersion : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + MatchVariable : The variable type to be excluded. + Selector : Selector value for which elements in the collection this exclusion applies to. + SelectorMatchOperator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [Rule >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy +#> +function New-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If the action type is block, customer can override the response body. + # The body must be specified in base64 encoding. + ${CustomBlockResponseBody}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # If the action type is block, customer can override the response status code. + ${CustomBlockResponseStatusCode}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the policy is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState} = "Enabled", + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # 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. + ${JavascriptChallengeExpirationInMinutes}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + # Defines rules that scrub sensitive fields in the Web Application Firewall logs. + ${LogScrubbingSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if it is in detection mode or prevention mode at policy level. + ${Mode} = "Prevention", + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If action type is redirect, this field represents redirect URL for the client. + ${RedirectUrl}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if policy managed rules will inspect the request body content. + ${RequestBodyCheck} = "Enabled", + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + + process { + $duplicateCheck = Get-AzFrontDoorWafPolicy -ResourceGroupName $ResourceGroupName + foreach ($policy in $duplicateCheck) { + if ($policy.Name -eq $Name) { + throw "WAF policy with name $Name already exists in resource group $ResourceGroupName" + } + } + + $PolicySettings = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings]::New() + if ($PSBoundParameters.ContainsKey('CustomBlockResponseBody')) { + $null = $PSBoundParameters.Remove('CustomBlockResponseBody') + $CustomBlockResponseBody = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($CustomBlockResponseBody)) + $PolicySettings.CustomBlockResponseBody = $CustomBlockResponseBody + } + if ($PSBoundParameters.ContainsKey('CustomBlockResponseStatusCode')) { + $null = $PSBoundParameters.Remove('CustomBlockResponseStatusCode') + $PolicySettings.CustomBlockResponseStatusCode = $CustomBlockResponseStatusCode + } + $null = $PSBoundParameters.Remove("EnabledState") + $PolicySettings.EnabledState = $EnabledState + if ($PSBoundParameters.ContainsKey('JavascriptChallengeExpirationInMinutes')) { + $null = $PSBoundParameters.Remove('JavascriptChallengeExpirationInMinutes') + $PolicySettings.JavascriptChallengeExpirationInMinutes = $JavascriptChallengeExpirationInMinutes + } + if ($PSBoundParameters.ContainsKey('LogScrubbingSetting')) { + $null = $PSBoundParameters.Remove('LogScrubbingSetting') + $PolicySettings.LogScrubbingSetting = $LogScrubbingSetting + } + $null = $PSBoundParameters.Remove("Mode") + $PolicySettings.Mode = $Mode + if ($PSBoundParameters.ContainsKey('RedirectUrl')) { + $null = $PSBoundParameters.Remove('RedirectUrl') + $PolicySettings.RedirectUrl = $RedirectUrl + } + $null = $PSBoundParameters.Remove("RequestBodyCheck") + $PolicySettings.RequestBodyCheck = $RequestBodyCheck + + $PSBoundParameters.Add('PolicySetting', $PolicySettings) + + Az.FrontDoor.internal\New-AzFrontDoorWafPolicy @PSBoundParameters + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/README.md b/src/FrontDoor/FrontDoor.Autorest/custom/README.md new file mode 100644 index 000000000000..76798faa9cf4 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/README.md @@ -0,0 +1,41 @@ +# Custom +This directory contains custom implementation for non-generated cmdlets for the `Az.FrontDoor` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.FrontDoor.custom.psm1`. This file should not be modified. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: yes + +## Details +For `Az.FrontDoor` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. + +For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.FrontDoor.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. + +For script cmdlets, these are loaded via the `Az.FrontDoor.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. + +## Purpose +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. + +## Usage +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +- Break +- DefaultProfile +- HttpPipelineAppend +- HttpPipelinePrepend +- Proxy +- ProxyCredential +- ProxyUseDefaultCredentials + +These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.FrontDoor`. For C#, follow the usage seen in the `ProcessRecordAsync` method. + +### Attributes +For processing the cmdlets, we've created some additional attributes: +- `Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DescriptionAttribute` + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. +- `Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExportAttribute` + - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.FrontDoor`. +- `Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExportAttribute` + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.FrontDoor`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. +- `Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ProfileAttribute` + - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoor.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoor.ps1 new file mode 100644 index 000000000000..6a9095be8f11 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoor.ps1 @@ -0,0 +1,271 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +update a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +update a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutSecond ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CustomHttpsConfigurationCertificateSource ]: Defines the source of the SSL certificate + [CustomHttpsConfigurationMinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [FrontDoorCertificateSourceParameterCertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [KeyVaultCertificateSourceParameterSecretName ]: The name of the Key Vault secret representing the full certificate PFX + [KeyVaultCertificateSourceParameterSecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [Name ]: Resource name. + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlSecond ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [VaultId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSecond ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyMillisecond ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor +#> +function Set-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [switch] + ${DisableCertificateNameCheck}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + if ($DisableCertificateNameCheck -and $null -ne $BackendPoolsSetting) { + $BackendPoolsSetting.EnforceCertificateNameCheck = 'Disabled' + } + + Az.FrontDoor.internal\Update-AzFrontDoor @PSBoundParameters +} +} diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..1d69788b17ac --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,325 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +update policy with specified rule set name within a resource group. +.Description +update policy with specified rule set name within a resource group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. + +POLICYSETTING : Describes settings for the policy. + [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. + [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + [JavascriptChallengeExpirationInMinutes ]: 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. + [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + [Mode ]: Describes if it is in detection mode or prevention mode at policy level. + [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. + [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy +#> +function Update-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + # [Parameter()] + # [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + # [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] + # # Describes settings for the policy. + # ${PolicySetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If the action type is block, customer can override the response body. + # The body must be specified in base64 encoding. + ${CustomBlockResponseBody}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # If the action type is block, customer can override the response status code. + ${CustomBlockResponseStatusCode}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the policy is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + # Defines rules that scrub sensitive fields in the Web Application Firewall logs. + ${LogScrubbingSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if it is in detection mode or prevention mode at policy level. + ${Mode}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If action type is redirect, this field represents redirect URL for the client. + ${RedirectUrl}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if policy managed rules will inspect the request body content. + ${RequestBodyCheck}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # 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. + ${JavascriptChallengeExpirationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + $retrievedPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $ResourceGroupName + $UpdatePolicySetting = $retrievedPolicy.PolicySetting + if ($PSBoundParameters.ContainsKey("CustomBlockResponseBody")) { + $null = $PSBoundParameters.Remove("CustomBlockResponseBody") + $CustomBlockResponseBody = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($CustomBlockResponseBody)) + $UpdatePolicySetting.CustomBlockResponseBody = $CustomBlockResponseBody + } + if ($PSBoundParameters.ContainsKey("CustomBlockResponseStatusCode")) { + $null = $PSBoundParameters.Remove("CustomBlockResponseStatusCode") + $UpdatePolicySetting.CustomBlockResponseStatusCode = $CustomBlockResponseStatusCode + } + if ($PSBoundParameters.ContainsKey("EnabledState")) { + $null = $PSBoundParameters.Remove("EnabledState") + $UpdatePolicySetting.EnabledState = $EnabledState + } + if ($PSBoundParameters.ContainsKey("LogScrubbingSetting")) { + $null = $PSBoundParameters.Remove("LogScrubbingSetting") + $UpdatePolicySetting.LogScrubbingSetting = $LogScrubbingSetting + } + if ($PSBoundParameters.ContainsKey("Mode")) { + $null = $PSBoundParameters.Remove("Mode") + $UpdatePolicySetting.Mode = $Mode + } + if ($PSBoundParameters.ContainsKey("RedirectUrl")) { + $null = $PSBoundParameters.Remove("RedirectUrl") + $UpdatePolicySetting.RedirectUrl = $RedirectUrl + } + if ($PSBoundParameters.ContainsKey("RequestBodyCheck")) { + $null = $PSBoundParameters.Remove("RequestBodyCheck") + $UpdatePolicySetting.RequestBodyCheck = $RequestBodyCheck + } + if ($PSBoundParameters.ContainsKey("JavascriptChallengeExpirationInMinutes")) { + $null = $PSBoundParameters.Remove("JavascriptChallengeExpirationInMinutes") + $UpdatePolicySetting.JavascriptChallengeExpirationInMinutes = $JavascriptChallengeExpirationInMinutes + } + $PSBoundParameters.PolicySetting = $UpdatePolicySetting + + Az.FrontDoor.internal\Update-AzFrontDoorWafPolicy @PSBoundParameters + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCacheConfigurationObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCacheConfigurationObject.ps1 new file mode 100644 index 000000000000..a8ca48906aa6 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCacheConfigurationObject.ps1 @@ -0,0 +1,68 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for CacheConfiguration. +.Description +Create an in-memory object for CacheConfiguration. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorcacheconfigurationobject +#> +function New-AzFrontDoorCacheConfigurationObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] + [System.TimeSpan] + $CacheDuration, + [Parameter(HelpMessage="Whether to use dynamic compression for cached content.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $DynamicCompression, + [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")] + [string] + $QueryParameter, + [Parameter(HelpMessage="Treatment of URL query terms when forming the cache key.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [string] + $QueryParameterStripDirective + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration]::New() + + if ($PSBoundParameters.ContainsKey('CacheDuration')) { + $Object.CacheDuration = $CacheDuration + } + if ($PSBoundParameters.ContainsKey('DynamicCompression')) { + $Object.DynamicCompression = $DynamicCompression + } + if ($PSBoundParameters.ContainsKey('QueryParameter')) { + $Object.QueryParameter = $QueryParameter + } + if ($PSBoundParameters.ContainsKey('QueryParameterStripDirective')) { + $Object.QueryParameterStripDirective = $QueryParameterStripDirective + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorForwardingConfigurationObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorForwardingConfigurationObject.ps1 new file mode 100644 index 000000000000..7e2a5104bb5a --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorForwardingConfigurationObject.ps1 @@ -0,0 +1,67 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ForwardingConfiguration. +.Description +Create an in-memory object for ForwardingConfiguration. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorforwardingconfigurationobject +#> +function New-AzFrontDoorForwardingConfigurationObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Resource ID.")] + [string] + $BackendPoolId, + [Parameter(HelpMessage="The caching configuration associated with this rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration] + $CacheConfiguration, + [Parameter(HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] + [string] + $CustomForwardingPath, + [Parameter(HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [string] + $ForwardingProtocol + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration]::New() + + if ($PSBoundParameters.ContainsKey('BackendPoolId')) { + $Object.BackendPoolId = $BackendPoolId + } + if ($PSBoundParameters.ContainsKey('CacheConfiguration')) { + $Object.CacheConfiguration = $CacheConfiguration + } + if ($PSBoundParameters.ContainsKey('CustomForwardingPath')) { + $Object.CustomForwardingPath = $CustomForwardingPath + } + if ($PSBoundParameters.ContainsKey('ForwardingProtocol')) { + $Object.ForwardingProtocol = $ForwardingProtocol + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorHeaderActionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorHeaderActionObject.ps1 new file mode 100644 index 000000000000..31c5154d24c3 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorHeaderActionObject.ps1 @@ -0,0 +1,61 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for HeaderAction. +.Description +Create an in-memory object for HeaderAction. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorheaderactionobject +#> +function New-AzFrontDoorHeaderActionObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="Which type of manipulation to apply to the header.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] + [string] + $HeaderActionType, + [Parameter(Mandatory, HelpMessage="The name of the header this action will apply to.")] + [string] + $HeaderName, + [Parameter(HelpMessage="The value to update the given header name with. This value is not used if the actionType is Delete.")] + [string] + $Value + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction]::New() + + if ($PSBoundParameters.ContainsKey('HeaderActionType')) { + $Object.HeaderActionType = $HeaderActionType + } + if ($PSBoundParameters.ContainsKey('HeaderName')) { + $Object.HeaderName = $HeaderName + } + if ($PSBoundParameters.ContainsKey('Value')) { + $Object.Value = $Value + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorPolicySettingsObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorPolicySettingsObject.ps1 new file mode 100644 index 000000000000..4e6426e87eda --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorPolicySettingsObject.ps1 @@ -0,0 +1,93 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for PolicySettings. +.Description +Create an in-memory object for PolicySettings. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorpolicysettingsobject +#> +function New-AzFrontDoorPolicySettingsObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="If the action type is block, customer can override the response body. The body must be specified in base64 encoding.")] + [string] + $CustomBlockResponseBody, + [Parameter(HelpMessage="If the action type is block, customer can override the response status code.")] + [int] + $CustomBlockResponseStatusCode, + [Parameter(HelpMessage="Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [string] + $EnabledState, + [Parameter(HelpMessage="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.")] + [int] + $JavascriptChallengeExpirationInMinutes, + [Parameter(HelpMessage="Defines rules that scrub sensitive fields in the Web Application Firewall logs.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + $LogScrubbingSetting, + [Parameter(HelpMessage="Describes if it is in detection mode or prevention mode at policy level.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [string] + $Mode, + [Parameter(HelpMessage="If action type is redirect, this field represents redirect URL for the client.")] + [string] + $RedirectUrl, + [Parameter(HelpMessage="Describes if policy managed rules will inspect the request body content.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [string] + $RequestBodyCheck + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings]::New() + + if ($PSBoundParameters.ContainsKey('CustomBlockResponseBody')) { + $Object.CustomBlockResponseBody = $CustomBlockResponseBody + } + if ($PSBoundParameters.ContainsKey('CustomBlockResponseStatusCode')) { + $Object.CustomBlockResponseStatusCode = $CustomBlockResponseStatusCode + } + if ($PSBoundParameters.ContainsKey('EnabledState')) { + $Object.EnabledState = $EnabledState + } + if ($PSBoundParameters.ContainsKey('JavascriptChallengeExpirationInMinutes')) { + $Object.JavascriptChallengeExpirationInMinutes = $JavascriptChallengeExpirationInMinutes + } + if ($PSBoundParameters.ContainsKey('LogScrubbingSetting')) { + $Object.LogScrubbingSetting = $LogScrubbingSetting + } + if ($PSBoundParameters.ContainsKey('Mode')) { + $Object.Mode = $Mode + } + if ($PSBoundParameters.ContainsKey('RedirectUrl')) { + $Object.RedirectUrl = $RedirectUrl + } + if ($PSBoundParameters.ContainsKey('RequestBodyCheck')) { + $Object.RequestBodyCheck = $RequestBodyCheck + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorRedirectConfigurationObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorRedirectConfigurationObject.ps1 new file mode 100644 index 000000000000..15c4b278795f --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorRedirectConfigurationObject.ps1 @@ -0,0 +1,80 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RedirectConfiguration. +.Description +Create an in-memory object for RedirectConfiguration. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorredirectconfigurationobject +#> +function New-AzFrontDoorRedirectConfigurationObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] + [string] + $CustomFragment, + [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] + [string] + $CustomHost, + [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] + [string] + $CustomPath, + [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] + [string] + $CustomQueryString, + [Parameter(HelpMessage="The protocol of the destination to where the traffic is redirected.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [string] + $RedirectProtocol, + [Parameter(HelpMessage="The redirect type the rule will use when redirecting traffic.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [string] + $RedirectType + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration]::New() + + if ($PSBoundParameters.ContainsKey('CustomFragment')) { + $Object.CustomFragment = $CustomFragment + } + if ($PSBoundParameters.ContainsKey('CustomHost')) { + $Object.CustomHost = $CustomHost + } + if ($PSBoundParameters.ContainsKey('CustomPath')) { + $Object.CustomPath = $CustomPath + } + if ($PSBoundParameters.ContainsKey('CustomQueryString')) { + $Object.CustomQueryString = $CustomQueryString + } + if ($PSBoundParameters.ContainsKey('RedirectProtocol')) { + $Object.RedirectProtocol = $RedirectProtocol + } + if ($PSBoundParameters.ContainsKey('RedirectType')) { + $Object.RedirectType = $RedirectType + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 new file mode 100644 index 000000000000..fcc9693cb6e0 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 @@ -0,0 +1,49 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for GroupByVariable. +.Description +Create an in-memory object for GroupByVariable. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomrulegroupbyvariableobject +#> +function New-AzFrontDoorWafCustomRuleGroupByVariableObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="Describes the supported variable for group by.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] + [string] + $VariableName + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable]::New() + + if ($PSBoundParameters.ContainsKey('VariableName')) { + $Object.VariableName = $VariableName + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 new file mode 100644 index 000000000000..69aa41ff6158 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 @@ -0,0 +1,69 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for WebApplicationFirewallScrubbingRules. +.Description +Create an in-memory object for WebApplicationFirewallScrubbingRules. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingruleobject +#> +function New-AzFrontDoorWafLogScrubbingRuleObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="The variable to be scrubbed from the logs.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + [string] + $MatchVariable, + [Parameter(HelpMessage="When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.")] + [string] + $Selector, + [Parameter(Mandatory, HelpMessage="When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] + [string] + $SelectorMatchOperator, + [Parameter(HelpMessage="Defines the state of a log scrubbing rule. Default value is enabled.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $State + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules]::New() + + if ($PSBoundParameters.ContainsKey('MatchVariable')) { + $Object.MatchVariable = $MatchVariable + } + if ($PSBoundParameters.ContainsKey('Selector')) { + $Object.Selector = $Selector + } + if ($PSBoundParameters.ContainsKey('SelectorMatchOperator')) { + $Object.SelectorMatchOperator = $SelectorMatchOperator + } + if ($PSBoundParameters.ContainsKey('State')) { + $Object.State = $State + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 new file mode 100644 index 000000000000..c0914a121797 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 @@ -0,0 +1,55 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for PolicySettingsLogScrubbing. +.Description +Create an in-memory object for PolicySettingsLogScrubbing. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingsettingobject +#> +function New-AzFrontDoorWafLogScrubbingSettingObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="List of log scrubbing rules applied to the Web Application Firewall logs.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules[]] + $ScrubbingRule, + [Parameter(HelpMessage="State of the log scrubbing config. Default value is Enabled.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [string] + $State + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing]::New() + + if ($PSBoundParameters.ContainsKey('ScrubbingRule')) { + $Object.ScrubbingRule = $ScrubbingRule + } + if ($PSBoundParameters.ContainsKey('State')) { + $Object.State = $State + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 new file mode 100644 index 000000000000..a8e25186cb2c --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 @@ -0,0 +1,62 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ManagedRuleExclusion. +.Description +Create an in-memory object for ManagedRuleExclusion. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleexclusionobject +#> +function New-AzFrontDoorWafManagedRuleExclusionObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] + [string] + $Operator, + [Parameter(Mandatory, HelpMessage="Selector value for which elements in the collection this exclusion applies to.")] + [string] + $Selector, + [Parameter(Mandatory, HelpMessage="The variable type to be excluded.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + [string] + $Variable + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion]::New() + + if ($PSBoundParameters.ContainsKey('Operator')) { + $Object.Operator = $Operator + } + if ($PSBoundParameters.ContainsKey('Selector')) { + $Object.Selector = $Selector + } + if ($PSBoundParameters.ContainsKey('Variable')) { + $Object.Variable = $Variable + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleObject.ps1 new file mode 100644 index 000000000000..d97fdb86303d --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleObject.ps1 @@ -0,0 +1,73 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ManagedRuleSet. +.Description +Create an in-memory object for ManagedRuleSet. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleobject +#> +function New-AzFrontDoorWafManagedRuleObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Describes the exclusions that are applied to all rules in the set.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + $Exclusion, + [Parameter(HelpMessage="Defines the rule group overrides to apply to the rule set.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride[]] + $RuleGroupOverride, + [Parameter(HelpMessage="Defines the rule set action.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] + [string] + $RuleSetAction, + [Parameter(Mandatory, HelpMessage="Defines the rule set type to use.")] + [string] + $Type, + [Parameter(Mandatory, HelpMessage="Defines the version of the rule set to use.")] + [string] + $Version + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet]::New() + + if ($PSBoundParameters.ContainsKey('Exclusion')) { + $Object.Exclusion = $Exclusion + } + if ($PSBoundParameters.ContainsKey('RuleGroupOverride')) { + $Object.RuleGroupOverride = $RuleGroupOverride + } + if ($PSBoundParameters.ContainsKey('RuleSetAction')) { + $Object.RuleSetAction = $RuleSetAction + } + if ($PSBoundParameters.ContainsKey('Type')) { + $Object.Type = $Type + } + if ($PSBoundParameters.ContainsKey('Version')) { + $Object.Version = $Version + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafMatchConditionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafMatchConditionObject.ps1 new file mode 100644 index 000000000000..77eafb141bed --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafMatchConditionObject.ps1 @@ -0,0 +1,81 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for MatchCondition. +.Description +Create an in-memory object for MatchCondition. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmatchconditionobject +#> +function New-AzFrontDoorWafMatchConditionObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="List of possible match values.")] + [string[]] + $MatchValue, + [Parameter(Mandatory, HelpMessage="Request variable to compare with.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] + [string] + $MatchVariable, + [Parameter(HelpMessage="Describes if the result of this condition should be negated.")] + [bool] + $NegateCondition, + [Parameter(Mandatory, HelpMessage="Comparison type to use for matching with the variable value.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] + [string] + $OperatorProperty, + [Parameter(HelpMessage="Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.")] + [string] + $Selector, + [Parameter(HelpMessage="List of transforms.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + [string[]] + $Transform + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition]::New() + + if ($PSBoundParameters.ContainsKey('MatchValue')) { + $Object.MatchValue = $MatchValue + } + if ($PSBoundParameters.ContainsKey('MatchVariable')) { + $Object.MatchVariable = $MatchVariable + } + if ($PSBoundParameters.ContainsKey('NegateCondition')) { + $Object.NegateCondition = $NegateCondition + } + if ($PSBoundParameters.ContainsKey('OperatorProperty')) { + $Object.OperatorProperty = $OperatorProperty + } + if ($PSBoundParameters.ContainsKey('Selector')) { + $Object.Selector = $Selector + } + if ($PSBoundParameters.ContainsKey('Transform')) { + $Object.Transform = $Transform + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 new file mode 100644 index 000000000000..24eb167fba5d --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 @@ -0,0 +1,60 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ManagedRuleGroupOverride. +.Description +Create an in-memory object for ManagedRuleGroupOverride. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafrulegroupoverrideobject +#> +function New-AzFrontDoorWafRuleGroupOverrideObject { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Describes the exclusions that are applied to all rules in the group.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + $Exclusion, + [Parameter(HelpMessage="List of rules that will be disabled. If none specified, all rules in the group will be disabled.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride[]] + $ManagedRuleOverride, + [Parameter(Mandatory, HelpMessage="Describes the managed rule group to override.")] + [string] + $RuleGroupName + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride]::New() + + if ($PSBoundParameters.ContainsKey('Exclusion')) { + $Object.Exclusion = $Exclusion + } + if ($PSBoundParameters.ContainsKey('ManagedRuleOverride')) { + $Object.ManagedRuleOverride = $ManagedRuleOverride + } + if ($PSBoundParameters.ContainsKey('RuleGroupName')) { + $Object.RuleGroupName = $RuleGroupName + } + return $Object + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md new file mode 100644 index 000000000000..93797dd7680d --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -0,0 +1,136 @@ +--- +Module Name: Az.FrontDoor +Module Guid: b429505a-2933-4a7b-8415-99b0406398b7 +Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.FrontDoor Module +## Description +Microsoft Azure PowerShell: FrontDoor cmdlets + +## Az.FrontDoor Cmdlets +### [Disable-AzFrontDoorCustomDomainHttps](Disable-AzFrontDoorCustomDomainHttps.md) +Disables a frontendEndpoint for HTTPS traffic + +### [Enable-AzFrontDoorCustomDomainHttps](Enable-AzFrontDoorCustomDomainHttps.md) +Enables a frontendEndpoint for HTTPS traffic + +### [Get-AzFrontDoor](Get-AzFrontDoor.md) +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + +### [Get-AzFrontDoorFrontendEndpoint](Get-AzFrontDoorFrontendEndpoint.md) +Gets a Frontend endpoint with the specified name within the specified Front Door. + +### [Get-AzFrontDoorRulesEngine](Get-AzFrontDoorRulesEngine.md) +Gets a Rules Engine Configuration with the specified name within the specified Front Door. + +### [Get-AzFrontDoorWafManagedRuleSetDefinition](Get-AzFrontDoorWafManagedRuleSetDefinition.md) +Lists all available managed rule sets. + +### [Get-AzFrontDoorWafPolicy](Get-AzFrontDoorWafPolicy.md) +Retrieve protection policy with specified name within a resource group. + +### [New-AzFrontDoor](New-AzFrontDoor.md) +Create a new Front Door with a Front Door name under the specified subscription and resource group. + +### [New-AzFrontDoorBackendObject](New-AzFrontDoorBackendObject.md) +Create an in-memory object for Backend. + +### [New-AzFrontDoorBackendPoolObject](New-AzFrontDoorBackendPoolObject.md) +Create an in-memory object for BackendPool. + +### [New-AzFrontDoorBackendPoolsSettingObject](New-AzFrontDoorBackendPoolsSettingObject.md) +Create an in-memory object for BackendPoolsSettings. + +### [New-AzFrontDoorCacheConfigurationObject](New-AzFrontDoorCacheConfigurationObject.md) +Create an in-memory object for CacheConfiguration. + +### [New-AzFrontDoorForwardingConfigurationObject](New-AzFrontDoorForwardingConfigurationObject.md) +Create an in-memory object for ForwardingConfiguration. + +### [New-AzFrontDoorFrontendEndpointObject](New-AzFrontDoorFrontendEndpointObject.md) +Create an in-memory object for FrontendEndpoint. + +### [New-AzFrontDoorHeaderActionObject](New-AzFrontDoorHeaderActionObject.md) +Create an in-memory object for HeaderAction. + +### [New-AzFrontDoorHealthProbeSettingObject](New-AzFrontDoorHealthProbeSettingObject.md) +Create an in-memory object for HealthProbeSettingsModel. + +### [New-AzFrontDoorLoadBalancingSettingObject](New-AzFrontDoorLoadBalancingSettingObject.md) +Create an in-memory object for LoadBalancingSettingsModel. + +### [New-AzFrontDoorPolicySettingsObject](New-AzFrontDoorPolicySettingsObject.md) +Create an in-memory object for PolicySettings. + +### [New-AzFrontDoorRedirectConfigurationObject](New-AzFrontDoorRedirectConfigurationObject.md) +Create an in-memory object for RedirectConfiguration. + +### [New-AzFrontDoorRoutingRuleObject](New-AzFrontDoorRoutingRuleObject.md) +Create an in-memory object for RoutingRule. + +### [New-AzFrontDoorRulesEngine](New-AzFrontDoorRulesEngine.md) +Create a new Rules Engine Configuration with the specified name within the specified Front Door. + +### [New-AzFrontDoorRulesEngineActionObject](New-AzFrontDoorRulesEngineActionObject.md) +Create an in-memory object for RulesEngineAction. + +### [New-AzFrontDoorRulesEngineMatchConditionObject](New-AzFrontDoorRulesEngineMatchConditionObject.md) +Create an in-memory object for RulesEngineMatchCondition. + +### [New-AzFrontDoorRulesEngineRuleObject](New-AzFrontDoorRulesEngineRuleObject.md) +Create an in-memory object for RulesEngineRule. + +### [New-AzFrontDoorWafCustomRuleGroupByVariableObject](New-AzFrontDoorWafCustomRuleGroupByVariableObject.md) +Create an in-memory object for GroupByVariable. + +### [New-AzFrontDoorWafCustomRuleObject](New-AzFrontDoorWafCustomRuleObject.md) +Create an in-memory object for CustomRule. + +### [New-AzFrontDoorWafLogScrubbingRuleObject](New-AzFrontDoorWafLogScrubbingRuleObject.md) +Create an in-memory object for WebApplicationFirewallScrubbingRules. + +### [New-AzFrontDoorWafLogScrubbingSettingObject](New-AzFrontDoorWafLogScrubbingSettingObject.md) +Create an in-memory object for PolicySettingsLogScrubbing. + +### [New-AzFrontDoorWafManagedRuleExclusionObject](New-AzFrontDoorWafManagedRuleExclusionObject.md) +Create an in-memory object for ManagedRuleExclusion. + +### [New-AzFrontDoorWafManagedRuleObject](New-AzFrontDoorWafManagedRuleObject.md) +Create an in-memory object for ManagedRuleSet. + +### [New-AzFrontDoorWafManagedRuleOverrideObject](New-AzFrontDoorWafManagedRuleOverrideObject.md) +Create an in-memory object for ManagedRuleOverride. + +### [New-AzFrontDoorWafMatchConditionObject](New-AzFrontDoorWafMatchConditionObject.md) +Create an in-memory object for MatchCondition. + +### [New-AzFrontDoorWafPolicy](New-AzFrontDoorWafPolicy.md) +Create policy with specified rule set name within a resource group. + +### [New-AzFrontDoorWafRuleGroupOverrideObject](New-AzFrontDoorWafRuleGroupOverrideObject.md) +Create an in-memory object for ManagedRuleGroupOverride. + +### [Remove-AzFrontDoor](Remove-AzFrontDoor.md) +Deletes an existing Front Door with the specified parameters. + +### [Remove-AzFrontDoorContent](Remove-AzFrontDoorContent.md) +Removes a content from Front Door. + +### [Remove-AzFrontDoorRulesEngine](Remove-AzFrontDoorRulesEngine.md) +Deletes an existing Rules Engine Configuration with the specified parameters. + +### [Remove-AzFrontDoorWafPolicy](Remove-AzFrontDoorWafPolicy.md) +Deletes Policy + +### [Set-AzFrontDoor](Set-AzFrontDoor.md) +Update a new Front Door with a Front Door name under the specified subscription and resource group. + +### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) +Update a new Rules Engine Configuration with the specified name within the specified Front Door. + +### [Update-AzFrontDoorWafPolicy](Update-AzFrontDoorWafPolicy.md) +Update policy with specified rule set name within a resource group. + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md new file mode 100644 index 000000000000..ff6e215238f0 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md @@ -0,0 +1,260 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/disable-azfrontdoorcustomdomainhttps +schema: 2.0.0 +--- + +# Disable-AzFrontDoorCustomDomainHttps + +## SYNOPSIS +Disables a frontendEndpoint for HTTPS traffic + +## SYNTAX + +### Disable (Default) +``` +Disable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DisableViaIdentity +``` +Disable-AzFrontDoorCustomDomainHttps -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DisableViaIdentityFrontDoor +``` +Disable-AzFrontDoorCustomDomainHttps -FrontDoorInputObject -FrontendEndpointName + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Disables a frontendEndpoint for HTTPS traffic + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DisableViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Disable +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontendEndpointName +Name of the Frontend endpoint which is unique within the Front Door. + +```yaml +Type: System.String +Parameter Sets: Disable, DisableViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DisableViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Disable +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Disable +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md new file mode 100644 index 000000000000..6e7186defb4a --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md @@ -0,0 +1,386 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps +schema: 2.0.0 +--- + +# Enable-AzFrontDoorCustomDomainHttps + +## SYNOPSIS +Enables a frontendEndpoint for HTTPS traffic + +## SYNTAX + +### EnableExpanded (Default) +``` +Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName [-SubscriptionId ] [-MinimumTlsVersion ] [-SecretName ] + [-SecretVersion ] [-VaultId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### Enable +``` +Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### EnableViaIdentity +``` +Enable-AzFrontDoorCustomDomainHttps -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### EnableViaIdentityExpanded +``` +Enable-AzFrontDoorCustomDomainHttps -InputObject [-MinimumTlsVersion ] + [-SecretName ] [-SecretVersion ] [-VaultId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### EnableViaIdentityFrontDoor +``` +Enable-AzFrontDoorCustomDomainHttps -FrontDoorInputObject -FrontendEndpointName + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### EnableViaIdentityFrontDoorExpanded +``` +Enable-AzFrontDoorCustomDomainHttps -FrontDoorInputObject -FrontendEndpointName + [-MinimumTlsVersion ] [-SecretName ] [-SecretVersion ] [-VaultId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### EnableViaJsonFilePath +``` +Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### EnableViaJsonString +``` +Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName -JsonString [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Enables a frontendEndpoint for HTTPS traffic + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: EnableViaIdentityFrontDoor, EnableViaIdentityFrontDoorExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Enable, EnableExpanded, EnableViaJsonFilePath, EnableViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontendEndpointName +Name of the Frontend endpoint which is unique within the Front Door. + +```yaml +Type: System.String +Parameter Sets: Enable, EnableExpanded, EnableViaIdentityFrontDoor, EnableViaIdentityFrontDoorExpanded, EnableViaJsonFilePath, EnableViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: EnableViaIdentity, EnableViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Enable operation + +```yaml +Type: System.String +Parameter Sets: EnableViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Enable operation + +```yaml +Type: System.String +Parameter Sets: EnableViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MinimumTlsVersion +The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + +```yaml +Type: System.String +Parameter Sets: EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Aliases: + +Required: False +Position: Named +Default value: 1.2 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Enable, EnableExpanded, EnableViaJsonFilePath, EnableViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SecretName +The name of the Key Vault secret representing the full certificate PFX + +```yaml +Type: System.String +Parameter Sets: EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SecretVersion +The version of the Key Vault secret representing the full certificate PFX + +```yaml +Type: System.String +Parameter Sets: EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Enable, EnableExpanded, EnableViaJsonFilePath, EnableViaJsonString +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VaultId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md new file mode 100644 index 000000000000..a105f8a6e7a5 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md @@ -0,0 +1,157 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoor +schema: 2.0.0 +--- + +# Get-AzFrontDoor + +## SYNOPSIS +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + +## SYNTAX + +### List (Default) +``` +Get-AzFrontDoor [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzFrontDoor -InputObject [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzFrontDoor -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: FrontDoorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md new file mode 100644 index 000000000000..4a1b4a39fe74 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md @@ -0,0 +1,189 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint +schema: 2.0.0 +--- + +# Get-AzFrontDoorFrontendEndpoint + +## SYNOPSIS +Gets a Frontend endpoint with the specified name within the specified Front Door. + +## SYNTAX + +### List (Default) +``` +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzFrontDoorFrontendEndpoint -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentityFrontDoor +``` +Get-AzFrontDoorFrontendEndpoint -FrontDoorInputObject -Name + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a Frontend endpoint with the specified name within the specified Front Door. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the Frontend endpoint which is unique within the Front Door. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityFrontDoor +Aliases: FrontendEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..caa8ec2f82fa --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorRulesEngine.md @@ -0,0 +1,188 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorrulesengine +schema: 2.0.0 +--- + +# Get-AzFrontDoorRulesEngine + +## SYNOPSIS +Gets a Rules Engine Configuration with the specified name within the specified Front Door. + +## SYNTAX + +### List (Default) +``` +Get-AzFrontDoorRulesEngine -FrontDoorName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzFrontDoorRulesEngine -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityFrontDoor +``` +Get-AzFrontDoorRulesEngine -FrontDoorInputObject -Name + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a Rules Engine Configuration with the specified name within the specified Front Door. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the Rules Engine which is unique within the Front Door. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityFrontDoor +Aliases: RulesEngineName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafManagedRuleSetDefinition.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafManagedRuleSetDefinition.md new file mode 100644 index 000000000000..b306b662bad9 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafManagedRuleSetDefinition.md @@ -0,0 +1,93 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafmanagedrulesetdefinition +schema: 2.0.0 +--- + +# Get-AzFrontDoorWafManagedRuleSetDefinition + +## SYNOPSIS +Lists all available managed rule sets. + +## SYNTAX + +``` +Get-AzFrontDoorWafManagedRuleSetDefinition [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Lists all available managed rule sets. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafPolicy.md new file mode 100644 index 000000000000..30709208d018 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafPolicy.md @@ -0,0 +1,157 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafpolicy +schema: 2.0.0 +--- + +# Get-AzFrontDoorWafPolicy + +## SYNOPSIS +Retrieve protection policy with specified name within a resource group. + +## SYNTAX + +### List1 (Default) +``` +Get-AzFrontDoorWafPolicy [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzFrontDoorWafPolicy -InputObject [-DefaultProfile ] [] +``` + +### List +``` +Get-AzFrontDoorWafPolicy -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Retrieve protection policy with specified name within a resource group. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Web Application Firewall Policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: PolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoor.md new file mode 100644 index 000000000000..a0124d5ca7d4 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoor.md @@ -0,0 +1,384 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor +schema: 2.0.0 +--- + +# New-AzFrontDoor + +## SYNOPSIS +Create a new Front Door with a Front Door name under the specified subscription and resource group. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-BackendPool ] [-BackendPoolsSetting ] [-DisableCertificateNameCheck] + [-EnabledState ] [-FriendlyName ] [-FrontendEndpoint ] + [-HealthProbeSetting ] [-LoadBalancingSetting ] + [-RoutingRule ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzFrontDoor -Name -ResourceGroupName -JsonFilePath [-SubscriptionId ] + [-DisableCertificateNameCheck] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzFrontDoor -Name -ResourceGroupName -JsonString [-SubscriptionId ] + [-DisableCertificateNameCheck] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create a new Front Door with a Front Door name under the specified subscription and resource group. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackendPool +Backend pools available to routing rules. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackendPoolsSetting +Settings for all backendPools + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisableCertificateNameCheck + + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Operational status of the Front Door load balancer. +Permitted values are 'Enabled' or 'Disabled' + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FriendlyName +A friendly name for the frontDoor + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontendEndpoint +Frontend endpoints available to routing rules. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HealthProbeSetting +Health probe settings associated with this Front Door instance. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LoadBalancingSetting +Load balancing settings associated with this Front Door instance. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FrontDoorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoutingRule +Routing rules associated with this Front Door. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendObject.md new file mode 100644 index 000000000000..1b326c15dffa --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendObject.md @@ -0,0 +1,236 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject +schema: 2.0.0 +--- + +# New-AzFrontDoorBackendObject + +## SYNOPSIS +Create an in-memory object for Backend. + +## SYNTAX + +``` +New-AzFrontDoorBackendObject [-Address ] [-BackendHostHeader ] [-EnabledState ] + [-HttpPort ] [-HttpsPort ] [-Priority ] [-PrivateLinkAlias ] + [-PrivateLinkApprovalMessage ] [-PrivateLinkLocation ] [-PrivateLinkResourceId ] + [-Weight ] [] +``` + +## DESCRIPTION +Create an in-memory object for Backend. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -Address +Location of the backend (IP address or FQDN). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackendHostHeader +The value to use as the host header sent to the backend. +If blank or unspecified, this defaults to the incoming host. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Whether to enable use of this backend. +Permitted values are 'Enabled' or 'Disabled'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HttpPort +The HTTP TCP port number. +Must be between 1 and 65535. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HttpsPort +The HTTPS TCP port number. +Must be between 1 and 65535. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +Priority to use for load balancing. +Higher priorities will not be used for load balancing if any lower priority backend is healthy. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateLinkAlias +The Alias of the Private Link resource. +Populating this optional field indicates that this backend is 'Private'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateLinkApprovalMessage +A custom message to be included in the approval request to connect to the Private Link. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateLinkLocation +The location of the Private Link resource. +Required only if 'privateLinkResourceId' is populated. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateLinkResourceId +The Resource Id of the Private Link resource. +Populating this optional field indicates that this backend is 'Private'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Weight +Weight of this endpoint for load balancing purposes. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolObject.md new file mode 100644 index 000000000000..44e8e5c9635c --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolObject.md @@ -0,0 +1,167 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject +schema: 2.0.0 +--- + +# New-AzFrontDoorBackendPoolObject + +## SYNOPSIS +Create an in-memory object for BackendPool. + +## SYNTAX + +``` +New-AzFrontDoorBackendPoolObject [-Backend ] [-FrontDoorName ] + [-HealthProbeSettingsName ] [-Id ] [-LoadBalancingSettingsName ] [-Name ] + [-ResourceGroupName ] [] +``` + +## DESCRIPTION +Create an in-memory object for BackendPool. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -Backend +The set of backends for this pool. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorName +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HealthProbeSettingsName +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LoadBalancingSettingsName +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Resource name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolsSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolsSettingObject.md new file mode 100644 index 000000000000..3135bbe8da88 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolsSettingObject.md @@ -0,0 +1,93 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject +schema: 2.0.0 +--- + +# New-AzFrontDoorBackendPoolsSettingObject + +## SYNOPSIS +Create an in-memory object for BackendPoolsSettings. + +## SYNTAX + +``` +New-AzFrontDoorBackendPoolsSettingObject [-EnforceCertificateNameCheck ] + [-SendRecvTimeoutInSeconds ] [] +``` + +## DESCRIPTION +Create an in-memory object for BackendPoolsSettings. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -EnforceCertificateNameCheck +Whether to enforce certificate name check on HTTPS requests to all backend pools. +No effect on non-HTTPS requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SendRecvTimeoutInSeconds +Send and receive timeout on forwarding request to the backend. +When timeout is reached, the request fails and returns. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorCacheConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorCacheConfigurationObject.md new file mode 100644 index 000000000000..55b04a256584 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorCacheConfigurationObject.md @@ -0,0 +1,123 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorcacheconfigurationobject +schema: 2.0.0 +--- + +# New-AzFrontDoorCacheConfigurationObject + +## SYNOPSIS +Create an in-memory object for CacheConfiguration. + +## SYNTAX + +``` +New-AzFrontDoorCacheConfigurationObject [-CacheDuration ] [-DynamicCompression ] + [-QueryParameter ] [-QueryParameterStripDirective ] [] +``` + +## DESCRIPTION +Create an in-memory object for CacheConfiguration. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CacheDuration +The duration for which the content needs to be cached. +Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). +HTTP requires the value to be no more than a year. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DynamicCompression +Whether to use dynamic compression for cached content. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueryParameter +query parameters to include or exclude (comma separated). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueryParameterStripDirective +Treatment of URL query terms when forming the cache key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorForwardingConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorForwardingConfigurationObject.md new file mode 100644 index 000000000000..dd24a9a9938c --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorForwardingConfigurationObject.md @@ -0,0 +1,123 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorforwardingconfigurationobject +schema: 2.0.0 +--- + +# New-AzFrontDoorForwardingConfigurationObject + +## SYNOPSIS +Create an in-memory object for ForwardingConfiguration. + +## SYNTAX + +``` +New-AzFrontDoorForwardingConfigurationObject [-BackendPoolId ] + [-CacheConfiguration ] [-CustomForwardingPath ] [-ForwardingProtocol ] + [] +``` + +## DESCRIPTION +Create an in-memory object for ForwardingConfiguration. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -BackendPoolId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CacheConfiguration +The caching configuration associated with this rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomForwardingPath +A custom path used to rewrite resource paths matched by this rule. +Leave empty to use incoming path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardingProtocol +Protocol this rule will use when forwarding traffic to backends. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorFrontendEndpointObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorFrontendEndpointObject.md new file mode 100644 index 000000000000..1b7f77d753cc --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorFrontendEndpointObject.md @@ -0,0 +1,263 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject +schema: 2.0.0 +--- + +# New-AzFrontDoorFrontendEndpointObject + +## SYNOPSIS +Create an in-memory object for FrontendEndpoint. + +## SYNTAX + +``` +New-AzFrontDoorFrontendEndpointObject [-CertificateSource ] [-CertificateType ] + [-HostName ] [-Id ] [-MinimumTlsVersion ] [-Name ] [-ProtocolType ] + [-SecretName ] [-SecretVersion ] [-SessionAffinityEnabledState ] + [-SessionAffinityTtlInSeconds ] [-Vault ] [-WebApplicationFirewallPolicyLinkId ] + [] +``` + +## DESCRIPTION +Create an in-memory object for FrontendEndpoint. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CertificateSource +Defines the source of the SSL certificate. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CertificateType +Defines the type of the certificate used for secure connections to a frontendEndpoint. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HostName +The host name of the frontendEndpoint. +Must be a domain name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MinimumTlsVersion +The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Resource name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProtocolType +The TLS extension protocol that is used for secure delivery + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SecretName +The name of the Key Vault secret representing the full certificate PFX. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SecretVersion +The version of the Key Vault secret representing the full certificate PFX. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SessionAffinityEnabledState +Whether to allow session affinity on this host. +Valid options are 'Enabled' or 'Disabled'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SessionAffinityTtlInSeconds +UNUSED. +This field will be ignored. +The TTL to use in seconds for session affinity, if applicable. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Vault +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WebApplicationFirewallPolicyLinkId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: WebApplicationFirewallPolicyLink + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHeaderActionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHeaderActionObject.md new file mode 100644 index 000000000000..5ba451067fbd --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHeaderActionObject.md @@ -0,0 +1,107 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorheaderactionobject +schema: 2.0.0 +--- + +# New-AzFrontDoorHeaderActionObject + +## SYNOPSIS +Create an in-memory object for HeaderAction. + +## SYNTAX + +``` +New-AzFrontDoorHeaderActionObject -HeaderActionType -HeaderName [-Value ] + [] +``` + +## DESCRIPTION +Create an in-memory object for HeaderAction. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -HeaderActionType +Which type of manipulation to apply to the header. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HeaderName +The name of the header this action will apply to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Value +The value to update the given header name with. +This value is not used if the actionType is Delete. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHealthProbeSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHealthProbeSettingObject.md new file mode 100644 index 000000000000..848b392281ae --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHealthProbeSettingObject.md @@ -0,0 +1,168 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject +schema: 2.0.0 +--- + +# New-AzFrontDoorHealthProbeSettingObject + +## SYNOPSIS +Create an in-memory object for HealthProbeSettingsModel. + +## SYNTAX + +``` +New-AzFrontDoorHealthProbeSettingObject [-EnabledState ] [-HealthProbeMethod ] [-Id ] + [-IntervalInSeconds ] [-Name ] [-Path ] [-Protocol ] [] +``` + +## DESCRIPTION +Create an in-memory object for HealthProbeSettingsModel. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -EnabledState +Whether to enable health probes to be made against backends defined under backendPools. +Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HealthProbeMethod +Configures which HTTP method to use to probe the backends defined under backendPools. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IntervalInSeconds +The number of seconds between health probes. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Resource name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Path +The path to use for the health probe. +Default is /. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Protocol +Protocol scheme to use for this probe. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorLoadBalancingSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorLoadBalancingSettingObject.md new file mode 100644 index 000000000000..688d7a3e652d --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorLoadBalancingSettingObject.md @@ -0,0 +1,136 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject +schema: 2.0.0 +--- + +# New-AzFrontDoorLoadBalancingSettingObject + +## SYNOPSIS +Create an in-memory object for LoadBalancingSettingsModel. + +## SYNTAX + +``` +New-AzFrontDoorLoadBalancingSettingObject [-AdditionalLatencyInMilliseconds ] [-Id ] + [-Name ] [-SampleSize ] [-SuccessfulSamplesRequired ] [] +``` + +## DESCRIPTION +Create an in-memory object for LoadBalancingSettingsModel. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AdditionalLatencyInMilliseconds +The additional latency in milliseconds for probes to fall into the lowest latency bucket. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Resource name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SampleSize +The number of samples to consider for load balancing decisions. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SuccessfulSamplesRequired +The number of samples within the sample period that must succeed. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md new file mode 100644 index 000000000000..0c4138d007ee --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md @@ -0,0 +1,187 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorpolicysettingsobject +schema: 2.0.0 +--- + +# New-AzFrontDoorPolicySettingsObject + +## SYNOPSIS +Create an in-memory object for PolicySettings. + +## SYNTAX + +``` +New-AzFrontDoorPolicySettingsObject [-CustomBlockResponseBody ] + [-CustomBlockResponseStatusCode ] [-EnabledState ] + [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] + [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [] +``` + +## DESCRIPTION +Create an in-memory object for PolicySettings. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CustomBlockResponseBody +If the action type is block, customer can override the response body. +The body must be specified in base64 encoding. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomBlockResponseStatusCode +If the action type is block, customer can override the response status code. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Describes if the policy is in enabled or disabled state. +Defaults to Enabled if not specified. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JavascriptChallengeExpirationInMinutes +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogScrubbingSetting +Defines rules that scrub sensitive fields in the Web Application Firewall logs. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Mode +Describes if it is in detection mode or prevention mode at policy level. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectUrl +If action type is redirect, this field represents redirect URL for the client. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestBodyCheck +Describes if policy managed rules will inspect the request body content. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRedirectConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRedirectConfigurationObject.md new file mode 100644 index 000000000000..4ca57acc7927 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRedirectConfigurationObject.md @@ -0,0 +1,160 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorredirectconfigurationobject +schema: 2.0.0 +--- + +# New-AzFrontDoorRedirectConfigurationObject + +## SYNOPSIS +Create an in-memory object for RedirectConfiguration. + +## SYNTAX + +``` +New-AzFrontDoorRedirectConfigurationObject [-CustomFragment ] [-CustomHost ] + [-CustomPath ] [-CustomQueryString ] [-RedirectProtocol ] [-RedirectType ] + [] +``` + +## DESCRIPTION +Create an in-memory object for RedirectConfiguration. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CustomFragment +Fragment to add to the redirect URL. +Fragment is the part of the URL that comes after #. +Do not include the #. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomHost +Host to redirect. +Leave empty to use the incoming host as the destination host. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomPath +The full path to redirect. +Path cannot be empty and must start with /. +Leave empty to use the incoming path as destination path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomQueryString +The set of query strings to be placed in the redirect URL. +Setting this value would replace any existing query string; leave empty to preserve the incoming query string. +Query string must be in \=\ format. +The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectProtocol +The protocol of the destination to where the traffic is redirected. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectType +The redirect type the rule will use when redirecting traffic. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md new file mode 100644 index 000000000000..d6b28a4ff9c8 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md @@ -0,0 +1,467 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject +schema: 2.0.0 +--- + +# New-AzFrontDoorRoutingRuleObject + +## SYNOPSIS +Create an in-memory object for RoutingRule. + +## SYNTAX + +### ForwardingParameterSet (Default) +``` +New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-BackendPoolName ] + [-CacheDuration ] [-CustomForwardingPath ] [-CustomFragment ] + [-CustomHost ] [-CustomPath ] [-CustomQueryString ] [-DynamicCompression ] + [-EnableCaching ] [-EnabledState ] [-ForwardingProtocol ] [-FrontDoorName ] + [-FrontendEndpointName ] [-Id ] [-Name ] [-PatternsToMatch ] + [-QueryParameter ] [-QueryParameterStripDirective ] [-RedirectProtocol ] + [-RedirectType ] [-ResourceGroupName ] [-RouteConfiguration ] + [-RuleEngineName ] [-WebApplicationFirewallPolicyLinkId ] [] +``` + +### RedirectParameterSet +``` +New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-BackendPoolName ] + [-CacheDuration ] [-CustomForwardingPath ] [-CustomFragment ] + [-CustomHost ] [-CustomPath ] [-CustomQueryString ] [-DynamicCompression ] + [-EnabledState ] [-ForwardingProtocol ] [-FrontDoorName ] + [-FrontendEndpointName ] [-Id ] [-Name ] [-PatternsToMatch ] + [-QueryParameter ] [-QueryParameterStripDirective ] [-RedirectProtocol ] + [-RedirectType ] [-ResourceGroupName ] [-RouteConfiguration ] + [-RuleEngineName ] [-WebApplicationFirewallPolicyLinkId ] [] +``` + +## DESCRIPTION +Create an in-memory object for RoutingRule. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AcceptedProtocol +Protocol schemes to match for this rule. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackendPoolName +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CacheDuration +The duration for which the content needs to be cached. +Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). +HTTP requires the value to be no more than a year. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomForwardingPath +A custom path used to rewrite resource paths matched by this rule. +Leave empty to use incoming path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomFragment +Fragment to add to the redirect URL. +Fragment is the part of the URL that comes after #. +Do not include the #. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomHost +Host to redirect. +Leave empty to use the incoming host as the destination host. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomPath +The full path to redirect. +Path cannot be empty and must start with /. +Leave empty to use the incoming path as destination path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomQueryString +The set of query strings to be placed in the redirect URL. +Setting this value would replace any existing query string; leave empty to preserve the incoming query string. +Query string must be in \=\ format. +The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DynamicCompression +Whether to use dynamic compression for cached content. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableCaching + + +```yaml +Type: System.Boolean +Parameter Sets: ForwardingParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Whether to enable use of this rule. +Permitted values are 'Enabled' or 'Disabled'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardingProtocol +Protocol this rule will use when forwarding traffic to backends. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorName +The name of the Front Door to which this routing rule belongs. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontendEndpointName +Frontend endpoints associated with this rule. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Resource name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PatternsToMatch +The route patterns of the rule. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueryParameter +query parameters to include or exclude (comma separated). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueryParameterStripDirective +Treatment of URL query terms when forming the cache key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectProtocol +The protocol of the destination to where the traffic is redirected. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectType +The redirect type the rule will use when redirecting traffic. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RouteConfiguration + + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleEngineName +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WebApplicationFirewallPolicyLinkId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..fb2323d13301 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngine.md @@ -0,0 +1,260 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengine +schema: 2.0.0 +--- + +# New-AzFrontDoorRulesEngine + +## SYNOPSIS +Create a new Rules Engine Configuration with the specified name within the specified Front Door. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Create a new Rules Engine Configuration with the specified name within the specified Front Door. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the Rules Engine which is unique within the Front Door. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: RulesEngineName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Rule +A list of rules that define a particular Rules Engine Configuration. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md new file mode 100644 index 000000000000..632f2b9bf712 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md @@ -0,0 +1,375 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject +schema: 2.0.0 +--- + +# New-AzFrontDoorRulesEngineActionObject + +## SYNOPSIS +Create an in-memory object for RulesEngineAction. + +## SYNTAX + +### ForwardingParameterSet (Default) +``` +New-AzFrontDoorRulesEngineActionObject [-BackendPoolName ] [-CacheDuration ] + [-CustomForwardingPath ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] + [-CustomQueryString ] [-DynamicCompression ] [-EnableCaching ] + [-ForwardingProtocol ] [-FrontDoorName ] [-QueryParameter ] + [-QueryParameterStripDirective ] [-RedirectProtocol ] [-RedirectType ] + [-RequestHeaderAction ] [-ResourceGroupName ] + [-ResponseHeaderAction ] [-RouteConfigurationOverride ] + [] +``` + +### RedirectParameterSet +``` +New-AzFrontDoorRulesEngineActionObject [-BackendPoolName ] [-CacheDuration ] + [-CustomForwardingPath ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] + [-CustomQueryString ] [-DynamicCompression ] [-ForwardingProtocol ] + [-FrontDoorName ] [-QueryParameter ] [-QueryParameterStripDirective ] + [-RedirectProtocol ] [-RedirectType ] [-RequestHeaderAction ] + [-ResourceGroupName ] [-ResponseHeaderAction ] + [-RouteConfigurationOverride ] [] +``` + +## DESCRIPTION +Create an in-memory object for RulesEngineAction. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -BackendPoolName +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CacheDuration +The duration for which the content needs to be cached. +Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). +HTTP requires the value to be no more than a year. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomForwardingPath +A custom path used to rewrite resource paths matched by this rule. +Leave empty to use incoming path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomFragment +Fragment to add to the redirect URL. +Fragment is the part of the URL that comes after #. +Do not include the #. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomHost +Host to redirect. +Leave empty to use the incoming host as the destination host. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomPath +The full path to redirect. +Path cannot be empty and must start with /. +Leave empty to use the incoming path as destination path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomQueryString +The set of query strings to be placed in the redirect URL. +Setting this value would replace any existing query string; leave empty to preserve the incoming query string. +Query string must be in \=\ format. +The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DynamicCompression +Whether to use dynamic compression for cached content. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableCaching + + +```yaml +Type: System.Boolean +Parameter Sets: ForwardingParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardingProtocol +Protocol this rule will use when forwarding traffic to backends. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorName +The name of the Front Door to which this routing rule belongs. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueryParameter +query parameters to include or exclude (comma separated). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueryParameterStripDirective +Treatment of URL query terms when forming the cache key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectProtocol +The protocol of the destination to where the traffic is redirected. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectType +The redirect type the rule will use when redirecting traffic. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestHeaderAction +A list of header actions to apply from the request from AFD to the origin. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The resource group name that the RoutingRule will be created in. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResponseHeaderAction +A list of header actions to apply from the response from AFD to the client. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RouteConfigurationOverride +Override the route configuration. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineMatchConditionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineMatchConditionObject.md new file mode 100644 index 000000000000..1597d8e12d1b --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineMatchConditionObject.md @@ -0,0 +1,154 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject +schema: 2.0.0 +--- + +# New-AzFrontDoorRulesEngineMatchConditionObject + +## SYNOPSIS +Create an in-memory object for RulesEngineMatchCondition. + +## SYNTAX + +``` +New-AzFrontDoorRulesEngineMatchConditionObject -MatchValue -MatchVariable + -Operator [-NegateCondition ] [-Selector ] [-Transform ] + [] +``` + +## DESCRIPTION +Create an in-memory object for RulesEngineMatchCondition. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -MatchValue +Match values to match against. +The operator will apply to each value in here with OR semantics. +If any of them match the variable with the given operator this match condition is considered a match. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MatchVariable +Match Variable. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NegateCondition +Describes if this is negate condition or not. + +```yaml +Type: System.Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Operator +Describes operator to apply to the match condition. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Selector +Name of selector in RequestHeader or RequestBody to be matched. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Transform +List of transforms. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md new file mode 100644 index 000000000000..007f5d1c68ce --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md @@ -0,0 +1,139 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject +schema: 2.0.0 +--- + +# New-AzFrontDoorRulesEngineRuleObject + +## SYNOPSIS +Create an in-memory object for RulesEngineRule. + +## SYNTAX + +``` +New-AzFrontDoorRulesEngineRuleObject -Action -Name -Priority + [-MatchCondition ] [-MatchProcessingBehavior ] [] +``` + +## DESCRIPTION +Create an in-memory object for RulesEngineRule. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -Action +Actions to perform on the request and response if all of the match conditions are met. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MatchCondition +A list of match conditions that must meet in order for the actions of this rule to run. +Having no match conditions means the actions will always run. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MatchProcessingBehavior +If this rule is a match should the rules engine continue running the remaining rules or stop. +If not present, defaults to Continue. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +A name to refer to this specific rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +A priority assigned to this rule. +. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md new file mode 100644 index 000000000000..57c84edcc3b9 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md @@ -0,0 +1,75 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomrulegroupbyvariableobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafCustomRuleGroupByVariableObject + +## SYNOPSIS +Create an in-memory object for GroupByVariable. + +## SYNTAX + +``` +New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName [] +``` + +## DESCRIPTION +Create an in-memory object for GroupByVariable. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -VariableName +Describes the supported variable for group by. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md new file mode 100644 index 000000000000..9f8023c452e8 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md @@ -0,0 +1,200 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafCustomRuleObject + +## SYNOPSIS +Create an in-memory object for CustomRule. + +## SYNTAX + +``` +New-AzFrontDoorWafCustomRuleObject -Action -MatchCondition -Priority + -RuleType [-EnabledState ] [-GroupBy ] [-Name ] + [-RateLimitDurationInMinutes ] [-RateLimitThreshold ] [] +``` + +## DESCRIPTION +Create an in-memory object for CustomRule. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -Action +Describes what action to be applied when rule matches. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Describes if the custom rule is in enabled or disabled state. +Defaults to Enabled if not specified. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -GroupBy +Describes the list of variables to group the rate limit requests. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable[] +Parameter Sets: (All) +Aliases: CustomRule + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MatchCondition +List of match conditions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Describes the name of the rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +Describes priority of the rule. +Rules with a lower value will be evaluated before rules with a higher value. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RateLimitDurationInMinutes +Time window for resetting the rate limit count. +Default is 1 minute. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RateLimitThreshold +Number of allowed requests per client within the time window. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleType +Describes type of rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingRuleObject.md new file mode 100644 index 000000000000..16a59feac309 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingRuleObject.md @@ -0,0 +1,122 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingruleobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafLogScrubbingRuleObject + +## SYNOPSIS +Create an in-memory object for WebApplicationFirewallScrubbingRules. + +## SYNTAX + +``` +New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable -SelectorMatchOperator + [-Selector ] [-State ] [] +``` + +## DESCRIPTION +Create an in-memory object for WebApplicationFirewallScrubbingRules. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -MatchVariable +The variable to be scrubbed from the logs. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Selector +When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SelectorMatchOperator +When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -State +Defines the state of a log scrubbing rule. +Default value is enabled. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingSettingObject.md new file mode 100644 index 000000000000..24e4d1200a51 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingSettingObject.md @@ -0,0 +1,92 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingsettingobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafLogScrubbingSettingObject + +## SYNOPSIS +Create an in-memory object for PolicySettingsLogScrubbing. + +## SYNTAX + +``` +New-AzFrontDoorWafLogScrubbingSettingObject [-ScrubbingRule ] + [-State ] [] +``` + +## DESCRIPTION +Create an in-memory object for PolicySettingsLogScrubbing. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ScrubbingRule +List of log scrubbing rules applied to the Web Application Firewall logs. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -State +State of the log scrubbing config. +Default value is Enabled. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleExclusionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleExclusionObject.md new file mode 100644 index 000000000000..a372870ba8e7 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleExclusionObject.md @@ -0,0 +1,106 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleexclusionobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafManagedRuleExclusionObject + +## SYNOPSIS +Create an in-memory object for ManagedRuleExclusion. + +## SYNTAX + +``` +New-AzFrontDoorWafManagedRuleExclusionObject -Operator -Selector -Variable + [] +``` + +## DESCRIPTION +Create an in-memory object for ManagedRuleExclusion. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -Operator +Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Selector +Selector value for which elements in the collection this exclusion applies to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Variable +The variable type to be excluded. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md new file mode 100644 index 000000000000..58e0330e4abd --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md @@ -0,0 +1,136 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafManagedRuleObject + +## SYNOPSIS +Create an in-memory object for ManagedRuleSet. + +## SYNTAX + +``` +New-AzFrontDoorWafManagedRuleObject -Type -Version [-Exclusion ] + [-RuleGroupOverride ] [-RuleSetAction ] [] +``` + +## DESCRIPTION +Create an in-memory object for ManagedRuleSet. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -Exclusion +Describes the exclusions that are applied to all rules in the set. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleGroupOverride +Defines the rule group overrides to apply to the rule set. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleSetAction +Defines the rule set action. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Defines the rule set type to use. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Version +Defines the version of the rule set to use. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md new file mode 100644 index 000000000000..91f97ee75ee3 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -0,0 +1,122 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafManagedRuleOverrideObject + +## SYNOPSIS +Create an in-memory object for ManagedRuleOverride. + +## SYNTAX + +``` +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId [-Action ] [-Disabled ] + [-Exclusion ] [] +``` + +## DESCRIPTION +Create an in-memory object for ManagedRuleOverride. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -Action +Describes the override action to be applied when rule matches. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Disabled +Describes if the managed rule is in enabled or disabled state. +Defaults to Disabled if not specified. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Exclusion +Describes the exclusions that are applied to this specific rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleId +Identifier for the managed rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafMatchConditionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafMatchConditionObject.md new file mode 100644 index 000000000000..8b5aee51447e --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafMatchConditionObject.md @@ -0,0 +1,153 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmatchconditionobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafMatchConditionObject + +## SYNOPSIS +Create an in-memory object for MatchCondition. + +## SYNTAX + +``` +New-AzFrontDoorWafMatchConditionObject -MatchValue -MatchVariable + -OperatorProperty [-NegateCondition ] [-Selector ] [-Transform ] + [] +``` + +## DESCRIPTION +Create an in-memory object for MatchCondition. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -MatchValue +List of possible match values. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MatchVariable +Request variable to compare with. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NegateCondition +Describes if the result of this condition should be negated. + +```yaml +Type: System.Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OperatorProperty +Comparison type to use for matching with the variable value. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Selector +Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. +Default is null. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Transform +List of transforms. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md new file mode 100644 index 000000000000..f7406cfd0546 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md @@ -0,0 +1,432 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy +schema: 2.0.0 +--- + +# New-AzFrontDoorWafPolicy + +## SYNOPSIS +Create policy with specified rule set name within a resource group. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] + [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] + [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] + [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzFrontDoorWafPolicy -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzFrontDoorWafPolicy -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create policy with specified rule set name within a resource group. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomBlockResponseBody +If the action type is block, customer can override the response body. +The body must be specified in base64 encoding. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomBlockResponseStatusCode +If the action type is block, customer can override the response status code. + +```yaml +Type: System.Int32 +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomRule +List of rules + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Describes if the policy is in enabled or disabled state. +Defaults to Enabled if not specified. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Gets a unique read-only string that changes whenever the resource is updated. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JavascriptChallengeExpirationInMinutes +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. + +```yaml +Type: System.Int32 +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogScrubbingSetting +Defines rules that scrub sensitive fields in the Web Application Firewall logs. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagedRuleSet +List of rule sets. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Mode +Describes if it is in detection mode or prevention mode at policy level. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Web Application Firewall Policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: PolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectUrl +If action type is redirect, this field represents redirect URL for the client. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestBodyCheck +Describes if policy managed rules will inspect the request body content. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +Name of the pricing tier. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafRuleGroupOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafRuleGroupOverrideObject.md new file mode 100644 index 000000000000..6f6fa6048b29 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafRuleGroupOverrideObject.md @@ -0,0 +1,107 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafrulegroupoverrideobject +schema: 2.0.0 +--- + +# New-AzFrontDoorWafRuleGroupOverrideObject + +## SYNOPSIS +Create an in-memory object for ManagedRuleGroupOverride. + +## SYNTAX + +``` +New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName [-Exclusion ] + [-ManagedRuleOverride ] [] +``` + +## DESCRIPTION +Create an in-memory object for ManagedRuleGroupOverride. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -Exclusion +Describes the exclusions that are applied to all rules in the group. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagedRuleOverride +List of rules that will be disabled. +If none specified, all rules in the group will be disabled. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleGroupName +Describes the managed rule group to override. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/README.md b/src/FrontDoor/FrontDoor.Autorest/docs/README.md new file mode 100644 index 000000000000..3693a1ba6c52 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.FrontDoor` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.FrontDoor` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoor.md new file mode 100644 index 000000000000..b3fca717528d --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoor.md @@ -0,0 +1,223 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoor +schema: 2.0.0 +--- + +# Remove-AzFrontDoor + +## SYNOPSIS +Deletes an existing Front Door with the specified parameters. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzFrontDoor -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an existing Front Door with the specified parameters. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: FrontDoorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md new file mode 100644 index 000000000000..dd1cf0ffd5de --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md @@ -0,0 +1,314 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorcontent +schema: 2.0.0 +--- + +# Remove-AzFrontDoorContent + +## SYNOPSIS +Removes a content from Front Door. + +## SYNTAX + +### PurgeExpanded (Default) +``` +Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName -ContentPath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### Purge +``` +Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName + -ContentFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### PurgeViaIdentity +``` +Remove-AzFrontDoorContent -InputObject -ContentFilePath + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### PurgeViaIdentityExpanded +``` +Remove-AzFrontDoorContent -InputObject -ContentPath + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### PurgeViaJsonFilePath +``` +Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### PurgeViaJsonString +``` +Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Removes a content from Front Door. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContentFilePath +Parameters required for content purge. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters +Parameter Sets: Purge, PurgeViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ContentPath +The path to the content to be purged. +Can describe a file path or a wild card directory. + +```yaml +Type: System.String[] +Parameter Sets: PurgeExpanded, PurgeViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: PurgeViaIdentity, PurgeViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Purge operation + +```yaml +Type: System.String +Parameter Sets: PurgeViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Purge operation + +```yaml +Type: System.String +Parameter Sets: PurgeViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..040232fd2698 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorRulesEngine.md @@ -0,0 +1,260 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorrulesengine +schema: 2.0.0 +--- + +# Remove-AzFrontDoorRulesEngine + +## SYNOPSIS +Deletes an existing Rules Engine Configuration with the specified parameters. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzFrontDoorRulesEngine -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityFrontDoor +``` +Remove-AzFrontDoorRulesEngine -FrontDoorInputObject -Name + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an existing Rules Engine Configuration with the specified parameters. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DeleteViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the Rules Engine which is unique within the Front Door. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityFrontDoor +Aliases: RulesEngineName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorWafPolicy.md new file mode 100644 index 000000000000..e69812c6269b --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorWafPolicy.md @@ -0,0 +1,223 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorwafpolicy +schema: 2.0.0 +--- + +# Remove-AzFrontDoorWafPolicy + +## SYNOPSIS +Deletes Policy + +## SYNTAX + +### Delete (Default) +``` +Remove-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzFrontDoorWafPolicy -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes Policy + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Web Application Firewall Policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: PolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md new file mode 100644 index 000000000000..5ec6dfea2e5f --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md @@ -0,0 +1,384 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor +schema: 2.0.0 +--- + +# Set-AzFrontDoor + +## SYNOPSIS +Update a new Front Door with a Front Door name under the specified subscription and resource group. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-BackendPool ] [-BackendPoolsSetting ] [-DisableCertificateNameCheck] + [-EnabledState ] [-FriendlyName ] [-FrontendEndpoint ] + [-HealthProbeSetting ] [-LoadBalancingSetting ] + [-RoutingRule ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Set-AzFrontDoor -Name -ResourceGroupName -JsonFilePath [-SubscriptionId ] + [-DisableCertificateNameCheck] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Set-AzFrontDoor -Name -ResourceGroupName -JsonString [-SubscriptionId ] + [-DisableCertificateNameCheck] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update a new Front Door with a Front Door name under the specified subscription and resource group. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackendPool +Backend pools available to routing rules. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackendPoolsSetting +Settings for all backendPools + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisableCertificateNameCheck + + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Operational status of the Front Door load balancer. +Permitted values are 'Enabled' or 'Disabled' + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FriendlyName +A friendly name for the frontDoor + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontendEndpoint +Frontend endpoints available to routing rules. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HealthProbeSetting +Health probe settings associated with this Front Door instance. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LoadBalancingSetting +Load balancing settings associated with this Front Door instance. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FrontDoorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoutingRule +Routing rules associated with this Front Door. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..0891a6714916 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md @@ -0,0 +1,215 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine +schema: 2.0.0 +--- + +# Set-AzFrontDoorRulesEngine + +## SYNOPSIS +Update a new Rules Engine Configuration with the specified name within the specified Front Door. + +## SYNTAX + +``` +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update a new Rules Engine Configuration with the specified name within the specified Front Door. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the Rules Engine which is unique within the Front Door. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: RulesEngineName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Rule +A list of rules that define a particular Rules Engine Configuration. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md new file mode 100644 index 000000000000..4630997b25f4 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md @@ -0,0 +1,417 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy +schema: 2.0.0 +--- + +# Update-AzFrontDoorWafPolicy + +## SYNOPSIS +Update policy with specified rule set name within a resource group. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] + [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] + [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] + [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzFrontDoorWafPolicy -InputObject [-CustomRule ] [-Etag ] + [-ManagedRuleSet ] [-SkuName ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update policy with specified rule set name within a resource group. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomBlockResponseBody +[Parameter()] +[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] +[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] +# Describes settings for the policy. +${PolicySetting}, +If the action type is block, customer can override the response body. +The body must be specified in base64 encoding. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomBlockResponseStatusCode +If the action type is block, customer can override the response status code. + +```yaml +Type: System.Int32 +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomRule +List of rules + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Describes if the policy is in enabled or disabled state. +Defaults to Enabled if not specified. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Gets a unique read-only string that changes whenever the resource is updated. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JavascriptChallengeExpirationInMinutes +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. + +```yaml +Type: System.Int32 +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogScrubbingSetting +Defines rules that scrub sensitive fields in the Web Application Firewall logs. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagedRuleSet +List of rule sets. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Mode +Describes if it is in detection mode or prevention mode at policy level. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Web Application Firewall Policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: PolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectUrl +If action type is redirect, this field represents redirect URL for the client. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestBodyCheck +Describes if policy managed rules will inspect the request body content. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +Name of the pricing tier. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoor.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoor.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorRulesEngine.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafManagedRuleSetDefinition.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafManagedRuleSetDefinition.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafManagedRuleSetDefinition.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafPolicy.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafPolicy.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoor.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoor.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolsSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolsSettingObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolsSettingObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorCacheConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorCacheConfigurationObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorCacheConfigurationObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorForwardingConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorForwardingConfigurationObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorForwardingConfigurationObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorFrontendEndpointObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorFrontendEndpointObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorFrontendEndpointObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHeaderActionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHeaderActionObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHeaderActionObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHealthProbeSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHealthProbeSettingObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHealthProbeSettingObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorLoadBalancingSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorLoadBalancingSettingObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorLoadBalancingSettingObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorPolicySettingsObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorPolicySettingsObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorPolicySettingsObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRedirectConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRedirectConfigurationObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRedirectConfigurationObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRoutingRuleObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRoutingRuleObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngine.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineMatchConditionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineMatchConditionObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineMatchConditionObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingRuleObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingRuleObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingSettingObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingSettingObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleExclusionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleExclusionObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleExclusionObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleOverrideObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafMatchConditionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafMatchConditionObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafMatchConditionObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafPolicy.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafPolicy.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafRuleGroupOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafRuleGroupOverrideObject.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafRuleGroupOverrideObject.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoor.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoor.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorContent.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorContent.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorRulesEngine.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorWafPolicy.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorWafPolicy.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/examples/Update-AzFrontDoorWafPolicy.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Update-AzFrontDoorWafPolicy.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/how-to.md b/src/FrontDoor/FrontDoor.Autorest/how-to.md new file mode 100644 index 000000000000..a7f16674dd2b --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/how-to.md @@ -0,0 +1,58 @@ +# How-To +This document describes how to develop for `Az.FrontDoor`. + +## Building `Az.FrontDoor` +To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [README.md](exports/README.md) in the `exports` folder. + +## Creating custom cmdlets +To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [README.md](custom/README.md) in the `custom` folder. + +## Generating documentation +To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [README.md](examples/README.md) in the `examples` folder. To read more about documentation, look at the [README.md](docs/README.md) in the `docs` folder. + +## Testing `Az.FrontDoor` +To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. + +## Packing `Az.FrontDoor` +To pack `Az.FrontDoor` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://learn.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. + +## Module Script Details +There are multiple scripts created for performing different actions for developing `Az.FrontDoor`. +- `build-module.ps1` + - Builds the module DLL (`./bin/Az.FrontDoor.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.FrontDoor.psd1` with Azure profile information. + - **Parameters**: [`Switch` parameters] + - `-Run`: After building, creates an isolated PowerShell session and loads `Az.FrontDoor`. + - `-Test`: After building, runs the `Pester` tests defined in the `test` folder. + - `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder. + - `-Pack`: After building, packages the module into a `.nupkg`. + - `-Code`: After building, opens a VSCode window with the module's directory and runs (see `-Run`) the module. + - `-Release`: Builds the module in `Release` configuration (as opposed to `Debug` configuration). + - `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process. + - `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process. +- `run-module.ps1` + - Creates an isolated PowerShell session and loads `Az.FrontDoor` into the session. + - Same as `-Run` in `build-module.ps1`. + - **Parameters**: [`Switch` parameters] + - `-Code`: Opens a VSCode window with the module's directory. + - Same as `-Code` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. +- `test-module.ps1` + - Runs the `Pester` tests defined in the `test` folder. + - Same as `-Test` in `build-module.ps1`. +- `pack-module.ps1` + - Packages the module into a `.nupkg` for distribution. + - Same as `-Pack` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. + - This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`. +- `export-surface.ps1` + - Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module. + - These files are placed into the `resources` folder. + - Used for investigating the surface of your module. These are *not* documentation for distribution. +- `check-dependencies.ps1` + - Used in `run-module.ps1` and `test-module.ps1` to verify dependent modules are available to run those tasks. + - It will download local (within the module's directory structure) versions of those modules as needed. + - This script *does not* need to be ran by-hand. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/resources/README.md b/src/FrontDoor/FrontDoor.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Disable-AzFrontDoorCustomDomainHttps.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Disable-AzFrontDoorCustomDomainHttps.Tests.ps1 new file mode 100644 index 000000000000..41ef79edc0ba --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Disable-AzFrontDoorCustomDomainHttps.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Disable-AzFrontDoorCustomDomainHttps')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Disable-AzFrontDoorCustomDomainHttps.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Disable-AzFrontDoorCustomDomainHttps' { + It 'Disable' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DisableViaIdentityFrontDoor' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DisableViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json new file mode 100644 index 000000000000..69950620b8e5 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json @@ -0,0 +1,1100 @@ +{ + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshv4test.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n },\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3140" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "3627da5b-6aa3-430b-87b7-b78640fe22d2" ], + "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/ecbb5305-8de8-48ca-a2d8-16b33f7b8641?api-version=2021-06-01\u0026t=638694959076939246\u0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SMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=tgWpxg4yPzVaIscmB9d9NgE3w7RvJlZETcpsqtUIs3ISZ_WCeKUkwXoesXxgJJA3OaK8Tu4LPABnscp1hxJL8yW7qqO-I0ZfxFb4_HSMPIHapP597LxnfolwKHP8QRljSAwnyCHE2SwlkhaWsLqIEgMWUKUaORh4_QgGHGafiqIHM03Kvc5ySTgo7antGoJxY0rtlsxQpkOQo6lsCtKR5s6HPq7Z6gA3ob-sM-LvvFlTUfDWaU0ZnhRrqShOgQVmEEhLVOu0HQjtJGEtUAlKdYqsAmUwYU8q26qkCr3_RVkzatW6Sdhw0gULuD5rIDQx5vENtjrE6gLfQ5RjksEl9g\u0026h=Na5IgWYisEhy2F1cupYAylRQA61ojBB2r8e5-RHnfsk" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "78e67402-103b-4962-a020-0d5f8f0216e9" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T063827Z:78e67402-103b-4962-a020-0d5f8f0216e9" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8C8A0634C67E4BD7804431C191EEFF0D Ref B: TYO201151002060 Ref C: 2024-12-11T06:38:22Z" ], + "Date": [ "Wed, 11 Dec 2024 06:38:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4674" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/pwshv4test\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"pwshv4test\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"4588f000-2f77-4ef2-9c69-76b7332c4328\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"pwshv4test.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}},{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30},\"enabledState\":\"Enabled\",\"cName\":\"pwshv4test.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/ecbb5305-8de8-48ca-a2d8-16b33f7b8641?api-version=2021-06-01\u0026t=638694959076939246\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BT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2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=tgWpxg4yPzVaIscmB9d9NgE3w7RvJlZETcpsqtUIs3ISZ_WCeKUkwXoesXxgJJA3OaK8Tu4LPABnscp1hxJL8yW7qqO-I0ZfxFb4_HSMPIHapP597LxnfolwKHP8QRljSAwnyCHE2SwlkhaWsLqIEgMWUKUaORh4_QgGHGafiqIHM03Kvc5ySTgo7antGoJxY0rtlsxQpkOQo6lsCtKR5s6HPq7Z6gA3ob-sM-LvvFlTUfDWaU0ZnhRrqShOgQVmEEhLVOu0HQjtJGEtUAlKdYqsAmUwYU8q26qkCr3_RVkzatW6Sdhw0gULuD5rIDQx5vENtjrE6gLfQ5RjksEl9g\u0026h=Na5IgWYisEhy2F1cupYAylRQA61ojBB2r8e5-RHnfsk+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/ecbb5305-8de8-48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GCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=tgWpxg4yPzVaIscmB9d9NgE3w7RvJlZETcpsqtUIs3ISZ_WCeKUkwXoesXxgJJA3OaK8Tu4LPABnscp1hxJL8yW7qqO-I0ZfxFb4_HSMPIHapP597LxnfolwKHP8QRljSAwnyCHE2SwlkhaWsLqIEgMWUKUaORh4_QgGHGafiqIHM03Kvc5ySTgo7antGoJxY0rtlsxQpkOQo6lsCtKR5s6HPq7Z6gA3ob-sM-LvvFlTUfDWaU0ZnhRrqShOgQVmEEhLVOu0HQjtJGEtUAlKdYqsAmUwYU8q26qkCr3_RVkzatW6Sdhw0gULuD5rIDQx5vENtjrE6gLfQ5RjksEl9g\u0026h=Na5IgWYisEhy2F1cupYAylRQA61ojBB2r8e5-RHnfsk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "bef82593-e01f-4f11-8cf4-a46affaad15d" ], + "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "6740cfab-458b-4f0a-acfb-d3ba9309c59d" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T063838Z:6740cfab-458b-4f0a-acfb-d3ba9309c59d" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2F3B7CB165B44D699BE76C21B53FBA68 Ref B: TYO201151002060 Ref C: 2024-12-11T06:38:37Z" ], + "Date": [ "Wed, 11 Dec 2024 06:38:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "12e258e5-cf1f-4234-8ff7-de14dfb4c9cc" ], + "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "f965a6d1-85b9-4688-a1f1-b6d4b84c324d" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T063839Z:f965a6d1-85b9-4688-a1f1-b6d4b84c324d" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 327661CC3AB147188672C1256DCC8BBD Ref B: TYO201151002060 Ref C: 2024-12-11T06:38:38Z" ], + "Date": [ "Wed, 11 Dec 2024 06:38:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4668" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/pwshv4test\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"pwshv4test\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"4588f000-2f77-4ef2-9c69-76b7332c4328\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}},{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30},\"enabledState\":\"Enabled\",\"cName\":\"pwshv4test.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$POST+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2021-06-01+4": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2021-06-01", + "Content": "{\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "201" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44/frontdoorresults/pwshv4test?api-version=2021-06-01" ], + "Retry-After": [ "120" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "21b9d374-a16f-47a1-aad2-b225ed90aad6" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfD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zYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "d678cd34-34d3-4311-b5c1-2f2975eb2503" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T063841Z:d678cd34-34d3-4311-b5c1-2f2975eb2503" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 62C8B24C003543498DE41B66AE1E1184 Ref B: TYO201151002060 Ref C: 2024-12-11T06:38:39Z" ], + "Date": [ "Wed, 11 Dec 2024 06:38:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Enabling\",\"customHttpsProvisioningSubstate\":\"SubmittingDomainControlValidationRequest\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\",\"keyVaultCertificateSourceParameters\":{\"vault\":{\"id\":null},\"secretName\":null,\"secretVersion\":null},\"frontDoorCertificateSourceParameters\":{\"certificateType\":\"Dedicated\",\"certificateTypeAsEnum\":\"Dedicated\"}}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQ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T84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUH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VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "53d0a24a-2262-4415-b16b-f6f33b778e05" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "6727e9be-3fe7-46a7-9b2b-566dfa204163" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064042Z:6727e9be-3fe7-46a7-9b2b-566dfa204163" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 76D532F3AE274957BDAF46A67EB8C6DA Ref B: TYO201100114027 Ref C: 2024-12-11T06:40:42Z" ], + "Date": [ "Wed, 11 Dec 2024 06:40:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3J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gEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BT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2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "17dbb103-1802-44d4-9004-cd0649184498" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "25ef594e-2575-4d5a-8784-6f85b0824e18" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T064114Z:25ef594e-2575-4d5a-8784-6f85b0824e18" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C8F7E51EC7294150894287DBC69A5CE6 Ref B: TYO201100114027 Ref C: 2024-12-11T06:41:13Z" ], + "Date": [ "Wed, 11 Dec 2024 06:41:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAW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S--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRY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AQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "2e65d1b7-096a-4660-a6e9-77be3afaf41f" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "29540920-4da8-4cad-accf-54594b9d67aa" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064145Z:29540920-4da8-4cad-accf-54594b9d67aa" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9EF36F9474EF408EB62F975E8CC2A288 Ref B: TYO201100114027 Ref C: 2024-12-11T06:41:44Z" ], + "Date": [ "Wed, 11 Dec 2024 06:41:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQD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bnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50Lm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QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "df9337de-13cb-4262-87f8-ff293448e705" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "38b2d45e-0c16-4ab9-abec-9fece0215c21" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064216Z:38b2d45e-0c16-4ab9-abec-9fece0215c21" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CBB7357D0BA94B4C92C8055772BA90F4 Ref B: TYO201100114027 Ref C: 2024-12-11T06:42:15Z" ], + "Date": [ "Wed, 11 Dec 2024 06:42:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAd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H12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYw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3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "cdbf4e54-e6c1-4fe5-a2d4-34ca1e12e03e" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "10312220-e137-472f-8c53-a2fee4ee2dc7" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064246Z:10312220-e137-472f-8c53-a2fee4ee2dc7" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 12C5E65B4E0841BBBC81B78710144DBC Ref B: TYO201100114027 Ref C: 2024-12-11T06:42:46Z" ], + "Date": [ "Wed, 11 Dec 2024 06:42:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdC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DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnC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nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f80ae9c5-4e71-4d7c-95ef-c730b191febb" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "62141be6-c57d-4dd2-be85-edb02586b485" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T064318Z:62141be6-c57d-4dd2-be85-edb02586b485" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4A845F9A20254356A24BEBDC62BE00DB Ref B: TYO201100114027 Ref C: 2024-12-11T06:43:17Z" ], + "Date": [ "Wed, 11 Dec 2024 06:43:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDY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Bv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb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authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "393b3093-7f94-46a1-9953-5ce617053d61" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "3668cdda-f2de-40d3-b1c2-d752c60ea839" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T064349Z:3668cdda-f2de-40d3-b1c2-d752c60ea839" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F1054142DCEB4B59900E60BE97A4FD01 Ref B: TYO201100114027 Ref C: 2024-12-11T06:43:48Z" ], + "Date": [ "Wed, 11 Dec 2024 06:43:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/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ADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026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sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "6ce8612e-79de-4b86-ab01-10120518d746" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "1cd49cf3-9b18-4bab-8e2a-05da8cee6aeb" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064420Z:1cd49cf3-9b18-4bab-8e2a-05da8cee6aeb" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 739925B262894D30AFF4DD0AC1EFBABF Ref B: TYO201100114027 Ref C: 2024-12-11T06:44:19Z" ], + "Date": [ "Wed, 11 Dec 2024 06:44:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZ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2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTI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SszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "49ef13d4-2952-4054-86f8-14d430d7d41c" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "26bc8386-dfcd-42c7-b4a2-5aacf23b124e" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064451Z:26bc8386-dfcd-42c7-b4a2-5aacf23b124e" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8F49747CCAC04663BA6716AA780A3C36 Ref B: TYO201100114027 Ref C: 2024-12-11T06:44:50Z" ], + "Date": [ "Wed, 11 Dec 2024 06:44:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvb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Yx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBO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gL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "39c976a1-d3be-4a06-87d3-7fcaf4743b16" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "2362dd75-4226-41e2-b11a-9ddc31178586" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T064522Z:2362dd75-4226-41e2-b11a-9ddc31178586" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E05C86FD88964A58AD040322C19FEA3E Ref B: TYO201100114027 Ref C: 2024-12-11T06:45:21Z" ], + "Date": [ "Wed, 11 Dec 2024 06:45:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjm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c8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-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RHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "b27c0338-a12d-462a-9a09-0ec78ba56139" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "ddf69abe-672b-4be7-817f-30a3ca2c4982" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064553Z:ddf69abe-672b-4be7-817f-30a3ca2c4982" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8EEA4F3AE4E54F6ABADB40E6164A19C1 Ref B: TYO201100114027 Ref C: 2024-12-11T06:45:52Z" ], + "Date": [ "Wed, 11 Dec 2024 06:45:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkC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AWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwY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ikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "437f490f-a846-4faa-ad67-594329342ac5" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "2eefbcde-7489-4f99-bf3b-3677292e95db" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064624Z:2eefbcde-7489-4f99-bf3b-3677292e95db" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5E985C556B66485F8B03F911767EAA3E Ref B: TYO201100114027 Ref C: 2024-12-11T06:46:23Z" ], + "Date": [ "Wed, 11 Dec 2024 06:46:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQU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YBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xU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QA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "77e2f9cc-f2eb-46e3-adf5-ba0dbf33a377" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "21cb9b2e-ce65-4f57-aad7-860d06b15c1f" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T064655Z:21cb9b2e-ce65-4f57-aad7-860d06b15c1f" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0DB4949D0C5A415280659096FBE5EE16 Ref B: TYO201100114027 Ref C: 2024-12-11T06:46:54Z" ], + "Date": [ "Wed, 11 Dec 2024 06:46:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959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fBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w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QcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "1320d895-1054-476e-aa87-5ea02ab3024a" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "e30dff25-36c2-447b-bb8b-cb337a5d5cda" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T064726Z:e30dff25-36c2-447b-bb8b-cb337a5d5cda" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F2909F057D7C4FA29D804601F6C0E4C3 Ref B: TYO201100114027 Ref C: 2024-12-11T06:47:25Z" ], + "Date": [ "Wed, 11 Dec 2024 06:47:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAz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bapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25p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mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "32cf393a-17a8-4046-97d5-5897f428346a" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "8372f935-aea8-444d-8d68-7e0407a0656c" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064757Z:8372f935-aea8-444d-8d68-7e0407a0656c" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B5AB0CEA1BFC4E36AA7A310E44B5A579 Ref B: TYO201100114027 Ref C: 2024-12-11T06:47:56Z" ], + "Date": [ "Wed, 11 Dec 2024 06:47:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8Zwp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KXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5e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=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "818b3609-6e1c-4b56-903f-9224373eee8b" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "401ed389-1342-49ca-8d96-737c3d0b1151" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064828Z:401ed389-1342-49ca-8d96-737c3d0b1151" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 70C8F0B883FE4F099B9F38E192E7A3F7 Ref B: TYO201100114027 Ref C: 2024-12-11T06:48:28Z" ], + "Date": [ "Wed, 11 Dec 2024 06:48:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMl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dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4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4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "deae21cd-de63-401e-aec5-a91496c669d6" ], + "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "573b8493-fd3a-43ef-b225-f25a8c47deb2" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T064829Z:573b8493-fd3a-43ef-b225-f25a8c47deb2" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D94CF07CC7D44558AABD6A40B1A63C3B Ref B: TYO201100114027 Ref C: 2024-12-11T06:48:28Z" ], + "Date": [ "Wed, 11 Dec 2024 06:48:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$POST+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2021-06-01+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], + "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84/frontdoorresults/pwshv4test?api-version=2021-06-01" ], + "Retry-After": [ "120" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "67da7321-e833-4117-820a-859546a46684" ], + "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwO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BmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "7d66f61c-88fd-4b3a-890b-f9aaed098afb" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T064831Z:7d66f61c-88fd-4b3a-890b-f9aaed098afb" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6BE441331BFF470AA644704D1B22E046 Ref B: TYO201100114027 Ref C: 2024-12-11T06:48:29Z" ], + "Date": [ "Wed, 11 Dec 2024 06:48:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "628" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabling\",\"customHttpsProvisioningSubstate\":\"DeletingCertificate\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\",\"keyVaultCertificateSourceParameters\":{\"vault\":{\"id\":null},\"secretName\":null,\"secretVersion\":null},\"frontDoorCertificateSourceParameters\":{\"certificateType\":\"Dedicated\",\"certificateTypeAsEnum\":\"Dedicated\"}}}", + "isContentBase64": false + } + }, + "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYK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1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcN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vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], + "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f92de7c7-d286-4592-8343-6203d94c0cb2" ], + "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "54906815-8349-4f45-96fb-6ea38ef2bc1d" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T065033Z:54906815-8349-4f45-96fb-6ea38ef2bc1d" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 018FA19DED944993AFDA641181622D0F Ref B: TYO201100116049 Ref C: 2024-12-11T06:50:32Z" ], + "Date": [ "Wed, 11 Dec 2024 06:50:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvc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NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8Zwp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KXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], + "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8568d88b-8981-457b-82dc-1f33fc908090" ], + "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "a8f6be4f-d5d8-4c45-a9e1-5ef7cac76178" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065104Z:a8f6be4f-d5d8-4c45-a9e1-5ef7cac76178" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F577C742B47E4077AAC98A705E538159 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:03Z" ], + "Date": [ "Wed, 11 Dec 2024 06:51:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5v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--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFN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1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], + "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "c2993e72-12f9-4d39-8f43-0fc3e1decafd" ], + "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "789cab8a-f1ff-4a71-914d-70d2572798c7" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065105Z:789cab8a-f1ff-4a71-914d-70d2572798c7" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4FAC522A111B464F82DA2D663EC468F2 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:04Z" ], + "Date": [ "Wed, 11 Dec 2024 06:51:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 new file mode 100644 index 000000000000..795182a24031 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 @@ -0,0 +1,83 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Enable-AzFrontDoorCustomDomainHttps')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Enable-AzFrontDoorCustomDomainHttps.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Enable-AzFrontDoorCustomDomainHttps' { + It 'EnableExpanded' { + # need to clean dns zone record before running this test + $PrefixName = "pwshv4test-2" + $FrontDoorName = "pwshv4test" + $tags = @{"tag1" = "value1"; "tag2" = "value2"} + $hostName = "pwshv4test.azurefd.net" + $customDomainHostName = "$PrefixName.afdx-rp-platform-test.azfdtest.xyz" + $customFrontendEndpointName = "frontendendpoint2" + $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" + $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" + $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" + $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName + $frontendEndpoint2 = New-AzFrontDoorFrontendEndpointObject -Name $customFrontendEndpointName -HostName $customDomainHostName + $frontendEndpoints = $frontendEndpoint1, $frontendEndpoint2 + $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" + New-AzFrontDoor -Name $FrontDoorName -ResourceGroupName $env.ResourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoints -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags + + Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" + } + + It 'EnableViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'EnableViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Enable' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'EnableViaIdentityFrontDoorExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'EnableViaIdentityFrontDoor' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'EnableViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'EnableViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} + +Describe 'Disable-AzFrontDoorCustomDomainHttps' { + It 'Disable' { + $FrontDoorName = "pwshv4test" + $customFrontendEndpointName = "frontendendpoint2" + + Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName + } + + It 'DisableViaIdentityFrontDoor' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DisableViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json new file mode 100644 index 000000000000..8e7fb302c290 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json @@ -0,0 +1,46 @@ +{ + "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs?api-version=2021-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "a6bf1a5e-2489-471e-ba7f-0d89ab451ed1" ], + "CommandName": [ "Get-AzFrontDoor" ], + "FullCommandName": [ "Get-AzFrontDoor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "a93fa16b-5e0f-40db-bc05-5c5fd3e7e256" ], + "x-ms-client-request-id": [ "a6bf1a5e-2489-471e-ba7f-0d89ab451ed1" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "16df4693-2c6c-48c7-bd8f-2cb679ec1601" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T065107Z:16df4693-2c6c-48c7-bd8f-2cb679ec1601" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 731FA486DB6D4CD9932ABDE31881FDFF Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:06Z" ], + "Date": [ "Wed, 11 Dec 2024 06:51:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "6398" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-uzrs\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"76e10376-1859-4686-a8c5-bfffe3ad96b0\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-uzrs.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-uzrs.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Tests.ps1 new file mode 100644 index 000000000000..e4c173d5aede --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Tests.ps1 @@ -0,0 +1,34 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzFrontDoor.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzFrontDoor' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get' { + $FrontDoor = Get-AzFrontDoor -Name $env.FrontDoorName -ResourceGroupName $env.ResourceGroupName + $FrontDoor.Name | Should -Be $env.FrontDoorName + } + + It 'List1' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json new file mode 100644 index 000000000000..1c2b5de3ba97 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json @@ -0,0 +1,46 @@ +{ + "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/frontendEndpoints?api-version=2021-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/frontendEndpoints?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "7d83b9f0-7529-45bd-b440-9af5a721a18f" ], + "CommandName": [ "Get-AzFrontDoorFrontendEndpoint" ], + "FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8935f1ea-5a2d-422b-ba2a-c0478eaa7fc5" ], + "x-ms-client-request-id": [ "7d83b9f0-7529-45bd-b440-9af5a721a18f" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "475235cf-4c1c-486e-81dd-bdb4c32555b0" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065108Z:475235cf-4c1c-486e-81dd-bdb4c32555b0" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D8966C725CEC4735BC9C4601A59B8F09 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:07Z" ], + "Date": [ "Wed, 11 Dec 2024 06:51:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-uzrs.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Tests.ps1 new file mode 100644 index 000000000000..7f5af61cdbeb --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorFrontendEndpoint')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzFrontDoorFrontendEndpoint.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzFrontDoorFrontendEndpoint' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get' { + Get-AzFrontDoorFrontendEndpoint -ResourceGroupName $env.ResourceGroupName -FrontDoorName $env.FrontDoorName + } + + It 'GetViaIdentityFrontDoor' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorRulesEngine.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorRulesEngine.Tests.ps1 new file mode 100644 index 000000000000..2ffe57b1d593 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorRulesEngine.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorRulesEngine')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzFrontDoorRulesEngine.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzFrontDoorRulesEngine' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get' -skip { + { + Get-AzFrontDoorRulesEngine -ResourceGroupName $env.ResourceGroupName -FrontDoorName $env.FrontDoorName -Name $env.RulesEngineName + } | Should -Not -Throw + } + + It 'GetViaIdentityFrontDoor' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json new file mode 100644 index 000000000000..86fe8d1ab9e1 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json @@ -0,0 +1,46 @@ +{ + "Get-AzFrontDoorWafManagedRuleSetDefinition+[NoContext]+List+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets?api-version=2024-02-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "28002819-c2d9-4cc2-9533-a7ea44f8646d" ], + "CommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition" ], + "FullCommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "799c83e2-4094-4766-bb3c-5ecd62153544" ], + "x-ms-client-request-id": [ "28002819-c2d9-4cc2-9533-a7ea44f8646d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "ab343d93-035c-404b-8d89-348f595ee083" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065110Z:ab343d93-035c-404b-8d89-348f595ee083" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 423160B0142748F6820ABE0861935C91 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:09Z" ], + "Date": [ "Wed, 11 Dec 2024 06:51:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "130824" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.0\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921190\",\"description\":\"HTTP Splitting (CR/LF in request filename detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921200\",\"description\":\"LDAP Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920181\",\"description\":\"Content-Length and Transfer-Encoding headers present\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920500\",\"description\":\"Attempt to access a backup or working file\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100300\",\"description\":\"High risk bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Verified misc bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200300\",\"description\":\"Verified link checker bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200400\",\"description\":\"Verified social media bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200500\",\"description\":\"Verified content fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200600\",\"description\":\"Verified feed fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200700\",\"description\":\"Verified Advertising bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.2\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.2\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Unverified search engine crawlers\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_preview-0.1\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../) using Encoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../) using Decoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932106\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932190\",\"description\":\"Remote Command Execution: Wildcard\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: Opening/Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933111\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933131\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933161\",\"description\":\"PHP Injection Attack: Low-Value PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933190\",\"description\":\"PHP Injection Attack: PHP Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Abusing of PHP wrappers could lead to RCE\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found (bypass 933180)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942251\",\"description\":\"Detects HAVING injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942431\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (6)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942432\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (2)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942490\",\"description\":\"Detects classic SQL injection probings 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Java: deserialization that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944300\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/BotProtection_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"BotProtection_preview-0.1\",\"properties\":{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"KnownBadBots\",\"description\":\"\",\"rules\":[{\"ruleId\":\"Bot00001\",\"description\":\"Malicious Bots\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Tests.ps1 new file mode 100644 index 000000000000..dee5ea40dc1c --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorWafManagedRuleSetDefinition')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzFrontDoorWafManagedRuleSetDefinition' { + It 'List' { + { Get-AzFrontDoorWafManagedRuleSetDefinition } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json new file mode 100644 index 000000000000..29a2c1a155e4 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json @@ -0,0 +1,46 @@ +{ + "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "d15b5c06-1818-49f8-a55b-23713bcf2978" ], + "CommandName": [ "Get-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "ebe8ea23-a4d4-4e33-9930-702e8d1d27ea" ], + "x-ms-client-request-id": [ "d15b5c06-1818-49f8-a55b-23713bcf2978" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "e2e2d917-3cfe-4f21-ba98-9f58f5b05492" ], + "x-ms-routing-request-id": [ "JAPANWEST:20241211T065111Z:e2e2d917-3cfe-4f21-ba98-9f58f5b05492" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 13B859BCE2244B13AACB21A2F4AD7DDC Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:11Z" ], + "Date": [ "Wed, 11 Dec 2024 06:51:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Tests.ps1 new file mode 100644 index 000000000000..ce92f356abfb --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Tests.ps1 @@ -0,0 +1,73 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorWafPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzFrontDoorWafPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzFrontDoorWafPolicy' { + It 'List1' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get' { + $retrievedPolicy = Get-AzFrontDoorWafPolicy -Name $env.WafPolicyName -ResourceGroupName $env.ResourceGroupName + $retrievedPolicy.Name | Should -Be $env.WafPolicyName + + $retrievedPolicy.CustomRule[0].Name | Should -Be "Rule1" + $retrievedPolicy.CustomRule[0].Action | Should -Be "Block" + $retrievedPolicy.CustomRule[0].EnabledState | Should -Be "Enabled" + $retrievedPolicy.CustomRule[0].Priority | Should -Be 2 + $retrievedPolicy.CustomRule[0].RateLimitDurationInMinutes | Should -Be 1 + $retrievedPolicy.CustomRule[0].RuleType | Should -Be "MatchRule" + $retrievedPolicy.CustomRule[0].MatchCondition[0].MatchValue | Should -Be @("WINDOWS") + $retrievedPolicy.CustomRule[0].MatchCondition[0].MatchVariable | Should -Be "RequestHeader" + $retrievedPolicy.CustomRule[0].MatchCondition[0].NegateCondition | Should -Be $false + $retrievedPolicy.CustomRule[0].MatchCondition[0].OperatorProperty | Should -Be "Contains" + $retrievedPolicy.CustomRule[0].MatchCondition[0].Selector | Should -Be "UserAgent" + $retrievedPolicy.CustomRule[0].MatchCondition[0].Transform | Should -Be @("Uppercase") + + $retrievedPolicy.ManagedRuleSet[0].Version | Should -Be "1.0" + $retrievedPolicy.ManagedRuleSet[0].Type | Should -Be "DefaultRuleSet" + $retrievedPolicy.ManagedRuleSet[0].Exclusion[0].Operator | Should -Be "Equals" + $retrievedPolicy.ManagedRuleSet[0].Exclusion[0].Selector | Should -Be "ExcludeInSet" + $retrievedPolicy.ManagedRuleSet[0].Exclusion[0].Variable | Should -Be "QueryStringArgNames" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].RuleGroupName | Should -Be "SQLI" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].Exclusion[0].Operator | Should -Be "Equals" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].Exclusion[0].Selector | Should -Be "ExcludeInGroup" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].Exclusion[0].Variable | Should -Be "QueryStringArgNames" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].ManagedRuleOverride[0].Action | Should -Be "Log" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].ManagedRuleOverride[0].EnabledState | Should -Be "Enabled" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].ManagedRuleOverride[0].Exclusion[0].Operator | Should -Be "Equals" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].ManagedRuleOverride[0].Exclusion[0].Selector | Should -Be "ExcludeInRule" + $retrievedPolicy.ManagedRuleSet[0].RuleGroupOverride[0].ManagedRuleOverride[0].Exclusion[0].Variable | Should -Be "QueryStringArgNames" + $retrievedPolicy.ManagedRuleSet[1].Type | Should -Be "BotProtection" + + $retrievedPolicy.PolicySetting.EnabledState | Should -Be "Enabled" + $retrievedPolicy.PolicySetting.Mode | Should -Be "Prevention" + $retrievedPolicy.PolicySetting.RequestBodyCheck | Should -Be "Disabled" + $retrievedPolicy.PolicySetting.JavascriptChallengeExpirationInMinutes | Should -Be 30 + $retrievedPolicy.PolicySetting.LogScrubbingSetting[0].State | Should -Be "Enabled" + $retrievedPolicy.PolicySetting.LogScrubbingSetting[0].ScrubbingRule[0].MatchVariable | Should -Be "RequestHeaderNames" + $retrievedPolicy.PolicySetting.LogScrubbingSetting[0].ScrubbingRule[0].SelectorMatchOperator | Should -Be "EqualsAny" + $retrievedPolicy.PolicySetting.LogScrubbingSetting[0].ScrubbingRule[0].State | Should -Be "Enabled" + + } + + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Tests.ps1 new file mode 100644 index 000000000000..63b6b4b9b66c --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoor.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoor' { + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendObject.Tests.ps1 new file mode 100644 index 000000000000..e0d6c15c4e77 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendObject.Tests.ps1 @@ -0,0 +1,32 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorBackendObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorBackendObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorBackendObject' { + It '__AllParameterSets' { + $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + $backend1.Address | Should -Be "contoso1.azurewebsites.net" + $backend1.BackendHostHeader | Should -Be "contoso1.azurewebsites.net" + $backend1.EnabledState | Should -Be "Enabled" + $backend1.HttpPort | Should -Be 80 + $backend1.HttpsPort | Should -Be 443 + $backend1.Priority | Should -Be 1 + $backend1.PrivateLinkAlias | Should -Be $null + $backend1.PrivateLinkApprovalMessage | Should -Be $null + $backend1.PrivateLinkLocation | Should -Be $null + $backend1.PrivateLinkResourceId | Should -Be $null + $backend1.Weight | Should -Be 50 + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolObject.Tests.ps1 new file mode 100644 index 000000000000..9bb354184115 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolObject.Tests.ps1 @@ -0,0 +1,30 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorBackendPoolObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorBackendPoolObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorBackendPoolObject' { + It '__AllParameterSets' { + $FDName = $env.FrontDoorName + $resourceGroupName = $env.ResourceGroupName + $subId = $env.SubscriptionId + + $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + + $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $FDName -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" + $backendpool1.Name | Should -Be "backendpool1" + $backendpool1.HealthProbeSettingId | Should -Be "/subscriptions/$subId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/frontDoors/$FDName/HealthProbeSettings/healthProbeSetting1" + $backendpool1.LoadBalancingSettingId | Should -Be "/subscriptions/$subId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/frontDoors/$FDName/LoadBalancingSettings/loadBalancingSetting1" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolsSettingObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolsSettingObject.Tests.ps1 new file mode 100644 index 000000000000..d0b94b99529a --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolsSettingObject.Tests.ps1 @@ -0,0 +1,23 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorBackendPoolsSettingObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorBackendPoolsSettingObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorBackendPoolsSettingObject' { + It '__AllParameterSets' { + $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 + $backendPoolsSetting1.SendRecvTimeoutInSeconds | Should -Be 33 + $backendPoolsSetting1.EnforceCertificateNameCheck | Should -Be "Enabled" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorCacheConfigurationObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorCacheConfigurationObject.Tests.ps1 new file mode 100644 index 000000000000..7615e4be8a43 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorCacheConfigurationObject.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCacheConfigurationObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorCacheConfigurationObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorCacheConfigurationObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorForwardingConfigurationObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorForwardingConfigurationObject.Tests.ps1 new file mode 100644 index 000000000000..ead3465b3a30 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorForwardingConfigurationObject.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorForwardingConfigurationObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorForwardingConfigurationObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorForwardingConfigurationObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorFrontendEndpointObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorFrontendEndpointObject.Tests.ps1 new file mode 100644 index 000000000000..874e02329f70 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorFrontendEndpointObject.Tests.ps1 @@ -0,0 +1,28 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorFrontendEndpointObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorFrontendEndpointObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorFrontendEndpointObject' { + It '__AllParameterSets' { + $FDName = $env.FrontDoorName + $hostName = "$FDName.azurefd.net" + + $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName + $frontendEndpoint1.Name | Should -Be "frontendendpoint1" + $frontendEndpoint1.HostName | Should -Be $hostName + $frontendEndpoint1.SessionAffinityEnabledState | Should -Be "Enabled" + $frontendEndpoint1.SessionAffinityTtlInSeconds | Should -Be 0 + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHeaderActionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHeaderActionObject.Tests.ps1 new file mode 100644 index 000000000000..b9c7b246999e --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHeaderActionObject.Tests.ps1 @@ -0,0 +1,24 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorHeaderActionObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorHeaderActionObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorHeaderActionObject' { + It '__AllParameterSets' { + $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" + $headerActions.HeaderActionType | Should -Be "Append" + $headerActions.HeaderName | Should -Be "X-Content-Type-Options" + $headerActions.Value | Should -Be "nosniff" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHealthProbeSettingObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHealthProbeSettingObject.Tests.ps1 new file mode 100644 index 000000000000..02f7040e1d68 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHealthProbeSettingObject.Tests.ps1 @@ -0,0 +1,27 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorHealthProbeSettingObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorHealthProbeSettingObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorHealthProbeSettingObject' { + It '__AllParameterSets' { + $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" + $healthProbeSetting1.Name | Should -Be "healthProbeSetting1" + $healthProbeSetting1.EnabledState | Should -Be "Enabled" + $healthProbeSetting1.HealthProbeMethod | Should -Be "HEAD" + $healthProbeSetting1.IntervalInSeconds | Should -Be 30 + $healthProbeSetting1.Path | Should -Be "/" + $healthProbeSetting1.Protocol | Should -Be "Http" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorLoadBalancingSettingObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorLoadBalancingSettingObject.Tests.ps1 new file mode 100644 index 000000000000..c8cc141988ab --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorLoadBalancingSettingObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorLoadBalancingSettingObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorLoadBalancingSettingObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorLoadBalancingSettingObject' { + It '__AllParameterSets' { + $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" + $loadBalancingSetting1.Name | Should -Be "loadbalancingsetting1" + $loadBalancingSetting1.SampleSize | Should -Be 4 + $loadBalancingSetting1.SuccessfulSamplesRequired | Should -Be 2 + $loadBalancingSetting1.AdditionalLatencyInMilliseconds | Should -Be 0 + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorPolicySettingsObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorPolicySettingsObject.Tests.ps1 new file mode 100644 index 000000000000..9d5ddfcb1fa7 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorPolicySettingsObject.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorPolicySettingsObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorPolicySettingsObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorPolicySettingsObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRedirectConfigurationObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRedirectConfigurationObject.Tests.ps1 new file mode 100644 index 000000000000..4b93b4b2c53b --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRedirectConfigurationObject.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorRedirectConfigurationObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorRedirectConfigurationObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorRedirectConfigurationObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRoutingRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRoutingRuleObject.Tests.ps1 new file mode 100644 index 000000000000..ebed31df5d4e --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRoutingRuleObject.Tests.ps1 @@ -0,0 +1,49 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorRoutingRuleObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorRoutingRuleObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorRoutingRuleObject' { + It 'ForwardingParameterSet' { + $FDName = $env.FrontDoorName + $resourceGroupName = $env.ResourceGroupName + $subId = $env.SubscriptionId + $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $FDName -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" + $routingrule1.Name | Should -Be "routingrule1" + $routingrule1.FrontendEndpoint[0].id | Should -Be "/subscriptions/$subId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/frontDoors/$FDName/FrontendEndpoints/frontendEndpoint1" + $routingrule1.AcceptedProtocol | Should -Be @("Http", "Https") + $routingrule1.PatternsToMatch | Should -Be @("/*") + $routingrule1.RouteConfiguration.GetType() | Should -Be "Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration" + $routingrule1.RouteConfiguration.BackendPoolId | Should -Be "/subscriptions/$subId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/frontDoors/$FDName/BackendPools/backendPool1" + $routingrule1.RouteConfiguration.CustomForwardingPath | Should -Be $null + $routingrule1.RouteConfiguration.ForwardingProtocol | Should -Be "MatchRequest" + } + + It 'RedirectParameterSet' { + $FDName = $env.FrontDoorName + $resourceGroupName = $env.ResourceGroupName + $subId = $env.SubscriptionId + $routingrule2 = New-AzFrontDoorRoutingRuleObject -Name "routingrule2" -FrontDoorName $FDName -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -CustomFragment "#fragment" + $routingrule2.Name | Should -Be "routingrule2" + $routingrule2.FrontendEndpoint[0].id | Should -Be "/subscriptions/$subId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/frontDoors/$FDName/FrontendEndpoints/frontendEndpoint1" + $routingrule2.AcceptedProtocol | Should -Be @("Http", "Https") + $routingrule2.PatternsToMatch | Should -Be @("/*") + $routingrule2.RouteConfiguration.GetType() | Should -Be "Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration" + $routingrule2.RouteConfiguration.RedirectProtocol | Should -Be "MatchRequest" + $routingrule2.RouteConfiguration.RedirectType | Should -Be "Moved" + $routingrule2.RouteConfiguration.CustomFragment | Should -Be "#fragment" + $routingrule2.RouteConfiguration.CustomHost | Should -Be "" + $routingrule2.RouteConfiguration.CustomPath | Should -Be "" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json new file mode 100644 index 000000000000..8ee336d06602 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json @@ -0,0 +1,85 @@ +{ + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2566" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "fa9406dc-8ac3-45eb-b01d-541348cee3cf" ], + "x-ms-client-request-id": [ "0b83e76d-885e-42b3-896f-cf539595e97d" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "1803855d-6eb2-4c57-b6ad-6e32f8270711" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065119Z:1803855d-6eb2-4c57-b6ad-6e32f8270711" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5DB798EBB293411799688A90E537FA76 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:17Z" ], + "Date": [ "Wed, 11 Dec 2024 06:51:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2256" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "isContentBase64": false + } + }, + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "0b83e76d-885e-42b3-896f-cf539595e97d" ], + "CommandName": [ "New-AzFrontDoorRulesEngine" ], + "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "d3969a1d-7428-4dff-bb24-65951f9b1128" ], + "x-ms-client-request-id": [ "0b83e76d-885e-42b3-896f-cf539595e97d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "bbde9566-e585-4bf5-ae5d-ec5937075619" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065150Z:bbde9566-e585-4bf5-ae5d-ec5937075619" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4EBBDEBB89D94D1EB1E52E981527F964 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:49Z" ], + "Date": [ "Wed, 11 Dec 2024 06:51:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2256" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Tests.ps1 new file mode 100644 index 000000000000..47848638c54c --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorRulesEngine')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorRulesEngine.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorRulesEngine' { + It 'CreateExpanded' { + $conditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable "RequestHeader" -Operator "Equal" -MatchValue "forward" -Transform "Lowercase" -Selector "Rules-Engine-Route-Forward" -NegateCondition $false + $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" + $ruleEngineResponseHeaderAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions + $ruleEngineResponseHeaderRule = New-AzFrontDoorRulesEngineRuleObject -Name "rule101" -Priority 1 -Action $ruleEngineResponseHeaderAction -MatchCondition $conditions + + $ruleEngineForwardAction = New-AzFrontDoorRulesEngineActionObject -ForwardingProtocol "HttpsOnly" -BackendPoolName "backendpool1" -ResourceGroupName $env.ResourceGroupName -FrontDoorName $env.FrontDoorName -QueryParameterStripDirective "StripNone" -DynamicCompression "Disabled" -EnableCaching $true + $ruleEngineForwardRule = New-AzFrontDoorRulesEngineRuleObject -Name rule102 -Priority 2 -Action $ruleEngineForwardAction -MatchCondition $conditions + + $redirectConditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable "RequestHeader" -Operator Equal -MatchValue "redirect" -Transform "Lowercase" -Selector "Rules-Engine-Route-Forward" -NegateCondition $false + $ruleEngineRedirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectProtocol "MatchRequest" -CustomHost "www.contoso.com" -RedirectType "Moved" + $ruleEngineRedirectRule = New-AzFrontDoorRulesEngineRuleObject -Name "rule103" -Priority 3 -Action $ruleEngineRedirectAction -MatchCondition $redirectConditions + + New-AzFrontDoorRulesEngine -ResourceGroupName $env.ResourceGroupName -Rule $ruleEngineResponseHeaderRule,$ruleEngineForwardRule,$ruleEngineRedirectRule -FrontDoorName $env.FrontDoorName -Name "engine101" + } + + It 'CreateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineActionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineActionObject.Tests.ps1 new file mode 100644 index 000000000000..17e4340ed902 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineActionObject.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorRulesEngineActionObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorRulesEngineActionObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorRulesEngineActionObject' { + It 'ForwardingParameterSet' { + $FDName = $env.FrontDoorName + $resourceGroupName = $env.ResourceGroupName + $subId = $env.SubscriptionId + + $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" + $ruleEngineForwardAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions -ForwardingProtocol "HttpsOnly" -BackendPoolName "backendpool1" -ResourceGroupName $resourceGroupName -FrontDoorName $FDName -QueryParameterStripDirective "StripNone" -DynamicCompression "Disabled" -EnableCaching $true + $ruleEngineForwardAction.RouteConfigurationOverride.ForwardingProtocol | Should -Be "HttpsOnly" + $ruleEngineForwardAction.RouteConfigurationOverride.BackendPoolId | Should -Be "/subscriptions/$subId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/frontDoors/$FDName/BackendPools/backendPool1" + $ruleEngineForwardAction.RouteConfigurationOverride.CacheConfiguration.GetType() | Should -Be "Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration" + $ruleEngineForwardAction.RouteConfigurationOverride.CacheConfiguration.DynamicCompression | Should -Be "Disabled" + $ruleEngineForwardAction.RouteConfigurationOverride.CacheConfiguration.QueryParameterStripDirective | Should -Be "StripNone" + $ruleEngineForwardAction.RouteConfigurationOverride.CacheConfiguration.QueryParameter | Should -Be $null + $ruleEngineForwardAction.RouteConfigurationOverride.CacheConfiguration.CacheDuration | Should -Be $null + } + It 'RedirectParameterSet' { + $ruleEngineRedirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectProtocol "MatchRequest" -CustomHost "www.contoso.com" -RedirectType "Moved" + $ruleEngineRedirectAction.RouteConfigurationOverride.RedirectProtocol | Should -Be "MatchRequest" + $ruleEngineRedirectAction.RouteConfigurationOverride.RedirectType | Should -Be "Moved" + $ruleEngineRedirectAction.RouteConfigurationOverride.CustomHost | Should -Be "www.contoso.com" + $ruleEngineRedirectAction.RouteConfigurationOverride.CustomPath | Should -Be "" + $ruleEngineRedirectAction.RouteConfigurationOverride.CustomFragment | Should -Be $null + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineMatchConditionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineMatchConditionObject.Tests.ps1 new file mode 100644 index 000000000000..cdbf8bfc411b --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineMatchConditionObject.Tests.ps1 @@ -0,0 +1,27 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorRulesEngineMatchConditionObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorRulesEngineMatchConditionObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorRulesEngineMatchConditionObject' { + It '__AllParameterSets' -skip { + $redirectConditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable "RequestHeader" -Operator "Equal" -MatchValue "redirect" -Transform "LowerCase" -Selector "Rules-Engine-Route-Forward" -NegateCondition $false + $redirectConditions.MatchVariable | Should -Be @("RequestHeader") + $redirectConditions.Operator | Should -Be "Equal" + $redirectConditions.MatchValue | Should -Be "redirect" + $redirectConditions.Transform | Should -Be @("LowerCase") + $redirectConditions.Selector | Should -Be "Rules-Engine-Route-Forward" + $redirectConditions.NegateCondition | Should -Be $false + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineRuleObject.Tests.ps1 new file mode 100644 index 000000000000..5045dee354cc --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineRuleObject.Tests.ps1 @@ -0,0 +1,31 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorRulesEngineRuleObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorRulesEngineRuleObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorRulesEngineRuleObject' { + It '__AllParameterSets' -skip { + $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" + $ruleEngineResponseHeaderAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions + $ruleEngineResponseHeaderRule = New-AzFrontDoorRulesEngineRuleObject -Name rule101 -Priority 1 -Action $ruleEngineResponseHeaderAction -MatchCondition $conditions + $ruleEngineResponseHeaderRule.Name | Should -Be "rule101" + $ruleEngineResponseHeaderRule.Priority | Should -Be 1 + $ruleEngineResponseHeaderRule.Action.GetType() | Should -Be "Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction" + $ruleEngineResponseHeaderRule.Action.ActionRequestHeaderAction | Should -Be $null + $ruleEngineResponseHeaderRule.Action.ActionResponseHeaderAction | Should -Be $headerActions + $ruleEngineResponseHeaderRule.MatchCondition.GetType() | Should -Be "Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition[]" + $ruleEngineResponseHeaderRule.MatchCondition | Should -Be $conditions + $ruleEngineResponseHeaderRule.MatchProcessingBehavior | Should -Be $null + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleGroupByVariableObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleGroupByVariableObject.Tests.ps1 new file mode 100644 index 000000000000..8096c6560dad --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleGroupByVariableObject.Tests.ps1 @@ -0,0 +1,22 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafCustomRuleGroupByVariableObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafCustomRuleGroupByVariableObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafCustomRuleGroupByVariableObject' { + It '__AllParameterSets' { + $groupBy = New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName "SocketAddr" + $groupBy.VariableName | Should -Be "SocketAddr" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleObject.Tests.ps1 new file mode 100644 index 000000000000..753de55830d0 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleObject.Tests.ps1 @@ -0,0 +1,28 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafCustomRuleObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafCustomRuleObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafCustomRuleObject' { + It '__AllParameterSets' { + $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" + $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action "Block" -Priority 2 + $customRule1.Name | Should -Be "Rule1" + $customRule1.RuleType | Should -Be "MatchRule" + $customRule1.Action | Should -Be "Block" + $customRule1.Priority | Should -Be 2 + $customRule1.EnabledState | Should -Be "Enabled" + $customRule1.RateLimitDurationInMinutes | Should -Be 1 + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingRuleObject.Tests.ps1 new file mode 100644 index 000000000000..5278b878c1fa --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingRuleObject.Tests.ps1 @@ -0,0 +1,24 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafLogScrubbingRuleObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafLogScrubbingRuleObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafLogScrubbingRuleObject' { + It '__AllParameterSets' { + $LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" + $LogScrubbingRule.MatchVariable | Should -Be "RequestHeaderNames" + $LogScrubbingRule.SelectorMatchOperator | Should -Be "EqualsAny" + $LogScrubbingRule.State | Should -Be "Enabled" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingSettingObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingSettingObject.Tests.ps1 new file mode 100644 index 000000000000..ba2f1d63cbd3 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingSettingObject.Tests.ps1 @@ -0,0 +1,24 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafLogScrubbingSettingObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafLogScrubbingSettingObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafLogScrubbingSettingObject' { + It '__AllParameterSets' { + $LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" + $logscrubbingSetting = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @($LogScrubbingRule) + $logscrubbingSetting.State | Should -Be "Enabled" + $logscrubbingSetting.ScrubbingRule[0].GetType() | Should -Be "Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleExclusionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleExclusionObject.Tests.ps1 new file mode 100644 index 000000000000..b428467010fd --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleExclusionObject.Tests.ps1 @@ -0,0 +1,24 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafManagedRuleExclusionObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafManagedRuleExclusionObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafManagedRuleExclusionObject' { + It '__AllParameterSets' { + $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" + $exclusionRule.Variable | Should -Be "QueryStringArgNames" + $exclusionRule.Operator | Should -Be "Equals" + $exclusionRule.Selector | Should -Be "ExcludeInRule" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleObject.Tests.ps1 new file mode 100644 index 000000000000..6fbd9ab407c1 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleObject.Tests.ps1 @@ -0,0 +1,28 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafManagedRuleObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafManagedRuleObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafManagedRuleObject' { + It '__AllParameterSets' { + $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" + $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInGroup" + $exclusionSet = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInSet" + $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action "Log" -Exclusion $exclusionRule + $override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName "SQLI" -ManagedRuleOverride $ruleOverride -Exclusion $exclusionGroup + $managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type "DefaultRuleSet" -Version "1.0" -RuleGroupOverride $override1 -Exclusion $exclusionSet + $managedRule1.Type | Should -Be "DefaultRuleSet" + $managedRule1.Version | Should -Be "1.0" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleOverrideObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleOverrideObject.Tests.ps1 new file mode 100644 index 000000000000..96a194bff4d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleOverrideObject.Tests.ps1 @@ -0,0 +1,24 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafManagedRuleOverrideObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafManagedRuleOverrideObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafManagedRuleOverrideObject' { + It '__AllParameterSets' { + $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" + $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action "Log" -Exclusion $exclusionRule + $ruleOverride.RuleId | Should -Be "942100" + $ruleOverride.Action | Should -Be "Log" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafMatchConditionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafMatchConditionObject.Tests.ps1 new file mode 100644 index 000000000000..4001f04bd543 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafMatchConditionObject.Tests.ps1 @@ -0,0 +1,26 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafMatchConditionObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafMatchConditionObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafMatchConditionObject' { + It '__AllParameterSets' { + $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" + $matchCondition1.MatchVariable | Should -Be "RequestHeader" + $matchCondition1.OperatorProperty | Should -Be "Contains" + $matchCondition1.Selector | Should -Be "UserAgent" + $matchCondition1.MatchValue | Should -Be "WINDOWS" + $matchCondition1.Transform | Should -Be "Uppercase" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json new file mode 100644 index 000000000000..37c9aee18a0a --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json @@ -0,0 +1,129 @@ +{ + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2426" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "3b647d0e-0f2f-4533-942d-2deec4d9147e" ], + "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "16eb0a54-f01a-4b3a-96cd-502d4632c128" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065200Z:16eb0a54-f01a-4b3a-96cd-502d4632c128" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 81499047E8C04BCC82A862F3E24E613A Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:57Z" ], + "Date": [ "Wed, 11 Dec 2024 06:52:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf0ouj\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf0ouj\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "e64459cd-1356-4893-87ba-5db54958541c" ], + "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "22505bc9-42ed-4beb-acb7-64ce635e860b" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065231Z:22505bc9-42ed-4beb-acb7-64ce635e860b" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 75BE4379C12945C49E581DD9F17DAF77 Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:31Z" ], + "Date": [ "Wed, 11 Dec 2024 06:52:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf0ouj\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf0ouj\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f0243021-5f9d-442c-9de1-5ba42995e3c1" ], + "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "bd9735e0-fb4b-47dc-bcad-714b634080a7" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065232Z:bd9735e0-fb4b-47dc-bcad-714b634080a7" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CEB8E16328974050AB8965D8D2A5AAF9 Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:32Z" ], + "Date": [ "Wed, 11 Dec 2024 06:52:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf0ouj\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf0ouj\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 new file mode 100644 index 000000000000..0243f5e29163 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 @@ -0,0 +1,46 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafPolicy' { + It 'CreateExpanded' { + $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) + $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" + $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action Block -Priority 2 + + # Create exclusion objects + $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" + $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInGroup" + $exclusionSet = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInSet" + + $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action "Log" -Exclusion $exclusionRule + $override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName "SQLI" -ManagedRuleOverride $ruleOverride -Exclusion $exclusionGroup + $managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type "DefaultRuleSet" -Version "1.0" -RuleGroupOverride $override1 -Exclusion $exclusionSet + $managedRule2 = New-AzFrontDoorWafManagedRuleObject -Type "BotProtection" -Version "preview-0.1" + + $logScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" + $logscrubbingSetting = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @($logScrubbingRule) + + New-AzFrontDoorWafPolicy -Name $wafName -ResourceGroupName $env.ResourceGroupName -Sku "Premium_AzureFrontDoor" -Customrule $customRule1 -ManagedRule $managedRule1,$managedRule2 -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Disabled" -LogScrubbingSetting $logscrubbingSetting -JavascriptChallengeExpirationInMinutes 30 + } + + It 'CreateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafRuleGroupOverrideObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafRuleGroupOverrideObject.Tests.ps1 new file mode 100644 index 000000000000..b17a02cf51b1 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafRuleGroupOverrideObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafRuleGroupOverrideObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzFrontDoorWafRuleGroupOverrideObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzFrontDoorWafRuleGroupOverrideObject' { + It '__AllParameterSets' { + $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" + $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInGroup" + $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action "Log" -Exclusion $exclusionRule + $override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName "SQLI" -ManagedRuleOverride $ruleOverride -Exclusion $exclusionGroup + $override1.RuleGroupName | Should -Be "SQLI" + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/README.md b/src/FrontDoor/FrontDoor.Autorest/test/README.md new file mode 100644 index 000000000000..7c752b4c8c43 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/README.md @@ -0,0 +1,17 @@ +# Test +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Details +We allow three testing modes: *live*, *record*, and *playback*. These can be selected using the `-Live`, `-Record`, and `-Playback` switches respectively on the `test-module.ps1` script. This script will run through any `.Tests.ps1` scripts in the `test` folder. If you choose the *record* mode, it will create a `.Recording.json` file of the REST calls between the client and server. Then, when you choose *playback* mode, it will use the `.Recording.json` file to mock the communication between server and client. The *live* mode runs the same as the *record* mode; however, it doesn't create the `.Recording.json` file. + +## Purpose +Custom cmdlets generally encompass additional functionality not described in the REST specification, or combines functionality generated from the REST spec. To validate this functionality continues to operate as intended, creating tests that can be ran and re-ran against custom cmdlets is part of the framework. + +## Usage +To execute tests, run the `test-module.ps1`. To write tests, [this example](https://github.com/pester/Pester/blob/8b9cf4248315e44f1ac6673be149f7e0d7f10466/Examples/Planets/Get-Planet.Tests.ps1#L1) from the Pester repository is very useful for getting started. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json new file mode 100644 index 000000000000..258da026376f --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json @@ -0,0 +1,529 @@ +{ + "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-ogv3.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3023" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "62597151-1eb5-481d-a0ce-36e9571ef5a7" ], + "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/9d34a355-53a0-43d0-a432-186c0d1dba4f?api-version=2021-06-01\u0026t=638694967596349405\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YX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ygt0-0o8uR9-gOQ0GTjE2q1l9XWO-2QbOjaLtxxcLrTvMWgAuUK_BnCyOeWKgUvx6ASMu17wi13usPMBpJiDVFgLamK11Lm6GzWaNltF__Dh91hj1XzrozDL-IJsbO3sPHl796MhP_XsLQrfP7iwxwm8GPcLXJGCinOwa0p2mrHRyxbg\u0026h=XSY9QaEckr_cvkk9MwKCOMtjsmqcnbyqFrZlbzQ44X0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "07fb0418-b33d-49c2-ba63-c5167ccc2321" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065239Z:07fb0418-b33d-49c2-ba63-c5167ccc2321" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B2C6BB7AC36F4757A04BCC897DFDA02B Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:34Z" ], + "Date": [ "Wed, 11 Dec 2024 06:52:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4147" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-ogv3\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-ogv3\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"ab1f25f0-7fa3-4333-b5c9-c93fa6ca5ecf\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-ogv3.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-ogv3.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/9d34a355-53a0-43d0-a432-186c0d1dba4f?api-version=2021-06-01\u0026t=638694967596349405\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8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MwKCOMtjsmqcnbyqFrZlbzQ44X0+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/9d34a355-53a0-43d0-a432-186c0d1dba4f?api-version=2021-06-01\u0026t=638694967596349405\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGM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IwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=O7oxjTlvGAFu1j_AuqohTXr_jZ9xlBUHjCxAFzppJ9l6Klmg3qlm3efBijM19vSyb5lDyQUz3Rmqo0BoeNjCvHPUzq1V8MmEOim7HPF4MAZ5Ywvq7cGScTO_SYLVlhXU701OlwVStK6x4BuMAobSAW4r0VG4-hSaXmmM0Cygt0-0o8uR9-gOQ0GTjE2q1l9XWO-2QbOjaLtxxcLrTvMWgAuUK_BnCyOeWKgUvx6ASMu17wi13usPMBpJiDVFgLamK11Lm6GzWaNltF__Dh91hj1XzrozDL-IJsbO3sPHl796MhP_XsLQrfP7iwxwm8GPcLXJGCinOwa0p2mrHRyxbg\u0026h=XSY9QaEckr_cvkk9MwKCOMtjsmqcnbyqFrZlbzQ44X0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "62c64c68-4b37-47c7-80ee-cbbbecac2131" ], + "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "fa144468-3fb9-41bf-afa7-7cdcddaeb8fc" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065250Z:fa144468-3fb9-41bf-afa7-7cdcddaeb8fc" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B2006DA164374C6E9F96E2E9AB3CECBF Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:49Z" ], + "Date": [ "Wed, 11 Dec 2024 06:52:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "31213512-0bf3-4a53-9daf-93d07658a255" ], + "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "01a4c4fa-fd5d-41e6-9e58-d1f73b95b4dd" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065251Z:01a4c4fa-fd5d-41e6-9e58-d1f73b95b4dd" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F74D4821AE954D2D93BBB60F0FD5B359 Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:50Z" ], + "Date": [ "Wed, 11 Dec 2024 06:52:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4142" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-ogv3\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-ogv3\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"ab1f25f0-7fa3-4333-b5c9-c93fa6ca5ecf\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-ogv3.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-ogv3.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f/frontdoorresults/testps-fd-ogv3?api-version=2021-06-01" ], + "Retry-After": [ "10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "fd84c0a3-da8b-4307-ac54-03400dbb2eaa" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtf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fT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "d8d06b63-005b-4469-a16f-e2a14516c70e" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065314Z:d8d06b63-005b-4469-a16f-e2a14516c70e" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0529ACE9AFDB47D6B1099B402DAA6B6D Ref B: TYO201100116049 Ref C: 2024-12-11T06:53:11Z" ], + "Date": [ "Wed, 11 Dec 2024 06:53:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUw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G_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZX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vHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "0cf8a904-8142-43e3-9894-c221ad6aee19" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "0a190204-f51c-4545-8e53-ca48ae914a49" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065325Z:0a190204-f51c-4545-8e53-ca48ae914a49" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C3A7A87D10D646DC948EF9CA84D20789 Ref B: TYO201100116049 Ref C: 2024-12-11T06:53:24Z" ], + "Date": [ "Wed, 11 Dec 2024 06:53:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOM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\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14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figJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "adbb7067-3e2b-4fe9-88ee-6e8f3e2bcb28" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "e7f70970-b957-41f0-b8c9-f58c9cfa3902" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065355Z:e7f70970-b957-41f0-b8c9-f58c9cfa3902" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1726431A687A4B68B2F4C905AEB09B7D Ref B: TYO201100116049 Ref C: 2024-12-11T06:53:55Z" ], + "Date": [ "Wed, 11 Dec 2024 06:53:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvs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wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQU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wqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "18f48dd4-68bf-4492-b59e-129719fe5c98" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "bbced530-2402-451c-96f5-4bd22d65b181" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065427Z:bbced530-2402-451c-96f5-4bd22d65b181" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D2A16E1DB9C24D4CB8EDEFC732C35710 Ref B: TYO201100116049 Ref C: 2024-12-11T06:54:26Z" ], + "Date": [ "Wed, 11 Dec 2024 06:54:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5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YIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSU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jAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "d4a79cb2-8cc3-4a72-99a9-96d69951af39" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "d38567f6-a27b-49c1-af3d-bc0b72d522cb" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065457Z:d38567f6-a27b-49c1-af3d-bc0b72d522cb" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F74D9D12F03D433D9D194277970C19C5 Ref B: TYO201100116049 Ref C: 2024-12-11T06:54:57Z" ], + "Date": [ "Wed, 11 Dec 2024 06:54:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyL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ZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW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fV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "6ce12e66-5e08-453d-ae20-02ea401757bb" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "4892210f-7712-4b49-803f-09a0e64ae98f" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065528Z:4892210f-7712-4b49-803f-09a0e64ae98f" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7AAEDF66CF314725947C39EDB52A9A56 Ref B: TYO201100116049 Ref C: 2024-12-11T06:55:28Z" ], + "Date": [ "Wed, 11 Dec 2024 06:55:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADC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LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cj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ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "d03fdc04-396a-4938-bf51-c9d240275549" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "9b403da7-493e-4b5c-88ce-bf13116e1c61" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065559Z:9b403da7-493e-4b5c-88ce-bf13116e1c61" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 71C3BD4235404FD09D651D1987F473CE Ref B: TYO201100116049 Ref C: 2024-12-11T06:55:59Z" ], + "Date": [ "Wed, 11 Dec 2024 06:55:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPW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I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4E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Z3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "257187af-065c-43ad-9f3d-838fe55a04a6" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "ccf18845-b519-432f-b675-09ecaf583be9" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065630Z:ccf18845-b519-432f-b675-09ecaf583be9" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E5156859B6DD4F9F9736C66B3D97D0B5 Ref B: TYO201100116049 Ref C: 2024-12-11T06:56:30Z" ], + "Date": [ "Wed, 11 Dec 2024 06:56:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dE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EuyqbyAACaG1LWvk+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFB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BAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "b546a1f1-ec8d-4b18-a032-e965c3723619" ], + "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "f6606e8b-7e09-411e-ba82-57e37ed5b910" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065631Z:f6606e8b-7e09-411e-ba82-57e37ed5b910" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8ACD310971F14D5EB8735305E0C58EE5 Ref B: TYO201100116049 Ref C: 2024-12-11T06:56:30Z" ], + "Date": [ "Wed, 11 Dec 2024 06:56:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 new file mode 100644 index 000000000000..5af4659f3280 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 @@ -0,0 +1,39 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzFrontDoor.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzFrontDoor' { + It 'Delete' { + { + $frontDoorName = 'testps-fd-' + (RandomString -allChars $false -len 4) + $tags = @{"tag1" = "value1"; "tag2" = "value2"} + $hostName = "$frontDoorName.azurefd.net" + $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule2" -FrontDoorName $frontDoorName -ResourceGroupName $env.ResourceGroupName -FrontendEndpointName "frontendEndpoint2" -BackendPoolName "backendPool2" + $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting2" -HealthProbeMethod "Head" -EnabledState "Disabled" + $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting2" + $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint2" -HostName $hostName + $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool2" -FrontDoorName $frontDoorName -ResourceGroupName $env.ResourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting2" -LoadBalancingSettingsName "loadBalancingSetting2" + $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 -EnforceCertificateNameCheck "Enabled" + New-AzFrontDoor -Name $frontDoorName -ResourceGroupName $env.ResourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags + Start-Sleep 20 + Remove-AzFrontDoor -Name $frontDoorName -ResourceGroupName $env.ResourceGroupName -PassThru + } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorContent.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorContent.Tests.ps1 new file mode 100644 index 000000000000..bc6c590e884b --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorContent.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorContent')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzFrontDoorContent.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzFrontDoorContent' { + It 'PurgeExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PurgeViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PurgeViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Purge' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PurgeViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PurgeViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json new file mode 100644 index 000000000000..edbe5d5788eb --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json @@ -0,0 +1,127 @@ +{ + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2566" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "35b8c3f4-fd15-4dab-8150-f4ffb1789a2d" ], + "x-ms-client-request-id": [ "14849011-7300-42c7-8d4f-afc4d5787daf" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "842e6f6e-4386-49bd-872a-63bd70bb7618" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065633Z:842e6f6e-4386-49bd-872a-63bd70bb7618" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2AD0E7AA928041689DFB610B77A87EA5 Ref B: TYO201100116049 Ref C: 2024-12-11T06:56:32Z" ], + "Date": [ "Wed, 11 Dec 2024 06:56:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2256" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "14849011-7300-42c7-8d4f-afc4d5787daf" ], + "CommandName": [ "New-AzFrontDoorRulesEngine" ], + "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "adb7b50e-e8ea-41be-8931-d036d2eb428a" ], + "x-ms-client-request-id": [ "14849011-7300-42c7-8d4f-afc4d5787daf" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "9c02830e-7e37-431d-b416-4454f4983e54" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065705Z:9c02830e-7e37-431d-b416-4454f4983e54" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8715C6C9B0E84EF1BF517DC23733842A Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:04Z" ], + "Date": [ "Wed, 11 Dec 2024 06:57:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2256" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01+3": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "1a52f214-f0ce-481c-af7c-f739588f921b" ], + "CommandName": [ "Remove-AzFrontDoorRulesEngine" ], + "FullCommandName": [ "Remove-AzFrontDoorRulesEngine_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "85311e50-cf19-4f5f-946e-7ef66b78207a" ], + "x-ms-client-request-id": [ "1a52f214-f0ce-481c-af7c-f739588f921b" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "66f4bfe5-83f0-411f-837c-9619119cd051" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065706Z:66f4bfe5-83f0-411f-837c-9619119cd051" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D0D55688EA6B4F1FA3E66BDD2CD1403F Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:05Z" ], + "Date": [ "Wed, 11 Dec 2024 06:57:05 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Tests.ps1 new file mode 100644 index 000000000000..860e61dec15f --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Tests.ps1 @@ -0,0 +1,45 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorRulesEngine')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzFrontDoorRulesEngine.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzFrontDoorRulesEngine' { + It 'Delete' { + { + $conditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable "RequestHeader" -Operator "Equal" -MatchValue "forward" -Transform "Lowercase" -Selector "Rules-Engine-Route-Forward" -NegateCondition $false + $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" + $ruleEngineResponseHeaderAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions + $ruleEngineResponseHeaderRule = New-AzFrontDoorRulesEngineRuleObject -Name "rule101" -Priority 1 -Action $ruleEngineResponseHeaderAction -MatchCondition $conditions + + $ruleEngineForwardAction = New-AzFrontDoorRulesEngineActionObject -ForwardingProtocol "HttpsOnly" -BackendPoolName "backendpool1" -ResourceGroupName $env.ResourceGroupName -FrontDoorName $env.FrontDoorName -QueryParameterStripDirective "StripNone" -DynamicCompression "Disabled" -EnableCaching $true + $ruleEngineForwardRule = New-AzFrontDoorRulesEngineRuleObject -Name "rule102" -Priority 2 -Action $ruleEngineForwardAction -MatchCondition $conditions + + $redirectConditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable "RequestHeader" -Operator Equal -MatchValue "redirect" -Transform "Lowercase" -Selector "Rules-Engine-Route-Forward" -NegateCondition $false + $ruleEngineRedirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectProtocol "MatchRequest" -CustomHost "www.contoso.com" -RedirectType "Moved" + $ruleEngineRedirectRule = New-AzFrontDoorRulesEngineRuleObject -Name "rule103" -Priority 3 -Action $ruleEngineRedirectAction -MatchCondition $redirectConditions + + New-AzFrontDoorRulesEngine -ResourceGroupName $env.ResourceGroupName -Rule $ruleEngineResponseHeaderRule,$ruleEngineForwardRule,$ruleEngineRedirectRule -FrontDoorName $env.FrontDoorName -Name "engine102" + + Remove-AzFrontDoorRulesEngine -ResourceGroupName $env.ResourceGroupName -FrontDoorName $env.FrontDoorName -Name "engine102" -PassThru + } | Should -Not -Throw + } + + It 'DeleteViaIdentityFrontDoor' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json new file mode 100644 index 000000000000..308c6943ed9a --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json @@ -0,0 +1,171 @@ +{ + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2426" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "03e15bdf-5c24-4b35-9573-8499fc044439" ], + "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "2a5a4e73-dbda-450e-8be6-48200770d4fd" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065710Z:2a5a4e73-dbda-450e-8be6-48200770d4fd" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BE26ADBE9A4A406E96FE09515568772F Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:07Z" ], + "Date": [ "Wed, 11 Dec 2024 06:57:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8uts\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8uts\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "99741cee-8751-48f4-8077-4d23f1b51200" ], + "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "4b3c7e7f-3ebe-45cd-b2d7-184ee30cf8d4" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065741Z:4b3c7e7f-3ebe-45cd-b2d7-184ee30cf8d4" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D8784E8AE690424B820B7903F26FDB75 Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:40Z" ], + "Date": [ "Wed, 11 Dec 2024 06:57:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8uts\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8uts\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "d459d3ed-d3cb-42bd-b148-f20efdb25e41" ], + "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "a2770391-9c83-42ae-8ac3-a0ea9fc21bc5" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065742Z:a2770391-9c83-42ae-8ac3-a0ea9fc21bc5" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7CB0CEF76C87460E9C3618C893119D42 Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:41Z" ], + "Date": [ "Wed, 11 Dec 2024 06:57:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8uts\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8uts\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "219f2601-a84b-4993-ba0c-f80509953ca1" ], + "CommandName": [ "Remove-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "Remove-AzFrontDoorWafPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "065cbc50-b5bc-409b-a33f-d1c752550d56" ], + "x-ms-client-request-id": [ "219f2601-a84b-4993-ba0c-f80509953ca1" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "1e220fef-57c0-44e4-b06f-cda882a59dac" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065745Z:1e220fef-57c0-44e4-b06f-cda882a59dac" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D09347519BBE4F0598D1D3A408AC8AD6 Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:42Z" ], + "Date": [ "Wed, 11 Dec 2024 06:57:45 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 new file mode 100644 index 000000000000..583d5d03bfec --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 @@ -0,0 +1,46 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorWafPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzFrontDoorWafPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzFrontDoorWafPolicy' { + It 'Delete' { + { + $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) + $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" + $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action Block -Priority 2 + + # Create exclusion objects + $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" + $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInGroup" + $exclusionSet = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInSet" + + $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action "Log" -Exclusion $exclusionRule + $override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName "SQLI" -ManagedRuleOverride $ruleOverride -Exclusion $exclusionGroup + $managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type "DefaultRuleSet" -Version "1.0" -RuleGroupOverride $override1 -Exclusion $exclusionSet + $managedRule2 = New-AzFrontDoorWafManagedRuleObject -Type "BotProtection" -Version "preview-0.1" + + $logScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" + $logscrubbingSetting = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @($logScrubbingRule) + + New-AzFrontDoorWafPolicy -Name $wafName -ResourceGroupName $env.ResourceGroupName -Sku "Premium_AzureFrontDoor" -Customrule $customRule1 -ManagedRule $managedRule1,$managedRule2 -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Disabled" -LogScrubbingSetting $logscrubbingSetting -JavascriptChallengeExpirationInMinutes 30 + + Remove-AzFrontDoorWafPolicy -Name $wafName -ResourceGroupName $env.ResourceGroupName -PassThru + } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json new file mode 100644 index 000000000000..6b4846a1a236 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json @@ -0,0 +1,305 @@ +{ + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-12wm.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3023" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "18f4bfb8-a265-44da-a7cf-792fff5bdcb2" ], + "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/4cf82e5e-9128-43e6-a690-914a52acecf8?api-version=2021-06-01\u0026t=638694970714802964\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cV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R_cZgDN5633AgvKlr6q489pkDolmov29Zh-6sknogIYTeiQ2cjRuWja5ZLYQanXjBsBkKin8SUPdGHBKaBWZxP7AevetcyC0tmjDv8CNCX9KNe3XPj-2LfHNtnznm5tPDTj7uHYtQKgUJSEcucHjj-om4R7_cSxeI7BCRo2IrxttfWuRWhbLdbuybZTYGKbcBWxpRMQ-CDtIL8MeO4wMjybL8hsNfUtK-jPNG-WZrHQUumjJnt-iMTIV3C67DZhICyJSQJfLEcW-KNUezZzA\u0026h=uL6x5znrBMD4eNUhL28S8l_U_uJ7LBtD5eE0JshO-hQ" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "eed64239-9f09-4439-84f1-e40729219095" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065751Z:eed64239-9f09-4439-84f1-e40729219095" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 19E0444A2C2F4776BB4C6AE7E163A828 Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:47Z" ], + "Date": [ "Wed, 11 Dec 2024 06:57:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4147" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/4cf82e5e-9128-43e6-a690-914a52acecf8?api-version=2021-06-01\u0026t=638694970714802964\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCg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jJnt-iMTIV3C67DZhICyJSQJfLEcW-KNUezZzA\u0026h=uL6x5znrBMD4eNUhL28S8l_U_uJ7LBtD5eE0JshO-hQ+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/4cf82e5e-9128-43e6-a690-914a52acecf8?api-version=2021-06-01\u0026t=638694970714802964\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvd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D5eE0JshO-hQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "fa8f96eb-0e1e-46c5-96d5-2f182f22689a" ], + "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "90420d5f-437e-4d53-bdfe-c4ac10aac929" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065802Z:90420d5f-437e-4d53-bdfe-c4ac10aac929" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2ACA506F1D10489AAF6007FC9A784385 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:01Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "a6dc3262-8710-4de5-9aeb-d0fa62a2ded1" ], + "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "5b63f1f9-c70c-4c0d-b3a7-841684806bd9" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065802Z:5b63f1f9-c70c-4c0d-b3a7-841684806bd9" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1F4D6D4823CD4CD29F6A732135D13B72 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:02Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4142" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], + "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "0b00b302-be96-41ba-a154-4b099ba06522" ], + "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "004c4838-20a3-4391-a2b8-9be2ed1e352a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065803Z:004c4838-20a3-4391-a2b8-9be2ed1e352a" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 78DC3B0D76AF4B2E984B584270C39D61 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:03Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4142" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-12wm.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3769" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/1186a8ee-b157-417e-990e-df0a19a8433d/frontdoorresults/testps-fd-12wm?api-version=2021-06-01" ], + "Retry-After": [ "10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "a4d420b5-0b1f-4662-b313-16280bee670a" ], + "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/1186a8ee-b157-417e-990e-df0a19a8433d?api-version=2021-06-01\u0026t=638694970851031467\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRY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j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=n8B04NxxziolbrUa6z1oJ81hmJaSTwq1u0p2LM5WYefi4ZnvooxZud03LouthoVy01OyNmf_0x0sJvrIclK3aM_7c5D0I6eN9C1Rbeul0T7fO8JVkVa9lfbUkYKr-seLRBRZPCkVTYGa-aGnZoPhuoNUFn8ECuXoxausg9h4spd1-63vPk9Sjzw2nDSlvjltXknPgBEWEp1ceW0k_Jvkgg0KYgIiTMMTbcjQwVYvGvUbxoQUc76GPmCOqptIvuJo_o81Il_MyBgXe_hhT238-jN3gP284LBBD1RdijwtRFlC-fu_5AtzZiQ831292igKajb1QjBXDa50kvMaXCFCIw\u0026h=Hsvhw3uKqa84v68X1zs7GhLA6ehsE0-9JSG4Uk_QsUw" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "b6429ff9-2667-48a1-953f-93728b2ee18e" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065805Z:b6429ff9-2667-48a1-953f-93728b2ee18e" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 36493FE89389494EBE4CEBA8BD4D0DEE Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:03Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4140" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/1186a8ee-b157-417e-990e-df0a19a8433d?api-version=2021-06-01\u0026t=638694970851031467\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL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8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=n8B04NxxziolbrUa6z1oJ81hmJaSTwq1u0p2LM5WYefi4ZnvooxZud03LouthoVy01OyNmf_0x0sJvrIclK3aM_7c5D0I6eN9C1Rbeul0T7fO8JVkVa9lfbUkYKr-seLRBRZPCkVTYGa-aGnZoPhuoNUFn8ECuXoxausg9h4spd1-63vPk9Sjzw2nDSlvjltXknPgBEWEp1ceW0k_Jvkgg0KYgIiTMMTbcjQwVYvGvUbxoQUc76GPmCOqptIvuJo_o81Il_MyBgXe_hhT238-jN3gP284LBBD1RdijwtRFlC-fu_5AtzZiQ831292igKajb1QjBXDa50kvMaXCFCIw\u0026h=Hsvhw3uKqa84v68X1zs7GhLA6ehsE0-9JSG4Uk_QsUw+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/1186a8ee-b157-417e-990e-df0a19a8433d?api-version=2021-06-01\u0026t=638694970851031467\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T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2s2xEeYNMURYXNCzYc\u0026s=n8B04NxxziolbrUa6z1oJ81hmJaSTwq1u0p2LM5WYefi4ZnvooxZud03LouthoVy01OyNmf_0x0sJvrIclK3aM_7c5D0I6eN9C1Rbeul0T7fO8JVkVa9lfbUkYKr-seLRBRZPCkVTYGa-aGnZoPhuoNUFn8ECuXoxausg9h4spd1-63vPk9Sjzw2nDSlvjltXknPgBEWEp1ceW0k_Jvkgg0KYgIiTMMTbcjQwVYvGvUbxoQUc76GPmCOqptIvuJo_o81Il_MyBgXe_hhT238-jN3gP284LBBD1RdijwtRFlC-fu_5AtzZiQ831292igKajb1QjBXDa50kvMaXCFCIw\u0026h=Hsvhw3uKqa84v68X1zs7GhLA6ehsE0-9JSG4Uk_QsUw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], + "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "9e965e48-7339-4821-bab0-248d7ac2e8c4" ], + "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "f83b2f8c-c434-47ab-a3e4-f58dda8e96db" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065816Z:f83b2f8c-c434-47ab-a3e4-f58dda8e96db" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 36813D35F1794257AAC920EBD5298B3F Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:15Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], + "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "49bac85a-7e99-4e04-9ae7-f02118ba8892" ], + "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "a07378b9-82b9-4f4f-9569-d9f4e4132476" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065816Z:a07378b9-82b9-4f4f-9569-d9f4e4132476" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 23AB21B1E5B64F3A939650DC316D6DD2 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:16Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4140" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 new file mode 100644 index 000000000000..af300aec2af8 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 @@ -0,0 +1,50 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzFrontDoor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzFrontDoor.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Set-AzFrontDoor' { + It 'UpdateExpanded' { + $FDName = 'testps-fd-' + (RandomString -allChars $false -len 4) + $tags = @{"tag1" = "value1"; "tag2" = "value2"} + $hostName = "$FDName.azurefd.net" + $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $FDName -ResourceGroupName $env.ResourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" + $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" -HealthProbeMethod "Head" -EnabledState "Disabled" + $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" + $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName + $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $FDName -ResourceGroupName $env.ResourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" + $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 -EnforceCertificateNameCheck "Enabled" + New-AzFrontDoor -Name $FDName -ResourceGroupName $env.ResourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags + + $newTags = @{"tag1" = "value3"; "tag2" = "value4"} + $healthProbeSetting1.HealthProbeMethod = "Get" + $healthProbeSetting1.EnabledState = "Enabled" + $backendPoolsSetting1.SendRecvTimeoutInSeconds = 20 + $updatedFrontDoor = Set-AzFrontDoor -Name $FDName -ResourceGroupName $env.ResourceGroupName -Tag $newTags -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 + $updatedFrontDoor.Tag["tag1"] | Should -Be "value3" + $updatedFrontDoor.Tag["tag2"] | Should -Be "value4" + $updatedFrontDoor.HealthProbeSetting[0].HealthProbeMethod | Should -Be "Get" + $updatedFrontDoor.HealthProbeSetting[0].EnabledState | Should -Be "Enabled" + $updatedFrontDoor.BackendPoolsSetting[0].SendRecvTimeoutInSeconds | Should -Be 20 + } + + It 'UpdateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json new file mode 100644 index 000000000000..d73052132f14 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json @@ -0,0 +1,173 @@ +{ + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "77" ], + "x-ms-client-request-id": [ "f3f32a72-87d6-40db-bb21-b483e8a735ba" ], + "CommandName": [ "Get-AzFrontDoorRulesEngine" ], + "FullCommandName": [ "Get-AzFrontDoorRulesEngine_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "c8b1e866-2a0d-4545-a88a-3d411c56ec19" ], + "x-ms-client-request-id": [ "f3f32a72-87d6-40db-bb21-b483e8a735ba" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "695d8091-8b2e-4a77-9677-b94ce53bf808" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065818Z:695d8091-8b2e-4a77-9677-b94ce53bf808" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CF1D0F1E133E47CFA260E28ABDFCC80E Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:17Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2256" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "78" ], + "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "CommandName": [ "Set-AzFrontDoorRulesEngine" ], + "FullCommandName": [ "Update-AzFrontDoorRulesEngine_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "27677b0f-90ac-4ea6-80a5-8b1b6f201678" ], + "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "9efd21be-4b5d-4961-aa33-37682f5c7486" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065819Z:9efd21be-4b5d-4961-aa33-37682f5c7486" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0A4808CF8AAE4C6A9DBBF1696A33B234 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:18Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2256" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2771" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "79bc661f-08b7-409d-8aa9-296d4c727714" ], + "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "cfd9ca85-300d-40d0-a6b5-76b4bb732ca6" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065820Z:cfd9ca85-300d-40d0-a6b5-76b4bb732ca6" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 06875B327F964052B327952CB60CE432 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:19Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2299" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "CommandName": [ "Set-AzFrontDoorRulesEngine" ], + "FullCommandName": [ "Update-AzFrontDoorRulesEngine_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "a5a4f2f6-c49d-4ff1-bc31-a40bd0fa4a10" ], + "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "5722c3e4-72ef-482d-9a6a-b713d06211bd" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065850Z:5722c3e4-72ef-482d-9a6a-b713d06211bd" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2E67D60DB3D14ED694DCF869AC68F3E8 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:50Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2299" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Tests.ps1 new file mode 100644 index 000000000000..f968eb85ad48 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzFrontDoorRulesEngine')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzFrontDoorRulesEngine.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Set-AzFrontDoorRulesEngine' { + It 'UpdateExpanded' { + $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Overwrite" -HeaderName "Strict-Transport-Security" -Value "max-age=63072000; includeSubDomains; preload" + $ruleEngine = Get-AzFrontDoorRulesEngine -ResourceGroupName $env.ResourceGroupName -FrontDoorName $env.FrontDoorName -Name $env.RuleEngineName + $engineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions + $ruleEngine.Rule[0].Action= $engineAction + Set-AzFrontDoorRulesEngine -ResourceGroupName $env.ResourceGroupName -FrontDoorName $env.FrontDoorName -Name $env.RuleEngineName -Rule $ruleEngine.Rule + } + + It 'UpdateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 new file mode 100644 index 000000000000..9a2946a3dbe8 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorRulesEngine')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzFrontDoorRulesEngine.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzFrontDoorRulesEngine' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityFrontDoorExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json new file mode 100644 index 000000000000..33548a93ac58 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json @@ -0,0 +1,173 @@ +{ + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f5fbabdb-d60d-4991-a931-d0ba90a349c9" ], + "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "bc1a60b8-f2ae-4a29-b7b9-4714be2ec125" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065853Z:bc1a60b8-f2ae-4a29-b7b9-4714be2ec125" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 86BE9715EBD34A53B79E763040786FC7 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:52Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [ ],\r\n \"ruleGroupOverrides\": [ ]\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2273" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "7a967199-7706-46fc-9013-9ab14515c598" ], + "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "6c5ade9d-7c69-4045-ae33-790e60afe4b3" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065854Z:6c5ade9d-7c69-4045-ae33-790e60afe4b3" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8CEFF6AF11394F78BD4A75A0047D4043 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:53Z" ], + "Date": [ "Wed, 11 Dec 2024 06:58:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1767" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "13137ac3-1648-47e7-bb19-6ed7af311fa5" ], + "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "9a16116b-18b0-452d-b49e-01e4004ab498" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065926Z:9a16116b-18b0-452d-b49e-01e4004ab498" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F8ACF8A6F429401FBD8CBEA7B1150C77 Ref B: TYO201100116049 Ref C: 2024-12-11T06:59:25Z" ], + "Date": [ "Wed, 11 Dec 2024 06:59:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1767" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "85" ], + "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "fec536f3-299b-446c-9266-abdeaaf71675" ], + "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "3853b50b-7ec0-42b8-8273-46544df3d6c1" ], + "x-ms-routing-request-id": [ "JAPANEAST:20241211T065926Z:3853b50b-7ec0-42b8-8273-46544df3d6c1" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 22950E8B375842E89BDE621368E5DA5D Ref B: TYO201100116049 Ref C: 2024-12-11T06:59:26Z" ], + "Date": [ "Wed, 11 Dec 2024 06:59:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1767" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 new file mode 100644 index 000000000000..04f8fb61500b --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 @@ -0,0 +1,44 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorWafPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzFrontDoorWafPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzFrontDoorWafPolicy' { + It 'UpdateExpanded' { + $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" + $customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action "Log" -Priority 2 + $updatedPolicy = Update-AzFrontDoorWafPolicy -Name $env.WafPolicyName -ResourceGroupName $env.ResourceGroupName -CustomRule $customRule2 -LogScrubbingSetting @{} + $updatedPolicy.CustomRule[0].Name | Should -Be "Rule2" + $updatedPolicy.CustomRule[0].RuleType | Should -Be "MatchRule" + $updatedPolicy.CustomRule[0].MatchCondition[0].MatchVariable | Should -Be "RequestHeader" + $updatedPolicy.CustomRule[0].MatchCondition[0].OperatorProperty | Should -Be "Contains" + $updatedPolicy.CustomRule[0].MatchCondition[0].Selector | Should -Be "UserAgent" + $updatedPolicy.CustomRule[0].MatchCondition[0].MatchValue | Should -Be "WINDOWS" + $updatedPolicy.CustomRule[0].MatchCondition[0].Transform | Should -Be "Uppercase" + $updatedPolicy.CustomRule[0].Action | Should -Be "Log" + $updatedPolicy.CustomRule[0].Priority | Should -Be 2 + } + + It 'UpdateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json new file mode 100644 index 000000000000..0eebd59a0801 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -0,0 +1,9 @@ +{ + "WafPolicyName": "testpsWafri3t", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "RuleEngineName": "engine101", + "ResourceGroupName": "testps-rg-10xh", + "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", + "FrontDoorName": "testps-fd-uzrs", + "location": "westus" +} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/loadEnv.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/loadEnv.ps1 new file mode 100644 index 000000000000..6a7c385c6b7d --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/loadEnv.ps1 @@ -0,0 +1,29 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/utils.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/utils.ps1 new file mode 100644 index 000000000000..0deeb8607a27 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/utils.ps1 @@ -0,0 +1,128 @@ +function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +function Start-TestSleep { + [CmdletBinding(DefaultParameterSetName = 'SleepBySeconds')] + param( + [parameter(Mandatory = $true, Position = 0, ParameterSetName = 'SleepBySeconds')] + [ValidateRange(0.0, 2147483.0)] + [double] $Seconds, + + [parameter(Mandatory = $true, ParameterSetName = 'SleepByMilliseconds')] + [ValidateRange('NonNegative')] + [Alias('ms')] + [int] $Milliseconds + ) + + if ($TestMode -ne 'playback') { + switch ($PSCmdlet.ParameterSetName) { + 'SleepBySeconds' { + Start-Sleep -Seconds $Seconds + } + 'SleepByMilliseconds' { + Start-Sleep -Milliseconds $Milliseconds + } + } + } +} + +$env = @{} +if ($UsePreviousConfigForRecord) { + $previousEnv = Get-Content (Join-Path $PSScriptRoot 'env.json') | ConvertFrom-Json + $previousEnv.psobject.properties | Foreach-Object { $env[$_.Name] = $_.Value } +} +# Add script method called AddWithCache to $env, when useCache is set true, it will try to get the value from the $env first. +# example: $val = $env.AddWithCache('key', $val, $true) +$env | Add-Member -Type ScriptMethod -Value { param( [string]$key, [object]$val, [bool]$useCache) if ($this.Contains($key) -and $useCache) { return $this[$key] } else { $this[$key] = $val; return $val } } -Name 'AddWithCache' +function setupEnv() { + Write-Host -ForegroundColor Green "Start to import module." + Import-Module -Name Az.Cdn + + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = $res.Tenant.Id + $env.location = 'westus' + $resourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 4) + Write-Host -ForegroundColor Green "Start to create test group $($resourceGroupName)" + New-AzResourceGroup -Name $resourceGroupName -Location $env.location + $env.Add("ResourceGroupName", $resourceGroupName) + + Write-Host -ForegroundColor Green "Start to create test frontdoor." + $frontDoorName = 'testps-fd-' + (RandomString -allChars $false -len 4) + $tags = @{"tag1" = "value1"; "tag2" = "value2"} + $hostName = "$frontDoorName.azurefd.net" + $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $frontDoorName -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" + $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" -HealthProbeMethod "Head" -EnabledState "Disabled" + $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" + $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName + $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $frontDoorName -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" + $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 -EnforceCertificateNameCheck "Enabled" + New-AzFrontDoor -Name $frontDoorName -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags + $env.Add("FrontDoorName", $frontDoorName) + + Write-Host -ForegroundColor Green "Successfully created frontdoor $($frontDoorName)." + + Write-Host -ForegroundColor Green "Start to create test rules engine." + + $conditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable "RequestHeader" -Operator "Equal" -MatchValue "forward" -Transform "Lowercase" -Selector "Rules-Engine-Route-Forward" -NegateCondition $false + $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" + $ruleEngineResponseHeaderAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions + $ruleEngineResponseHeaderRule = New-AzFrontDoorRulesEngineRuleObject -Name "rule101" -Priority 1 -Action $ruleEngineResponseHeaderAction -MatchCondition $conditions + + $ruleEngineForwardAction = New-AzFrontDoorRulesEngineActionObject -ForwardingProtocol "HttpsOnly" -BackendPoolName "backendpool1" -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -QueryParameterStripDirective "StripNone" -DynamicCompression "Disabled" -EnableCaching $true + $ruleEngineForwardRule = New-AzFrontDoorRulesEngineRuleObject -Name "rule102" -Priority 2 -Action $ruleEngineForwardAction -MatchCondition $conditions + + $redirectConditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable "RequestHeader" -Operator Equal -MatchValue "redirect" -Transform "Lowercase" -Selector "Rules-Engine-Route-Forward" -NegateCondition $false + $ruleEngineRedirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectProtocol "MatchRequest" -CustomHost "www.contoso.com" -RedirectType "Moved" + $ruleEngineRedirectRule = New-AzFrontDoorRulesEngineRuleObject -Name "rule103" -Priority 3 -Action $ruleEngineRedirectAction -MatchCondition $redirectConditions + + New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -Rule $ruleEngineResponseHeaderRule,$ruleEngineForwardRule,$ruleEngineRedirectRule -FrontDoorName $frontDoorName -Name "engine101" + $env.Add("RuleEngineName", "engine101") + + Write-Host -ForegroundColor Green "Successfully created rules engine engine101." + + Write-Host -ForegroundColor Green "Start to create test waf policy." + + $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) + $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" + $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action Block -Priority 2 + + # Create exclusion objects + $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" + $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInGroup" + $exclusionSet = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInSet" + + $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action "Log" -Exclusion $exclusionRule + $override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName "SQLI" -ManagedRuleOverride $ruleOverride -Exclusion $exclusionGroup + $managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type "DefaultRuleSet" -Version "1.0" -RuleGroupOverride $override1 -Exclusion $exclusionSet + $managedRule2 = New-AzFrontDoorWafManagedRuleObject -Type "BotProtection" -Version "preview-0.1" + + $logScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" + $logscrubbingSetting = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @($logScrubbingRule) + + New-AzFrontDoorWafPolicy -Name $wafName -ResourceGroupName $resourceGroupName -Sku "Premium_AzureFrontDoor" -Customrule $customRule1 -ManagedRule $managedRule1,$managedRule2 -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Disabled" -LogScrubbingSetting $logscrubbingSetting -JavascriptChallengeExpirationInMinutes 30 + + $env.Add("WafPolicyName", $wafName) + + + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + # For any resources you created for test, you should add it to $env here. + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} +function cleanupEnv() { + # Clean resources you create for testing + Write-Host -ForegroundColor Green "Clean resources created for testing." + Remove-AzResourceGroup -Name $env.ResourceGroupName +} + diff --git a/src/FrontDoor/FrontDoor.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/FrontDoor/FrontDoor.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/utils/Unprotect-SecureString.ps1 b/src/FrontDoor/FrontDoor.Autorest/utils/Unprotect-SecureString.ps1 new file mode 100644 index 000000000000..cb05b51a6220 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/utils/Unprotect-SecureString.ps1 @@ -0,0 +1,16 @@ +#This script converts securestring to plaintext + +param( + [Parameter(Mandatory, ValueFromPipeline)] + [System.Security.SecureString] + ${SecureString} +) + +$ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecureString) +try { + $plaintext = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr) +} finally { + [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr) +} + +return $plaintext \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index aa0bbc856a4a..9e6d3aa6da10 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -27,52 +27,152 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FrontDoor.Management.Sdk", "FrontDoor.Management.Sdk\FrontDoor.Management.Sdk.csproj", "{F7A742DC-C643-4E1E-A58A-783B39CE58F4}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{25FB9EDC-BEFD-4574-93A8-97BA6683AD63}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Debug|x64.ActiveCfg = Debug|Any CPU + {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Debug|x64.Build.0 = Debug|Any CPU + {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Debug|x86.ActiveCfg = Debug|Any CPU + {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Debug|x86.Build.0 = Debug|Any CPU {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Release|Any CPU.ActiveCfg = Release|Any CPU {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Release|Any CPU.Build.0 = Release|Any CPU + {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Release|x64.ActiveCfg = Release|Any CPU + {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Release|x64.Build.0 = Release|Any CPU + {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Release|x86.ActiveCfg = Release|Any CPU + {21F331EC-F4F6-4B7C-9FB9-E6FE9246053D}.Release|x86.Build.0 = Release|Any CPU {2E0191FB-6DCE-45C1-8916-C409895396DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2E0191FB-6DCE-45C1-8916-C409895396DB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2E0191FB-6DCE-45C1-8916-C409895396DB}.Debug|x64.ActiveCfg = Debug|Any CPU + {2E0191FB-6DCE-45C1-8916-C409895396DB}.Debug|x64.Build.0 = Debug|Any CPU + {2E0191FB-6DCE-45C1-8916-C409895396DB}.Debug|x86.ActiveCfg = Debug|Any CPU + {2E0191FB-6DCE-45C1-8916-C409895396DB}.Debug|x86.Build.0 = Debug|Any CPU {2E0191FB-6DCE-45C1-8916-C409895396DB}.Release|Any CPU.ActiveCfg = Release|Any CPU {2E0191FB-6DCE-45C1-8916-C409895396DB}.Release|Any CPU.Build.0 = Release|Any CPU + {2E0191FB-6DCE-45C1-8916-C409895396DB}.Release|x64.ActiveCfg = Release|Any CPU + {2E0191FB-6DCE-45C1-8916-C409895396DB}.Release|x64.Build.0 = Release|Any CPU + {2E0191FB-6DCE-45C1-8916-C409895396DB}.Release|x86.ActiveCfg = Release|Any CPU + {2E0191FB-6DCE-45C1-8916-C409895396DB}.Release|x86.Build.0 = Release|Any CPU {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Debug|x64.ActiveCfg = Debug|Any CPU + {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Debug|x64.Build.0 = Debug|Any CPU + {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Debug|x86.ActiveCfg = Debug|Any CPU + {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Debug|x86.Build.0 = Debug|Any CPU {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Release|Any CPU.ActiveCfg = Release|Any CPU {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Release|Any CPU.Build.0 = Release|Any CPU + {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Release|x64.ActiveCfg = Release|Any CPU + {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Release|x64.Build.0 = Release|Any CPU + {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Release|x86.ActiveCfg = Release|Any CPU + {B35A1F36-3572-4DD0-BA90-2AE6D3882801}.Release|x86.Build.0 = Release|Any CPU {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Debug|x64.ActiveCfg = Debug|Any CPU + {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Debug|x64.Build.0 = Debug|Any CPU + {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Debug|x86.ActiveCfg = Debug|Any CPU + {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Debug|x86.Build.0 = Debug|Any CPU {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Release|Any CPU.ActiveCfg = Release|Any CPU {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Release|Any CPU.Build.0 = Release|Any CPU + {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Release|x64.ActiveCfg = Release|Any CPU + {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Release|x64.Build.0 = Release|Any CPU + {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Release|x86.ActiveCfg = Release|Any CPU + {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E}.Release|x86.Build.0 = Release|Any CPU {671E6476-CDED-43A3-AB46-1338DAB61409}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {671E6476-CDED-43A3-AB46-1338DAB61409}.Debug|Any CPU.Build.0 = Debug|Any CPU + {671E6476-CDED-43A3-AB46-1338DAB61409}.Debug|x64.ActiveCfg = Debug|Any CPU + {671E6476-CDED-43A3-AB46-1338DAB61409}.Debug|x64.Build.0 = Debug|Any CPU + {671E6476-CDED-43A3-AB46-1338DAB61409}.Debug|x86.ActiveCfg = Debug|Any CPU + {671E6476-CDED-43A3-AB46-1338DAB61409}.Debug|x86.Build.0 = Debug|Any CPU {671E6476-CDED-43A3-AB46-1338DAB61409}.Release|Any CPU.ActiveCfg = Release|Any CPU {671E6476-CDED-43A3-AB46-1338DAB61409}.Release|Any CPU.Build.0 = Release|Any CPU + {671E6476-CDED-43A3-AB46-1338DAB61409}.Release|x64.ActiveCfg = Release|Any CPU + {671E6476-CDED-43A3-AB46-1338DAB61409}.Release|x64.Build.0 = Release|Any CPU + {671E6476-CDED-43A3-AB46-1338DAB61409}.Release|x86.ActiveCfg = Release|Any CPU + {671E6476-CDED-43A3-AB46-1338DAB61409}.Release|x86.Build.0 = Release|Any CPU {31599FB7-7929-4E92-834F-A23C603A9116}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {31599FB7-7929-4E92-834F-A23C603A9116}.Debug|Any CPU.Build.0 = Debug|Any CPU + {31599FB7-7929-4E92-834F-A23C603A9116}.Debug|x64.ActiveCfg = Debug|Any CPU + {31599FB7-7929-4E92-834F-A23C603A9116}.Debug|x64.Build.0 = Debug|Any CPU + {31599FB7-7929-4E92-834F-A23C603A9116}.Debug|x86.ActiveCfg = Debug|Any CPU + {31599FB7-7929-4E92-834F-A23C603A9116}.Debug|x86.Build.0 = Debug|Any CPU {31599FB7-7929-4E92-834F-A23C603A9116}.Release|Any CPU.ActiveCfg = Release|Any CPU {31599FB7-7929-4E92-834F-A23C603A9116}.Release|Any CPU.Build.0 = Release|Any CPU + {31599FB7-7929-4E92-834F-A23C603A9116}.Release|x64.ActiveCfg = Release|Any CPU + {31599FB7-7929-4E92-834F-A23C603A9116}.Release|x64.Build.0 = Release|Any CPU + {31599FB7-7929-4E92-834F-A23C603A9116}.Release|x86.ActiveCfg = Release|Any CPU + {31599FB7-7929-4E92-834F-A23C603A9116}.Release|x86.Build.0 = Release|Any CPU {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|x64.ActiveCfg = Debug|Any CPU + {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|x64.Build.0 = Debug|Any CPU + {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|x86.ActiveCfg = Debug|Any CPU + {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|x86.Build.0 = Debug|Any CPU {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|Any CPU.ActiveCfg = Release|Any CPU {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|Any CPU.Build.0 = Release|Any CPU + {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|x64.ActiveCfg = Release|Any CPU + {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|x64.Build.0 = Release|Any CPU + {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|x86.ActiveCfg = Release|Any CPU + {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|x86.Build.0 = Release|Any CPU {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|x64.ActiveCfg = Debug|Any CPU + {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|x64.Build.0 = Debug|Any CPU + {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|x86.ActiveCfg = Debug|Any CPU + {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|x86.Build.0 = Debug|Any CPU {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Release|Any CPU.ActiveCfg = Release|Any CPU {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Release|Any CPU.Build.0 = Release|Any CPU + {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Release|x64.ActiveCfg = Release|Any CPU + {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Release|x64.Build.0 = Release|Any CPU + {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Release|x86.ActiveCfg = Release|Any CPU + {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Release|x86.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Debug|x64.ActiveCfg = Debug|Any CPU + {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Debug|x64.Build.0 = Debug|Any CPU + {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Debug|x86.ActiveCfg = Debug|Any CPU + {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Debug|x86.Build.0 = Debug|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|Any CPU.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|Any CPU.Build.0 = Release|Any CPU + {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.ActiveCfg = Release|Any CPU + {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU + {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU + {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|x64.ActiveCfg = Debug|Any CPU + {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|x64.Build.0 = Debug|Any CPU + {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|x86.ActiveCfg = Debug|Any CPU + {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|x86.Build.0 = Debug|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|Any CPU.ActiveCfg = Release|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|Any CPU.Build.0 = Release|Any CPU + {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x64.ActiveCfg = Release|Any CPU + {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x64.Build.0 = Release|Any CPU + {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.ActiveCfg = Release|Any CPU + {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.Build.0 = Release|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|Any CPU.Build.0 = Debug|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|x64.ActiveCfg = Debug|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|x64.Build.0 = Debug|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|x86.ActiveCfg = Debug|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|x86.Build.0 = Debug|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|Any CPU.ActiveCfg = Release|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|Any CPU.Build.0 = Release|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|x64.ActiveCfg = Release|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|x64.Build.0 = Release|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|x86.ActiveCfg = Release|Any CPU + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -86,6 +186,7 @@ Global {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} {4C8972CB-B1DD-4E1A-8766-F039AF530062} = {4A3D22CE-940D-4656-A344-7603474FB7A8} {CEE04FC4-EA9E-49F5-8E65-1BF927763971} = {4A3D22CE-940D-4656-A344-7603474FB7A8} + {25FB9EDC-BEFD-4574-93A8-97BA6683AD63} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index b45de051acaa..7bb4ea9e15ea 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 4/30/2025 +# Generated on: 2025/8/20 # @{ @@ -56,7 +56,8 @@ DotNetFrameworkVersion = '4.7.2' RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.2.0'; }) # Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'Microsoft.Azure.PowerShell.FrontDoor.Management.Sdk.dll' +RequiredAssemblies = 'Microsoft.Azure.PowerShell.FrontDoor.Management.Sdk.dll', + 'FrontDoor.Autorest/bin/Az.FrontDoor.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() @@ -65,13 +66,46 @@ RequiredAssemblies = 'Microsoft.Azure.PowerShell.FrontDoor.Management.Sdk.dll' # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -# FormatsToProcess = @() +FormatsToProcess = 'FrontDoor.Autorest/Az.FrontDoor.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll') +NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll', + 'FrontDoor.Autorest/Az.FrontDoor.psm1') # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = @() +FunctionsToExport = 'Disable-AzFrontDoorCustomDomainHttps', + 'Enable-AzFrontDoorCustomDomainHttps', 'Get-AzFrontDoor', + 'Get-AzFrontDoorFrontendEndpoint', 'Get-AzFrontDoorRulesEngine', + 'Get-AzFrontDoorWafManagedRuleSetDefinition', + 'Get-AzFrontDoorWafPolicy', 'New-AzFrontDoor', + 'New-AzFrontDoorBackendObject', 'New-AzFrontDoorBackendPoolObject', + 'New-AzFrontDoorBackendPoolsSettingObject', + 'New-AzFrontDoorCacheConfigurationObject', + 'New-AzFrontDoorForwardingConfigurationObject', + 'New-AzFrontDoorFrontendEndpointObject', + 'New-AzFrontDoorHeaderActionObject', + 'New-AzFrontDoorHealthProbeSettingObject', + 'New-AzFrontDoorLoadBalancingSettingObject', + 'New-AzFrontDoorPolicySettingsObject', + 'New-AzFrontDoorRedirectConfigurationObject', + 'New-AzFrontDoorRoutingRuleObject', 'New-AzFrontDoorRulesEngine', + 'New-AzFrontDoorRulesEngineActionObject', + 'New-AzFrontDoorRulesEngineMatchConditionObject', + 'New-AzFrontDoorRulesEngineRuleObject', + 'New-AzFrontDoorWafCustomRuleGroupByVariableObject', + 'New-AzFrontDoorWafCustomRuleObject', + 'New-AzFrontDoorWafLogScrubbingRuleObject', + 'New-AzFrontDoorWafLogScrubbingSettingObject', + 'New-AzFrontDoorWafManagedRuleExclusionObject', + 'New-AzFrontDoorWafManagedRuleObject', + 'New-AzFrontDoorWafManagedRuleOverrideObject', + 'New-AzFrontDoorWafMatchConditionObject', + 'New-AzFrontDoorWafPolicy', + 'New-AzFrontDoorWafRuleGroupOverrideObject', 'Remove-AzFrontDoor', + 'Remove-AzFrontDoorContent', 'Remove-AzFrontDoorRulesEngine', + 'Remove-AzFrontDoorWafPolicy', 'Set-AzFrontDoor', + 'Update-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy', + 'Set-AzFrontDoorRulesEngine' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Disable-AzFrontDoorCustomDomainHttps', @@ -104,10 +138,10 @@ CmdletsToExport = 'Disable-AzFrontDoorCustomDomainHttps', 'Set-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy' # Variables to export from this module -# VariablesToExport = @() +VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = @() +AliasesToExport = 'Set-AzFrontDoorRulesEngine' # DSC resources to export from this module # DscResourcesToExport = @() @@ -124,7 +158,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','FrontDoor' + Tags = 'Azure', 'ResourceManager', 'ARM', 'FrontDoor' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -149,7 +183,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md index 61c2d0a52041..97ce48c0775c 100644 --- a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md @@ -12,113 +12,122 @@ The topics in this section document the Azure PowerShell cmdlets for Azure Front ## Az.FrontDoor Cmdlets ### [Disable-AzFrontDoorCustomDomainHttps](Disable-AzFrontDoorCustomDomainHttps.md) -Disable HTTPS for a custom domain +Disables a frontendEndpoint for HTTPS traffic ### [Enable-AzFrontDoorCustomDomainHttps](Enable-AzFrontDoorCustomDomainHttps.md) -Enable HTTPS for a custom domain using Front Door managed certificate or using own certificate from Azure Key Vault. +Enables a frontendEndpoint for HTTPS traffic ### [Get-AzFrontDoor](Get-AzFrontDoor.md) -Get Front Door load balancer +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. ### [Get-AzFrontDoorFrontendEndpoint](Get-AzFrontDoorFrontendEndpoint.md) -Get a front door frontend endpoint. +Gets a Frontend endpoint with the specified name within the specified Front Door. ### [Get-AzFrontDoorRulesEngine](Get-AzFrontDoorRulesEngine.md) -Get Rules Engine configurations. +Gets a Rules Engine Configuration with the specified name within the specified Front Door. ### [Get-AzFrontDoorWafManagedRuleSetDefinition](Get-AzFrontDoorWafManagedRuleSetDefinition.md) -Get WAF managed rule set definitions +Lists all available managed rule sets. ### [Get-AzFrontDoorWafPolicy](Get-AzFrontDoorWafPolicy.md) -Get WAF policy +Retrieve protection policy with specified name within a resource group. ### [New-AzFrontDoor](New-AzFrontDoor.md) -Create a new Azure Front Door load balancer +Create a new Front Door with a Front Door name under the specified subscription and resource group. ### [New-AzFrontDoorBackendObject](New-AzFrontDoorBackendObject.md) -Create a PSBackend object +Create an in-memory object for Backend. ### [New-AzFrontDoorBackendPoolObject](New-AzFrontDoorBackendPoolObject.md) -Create a PSBackendPool object for Front Door creation +Create an in-memory object for BackendPool. ### [New-AzFrontDoorBackendPoolsSettingObject](New-AzFrontDoorBackendPoolsSettingObject.md) -Create a PSBackendPoolsSetting object for Front Door creation. +Create an in-memory object for BackendPoolsSettings. + +### [New-AzFrontDoorCacheConfigurationObject](New-AzFrontDoorCacheConfigurationObject.md) +Create an in-memory object for CacheConfiguration. + +### [New-AzFrontDoorForwardingConfigurationObject](New-AzFrontDoorForwardingConfigurationObject.md) +Create an in-memory object for ForwardingConfiguration. ### [New-AzFrontDoorFrontendEndpointObject](New-AzFrontDoorFrontendEndpointObject.md) -Create a PSFrontendEndpoint Object for Front Door creation +Create an in-memory object for FrontendEndpoint. ### [New-AzFrontDoorHeaderActionObject](New-AzFrontDoorHeaderActionObject.md) -Create PSHeaderAction object. +Create an in-memory object for HeaderAction. ### [New-AzFrontDoorHealthProbeSettingObject](New-AzFrontDoorHealthProbeSettingObject.md) -Create a PSHealthProbeSetting object for Front Door creation +Create an in-memory object for HealthProbeSettingsModel. ### [New-AzFrontDoorLoadBalancingSettingObject](New-AzFrontDoorLoadBalancingSettingObject.md) -Create a PSLoadBalancingSetting object for Front Door creation +Create an in-memory object for LoadBalancingSettingsModel. + +### [New-AzFrontDoorPolicySettingsObject](New-AzFrontDoorPolicySettingsObject.md) +Create an in-memory object for PolicySettings. + +### [New-AzFrontDoorRedirectConfigurationObject](New-AzFrontDoorRedirectConfigurationObject.md) +Create an in-memory object for RedirectConfiguration. ### [New-AzFrontDoorRoutingRuleObject](New-AzFrontDoorRoutingRuleObject.md) -Create a PSRoutingRuleObject for Front Door creation +Create an in-memory object for RoutingRule. ### [New-AzFrontDoorRulesEngine](New-AzFrontDoorRulesEngine.md) -Create a new rules engine configuration for a specified front door. +Create a new Rules Engine Configuration with the specified name within the specified Front Door. ### [New-AzFrontDoorRulesEngineActionObject](New-AzFrontDoorRulesEngineActionObject.md) -Create a PSRulesEngineAction object for creating a rules engine rule. +Create an in-memory object for RulesEngineAction. ### [New-AzFrontDoorRulesEngineMatchConditionObject](New-AzFrontDoorRulesEngineMatchConditionObject.md) -Create a PSRulesEngineMatchCondition object for creating a rules engine rule. +Create an in-memory object for RulesEngineMatchCondition. ### [New-AzFrontDoorRulesEngineRuleObject](New-AzFrontDoorRulesEngineRuleObject.md) -Create a PSRulesEngineRule object for Rules Engine creation. +Create an in-memory object for RulesEngineRule. ### [New-AzFrontDoorWafCustomRuleGroupByVariableObject](New-AzFrontDoorWafCustomRuleGroupByVariableObject.md) -Create CustomRuleGroupByVariable object for custom rule object +Create an in-memory object for GroupByVariable. ### [New-AzFrontDoorWafCustomRuleObject](New-AzFrontDoorWafCustomRuleObject.md) -Create CustomRule Object for WAF policy creation +Create an in-memory object for CustomRule. ### [New-AzFrontDoorWafLogScrubbingRuleObject](New-AzFrontDoorWafLogScrubbingRuleObject.md) -Create LogScrubbingRule object for LogScrubbingSetting +Create an in-memory object for WebApplicationFirewallScrubbingRules. ### [New-AzFrontDoorWafLogScrubbingSettingObject](New-AzFrontDoorWafLogScrubbingSettingObject.md) -Create LogScrubbingSetting object for Waf policy object +Create an in-memory object for PolicySettingsLogScrubbing. ### [New-AzFrontDoorWafManagedRuleExclusionObject](New-AzFrontDoorWafManagedRuleExclusionObject.md) -Create managed rule exclusion object for WAF managed rule sets, groups, or rules. +Create an in-memory object for ManagedRuleExclusion. ### [New-AzFrontDoorWafManagedRuleObject](New-AzFrontDoorWafManagedRuleObject.md) -Create ManagedRule Object for WAF policy creation +Create an in-memory object for ManagedRuleSet. ### [New-AzFrontDoorWafManagedRuleOverrideObject](New-AzFrontDoorWafManagedRuleOverrideObject.md) -Create managed rule override object +Create an in-memory object for ManagedRuleOverride. ### [New-AzFrontDoorWafMatchConditionObject](New-AzFrontDoorWafMatchConditionObject.md) -Create MatchCondition Object for WAF policy creation +Create an in-memory object for MatchCondition. ### [New-AzFrontDoorWafPolicy](New-AzFrontDoorWafPolicy.md) -Create WAF policy +Create policy with specified rule set name within a resource group. ### [New-AzFrontDoorWafRuleGroupOverrideObject](New-AzFrontDoorWafRuleGroupOverrideObject.md) -Create RuleGroupOverride Object for WAF policy creation +Create an in-memory object for ManagedRuleGroupOverride. ### [Remove-AzFrontDoor](Remove-AzFrontDoor.md) -Remove Front Door load balancer +Deletes an existing Front Door with the specified parameters. ### [Remove-AzFrontDoorContent](Remove-AzFrontDoorContent.md) -Remove contents in Front Door +Removes a content from Front Door. ### [Remove-AzFrontDoorRulesEngine](Remove-AzFrontDoorRulesEngine.md) -Remove Rules Engine from Front Door +Deletes an existing Rules Engine Configuration with the specified parameters. ### [Remove-AzFrontDoorWafPolicy](Remove-AzFrontDoorWafPolicy.md) -Remove WAF policy +Deletes Policy ### [Set-AzFrontDoor](Set-AzFrontDoor.md) -Update a Front Door load balancer +Update a new Front Door with a Front Door name under the specified subscription and resource group. ### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) -Update a Rules Engine. - -### [Update-AzFrontDoorWafPolicy](Update-AzFrontDoorWafPolicy.md) -Update WAF policy +Update a new Rules Engine Configuration with the specified name within the specified Front Door. diff --git a/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md index 09f877e3bfea..2fc932a64f53 100644 --- a/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/disable-azfrontdoorcustomdomainhttps schema: 2.0.0 @@ -8,127 +8,82 @@ schema: 2.0.0 # Disable-AzFrontDoorCustomDomainHttps ## SYNOPSIS -Disable HTTPS for a custom domain +Disables a frontendEndpoint for HTTPS traffic ## SYNTAX -### ByFieldsParameterSet (Default) +### Disable (Default) ``` -Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName -FrontDoorName - -FrontendEndpointName [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Disable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] ``` -### ByResourceIdParameterSet +### DisableViaIdentityFrontDoor ``` -Disable-AzFrontDoorCustomDomainHttps -ResourceId [-DefaultProfile ] [-WhatIf] +Disable-AzFrontDoorCustomDomainHttps -FrontendEndpointName -FrontDoorInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### ByObjectParameterSet +### DisableViaIdentity ``` -Disable-AzFrontDoorCustomDomainHttps -InputObject - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Disable-AzFrontDoorCustomDomainHttps -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -The **Disable-AzFrontDoorCustomDomainHttps** disables HTTPS for a custom domain. +Disables a frontendEndpoint for HTTPS traffic ## EXAMPLES -### Example 1: Disable HTTPS for a custom domain with FrontDoorName and ResourceGroupName. +### Example 1: {{ Add title here }} ```powershell -Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" +{{ Add code here }} ``` ```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabling -CustomHttpsProvisioningSubstate : DeletingCertificate -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with FrontDoorName as "frontdoor1" and ResourceGroupName as "resourcegroup1". +{{ Add description here }} -### Example 2: Disable HTTPS for a custom domain with PSFrontendEndpoint object. +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Disable-AzFrontDoorCustomDomainHttps -InputObject $frontendEndpointObj +{{ Add code here }} ``` ```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabling -CustomHttpsProvisioningSubstate : DeletingCertificate -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Disable HTTPS for a custom domain with PSFrontendEndpoint object. +{{ Add description here }} -### Example 3: Disable HTTPS for a custom domain with ResourceId. -```powershell -Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -``` +## PARAMETERS -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabling -CustomHttpsProvisioningSubstate : DeletingCertificate -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` +### -AsJob +Run the command as a job -Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with ResourceId as $resourceId. +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: -## PARAMETERS +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -137,12 +92,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DisableViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -FrontDoorName -The name of the Front Door. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: Disable Aliases: Required: True @@ -153,11 +123,11 @@ Accept wildcard characters: False ``` ### -FrontendEndpointName -Frontend endpoint name. +Name of the Frontend endpoint which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: Disable, DisableViaIdentityFrontDoor Aliases: Required: True @@ -168,11 +138,11 @@ Accept wildcard characters: False ``` ### -InputObject -The Frontend endpoint object to update. +Identity Parameter ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint -Parameter Sets: ByObjectParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DisableViaIdentity Aliases: Required: True @@ -182,12 +152,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName -The resource group to which the Front Door belongs. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: Disable Aliases: Required: True @@ -197,18 +197,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the Front Door endpoint to disable https +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet +Parameter Sets: Disable Aliases: -Required: True +Required: False Position: Named -Default value: None -Accept pipeline input: True (ByPropertyName) +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False Accept wildcard characters: False ``` @@ -228,7 +229,8 @@ Accept wildcard characters: False ``` ### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. +Shows what would happen if the cmdlet runs. +The cmdlet is not run. ```yaml Type: System.Management.Automation.SwitchParameter @@ -247,11 +249,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### System.String +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint +### System.Boolean ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md index 0cec12180c8a..7509223ef4d4 100644 --- a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps schema: 2.0.0 @@ -8,212 +8,119 @@ schema: 2.0.0 # Enable-AzFrontDoorCustomDomainHttps ## SYNOPSIS -Enable HTTPS for a custom domain using Front Door managed certificate or using own certificate from Azure Key Vault. +Enables a frontendEndpoint for HTTPS traffic ## SYNTAX -### ByFieldsParameterSet (Default) +### EnableExpanded (Default) ``` -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName -FrontDoorName - -FrontendEndpointName [-MinimumTlsVersion ] [-DefaultProfile ] +Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName [-SubscriptionId ] [-MinimumTlsVersion ] [-SecretName ] + [-SecretVersion ] [-VaultId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### ByFieldsWithVaultParameterSet +### Enable ``` -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName -FrontDoorName - -FrontendEndpointName -VaultId -SecretName [-SecretVersion ] - [-MinimumTlsVersion ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] ``` -### ByResourceIdParameterSet +### EnableViaJsonFilePath ``` -Enable-AzFrontDoorCustomDomainHttps -ResourceId [-MinimumTlsVersion ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### ByResourceIdWithVaultParameterSet +### EnableViaJsonString ``` -Enable-AzFrontDoorCustomDomainHttps -ResourceId -VaultId -SecretName - [-SecretVersion ] [-MinimumTlsVersion ] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName + -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### ByObjectParameterSet +### EnableViaIdentityFrontDoor ``` -Enable-AzFrontDoorCustomDomainHttps -InputObject [-MinimumTlsVersion ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Enable-AzFrontDoorCustomDomainHttps -FrontendEndpointName -FrontDoorInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] ``` -### ByObjectWithVaultParameterSet +### EnableViaIdentityFrontDoorExpanded ``` -Enable-AzFrontDoorCustomDomainHttps -InputObject -VaultId -SecretName - [-SecretVersion ] [-MinimumTlsVersion ] [-DefaultProfile ] [-WhatIf] +Enable-AzFrontDoorCustomDomainHttps -FrontendEndpointName -FrontDoorInputObject + [-MinimumTlsVersion ] [-SecretName ] [-SecretVersion ] [-VaultId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### EnableViaIdentity +``` +Enable-AzFrontDoorCustomDomainHttps -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### EnableViaIdentityExpanded +``` +Enable-AzFrontDoorCustomDomainHttps -InputObject [-MinimumTlsVersion ] + [-SecretName ] [-SecretVersion ] [-VaultId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -The **Enable-AzFrontDoorCustomDomainHttps** enables HTTPS for a custom domain. +Enables a frontendEndpoint for HTTPS traffic ## EXAMPLES -### Example 1: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using Front Door managed certificate. +### Example 1: {{ Add title here }} ```powershell -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" +{{ Add code here }} ``` ```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.2 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using Front Door managed certificate. - -### Example 2: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the specific version. -```powershell -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : AzureKeyVault -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.0 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the specific version. - -### Example 3: Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. -```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps -``` +{{ Add description here }} -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.2 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. - -### Example 4: Enable HTTPS for a custom domain with resource id using Front Door managed certificate. +### Example 2: {{ Add title here }} ```powershell -Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +{{ Add code here }} ``` ```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.2 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" with resource id $resourceId using Front Door managed certificate. - -### Example 5: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. -```powershell -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : AzureKeyVault -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.0 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. +{{ Add description here }} ## PARAMETERS +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -222,12 +129,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: EnableViaIdentityFrontDoor, EnableViaIdentityFrontDoorExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -FrontDoorName -The name of the Front Door. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet, ByFieldsWithVaultParameterSet +Parameter Sets: EnableExpanded, Enable, EnableViaJsonFilePath, EnableViaJsonString Aliases: Required: True @@ -238,11 +160,11 @@ Accept wildcard characters: False ``` ### -FrontendEndpointName -Frontend endpoint name. +Name of the Frontend endpoint which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet, ByFieldsWithVaultParameterSet +Parameter Sets: EnableExpanded, Enable, EnableViaJsonFilePath, EnableViaJsonString, EnableViaIdentityFrontDoor, EnableViaIdentityFrontDoorExpanded Aliases: Required: True @@ -253,11 +175,11 @@ Accept wildcard characters: False ``` ### -InputObject -The Frontend endpoint object to update. +Identity Parameter ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint -Parameter Sets: ByObjectParameterSet, ByObjectWithVaultParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: EnableViaIdentity, EnableViaIdentityExpanded Aliases: Required: True @@ -267,11 +189,56 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Enable operation + +```yaml +Type: System.String +Parameter Sets: EnableViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Enable operation + +```yaml +Type: System.String +Parameter Sets: EnableViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MinimumTlsVersion The minimum TLS version required from the clients to establish an SSL handshake with Front Door. ```yaml Type: System.String +Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: 1.2 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -282,33 +249,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -The resource group to which the Front Door belongs. +### -PassThru +Returns true when the command succeeds ```yaml -Type: System.String -Parameter Sets: ByFieldsParameterSet, ByFieldsWithVaultParameterSet +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the Front Door endpoint to enable https +### -ResourceGroupName +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithVaultParameterSet +Parameter Sets: EnableExpanded, Enable, EnableViaJsonFilePath, EnableViaJsonString Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -317,10 +284,10 @@ The name of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: ByFieldsWithVaultParameterSet, ByResourceIdWithVaultParameterSet, ByObjectWithVaultParameterSet +Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -328,12 +295,11 @@ Accept wildcard characters: False ``` ### -SecretVersion -The version of the Key Vault secret representing the full certificate PFX. -If not specified, the 'Latest' version will always been used and the deployed certificate will be automatically rotated to the latest version when a newer version of the certificate is available. +The version of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: ByFieldsWithVaultParameterSet, ByResourceIdWithVaultParameterSet, ByObjectWithVaultParameterSet +Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded Aliases: Required: False @@ -343,15 +309,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: EnableExpanded, Enable, EnableViaJsonFilePath, EnableViaJsonString +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultId -The Key Vault id containing the SSL certificate +Resource ID. ```yaml Type: System.String -Parameter Sets: ByFieldsWithVaultParameterSet, ByResourceIdWithVaultParameterSet, ByObjectWithVaultParameterSet +Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -374,7 +356,8 @@ Accept wildcard characters: False ``` ### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. +Shows what would happen if the cmdlet runs. +The cmdlet is not run. ```yaml Type: System.Management.Automation.SwitchParameter @@ -393,10 +376,12 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### System.String +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint +### System.Boolean + ## NOTES ## RELATED LINKS diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md index e6be1e10dd98..2e21fdfc8466 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoor schema: 2.0.0 @@ -8,141 +8,71 @@ schema: 2.0.0 # Get-AzFrontDoor ## SYNOPSIS -Get Front Door load balancer +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. ## SYNTAX +### List (Default) ``` -Get-AzFrontDoor [-ResourceGroupName ] [-Name ] [-DefaultProfile ] +Get-AzFrontDoor [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzFrontDoor -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzFrontDoor -InputObject [-DefaultProfile ] [] ``` ## DESCRIPTION -The **Get-AzFrontDoor** cmdletGet gets all existing Front Doors (Classic Tier only) in the current subscription that matches provided information. +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. ## EXAMPLES -### Example 1: Get all FrontDoors in the current subscription. +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoor +{{ Add code here }} ``` ```output -FriendlyName : frontdoor1 -FrontDoorId : {guid} -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid1}/providers/M - icrosoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 - -FriendlyName : frontdoor1 -FrontDoorId : {guid} -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid2}/providers/M - icrosoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -Get all FrontDoors in the current subscription. - -### Example 2: Get all FrontDoors in resource group "rg1" in the current subscription. -```powershell -Get-AzFrontDoor -ResourceGroupName "rg1" +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -```output -FriendlyName : frontdoor1 -FrontDoorId : {guid} -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M - icrosoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 - -FriendlyName : frontdoor2 -FrontDoorId : {guid} -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M - icrosoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -Get all FrontDoors in resource group "rg1" in the current subscription. - -### Example 3: Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription. +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1" +{{ Add code here }} ``` ```output -FriendlyName : frontdoor1 -FrontDoorId : {guid} -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M - icrosoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription. +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -151,15 +81,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Name -Front Door name. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: (All) -Aliases: +Parameter Sets: Get +Aliases: FrontDoorName -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -167,35 +112,47 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get, List1 Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: List, Get, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS -### None +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor ## NOTES ## RELATED LINKS - -[New-AzFrontDoor](./New-AzFrontDoor.md) -[Set-AzFrontDoor](./Set-AzFrontDoor.md) -[Remove-AzFrontDoor](./Remove-AzFrontDoor.md) diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md index 5b3fe1e57004..76fe214fd8f7 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint schema: 2.0.0 @@ -8,117 +8,73 @@ schema: 2.0.0 # Get-AzFrontDoorFrontendEndpoint ## SYNOPSIS -Get a front door frontend endpoint. +Gets a Frontend endpoint with the specified name within the specified Front Door. ## SYNTAX -### ByFieldsParameterSet (Default) +### List (Default) ``` -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName -FrontDoorName [-Name ] - [-DefaultProfile ] [] +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] + [] ``` -### ByObjectParameterSet +### GetViaIdentityFrontDoor ``` -Get-AzFrontDoorFrontendEndpoint [-Name ] -FrontDoorObject - [-DefaultProfile ] [] +Get-AzFrontDoorFrontendEndpoint -Name -FrontDoorInputObject + [-DefaultProfile ] [] ``` -### ByResourceIdParameterSet +### GetViaIdentity ``` -Get-AzFrontDoorFrontendEndpoint -ResourceId [-DefaultProfile ] +Get-AzFrontDoorFrontendEndpoint -InputObject [-DefaultProfile ] [] ``` ## DESCRIPTION -The **Get-AzFrontDoorFrontendEndpoint** cmdlet gets all existing frontend endpoints in the current Front Door resource that matches provided information. +Gets a Frontend endpoint with the specified name within the specified Front Door. ## EXAMPLES -### Example 1: Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" +{{ Add code here }} ``` ```output -HostName : frontdoor1.azurefd.net -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net -Name : frontdoor1-azurefd-net -Type : Microsoft.Network/frontdoors/frontendendpoints - -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". - -### Example 2: Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" -Name "frontdoor1-azurefd-net" +{{ Add code here }} ``` ```output -HostName : frontdoor1.azurefd.net -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net -Name : frontdoor1-azurefd-net -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -127,12 +83,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -FrontDoorName -Front Door name. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: List, Get Aliases: Required: True @@ -142,12 +113,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FrontDoorObject -The FrontDoor object. +### -InputObject +Identity Parameter ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor -Parameter Sets: ByObjectParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentity Aliases: Required: True @@ -158,14 +129,14 @@ Accept wildcard characters: False ``` ### -Name -Frontend endpoint name. +Name of the Frontend endpoint which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet, ByObjectParameterSet -Aliases: +Parameter Sets: Get, GetViaIdentityFrontDoor +Aliases: FrontendEndpointName -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -173,11 +144,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: List, Get Aliases: Required: True @@ -187,18 +158,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the Front Door +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. ```yaml -Type: System.String -Parameter Sets: ByResourceIdParameterSet +Type: System.String[] +Parameter Sets: List, Get Aliases: -Required: True +Required: False Position: Named -Default value: None -Accept pipeline input: True (ByPropertyName) +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False Accept wildcard characters: False ``` @@ -207,11 +179,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md index fcdc441ceefa..70a45f1514b2 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorrulesengine schema: 2.0.0 @@ -8,75 +8,72 @@ schema: 2.0.0 # Get-AzFrontDoorRulesEngine ## SYNOPSIS -Get Rules Engine configurations. +Gets a Rules Engine Configuration with the specified name within the specified Front Door. ## SYNTAX +### List (Default) ``` -Get-AzFrontDoorRulesEngine -ResourceGroupName -FrontDoorName [-Name ] - [-DefaultProfile ] [] +Get-AzFrontDoorRulesEngine -FrontDoorName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] ``` -## DESCRIPTION -The **Get-AzFrontDoorRulesEngine** cmdlet gets a specific rules engine configuration or gets all rules engine configurations associated with a Front Door. - -## EXAMPLES +### Get +``` +Get-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] + [] +``` -### Example 1 -```powershell -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name rulesengine3 +### GetViaIdentityFrontDoor +``` +Get-AzFrontDoorRulesEngine -Name -FrontDoorInputObject + [-DefaultProfile ] [] ``` -```output -Name RulesEngineRules ----- ---------------- -rulesEngine3 {rules1} +### GetViaIdentity +``` +Get-AzFrontDoorRulesEngine -InputObject [-DefaultProfile ] + [] ``` -Get specific rules engine configuration. +## DESCRIPTION +Gets a Rules Engine Configuration with the specified name within the specified Front Door. -### Example 2 +## EXAMPLES +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName +{{ Add code here }} ``` ```output -Name RulesEngineRules ----- ---------------- -rulesEngine1 {Rule1} -rulesEngine2 {Rule1} -rulesEngine3 {rules1} +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get all rules engine configurations in a front door. - -### Example 3 +{{ Add description here }} +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistent +{{ Add code here }} ``` ```output -Get-AzFrontDoorRulesEngine : Rules Engine with name 'nonexistent' in Front Door 'frontDoorName' is not found. -At line:1 char:1 -+ Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontD ... -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+ CategoryInfo : CloseError: (:) [Get-AzFrontDoorRulesEngine], PSArgumentException -+ FullyQualifiedErrorId : Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Expected output when getting a nonexistent rules engine. +{{ Add description here }} ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -85,12 +82,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -FrontDoorName -Front Door name. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: List, Get Aliases: Required: True @@ -100,15 +112,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Name -Rules engine name. +Name of the Rules Engine which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: (All) -Aliases: +Parameter Sets: Get, GetViaIdentityFrontDoor +Aliases: RulesEngineName -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -116,11 +143,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name that the Front Door will be created in. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: List, Get Aliases: Required: True @@ -130,16 +157,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: List, Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS -### None +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md index 72bdd032c540..10106263afed 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafmanagedrulesetdefinition schema: 2.0.0 @@ -8,44 +8,52 @@ schema: 2.0.0 # Get-AzFrontDoorWafManagedRuleSetDefinition ## SYNOPSIS -Get WAF managed rule set definitions +Lists all available managed rule sets. ## SYNTAX ``` -Get-AzFrontDoorWafManagedRuleSetDefinition [-DefaultProfile ] [] +Get-AzFrontDoorWafManagedRuleSetDefinition [-SubscriptionId ] [-DefaultProfile ] + [] ``` ## DESCRIPTION -Gets the list of WAF managed rule set definitions to use as reference +Lists all available managed rule sets. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorWafManagedRuleSetDefinition +{{ Add code here }} ``` ```output -ProvisioningState RuleSetType RuleSetVersion RuleGroups ------------------ ----------- -------------- ---------- -Succeeded DefaultRuleSet 1.0 {PROTOCOL-ATTACK, LFI, RFI, RCE...} -Succeeded Microsoft_BotManagerRuleSet 1.0 {BadBots, GoodBots, UnknownBots} -Succeeded DefaultRuleSet preview-0.1 {LFI, RFI, RCE, PHP...} -Succeeded BotProtection preview-0.1 {KnownBadBots} +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get WAF managed rule set definitions. +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -54,21 +62,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleSetDefinition +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafManagedRuleObject](./New-AzFrontDoorWafManagedRuleObject.md) -[New-AzFrontDoorWafManagedRuleOverrideObject](./New-AzFrontDoorWafManagedRuleOverrideObject.md) -[New-AzFrontDoorWafRuleGroupOverrideObject](./New-AzFrontDoorWafRuleGroupOverrideObject.md) diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md index 65accb136744..47d42ea4188e 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafpolicy schema: 2.0.0 @@ -8,57 +8,71 @@ schema: 2.0.0 # Get-AzFrontDoorWafPolicy ## SYNOPSIS -Get WAF policy +Retrieve protection policy with specified name within a resource group. ## SYNTAX +### List1 (Default) ``` -Get-AzFrontDoorWafPolicy -ResourceGroupName [-Name ] - [-DefaultProfile ] [] +Get-AzFrontDoorWafPolicy [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### List +``` +Get-AzFrontDoorWafPolicy -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzFrontDoorWafPolicy -InputObject [-DefaultProfile ] + [] ``` ## DESCRIPTION -The **Get-AzFrontDoorWafPolicy** cmdletGet gets WAF policy in a resource group under the current subscription +Retrieve protection policy with specified name within a resource group. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName +{{ Add code here }} ``` ```output -Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl ----- ---------- ------------------ ----------------------------- ----------- -{policyName} Prevention Enabled 403 https://www.bing.com/ +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get a WAF policy called $policyName in $resourceGroupName +{{ Add description here }} -### Example 2 +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName +{{ Add code here }} ``` ```output -Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl ----- ---------- ------------------ ----------------------------- ----------- -{policyName} Prevention Disabled -{policyName} Detection Enabled 403 https://www.bing.com/ -{policyName} Detection Enabled 404 +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get all WAF policy in $resourceGroupName +{{ Add description here }} ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -67,15 +81,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Name -FireWallPolicy name. +The name of the Web Application Firewall Policy. ```yaml Type: System.String -Parameter Sets: (All) -Aliases: +Parameter Sets: Get +Aliases: PolicyName -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -83,11 +112,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get, List Aliases: Required: True @@ -97,21 +126,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: List1, Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS -### None +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafPolicy](./New-AzFrontDoorWafPolicy.md) -[Update-AzFrontDoorWafPolicy](./Update-AzFrontDoorWafPolicy.md) -[Remove-AzFrontDoorWafPolicy](./Remove-AzFrontDoorWafPolicy.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md index a6b55938564c..8147ba6e9add 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor schema: 2.0.0 @@ -8,70 +8,87 @@ schema: 2.0.0 # New-AzFrontDoor ## SYNOPSIS -Create a new Azure Front Door load balancer +Create a new Front Door with a Front Door name under the specified subscription and resource group. ## SYNTAX -### ByFieldsWithBackendPoolsSettingParameterSet (Default) +### CreateExpanded (Default) ``` -New-AzFrontDoor -ResourceGroupName -Name -RoutingRule - -BackendPool -FrontendEndpoint - -LoadBalancingSetting -HealthProbeSetting - [-Tag ] [-EnabledState ] [-BackendPoolsSetting ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +New-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-BackendPool ] [-BackendPoolsSetting ] [-DisableCertificateNameCheck] + [-EnabledState ] [-FriendlyName ] [-FrontendEndpoint ] + [-HealthProbeSetting ] [-LoadBalancingSetting ] + [-RoutingRule ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` -### ByFieldsWithCertificateNameCheckParameterSet +### CreateViaJsonFilePath ``` -New-AzFrontDoor -ResourceGroupName -Name -RoutingRule - -BackendPool -FrontendEndpoint - -LoadBalancingSetting -HealthProbeSetting - [-Tag ] [-EnabledState ] [-DisableCertificateNameCheck] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +New-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-DisableCertificateNameCheck] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-DisableCertificateNameCheck] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -The **New-AzFrontDoor** cmdlet creates a new Azure Front Door load balancer in the specified resource group under current subscription +Create a new Front Door with a Front Door name under the specified subscription and resource group. ## EXAMPLES -### Example 1: Create a Front Door based on given parameters. +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +{{ Add code here }} ``` ```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/rg1/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoors +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a Front Door based on given parameters. +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS -### -BackendPool -Backendpools available to routing rule. +### -AsJob +Run the command as a job ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool[] +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackendPool +Backend pools available to routing rules. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False Position: Named Default value: None Accept pipeline input: False @@ -82,8 +99,8 @@ Accept wildcard characters: False Settings for all backendPools ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting -Parameter Sets: ByFieldsWithBackendPoolsSettingParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings +Parameter Sets: CreateExpanded Aliases: Required: False @@ -94,12 +111,13 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -109,11 +127,10 @@ Accept wildcard characters: False ``` ### -DisableCertificateNameCheck -Whether to disable certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: ByFieldsWithCertificateNameCheckParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -124,14 +141,28 @@ Accept wildcard characters: False ``` ### -EnabledState -EnabledState of the Front Door load balancer. -Default value is Enabled +Operational status of the Front Door load balancer. +Permitted values are 'Enabled' or 'Disabled' ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FriendlyName +A friendly name for the frontDoor + +```yaml +Type: System.String +Parameter Sets: CreateExpanded Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -141,14 +172,14 @@ Accept wildcard characters: False ``` ### -FrontendEndpoint -Frontend endpoints available to routing rule. +Frontend endpoints available to routing rules. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] +Parameter Sets: CreateExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -159,8 +190,38 @@ Accept wildcard characters: False Health probe settings associated with this Front Door instance. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString Aliases: Required: True @@ -174,11 +235,11 @@ Accept wildcard characters: False Load balancing settings associated with this Front Door instance. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] +Parameter Sets: CreateExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -186,12 +247,12 @@ Accept wildcard characters: False ``` ### -Name -Front Door name. +Name of the Front Door which is globally unique. ```yaml Type: System.String Parameter Sets: (All) -Aliases: +Aliases: FrontDoorName Required: True Position: Named @@ -200,8 +261,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName -The resource group name that the Front Door will be created in. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String @@ -216,26 +292,42 @@ Accept wildcard characters: False ``` ### -RoutingRule -Routing rules associated with this FrontDoor +Routing rules associated with this Front Door. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] +Parameter Sets: CreateExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag -The tags associate with the FrontDoor. +Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -281,19 +373,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + ## NOTES ## RELATED LINKS - -[Get-AzFrontDoor](./Get-AzFrontDoor.md) -[Set-AzFrontDoor](./Set-AzFrontDoor.md) -[Remove-AzFrontDoor](./Remove-AzFrontDoor.md) -[New-AzFrontDoorRoutingRuleObject](./New-AzFrontDoorRoutingRuleObject.md) -[New-AzFrontDoorHealthProbeSettingObject](./New-AzFrontDoorHealthProbeSettingObject.md) -[New-AzFrontDoorLoadBalancingSettingObject](./New-AzFrontDoorLoadBalancingSettingObject.md) -[New-AzFrontDoorFrontendEndpointObject](./New-AzFrontDoorFrontendEndpointObject.md) -[New-AzFrontDoorBackendPoolObject](./New-AzFrontDoorBackendPoolObject.md) \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md index bb7f37529721..7615e4bc2463 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md @@ -1,57 +1,62 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorbackendobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject schema: 2.0.0 --- # New-AzFrontDoorBackendObject ## SYNOPSIS -Create a PSBackend object +Create an in-memory object for Backend. ## SYNTAX ``` -New-AzFrontDoorBackendObject -Address [-HttpPort ] [-HttpsPort ] [-Priority ] - [-Weight ] [-EnabledState ] [-BackendHostHeader ] [-PrivateLinkAlias ] - [-PrivateLinkResourceId ] [-PrivateLinkLocation ] [-PrivateLinkApprovalMessage ] - [-DefaultProfile ] [] +New-AzFrontDoorBackendObject [-Address ] [-BackendHostHeader ] [-EnabledState ] + [-HttpPort ] [-HttpsPort ] [-Priority ] [-PrivateLinkAlias ] + [-PrivateLinkApprovalMessage ] [-PrivateLinkLocation ] [-PrivateLinkResourceId ] + [-Weight ] [] ``` ## DESCRIPTION -Create a PSBackend object for Front Door creation +Create an in-memory object for Backend. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" +{{ Add code here }} ``` ```output -Address : contoso1.azurewebsites.net -HttpPort : 80 -HttpsPort : 443 -Priority : 1 -Weight : 50 -BackendHostHeader : -EnabledState : Enabled +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a PSBackend object for Front Door creation +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS ### -Address -Location of the backend (IP address or FQDN) +Location of the backend (IP address or FQDN). ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -59,8 +64,8 @@ Accept wildcard characters: False ``` ### -BackendHostHeader -The value to use as the host header sent to the backend. -Default value is the backend address. +The value to use as the host header sent to the backend. +If blank or unspecified, this defaults to the incoming host. ```yaml Type: System.String @@ -74,30 +79,14 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -EnabledState -Whether to enable use of this backend. -Default value is Enabled +Whether to enable use of this backend. +Permitted values are 'Enabled' or 'Disabled'. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -109,7 +98,6 @@ Accept wildcard characters: False ### -HttpPort The HTTP TCP port number. Must be between 1 and 65535. -Default value is 80. ```yaml Type: System.Int32 @@ -126,7 +114,6 @@ Accept wildcard characters: False ### -HttpsPort The HTTPS TCP port number. Must be between 1 and 65535. -Default value is 443 ```yaml Type: System.Int32 @@ -142,8 +129,7 @@ Accept wildcard characters: False ### -Priority Priority to use for load balancing. -Must be between 1 and 5. -Default value is 1 +Higher priorities will not be used for load balancing if any lower priority backend is healthy. ```yaml Type: System.Int32 @@ -158,7 +144,8 @@ Accept wildcard characters: False ``` ### -PrivateLinkAlias -The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' +The Alias of the Private Link resource. +Populating this optional field indicates that this backend is 'Private'. ```yaml Type: System.String @@ -173,7 +160,7 @@ Accept wildcard characters: False ``` ### -PrivateLinkApprovalMessage -A custom message to be included in the approval request to connect to the Private Link +A custom message to be included in the approval request to connect to the Private Link. ```yaml Type: System.String @@ -188,7 +175,8 @@ Accept wildcard characters: False ``` ### -PrivateLinkLocation -The Location of Private Link resource. Location is required when PrivateLinkResourceId is set +The location of the Private Link resource. +Required only if 'privateLinkResourceId' is populated. ```yaml Type: System.String @@ -203,7 +191,8 @@ Accept wildcard characters: False ``` ### -PrivateLinkResourceId -The Resource ID of the Private Link. Populating this optional field indicates that this backend is 'Private' +The Resource Id of the Private Link resource. +Populating this optional field indicates that this backend is 'Private'. ```yaml Type: System.String @@ -219,8 +208,6 @@ Accept wildcard characters: False ### -Weight Weight of this endpoint for load balancing purposes. -Must be between 1 and 1000. -Default value is 50 ```yaml Type: System.Int32 @@ -239,14 +226,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSBackend +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend ## NOTES ## RELATED LINKS - -[New-AzFrontDoorBackendPoolObject](./New-AzFrontDoorBackendPoolObject.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md index 1ba74bb4509b..e3c98f22b18f 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md @@ -1,47 +1,49 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorbackendpoolobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject schema: 2.0.0 --- # New-AzFrontDoorBackendPoolObject ## SYNOPSIS -Create a PSBackendPool object for Front Door creation +Create an in-memory object for BackendPool. ## SYNTAX ``` -New-AzFrontDoorBackendPoolObject -ResourceGroupName -Name -FrontDoorName - -Backend -LoadBalancingSettingsName -HealthProbeSettingsName - [-DefaultProfile ] [] +New-AzFrontDoorBackendPoolObject [-Backend ] [-HealthProbeSettingsName ] + [-LoadBalancingSettingsName ] [-Name ] [-Id ] [-FrontDoorName ] + [-ResourceGroupName ] [] ``` ## DESCRIPTION -Create a PSBackendPool object for Front Door creation +Create an in-memory object for BackendPool. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" +{{ Add code here }} ``` ```output -Backends : {Microsoft.Azure.Commands.FrontDoor.Models.PSBackend} -LoadBalancingSettingRef : /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers - /Microsoft.Network/frontDoors/frontdoor5/LoadBalancingSettings/loadBalancingSetting1 -HealthProbeSettingRef : /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers - /Microsoft.Network/frontDoors/frontdoor5/HealthProbeSettings/healthProbeSetting1 -EnabledState : Enabled -ResourceState : -Id : -Name : backendpool1 -Type : +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a PSBackendPool object for Front Door creation +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS @@ -49,24 +51,24 @@ Create a PSBackendPool object for Front Door creation The set of backends for this pool. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSBackend[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +### -FrontDoorName +Resource ID. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.String Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: Required: False Position: Named @@ -75,30 +77,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FrontDoorName -The name of the Front Door to which this routing rule belongs. +### -HealthProbeSettingsName +Resource ID. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -HealthProbeSettingsName -The name of the health probe settings for this backend pool +### -Id +Resource ID. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -106,14 +108,14 @@ Accept wildcard characters: False ``` ### -LoadBalancingSettingsName -The name of the load balancing settings for this backend pool +Resource ID. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -121,14 +123,14 @@ Accept wildcard characters: False ``` ### -Name -BackendPool name. +Resource name. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -136,14 +138,14 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name that the RoutingRule will be created in. +Resource ID. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -155,16 +157,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool ## NOTES ## RELATED LINKS - -[New-AzFrontDoor](./New-AzFrontDoor.md) -[Set-AzFrontDoor](./Set-AzFrontDoor.md) -[New-AzFrontDoorBackendObject](./New-AzFrontDoorBackendObject.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md index 59b47e1f474f..5b8700f2a230 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md @@ -1,79 +1,59 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorbackendpoolssettingobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject schema: 2.0.0 --- # New-AzFrontDoorBackendPoolsSettingObject ## SYNOPSIS -Create a PSBackendPoolsSetting object for Front Door creation. +Create an in-memory object for BackendPoolsSettings. ## SYNTAX ``` -New-AzFrontDoorBackendPoolsSettingObject [-EnforceCertificateNameCheck ] - [-SendRecvTimeoutInSeconds ] [-DefaultProfile ] [] +New-AzFrontDoorBackendPoolsSettingObject [-EnforceCertificateNameCheck ] + [-SendRecvTimeoutInSeconds ] [] ``` ## DESCRIPTION -The **New-AzFrontDoorBackendPoolsSettingObject** cmdlet creates a new PSBackendPoolsSettings object for Front Door creation. +Create an in-memory object for BackendPoolsSettings. ## EXAMPLES -### Example 1: Create BackendPoolsSettings object using defaults +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorBackendPoolsSettingObject +{{ Add code here }} ``` ```output -EnforceCertificateNameCheck : Enabled -SendRecvTimeoutInSeconds : 30 -Id : -Name : -Type : +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -### Example 2: Create BackendPoolsSettings object with user specified values +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled +{{ Add code here }} ``` ```output -EnforceCertificateNameCheck : Enabled -SendRecvTimeoutInSeconds : 60 -Id : -Name : -Type : +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +{{ Add description here }} -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` +## PARAMETERS ### -EnforceCertificateNameCheck Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -83,7 +63,8 @@ Accept wildcard characters: False ``` ### -SendRecvTimeoutInSeconds -Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. +Send and receive timeout on forwarding request to the backend. +When timeout is reached, the request fails and returns. ```yaml Type: System.Int32 @@ -102,11 +83,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorCacheConfigurationObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorCacheConfigurationObject.md new file mode 100644 index 000000000000..e65b66a3e5bc --- /dev/null +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorCacheConfigurationObject.md @@ -0,0 +1,123 @@ +--- +external help file: Az.FrontDoor-help.xml +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorcacheconfigurationobject +schema: 2.0.0 +--- + +# New-AzFrontDoorCacheConfigurationObject + +## SYNOPSIS +Create an in-memory object for CacheConfiguration. + +## SYNTAX + +``` +New-AzFrontDoorCacheConfigurationObject [-CacheDuration ] [-DynamicCompression ] + [-QueryParameter ] [-QueryParameterStripDirective ] + [] +``` + +## DESCRIPTION +Create an in-memory object for CacheConfiguration. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CacheDuration +The duration for which the content needs to be cached. +Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). +HTTP requires the value to be no more than a year. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DynamicCompression +Whether to use dynamic compression for cached content. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueryParameter +query parameters to include or exclude (comma separated). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueryParameterStripDirective +Treatment of URL query terms when forming the cache key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration + +## NOTES + +## RELATED LINKS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorForwardingConfigurationObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorForwardingConfigurationObject.md new file mode 100644 index 000000000000..43a94d05ef79 --- /dev/null +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorForwardingConfigurationObject.md @@ -0,0 +1,122 @@ +--- +external help file: Az.FrontDoor-help.xml +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorforwardingconfigurationobject +schema: 2.0.0 +--- + +# New-AzFrontDoorForwardingConfigurationObject + +## SYNOPSIS +Create an in-memory object for ForwardingConfiguration. + +## SYNTAX + +``` +New-AzFrontDoorForwardingConfigurationObject [-BackendPoolId ] + [-CacheConfiguration ] [-CustomForwardingPath ] [-ForwardingProtocol ] + [] +``` + +## DESCRIPTION +Create an in-memory object for ForwardingConfiguration. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -BackendPoolId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CacheConfiguration +The caching configuration associated with this rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomForwardingPath +A custom path used to rewrite resource paths matched by this rule. +Leave empty to use incoming path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardingProtocol +Protocol this rule will use when forwarding traffic to backends. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration + +## NOTES + +## RELATED LINKS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md index c63fca58b01b..a787ab0c7831 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md @@ -1,62 +1,56 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorfrontendendpointobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject schema: 2.0.0 --- # New-AzFrontDoorFrontendEndpointObject ## SYNOPSIS -Create a PSFrontendEndpoint Object for Front Door creation +Create an in-memory object for FrontendEndpoint. ## SYNTAX ``` -New-AzFrontDoorFrontendEndpointObject -Name -HostName - [-SessionAffinityEnabledState ] [-SessionAffinityTtlInSeconds ] - [-WebApplicationFirewallPolicyLink ] [-CertificateSource ] [-MinimumTlsVersion ] - [-ProtocolType ] [-Vault ] [-SecretName ] [-SecretVersion ] - [-CertificateType ] [-DefaultProfile ] [] +New-AzFrontDoorFrontendEndpointObject [-CertificateSource ] [-MinimumTlsVersion ] + [-CertificateType ] [-HostName ] [-SecretName ] [-SecretVersion ] + [-Name ] [-SessionAffinityEnabledState ] [-SessionAffinityTtlInSeconds ] + [-Vault ] [-WebApplicationFirewallPolicyLinkId ] [-Id ] [-ProtocolType ] + [] ``` ## DESCRIPTION -Create a PSFrontendEndpoint Object for Front Door creation +Create an in-memory object for FrontendEndpoint. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName "frontendendpoint1" +{{ Add code here }} ``` ```output -HostName : frontendendpoint1 -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : -CustomHttpsProvisioningSubstate : -CertificateSource : -MinimumTlsVersion : 1.2 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : -Id : -Name : frontendendpoint1 -Type : -ProtocolType : ServerNameIndication +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a PSFrontendEndpoint Object for Front Door creation. +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS ### -CertificateSource -The source of the SSL certificate +Defines the source of the SSL certificate. ```yaml Type: System.String @@ -71,7 +65,7 @@ Accept wildcard characters: False ``` ### -CertificateType -the type of the certificate used for secure connections to a frontendEndpoint +Defines the type of the certificate used for secure connections to a frontendEndpoint. ```yaml Type: System.String @@ -85,13 +79,14 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +### -HostName +The host name of the frontendEndpoint. +Must be a domain name. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.String Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: Required: False Position: Named @@ -100,16 +95,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -HostName -The host name of the frontendEndpoint. -Must be a domain name. +### -Id +Resource ID. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -132,14 +126,14 @@ Accept wildcard characters: False ``` ### -Name -Frontend endpoint name. +Resource name. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -162,7 +156,7 @@ Accept wildcard characters: False ``` ### -SecretName -The name of the Key Vault secret representing the full certificate PFX +The name of the Key Vault secret representing the full certificate PFX. ```yaml Type: System.String @@ -177,7 +171,7 @@ Accept wildcard characters: False ``` ### -SecretVersion -The version of the Key Vault secret representing the full certificate PFX +The version of the Key Vault secret representing the full certificate PFX. ```yaml Type: System.String @@ -193,13 +187,12 @@ Accept wildcard characters: False ### -SessionAffinityEnabledState Whether to allow session affinity on this host. -Default value is Disabled +Valid options are 'Enabled' or 'Disabled'. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -209,8 +202,9 @@ Accept wildcard characters: False ``` ### -SessionAffinityTtlInSeconds -The TTL to use in seconds for session affinity, if applicable. -Default value is 0 +UNUSED. +This field will be ignored. +The TTL to use in seconds for session affinity, if applicable. ```yaml Type: System.Int32 @@ -225,7 +219,7 @@ Accept wildcard characters: False ``` ### -Vault -The Key Vault containing the SSL certificate +Resource ID. ```yaml Type: System.String @@ -239,13 +233,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -WebApplicationFirewallPolicyLink -The resource id of Web Application Firewall policy for each host (if applicable) +### -WebApplicationFirewallPolicyLinkId +Resource ID. ```yaml Type: System.String Parameter Sets: (All) -Aliases: +Aliases: WebApplicationFirewallPolicyLink Required: False Position: Named @@ -259,13 +253,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint + ## NOTES ## RELATED LINKS - -[New-AzFrontDoor](./New-AzFrontDoor.md) -[Set-AzFrontDoor](./Set-AzFrontDoor.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md index f3ab17e13e4c..3fb03a76d810 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md @@ -1,63 +1,58 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorheaderactionobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorheaderactionobject schema: 2.0.0 --- # New-AzFrontDoorHeaderActionObject ## SYNOPSIS -Create PSHeaderAction object. +Create an in-memory object for HeaderAction. ## SYNTAX ``` -New-AzFrontDoorHeaderActionObject -HeaderName -HeaderActionType [-Value ] - [-DefaultProfile ] [] +New-AzFrontDoorHeaderActionObject -HeaderActionType -HeaderName [-Value ] + [] ``` ## DESCRIPTION -Creates PSHeaderAction object for the creation of PSRulesEngineAction object. +Create an in-memory object for HeaderAction. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append +{{ Add code here }} ``` ```output -HeaderName HeaderActionType Value ----------- ---------------- ----- -headername Append +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +{{ Add description here }} -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` +{{ Add description here }} + +## PARAMETERS + ### -HeaderActionType Which type of manipulation to apply to the header. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderActionType +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Append, Delete, Overwrite Required: True Position: Named @@ -102,11 +97,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md index f886a32f7c69..e5a052d62594 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md @@ -1,58 +1,60 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorhealthprobesettingobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject schema: 2.0.0 --- # New-AzFrontDoorHealthProbeSettingObject ## SYNOPSIS -Create a PSHealthProbeSetting object for Front Door creation +Create an in-memory object for HealthProbeSettingsModel. ## SYNTAX ``` -New-AzFrontDoorHealthProbeSettingObject -Name [-Path ] [-Protocol ] - [-IntervalInSeconds ] [-HealthProbeMethod ] [-EnabledState ] - [-DefaultProfile ] [] +New-AzFrontDoorHealthProbeSettingObject [-EnabledState ] [-HealthProbeMethod ] + [-IntervalInSeconds ] [-Name ] [-Path ] [-Protocol ] [-Id ] + [] ``` ## DESCRIPTION -Create a PSHealthProbeSetting object for Front Door creation +Create an in-memory object for HealthProbeSettingsModel. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" +{{ Add code here }} ``` ```output -Path : / -Protocol : Http -IntervalInSeconds : 30 -ResourceState : -HealthProbeMethod : Head -EnabledState : Enabled -Id : -Name : healthProbeSetting1 -Type : +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Note: HealthProbeMethod setting is not case sensitive. +{{ Add description here }} -Create a PSHealthProbeSetting object for Front Door creation +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +### -EnabledState +Whether to enable health probes to be made against backends defined under backendPools. +Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.String Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: Required: False Position: Named @@ -61,14 +63,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -EnabledState -Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. +### -HealthProbeMethod +Configures which HTTP method to use to probe the backends defined under backendPools. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -77,8 +78,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -HealthProbeMethod -Configures which HTTP method to use to probe the backends defined under backendPools. +### -Id +Resource ID. ```yaml Type: System.String @@ -94,7 +95,6 @@ Accept wildcard characters: False ### -IntervalInSeconds The number of seconds between health probes. -Default value is 30 ```yaml Type: System.Int32 @@ -109,14 +109,14 @@ Accept wildcard characters: False ``` ### -Name -Health probe setting name. +Resource name. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -125,7 +125,7 @@ Accept wildcard characters: False ### -Path The path to use for the health probe. -Default is / +Default is /. ```yaml Type: System.String @@ -140,14 +140,12 @@ Accept wildcard characters: False ``` ### -Protocol -Protocol scheme to use for this probe -Default value is HTTP +Protocol scheme to use for this probe. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSProtocol +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Http, Https Required: False Position: Named @@ -161,13 +159,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel + ## NOTES ## RELATED LINKS - -[New-AzFrontDoor](./New-AzFrontDoor.md) -[Set-AzFrontDoor](./Set-AzFrontDoor.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md index e36805379c9a..3ee5a831b033 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md @@ -1,50 +1,54 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorloadbalancingsettingobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject schema: 2.0.0 --- # New-AzFrontDoorLoadBalancingSettingObject ## SYNOPSIS -Create a PSLoadBalancingSetting object for Front Door creation +Create an in-memory object for LoadBalancingSettingsModel. ## SYNTAX ``` -New-AzFrontDoorLoadBalancingSettingObject -Name [-SampleSize ] - [-SuccessfulSamplesRequired ] [-AdditionalLatencyInMilliseconds ] - [-DefaultProfile ] [] +New-AzFrontDoorLoadBalancingSettingObject [-AdditionalLatencyInMilliseconds ] [-Name ] + [-SampleSize ] [-SuccessfulSamplesRequired ] [-Id ] + [] ``` ## DESCRIPTION -Create a PSLoadBalancingSetting object for Front Door creation +Create an in-memory object for LoadBalancingSettingsModel. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" +{{ Add code here }} ``` ```output -SampleSize : 4 -AdditionalLatencyMilliseconds : 0 -SuccessfulSamplesRequired : 2 -ResourceState : -Id : -Name : loadbalancingsetting1 -Type : +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a PSLoadBalancingSetting object for Front Door creation +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS ### -AdditionalLatencyInMilliseconds -The additional latency in milliseconds for probes to fall into the lowest latency bucket. -Default value is 0 +The additional latency in milliseconds for probes to fall into the lowest latency bucket. ```yaml Type: System.Int32 @@ -58,13 +62,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +### -Id +Resource ID. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.String Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: Required: False Position: Named @@ -74,14 +78,14 @@ Accept wildcard characters: False ``` ### -Name -health probe setting name. +Resource name. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -90,7 +94,6 @@ Accept wildcard characters: False ### -SampleSize The number of samples to consider for load balancing decisions. -Default value is 4 ```yaml Type: System.Int32 @@ -105,8 +108,7 @@ Accept wildcard characters: False ``` ### -SuccessfulSamplesRequired -The number of samples within the sample period that must succeed -Default value is 2 +The number of samples within the sample period that must succeed. ```yaml Type: System.Int32 @@ -125,15 +127,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel ## NOTES ## RELATED LINKS - -[New-AzFrontDoor](./New-AzFrontDoor.md) -[Set-AzFrontDoor](./Set-AzFrontDoor.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md new file mode 100644 index 000000000000..73d1b0ed16c0 --- /dev/null +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md @@ -0,0 +1,187 @@ +--- +external help file: Az.FrontDoor-help.xml +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorpolicysettingsobject +schema: 2.0.0 +--- + +# New-AzFrontDoorPolicySettingsObject + +## SYNOPSIS +Create an in-memory object for PolicySettings. + +## SYNTAX + +``` +New-AzFrontDoorPolicySettingsObject [-CustomBlockResponseBody ] + [-CustomBlockResponseStatusCode ] [-EnabledState ] + [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] + [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] + [] +``` + +## DESCRIPTION +Create an in-memory object for PolicySettings. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CustomBlockResponseBody +If the action type is block, customer can override the response body. +The body must be specified in base64 encoding. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomBlockResponseStatusCode +If the action type is block, customer can override the response status code. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnabledState +Describes if the policy is in enabled or disabled state. +Defaults to Enabled if not specified. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JavascriptChallengeExpirationInMinutes +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogScrubbingSetting +Defines rules that scrub sensitive fields in the Web Application Firewall logs. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Mode +Describes if it is in detection mode or prevention mode at policy level. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectUrl +If action type is redirect, this field represents redirect URL for the client. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestBodyCheck +Describes if policy managed rules will inspect the request body content. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings + +## NOTES + +## RELATED LINKS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRedirectConfigurationObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRedirectConfigurationObject.md new file mode 100644 index 000000000000..460295c732c3 --- /dev/null +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRedirectConfigurationObject.md @@ -0,0 +1,159 @@ +--- +external help file: Az.FrontDoor-help.xml +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorredirectconfigurationobject +schema: 2.0.0 +--- + +# New-AzFrontDoorRedirectConfigurationObject + +## SYNOPSIS +Create an in-memory object for RedirectConfiguration. + +## SYNTAX + +``` +New-AzFrontDoorRedirectConfigurationObject [-CustomFragment ] [-CustomHost ] + [-CustomPath ] [-CustomQueryString ] [-RedirectProtocol ] [-RedirectType ] + [] +``` + +## DESCRIPTION +Create an in-memory object for RedirectConfiguration. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CustomFragment +Fragment to add to the redirect URL. +Fragment is the part of the URL that comes after #. +Do not include the #. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomHost +Host to redirect. +Leave empty to use the incoming host as the destination host. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomPath +The full path to redirect. +Path cannot be empty and must start with /. +Leave empty to use the incoming path as destination path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomQueryString +The set of query strings to be placed in the redirect URL. +Setting this value would replace any existing query string; leave empty to preserve the incoming query string. +Query string must be in \=\ format. +The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectProtocol +The protocol of the destination to where the traffic is redirected. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RedirectType +The redirect type the rule will use when redirecting traffic. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration + +## NOTES + +## RELATED LINKS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md index 1702cda9ea12..d1e5ea09f207 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md @@ -1,96 +1,65 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorroutingruleobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject schema: 2.0.0 --- # New-AzFrontDoorRoutingRuleObject ## SYNOPSIS -Create a PSRoutingRuleObject for Front Door creation +Create an in-memory object for RoutingRule. ## SYNTAX -### ByFieldsWithForwardingParameterSet (Default) ``` -New-AzFrontDoorRoutingRuleObject -ResourceGroupName -FrontDoorName -Name - -FrontendEndpointName -BackendPoolName [-AcceptedProtocol ] - [-PatternToMatch ] [-CustomForwardingPath ] [-ForwardingProtocol ] - [-EnableCaching ] [-QueryParameterStripDirective ] [-DynamicCompression ] - [-EnabledState ] [-RulesEngineName ] [-DefaultProfile ] +New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-EnabledState ] + [-FrontendEndpointName ] [-Name ] [-ResourceGroupName ] [-FrontDoorName ] + [-PatternsToMatch ] [-RouteConfiguration ] [-RuleEngineName ] + [-WebApplicationFirewallPolicyLinkId ] [-Id ] [-BackendPoolName ] + [-CacheDuration ] [-DynamicCompression ] [-QueryParameter ] + [-QueryParameterStripDirective ] [-CustomForwardingPath ] [-ForwardingProtocol ] + [-EnableCaching ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] + [-CustomQueryString ] [-RedirectProtocol ] [-RedirectType ] [] ``` -### ByFieldsWithRedirectParameterSet -``` -New-AzFrontDoorRoutingRuleObject -ResourceGroupName -FrontDoorName -Name - -FrontendEndpointName [-AcceptedProtocol ] [-PatternToMatch ] - [-RedirectType ] [-RedirectProtocol ] [-CustomHost ] [-CustomPath ] - [-CustomFragment ] [-CustomQueryString ] [-EnabledState ] - [-RulesEngineName ] [-DefaultProfile ] [] -``` - ## DESCRIPTION -Create a PSRoutingRuleObject for Front Door creation +Create an in-memory object for RoutingRule. ## EXAMPLES -### Example 1: Create a PSRoutingRuleObject for Front Door creation with a forwarding rule +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" +{{ Add code here }} ``` ```output -FrontendEndpointIds : {/subscriptions/{subid}/resourceGroups/{rgname}/pro - viders/Microsoft.Network/frontDoors/{frontdoorname}/FrontendEndpoints/frontendEndpoint1} -AcceptedProtocols : {Http, Https} -PatternsToMatch : {/*} -HealthProbeSettings : -RouteConfiguration : Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration -EnabledState : Enabled -ResourceState : -Id : -Name : {routingRuleName} -Type : +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -### Example 2: Create a PSRoutingRuleObject for Front Door creation with a redirect rule +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -$customHost = "www.contoso.com" -$customPath = "/images/contoso.png" -$queryString = "field1=value1&field2=value2" -$destinationFragment = "section-header-2" -New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath -CustomQueryString $queryString -CustomFragment $destinationFragment +{{ Add code here }} ``` ```output -FrontendEndpointIds : {/subscriptions/{subid}/resourceGroups/{rgname}/pro - viders/Microsoft.Network/frontDoors/{frontdoorname}/FrontendEndpoints/frontendEndpoint1} -AcceptedProtocols : {Http, Https} -PatternsToMatch : {/*} -HealthProbeSettings : -RouteConfiguration : Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration -EnabledState : Enabled -ResourceState : -Id : -Name : {routingRuleName} -Type : +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a PSRoutingRuleObject for Front Door creation +{{ Add description here }} ## PARAMETERS ### -AcceptedProtocol Protocol schemes to match for this rule. -Default value is {Https, Http} ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSProtocol[] +Type: System.String[] Parameter Sets: (All) Aliases: -Accepted values: Http, Https Required: False Position: Named @@ -100,27 +69,28 @@ Accept wildcard characters: False ``` ### -BackendPoolName -Resource id of the BackendPool which this rule routes to +Resource ID. ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomForwardingPath -The custom path used to rewrite resource paths matched by this rule. -Leave empty to use incoming path. +### -CacheDuration +The duration for which the content needs to be cached. +Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). +HTTP requires the value to be no more than a year. ```yaml -Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Type: System.TimeSpan +Parameter Sets: (All) Aliases: Required: False @@ -130,12 +100,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomFragment -Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. +### -CustomForwardingPath +A custom path used to rewrite resource paths matched by this rule. +Leave empty to use incoming path. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -145,12 +116,14 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomHost -Host to redirect. Leave empty to use the incoming host as the destination host. +### -CustomFragment +Fragment to add to the redirect URL. +Fragment is the part of the URL that comes after #. +Do not include the #. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -160,12 +133,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomPath -The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. +### -CustomHost +Host to redirect. +Leave empty to use the incoming host as the destination host. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -175,12 +149,14 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomQueryString -The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in `=` format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. +### -CustomPath +The full path to redirect. +Path cannot be empty and must start with /. +Leave empty to use the incoming path as destination path. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -190,13 +166,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +### -CustomQueryString +The set of query strings to be placed in the redirect URL. +Setting this value would replace any existing query string; leave empty to preserve the incoming query string. +Query string must be in \=\ format. +The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.String Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: Required: False Position: Named @@ -206,14 +185,12 @@ Accept wildcard characters: False ``` ### -DynamicCompression -Whether to enable dynamic compression for cached content when caching is enabled. -Default value is Enabled +Whether to use dynamic compression for cached content. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState -Parameter Sets: ByFieldsWithForwardingParameterSet +Type: System.String +Parameter Sets: (All) Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -223,12 +200,10 @@ Accept wildcard characters: False ``` ### -EnableCaching -Whether to enable caching for this route. -Default value is false ```yaml Type: System.Boolean -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -240,13 +215,12 @@ Accept wildcard characters: False ### -EnabledState Whether to enable use of this rule. -Default value is Enabled +Permitted values are 'Enabled' or 'Disabled'. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -256,12 +230,11 @@ Accept wildcard characters: False ``` ### -ForwardingProtocol -The protocol this rule will use when forwarding traffic to backends -Default value is MatchRequest. +Protocol this rule will use when forwarding traffic to backends. ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -279,7 +252,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -287,14 +260,29 @@ Accept wildcard characters: False ``` ### -FrontendEndpointName -The names of Frontend endpoints associated with this rule +Frontend endpoints associated with this rule. ```yaml Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False Position: Named Default value: None Accept pipeline input: False @@ -302,23 +290,22 @@ Accept wildcard characters: False ``` ### -Name -RoutingRule name. +Resource name. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -PatternToMatch -The route patterns of the rule, Must not have any * except possibly after the final / at the end of the path. -Default value is /* +### -PatternsToMatch +The route patterns of the rule. ```yaml Type: System.String[] @@ -332,13 +319,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -QueryParameter +query parameters to include or exclude (comma separated). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -QueryParameterStripDirective -The treatment of URL query terms when forming the cache key. -Default value is StripAll +Treatment of URL query terms when forming the cache key. ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -349,11 +350,11 @@ Accept wildcard characters: False ``` ### -RedirectProtocol -The protocol of the destination to where the traffic is redirected. Default value is MatchRequest +The protocol of the destination to where the traffic is redirected. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -364,11 +365,11 @@ Accept wildcard characters: False ``` ### -RedirectType -The redirect type the rule will use when redirecting traffic. Default Value is Moved +The redirect type the rule will use when redirecting traffic. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -379,22 +380,51 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name that the RoutingRule will be created in. +Resource Group name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RouteConfiguration + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleEngineName +Resource ID. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -RulesEngineName -A reference to a specific Rules Engine Configuration to apply to this route. +### -WebApplicationFirewallPolicyLinkId +Resource ID. ```yaml Type: System.String @@ -413,15 +443,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule ## NOTES ## RELATED LINKS - -[New-AzFrontDoor](./New-AzFrontDoor.md) -[Set-AzFrontDoor](./Set-AzFrontDoor.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md index 8622f008dc96..48a69de256a2 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengine schema: 2.0.0 @@ -8,45 +8,83 @@ schema: 2.0.0 # New-AzFrontDoorRulesEngine ## SYNOPSIS -Create a new rules engine configuration for a specified front door. +Create a new Rules Engine Configuration with the specified name within the specified Front Door. ## SYNTAX +### CreateExpanded (Default) ``` -New-AzFrontDoorRulesEngine -ResourceGroupName -FrontDoorName -Name - [-Rule ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +New-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` -## DESCRIPTION -Create a new rules engine configuration for a specified front door. +### CreateViaJsonFilePath +``` +New-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` -Use cmdlet "New-AzFrontDoorRulesEngineRule" to construct rules engine rules to pass into the "-Rules" parameter of this cmdlet. +## DESCRIPTION +Create a new Rules Engine Configuration with the specified name within the specified Front Door. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1 +{{ Add code here }} ``` ```output -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1} +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a new rules engine configuration for specified front door. +{{ Add description here }} ## PARAMETERS +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -56,7 +94,7 @@ Accept wildcard characters: False ``` ### -FrontDoorName -Front Door name. +Name of the Front Door which is globally unique. ```yaml Type: System.String @@ -70,13 +108,43 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name -Rules engine name. +Name of the Rules Engine which is unique within the Front Door. ```yaml Type: System.String Parameter Sets: (All) -Aliases: +Aliases: RulesEngineName Required: True Position: Named @@ -85,8 +153,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName -The resource group name that the Front Door will be created in. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String @@ -104,8 +187,8 @@ Accept wildcard characters: False A list of rules that define a particular Rules Engine Configuration. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -115,6 +198,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -131,7 +230,8 @@ Accept wildcard characters: False ``` ### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. +Shows what would happen if the cmdlet runs. +The cmdlet is not run. ```yaml Type: System.Management.Automation.SwitchParameter @@ -150,11 +250,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md index 7d867ed5c619..b0c79ce1d04f 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md @@ -1,140 +1,83 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengineactionobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject schema: 2.0.0 --- # New-AzFrontDoorRulesEngineActionObject ## SYNOPSIS -Create a PSRulesEngineAction object for creating a rules engine rule. +Create an in-memory object for RulesEngineAction. ## SYNTAX -### ByFieldsWithRegularActionParameterSet (Default) ``` -New-AzFrontDoorRulesEngineActionObject - [-RequestHeaderAction ] - [-ResponseHeaderAction ] - [-DefaultProfile ] [] -``` - -### ByFieldsWithForwardingParameterSet -``` -New-AzFrontDoorRulesEngineActionObject - [-RequestHeaderAction ] - [-ResponseHeaderAction ] - [-CustomForwardingPath ] [-ForwardingProtocol ] -ResourceGroupName - -FrontDoorName -BackendPoolName [-EnableCaching ] - [-QueryParameterStripDirective ] [-DynamicCompression ] - [-DefaultProfile ] [] -``` - -### ByFieldsWithRedirectParameterSet -``` -New-AzFrontDoorRulesEngineActionObject - [-RequestHeaderAction ] - [-ResponseHeaderAction ] - [-RedirectType ] [-RedirectProtocol ] [-CustomHost ] [-CustomPath ] - [-CustomFragment ] [-CustomQueryString ] [-DefaultProfile ] +New-AzFrontDoorRulesEngineActionObject [-RequestHeaderAction ] + [-ResponseHeaderAction ] [-RouteConfigurationOverride ] + [-BackendPoolName ] [-FrontDoorName ] [-ResourceGroupName ] + [-CacheDuration ] [-DynamicCompression ] [-QueryParameter ] + [-QueryParameterStripDirective ] [-CustomForwardingPath ] [-ForwardingProtocol ] + [-EnableCaching ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] + [-CustomQueryString ] [-RedirectProtocol ] [-RedirectType ] [] ``` ## DESCRIPTION -Create a PSRulesEngineAction object for creating a rules engine rule. - -Use cmdlet "New-AzFrontDoorHeaderActionObject" to create PSHeaderObjects to pass into the parameters "-RequestHeaderActions" and "-ResponseHeaderActions". +Create an in-memory object for RulesEngineAction. ## EXAMPLES -### Example 1 - +### Example 1: {{ Add title here }} ```powershell -$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" -$headerActions - -HeaderName HeaderActionType Value ----------- ---------------- ----- -X-Content-Type-Options Append nosniff - -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {X-Content-Type-Options} - +{{ Add code here }} ``` -Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. - -### Example 2 - -```powershell -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true -$rulesEngineAction - -RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride -------------------- -------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineAction.RequestHeaderAction - -HeaderName HeaderActionType Value ----------- ---------------- ----- -headeraction1 Overwrite -headeraction2 Append - -$rulesEngineAction.ResponseHeaderAction -$rulesEngineAction.RouteConfigurationOverride - -CustomForwardingPath : -ForwardingProtocol : HttpsOnly -BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi - ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool -QueryParameterStripDirective : StripNone -DynamicCompression : Disabled -EnableCaching : True +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. +{{ Add description here }} -### Example 3 - +### Example 2: {{ Add title here }} ```powershell -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration - -$rulesEngineAction.RouteConfigurationOverride - -RedirectType : Moved -RedirectProtocol : MatchRequest -CustomHost : www.contoso.com -CustomPath : -CustomFragment : -CustomQueryString : - +{{ Add code here }} ``` -Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` +{{ Add description here }} ## PARAMETERS ### -BackendPoolName -The name of the BackendPool which this rule routes to +Resource ID. ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CacheDuration +The duration for which the content needs to be cached. +Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). +HTTP requires the value to be no more than a year. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False Position: Named Default value: None Accept pipeline input: False @@ -142,12 +85,12 @@ Accept wildcard characters: False ``` ### -CustomForwardingPath -The custom path used to rewrite resource paths matched by this rule. +A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -164,7 +107,7 @@ Do not include the #. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -180,7 +123,7 @@ Leave empty to use the incoming host as the destination host. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -197,7 +140,7 @@ Leave empty to use the incoming path as destination path. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -211,12 +154,11 @@ Accept wildcard characters: False The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in \=\ format. -The first ? -and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. +The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -226,13 +168,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +### -DynamicCompression +Whether to use dynamic compression for cached content. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.String Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: Required: False Position: Named @@ -241,15 +183,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DynamicCompression -Whether to enable dynamic compression for cached content. -Default value is Enabled +### -EnableCaching ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState -Parameter Sets: ByFieldsWithForwardingParameterSet +Type: System.Boolean +Parameter Sets: (All) Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -258,13 +197,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -EnableCaching -Whether to enable caching for this route. -Default value is false +### -ForwardingProtocol +Protocol this rule will use when forwarding traffic to backends. ```yaml -Type: System.Boolean -Parameter Sets: ByFieldsWithForwardingParameterSet +Type: System.String +Parameter Sets: (All) Aliases: Required: False @@ -274,13 +212,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ForwardingProtocol -The protocol this rule will use when forwarding traffic to backends. -Default value is MatchRequest +### -FrontDoorName +The name of the Front Door to which this routing rule belongs. ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -290,15 +227,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FrontDoorName -The name of the Front Door to which this routing rule belongs. +### -QueryParameter +query parameters to include or exclude (comma separated). ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -306,12 +243,11 @@ Accept wildcard characters: False ``` ### -QueryParameterStripDirective -The treatment of URL query terms when forming the cache key. -Default value is StripAll +Treatment of URL query terms when forming the cache key. ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -323,11 +259,10 @@ Accept wildcard characters: False ### -RedirectProtocol The protocol of the destination to where the traffic is redirected. -Default value is MatchRequest ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -339,11 +274,10 @@ Accept wildcard characters: False ### -RedirectType The redirect type the rule will use when redirecting traffic. -Default Value is Moved ```yaml Type: System.String -Parameter Sets: ByFieldsWithRedirectParameterSet +Parameter Sets: (All) Aliases: Required: False @@ -357,7 +291,7 @@ Accept wildcard characters: False A list of header actions to apply from the request from AFD to the origin. ```yaml -Type: System.Collections.Generic.List`1[Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[] Parameter Sets: (All) Aliases: @@ -373,10 +307,10 @@ The resource group name that the RoutingRule will be created in. ```yaml Type: System.String -Parameter Sets: ByFieldsWithForwardingParameterSet +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -387,7 +321,22 @@ Accept wildcard characters: False A list of header actions to apply from the response from AFD to the client. ```yaml -Type: System.Collections.Generic.List`1[Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RouteConfigurationOverride +Override the route configuration. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration Parameter Sets: (All) Aliases: @@ -403,11 +352,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md index 005c72a1b9e2..83b4097234f8 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md @@ -1,60 +1,51 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesenginematchconditionobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject schema: 2.0.0 --- # New-AzFrontDoorRulesEngineMatchConditionObject ## SYNOPSIS -Create a PSRulesEngineMatchCondition object for creating a rules engine rule. +Create an in-memory object for RulesEngineMatchCondition. ## SYNTAX ``` -New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable - -MatchValue [-Selector ] [-Operator ] [-NegateCondition ] - [-Transform ] [-DefaultProfile ] [] +New-AzFrontDoorRulesEngineMatchConditionObject -MatchValue -MatchVariable + -Operator [-NegateCondition ] [-Selector ] [-Transform ] + [] ``` ## DESCRIPTION -Create a PSRulesEngineMatchCondition object for creating a rules engine rule. +Create an in-memory object for RulesEngineMatchCondition. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false +{{ Add code here }} ``` ```output -RulesEngineMatchVariable : RequestHeader -RulesEngineMatchValue : {allowoverride} -Selector : Rules-Engine-Route-Forward -RulesEngineOperator : Equal -NegateCondition : False -Transform : {Lowercase, Uppercase} +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a new PSRulesEngineMatchCondition object. +{{ Add description here }} -## PARAMETERS +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +{{ Add description here }} -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` +## PARAMETERS ### -MatchValue Match values to match against. @@ -75,13 +66,11 @@ Accept wildcard characters: False ### -MatchVariable Match Variable. -Possible values are IsMobile, RemoteAddr, RequestMethod, QueryString, PostArg, RequestUri, RequestPath, RequestFileName, RequestfilenameExtension, RequestHeader, RequestBody, RequestScheme ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchVariable +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: IsMobile, RemoteAddr, RequestMethod, QueryString, PostArgs, RequestUri, RequestPath, RequestFilename, RequestFilenameExtension, RequestHeader, RequestBody, RequestScheme Required: True Position: Named @@ -91,7 +80,7 @@ Accept wildcard characters: False ``` ### -NegateCondition -Describes if this is negate condition or not +Describes if this is negate condition or not. ```yaml Type: System.Boolean @@ -107,15 +96,13 @@ Accept wildcard characters: False ### -Operator Describes operator to apply to the match condition. -Possible values are Any, IPMatch, GeoMatch, Equal, Contains, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, BeginsWith, EndsWith. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineOperator +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Any, IPMatch, GeoMatch, Equal, Contains, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, BeginsWith, EndsWith -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -123,7 +110,7 @@ Accept wildcard characters: False ``` ### -Selector -Name of selector in RequestHeader or RequestBody to be matched +Name of selector in RequestHeader or RequestBody to be matched. ```yaml Type: System.String @@ -138,13 +125,12 @@ Accept wildcard characters: False ``` ### -Transform -List of what transforms are applied before matching. Possible individual transform values are Lowercase, Uppercase, Trim, UrlDecode, UrlEncode, RemoveNulls. +List of transforms. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSTransform[] +Type: System.String[] Parameter Sets: (All) Aliases: -Accepted values: Lowercase, Uppercase, Trim, UrlDecode, UrlEncode, RemoveNulls Required: False Position: Named @@ -158,11 +144,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md index 4204f0827ee1..419e12237e5a 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md @@ -1,76 +1,49 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengineruleobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject schema: 2.0.0 --- # New-AzFrontDoorRulesEngineRuleObject ## SYNOPSIS -Create a PSRulesEngineRule object for Rules Engine creation. +Create an in-memory object for RulesEngineRule. ## SYNTAX ``` -New-AzFrontDoorRulesEngineRuleObject -Name -Priority -Action - [-MatchProcessingBehavior ] [-MatchCondition ] - [-DefaultProfile ] [] +New-AzFrontDoorRulesEngineRuleObject -Action -Name -Priority + [-MatchCondition ] [-MatchProcessingBehavior ] + [] ``` ## DESCRIPTION -Create a PSRulesEngineRule object for Rules Engine creation. - -Use cmdlet "New-AzFrontDoorRulesEngineActionObject" to create PSRulesEngineAction object to pass into the "-Action" parameter. -Use cmdlet "New-AzFrontDoorRulesEngineMatchConditionObject" to create PSRulesEngineMatchCondition object to pass into the "-MatchCondition" parameter. +Create an in-memory object for RulesEngineRule. ## EXAMPLES -### Example 1 - +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition - -Name : rules1 -Priority : 0 -MatchProcessingBehavior : Stop -MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} -Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction - - -$rulesEngineRule1.Action - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineRule1.MatchCondition[0] +{{ Add code here }} +``` -RulesEngineMatchVariable : RequestHeader -RulesEngineMatchValue : {allowoverride} -Selector : Rules-Engine-Route-Forward -RulesEngineOperator : Equal -NegateCondition : False -Transforms : {Lowercase, Uppercase} +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create new PSRulesEngineRule object and demonstrate how to see the subfields. +{{ Add description here }} -### Example 2 +### Example 2: {{ Add title here }} ```powershell -New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 +{{ Add code here }} ``` ```output -New-AzFrontDoorRulesEngineRuleObject : Cannot validate argument on parameter 'Priority'. The -1 argument is less than the minimum allowed range of 0. Supply an argument that is greater than or equal to 0 and then try the command again. -At line:1 char:81 -+ ... ule1 = New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 -+ ~~ -+ CategoryInfo : InvalidData: (:) [New-AzFrontDoorRulesEngineRuleObject], ParameterBindingValidationException -+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Expect output when passing in invalid priority value. +{{ Add description here }} ## PARAMETERS @@ -78,7 +51,7 @@ Expect output when passing in invalid priority value. Actions to perform on the request and response if all of the match conditions are met. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction Parameter Sets: (All) Aliases: @@ -89,26 +62,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -MatchCondition -A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. +A list of match conditions that must meet in order for the actions of this rule to run. +Having no match conditions means the actions will always run. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition[] Parameter Sets: (All) Aliases: @@ -121,14 +80,12 @@ Accept wildcard characters: False ### -MatchProcessingBehavior If this rule is a match should the rules engine continue running the remaining rules or stop. -Possible values are Continue and Stop. If not present, defaults to Continue. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSMatchProcessingBehavior +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Continue, Stop Required: False Position: Named @@ -154,7 +111,7 @@ Accept wildcard characters: False ### -Priority A priority assigned to this rule. -Cannot be negative. +. ```yaml Type: System.Int32 @@ -173,11 +130,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md index b98993cb7f98..372b1a7c7846 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md @@ -1,53 +1,53 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafcustomrulegroupbyvariableobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomrulegroupbyvariableobject schema: 2.0.0 --- # New-AzFrontDoorWafCustomRuleGroupByVariableObject ## SYNOPSIS -Create CustomRuleGroupByVariable object for custom rule object +Create an in-memory object for GroupByVariable. ## SYNTAX ``` New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName - [-DefaultProfile ] [] + [] ``` ## DESCRIPTION -Create CustomRuleGroupByVariable object for custom rule object - -Use cmdlet "New-AzFrontDoorWafCustomRuleGroupByVariableObject" to pass -CustomRule parameter +Create an in-memory object for GroupByVariable. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName SocketAddr +{{ Add code here }} ``` -## PARAMETERS +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +{{ Add description here }} -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` +{{ Add description here }} + +## PARAMETERS + ### -VariableName -Describes the supported variable for group by +Describes the supported variable for group by. ```yaml Type: System.String @@ -66,11 +66,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafCustomRuleGroupByVariable +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md index 1bdaf938fba0..064b8659e7e8 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md @@ -1,47 +1,55 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafcustomruleobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject schema: 2.0.0 --- # New-AzFrontDoorWafCustomRuleObject ## SYNOPSIS -Create CustomRule Object for WAF policy creation +Create an in-memory object for CustomRule. ## SYNTAX ``` -New-AzFrontDoorWafCustomRuleObject -Name -RuleType -MatchCondition - -Action -Priority [-RateLimitDurationInMinutes ] [-RateLimitThreshold ] - [-EnabledState ] [-CustomRule ] - [-DefaultProfile ] [] +New-AzFrontDoorWafCustomRuleObject -Action -MatchCondition -Priority + -RuleType [-EnabledState ] [-GroupBy ] [-Name ] + [-RateLimitDurationInMinutes ] [-RateLimitThreshold ] + [] ``` ## DESCRIPTION -Create CustomRule Object for WAF policy creation +Create an in-memory object for CustomRule. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 +{{ Add code here }} ``` ```output -Name RuleType Action Priority RateLimitDurationInMinutes ----- -------- ------ -------- -------------------------- -Rule1 MatchRule Block 2 1 +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a CustomRule Object +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS ### -Action -Type of Actions. -Possible values include: 'Allow', 'Block', 'Log' +Describes what action to be applied when rule matches. ```yaml Type: System.String @@ -55,11 +63,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomRule -Gets or sets describes the list of variables to group the rate limit +### -EnabledState +Describes if the custom rule is in enabled or disabled state. +Defaults to Enabled if not specified. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafCustomRuleGroupByVariable[] +Type: System.String Parameter Sets: (All) Aliases: @@ -70,28 +79,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -EnabledState -Enabled State. Possible values include: 'Enabled', 'Disabled'. +### -GroupBy +Describes the list of variables to group the rate limit requests. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable[] Parameter Sets: (All) -Aliases: +Aliases: CustomRule Required: False Position: Named @@ -104,7 +98,7 @@ Accept wildcard characters: False List of match conditions. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSMatchCondition[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition[] Parameter Sets: (All) Aliases: @@ -116,14 +110,14 @@ Accept wildcard characters: False ``` ### -Name -Name of the rule +Describes the name of the rule. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -132,6 +126,7 @@ Accept wildcard characters: False ### -Priority Describes priority of the rule. +Rules with a lower value will be evaluated before rules with a higher value. ```yaml Type: System.Int32 @@ -146,7 +141,8 @@ Accept wildcard characters: False ``` ### -RateLimitDurationInMinutes -Rate limit duration. Default - 1 minute +Time window for resetting the rate limit count. +Default is 1 minute. ```yaml Type: System.Int32 @@ -161,10 +157,10 @@ Accept wildcard characters: False ``` ### -RateLimitThreshold -Rate limit threshold +Number of allowed requests per client within the time window. ```yaml -Type: System.Nullable`1[System.Int32] +Type: System.Int32 Parameter Sets: (All) Aliases: @@ -176,8 +172,7 @@ Accept wildcard characters: False ``` ### -RuleType -Type of the rule. -Possible values include: 'MatchRule', 'RateLimitRule' +Describes type of rule. ```yaml Type: System.String @@ -196,15 +191,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafPolicy](./New-AzFrontDoorWafPolicy.md) -[Update-AzFrontDoorWafPolicy](./Update-AzFrontDoorWafPolicy.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md index f1504f59e544..eba7c389a12f 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md @@ -1,54 +1,53 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwaflogscrubbingruleobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingruleobject schema: 2.0.0 --- # New-AzFrontDoorWafLogScrubbingRuleObject ## SYNOPSIS -Create LogScrubbingRule object for LogScrubbingSetting +Create an in-memory object for WebApplicationFirewallScrubbingRules. ## SYNTAX ``` New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable -SelectorMatchOperator - -State [-Selector ] [-DefaultProfile ] - [] + [-Selector ] [-State ] [] ``` ## DESCRIPTION -Create LogScrubbingRule object for LogScrubbingSetting +Create an in-memory object for WebApplicationFirewallScrubbingRules. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" +{{ Add code here }} ``` -This object is a parameter for LogscrubbingSetting - -## PARAMETERS +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +{{ Add description here }} -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` +{{ Add description here }} + +## PARAMETERS + ### -MatchVariable -Gets or sets the variable to be scrubbed from the logs. +The variable to be scrubbed from the logs. ```yaml Type: System.String @@ -63,7 +62,7 @@ Accept wildcard characters: False ``` ### -Selector -Gets or sets when matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. +When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. ```yaml Type: System.String @@ -78,7 +77,7 @@ Accept wildcard characters: False ``` ### -SelectorMatchOperator -Gets or sets when matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. +When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. ```yaml Type: System.String @@ -93,14 +92,15 @@ Accept wildcard characters: False ``` ### -State -Gets or sets defines the state of a log scrubbing rule.Default value is enabled. +Defines the state of a log scrubbing rule. +Default value is enabled. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -112,11 +112,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingRule +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md index 73d87c18c7d7..8e0cfb90686f 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md @@ -1,61 +1,60 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwaflogscrubbingsettingobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingsettingobject schema: 2.0.0 --- # New-AzFrontDoorWafLogScrubbingSettingObject ## SYNOPSIS -Create LogScrubbingSetting object for Waf policy object +Create an in-memory object for PolicySettingsLogScrubbing. ## SYNTAX ``` -New-AzFrontDoorWafLogScrubbingSettingObject -ScrubbingRule -State - [-DefaultProfile ] [] +New-AzFrontDoorWafLogScrubbingSettingObject [-ScrubbingRule ] + [-State ] [] ``` ## DESCRIPTION -Create LogScrubbingSetting object for Waf policy object +Create an in-memory object for PolicySettingsLogScrubbing. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" -New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) +{{ Add code here }} ``` -Need to create a LogScrubbingRule object before using. - -## PARAMETERS +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +{{ Add description here }} -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` +{{ Add description here }} + +## PARAMETERS + ### -ScrubbingRule List of log scrubbing rules applied to the Web Application Firewall logs. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingRule[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -71,7 +70,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -83,11 +82,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md index 19870b8a0887..ab87463fd6c5 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md @@ -1,57 +1,53 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafmanagedruleexclusionobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleexclusionobject schema: 2.0.0 --- # New-AzFrontDoorWafManagedRuleExclusionObject ## SYNOPSIS -Create managed rule exclusion object for WAF managed rule sets, groups, or rules. +Create an in-memory object for ManagedRuleExclusion. ## SYNTAX ``` -New-AzFrontDoorWafManagedRuleExclusionObject -Variable -Operator [-Selector ] - [-DefaultProfile ] [] +New-AzFrontDoorWafManagedRuleExclusionObject -Operator -Selector -Variable + [] ``` ## DESCRIPTION -Create managed rule exclusion object for WAF managed rule sets, groups, or rules. +Create an in-memory object for ManagedRuleExclusion. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName" +{{ Add code here }} ``` ```output -MatchVariable SelectorMatchOperator Selector -------------- --------------------- -------- -QueryStringArgNames Equals ParameterName +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +{{ Add description here }} -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` +{{ Add description here }} + +## PARAMETERS + ### -Operator -Operator to use when matching the selector, EqualsAny means no selector (all match variables of the specified type) +Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. ```yaml Type: System.String @@ -66,14 +62,14 @@ Accept wildcard characters: False ``` ### -Selector -Selector pattern to match using the operator (if the operator is not EqualsAny) +Selector value for which elements in the collection this exclusion applies to. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -81,8 +77,7 @@ Accept wildcard characters: False ``` ### -Variable -Match variable. Possible values are RequestHeaderNames, RequestCookieNames, QueryStringArgNames, RequestBodyPostArgNames. -For example, QueryStringArgNames is an exclusion of GET parameters matching the selector with the given operator. +The variable type to be excluded. ```yaml Type: System.String @@ -101,16 +96,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafManagedRuleOverrideObject](./New-AzFrontDoorWafManagedRuleOverrideObject.md) -[New-AzFrontDoorWafRuleGroupOverrideObject](./New-AzFrontDoorWafRuleGroupOverrideObject.md) -[New-AzFrontDoorWafManagedRuleObject](./New-AzFrontDoorWafManagedRuleObject.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md index b74fd6359ef4..e719f030ff49 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md @@ -1,55 +1,57 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafmanagedruleobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleobject schema: 2.0.0 --- # New-AzFrontDoorWafManagedRuleObject ## SYNOPSIS -Create ManagedRule Object for WAF policy creation +Create an in-memory object for ManagedRuleSet. ## SYNTAX ``` -New-AzFrontDoorWafManagedRuleObject -Type -Version [-Action ] - [-RuleGroupOverride ] [-Exclusion ] - [-DefaultProfile ] [] +New-AzFrontDoorWafManagedRuleObject -Type -Version [-Exclusion ] + [-RuleGroupOverride ] [-RuleSetAction ] + [] ``` ## DESCRIPTION -Create ManagedRule Object for WAF policy creation +Create an in-memory object for ManagedRuleSet. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log -$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log -$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log -$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3 +{{ Add description here }} -New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2 +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} ``` ```output -RuleGroupOverrides RuleSetType RuleSetVersion ------------------- ----------- -------------- -{SQLI, XSS} DefaultRuleSet preview-0.1 +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a ManagedRule Object +{{ Add description here }} ## PARAMETERS -### -Action -Rule Set Action. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'. +### -Exclusion +Describes the exclusions that are applied to all rules in the set. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[] Parameter Sets: (All) Aliases: @@ -60,26 +62,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Exclusion -Exclusion +### -RuleGroupOverride +Defines the rule group overrides to apply to the rule set. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride[] Parameter Sets: (All) Aliases: @@ -90,11 +77,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -RuleGroupOverride -List of azure managed provider override configuration +### -RuleSetAction +Defines the rule set action. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSAzureRuleGroupOverride[] +Type: System.String Parameter Sets: (All) Aliases: @@ -106,7 +93,7 @@ Accept wildcard characters: False ``` ### -Type -Type of the ruleset +Defines the rule set type to use. ```yaml Type: System.String @@ -121,7 +108,7 @@ Accept wildcard characters: False ``` ### -Version -Version of the ruleset +Defines the version of the rule set to use. ```yaml Type: System.String @@ -140,16 +127,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRule +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafPolicy](./New-AzFrontDoorWafPolicy.md) -[Update-AzFrontDoorWafPolicy](./Update-AzFrontDoorWafPolicy.md) -[New-AzFrontDoorWafRuleGroupOverrideObject](./New-AzFrontDoorWafRuleGroupOverrideObject.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md index 5dc74f5d227d..a0e6ea0566cd 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -1,44 +1,53 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafmanagedruleoverrideobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject schema: 2.0.0 --- # New-AzFrontDoorWafManagedRuleOverrideObject ## SYNOPSIS -Create managed rule override object +Create an in-memory object for ManagedRuleOverride. ## SYNTAX ``` -New-AzFrontDoorWafManagedRuleOverrideObject -RuleId [-Action ] [-Disabled] - [-Exclusion ] [-DefaultProfile ] [] +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId [-Action ] [-Disabled ] + [-Exclusion ] [] ``` ## DESCRIPTION -Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation. +Create an in-memory object for ManagedRuleOverride. ## EXAMPLES -### Example 1 -Create a managed rule override object for rule 942250 (which is in SQLI group). +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} +### Example 2: {{ Add title here }} ```powershell -New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +{{ Add code here }} ``` ```output -RuleId EnabledState Action ------- ------------ ------ -942250 Enabled Log +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` +{{ Add description here }} + ## PARAMETERS ### -Action -Override Action +Describes the override action to be applied when rule matches. ```yaml Type: System.String @@ -52,26 +61,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Disabled -Disabled state +Describes if the managed rule is in enabled or disabled state. +Defaults to Disabled if not specified. ```yaml -Type: System.Management.Automation.SwitchParameter +Type: System.String Parameter Sets: (All) Aliases: @@ -83,10 +78,10 @@ Accept wildcard characters: False ``` ### -Exclusion -Exclusion +Describes the exclusions that are applied to this specific rule. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[] Parameter Sets: (All) Aliases: @@ -98,7 +93,7 @@ Accept wildcard characters: False ``` ### -RuleId -Rule ID +Identifier for the managed rule. ```yaml Type: System.String @@ -117,14 +112,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRuleOverride +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafRuleGroupOverrideObject](./New-AzFrontDoorWafRuleGroupOverrideObject.md) \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md index c1f6123f71ed..06bc9ba9594f 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md @@ -1,78 +1,61 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafmatchconditionobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmatchconditionobject schema: 2.0.0 --- # New-AzFrontDoorWafMatchConditionObject ## SYNOPSIS -Create MatchCondition Object for WAF policy creation +Create an in-memory object for MatchCondition. ## SYNTAX ``` -New-AzFrontDoorWafMatchConditionObject -MatchVariable -OperatorProperty - [-MatchValue ] [-Selector ] [-NegateCondition ] [-Transform ] - [-DefaultProfile ] [] +New-AzFrontDoorWafMatchConditionObject -MatchValue -MatchVariable + -OperatorProperty [-NegateCondition ] [-Selector ] [-Transform ] + [] ``` ## DESCRIPTION -Create MatchCondition Object for WAF policy creation +Create an in-memory object for MatchCondition. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows" +{{ Add code here }} ``` ```output -MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform -------------- ---------------- ---------- -------- --------------- --------- -RequestHeader Contains {Windows} User-Agent False +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -### Example 2 +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase +{{ Add code here }} ``` ```output -MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform -------------- ---------------- ---------- -------- --------------- --------- -RequestHeader Contains {WINDOWS} User-Agent False {Uppercase} +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a MatchCondition object +{{ Add description here }} ## PARAMETERS -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -MatchValue -Match value. +List of possible match values. ```yaml Type: System.String[] Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -80,8 +63,7 @@ Accept wildcard characters: False ``` ### -MatchVariable -Match Variable. -Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs','RequestUri', 'RequestHeader', 'RequestBody', 'SocketAddr' +Request variable to compare with. ```yaml Type: System.String @@ -96,8 +78,7 @@ Accept wildcard characters: False ``` ### -NegateCondition -Describes if this is negate condition or not -Default value is false +Describes if the result of this condition should be negated. ```yaml Type: System.Boolean @@ -112,8 +93,7 @@ Accept wildcard characters: False ``` ### -OperatorProperty -Describes operator to be matched. -Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx' +Comparison type to use for matching with the variable value. ```yaml Type: System.String @@ -128,7 +108,8 @@ Accept wildcard characters: False ``` ### -Selector -Name of selector in RequestHeader or RequestBody to be matched +Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. +Default is null. ```yaml Type: System.String @@ -143,7 +124,7 @@ Accept wildcard characters: False ``` ### -Transform -Transforms to apply. Possible values include: 'Lowercase', 'Uppercase', 'Trim', 'UrlDecode', 'UrlEncode', 'RemoveNulls'. +List of transforms. ```yaml Type: System.String[] @@ -162,14 +143,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSMatchCondition +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafCustomRuleObject](./New-AzFrontDoorWafCustomRuleObject.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md index 9c19d8223dbd..ff5c32a1f732 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy schema: 2.0.0 @@ -8,45 +8,69 @@ schema: 2.0.0 # New-AzFrontDoorWafPolicy ## SYNOPSIS -Create WAF policy +Create policy with specified rule set name within a resource group. ## SYNTAX +### CreateExpanded (Default) ``` -New-AzFrontDoorWafPolicy -ResourceGroupName -Name [-EnabledState ] - [-Mode ] [-Customrule ] [-ManagedRule ] [-RedirectUrl ] - [-CustomBlockResponseStatusCode ] [-CustomBlockResponseBody ] [-Tag ] - [-RequestBodyCheck ] [-Sku ] [-LogScrubbingSetting ] - [-JavascriptChallengeExpirationInMinutes ] [-CaptchaExpirationInMinutes ] - [-DefaultProfile ][-WhatIf] [-Confirm] +New-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] + [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] + [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] + [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -The **New-AzFrontDoorWafPolicy** cmdlet creates a new Azure WAF policy in the specified resource group under current subscription +Create policy with specified rule set name within a resource group. ## EXAMPLES -### Example 1: Create WAF policy +### Example 1: {{ Add title here }} ```powershell -New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" +{{ Add code here }} ``` ```output -Name PolicyMode PolicyEnabledState RedirectUrl ----- ---------- ------------------ ----------- -{policyName} Prevention Enabled https://www.bing.com/ +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create WAF policy +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS -### -CaptchaExpirationInMinutes -setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 +### -AsJob +Run the command as a job ```yaml -Type: System.Nullable`1[System.Int32] +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -58,11 +82,12 @@ Accept wildcard characters: False ``` ### -CustomBlockResponseBody -Custom Response Body +If the action type is block, customer can override the response body. +The body must be specified in base64 encoding. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -73,11 +98,11 @@ Accept wildcard characters: False ``` ### -CustomBlockResponseStatusCode -Custom Response Status Code +If the action type is block, customer can override the response status code. ```yaml Type: System.Int32 -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -87,12 +112,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Customrule -Custom rules inside the policy +### -CustomRule +List of rules ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -103,12 +128,13 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -118,14 +144,28 @@ Accept wildcard characters: False ``` ### -EnabledState -Whether the policy is in enabled state or disabled state. -Possible values include: 'Disabled', 'Enabled' +Describes if the policy is in enabled or disabled state. +Defaults to Enabled if not specified. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Gets a unique read-only string that changes whenever the resource is updated. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -135,11 +175,13 @@ Accept wildcard characters: False ``` ### -JavascriptChallengeExpirationInMinutes -setting is only applicable to Premium_AzureFrontDoor. 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. ```yaml -Type: System.Nullable`1[System.Int32] -Parameter Sets: (All) +Type: System.Int32 +Parameter Sets: CreateExpanded Aliases: Required: False @@ -149,12 +191,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LogScrubbingSetting -Defines rules that scrub sensitive fields in the Web Application Firewall. +Defines rules that scrub sensitive fields in the Web Application Firewall logs. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing +Parameter Sets: CreateExpanded Aliases: Required: False @@ -164,12 +236,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagedRule -Managed rules inside the policy +### -ManagedRuleSet +List of rule sets. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -180,12 +252,11 @@ Accept wildcard characters: False ``` ### -Mode -Describes if it is in detection mode or prevention mode at policy level. -Possible values include:'Prevention', 'Detection' +Describes if it is in detection mode or prevention mode at policy level. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -196,12 +267,12 @@ Accept wildcard characters: False ``` ### -Name -WebApplicationFireWallPolicy name. +The name of the Web Application Firewall Policy. ```yaml Type: System.String Parameter Sets: (All) -Aliases: +Aliases: PolicyName Required: True Position: Named @@ -210,12 +281,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RedirectUrl -Redirect URL +If action type is redirect, this field represents redirect URL for the client. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -226,11 +312,11 @@ Accept wildcard characters: False ``` ### -RequestBodyCheck -Defines if the body should be inspected by managed rules. Possible values include: 'Enabled', 'Disabled' +Describes if policy managed rules will inspect the request body content. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -241,7 +327,7 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name +Name of the Resource group within the Azure subscription. ```yaml Type: System.String @@ -255,12 +341,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Sku -Sets Sku. Possible values include: 'Classic_AzureFrontDoor', 'Standard_AzureFrontDoor', 'Premium_AzureFrontDoor' +### -SkuName +Name of the pricing tier. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -270,12 +356,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag -The tags associate with the FrontDoor WAF Policy. +Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -321,18 +423,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy ## NOTES ## RELATED LINKS - -[Update-AzFrontDoorWafPolicy](./Update-AzFrontDoorWafPolicy.md) -[Get-AzFrontDoorWafPolicy](./Get-AzFrontDoorWafPolicy.md) -[Remove-AzFrontDoorWafPolicy](./Remove-AzFrontDoorWafPolicy.md) -[New-AzFrontDoorWafManagedRuleObject](./New-AzFrontDoorWafManagedRuleObject.md) -[New-AzFrontDoorWafCustomRuleObject](./New-AzFrontDoorWafManagedRuleObject.md) diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md index 218e807c0d18..78f2b0720b5a 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md @@ -1,66 +1,56 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafrulegroupoverrideobject +online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafrulegroupoverrideobject schema: 2.0.0 --- # New-AzFrontDoorWafRuleGroupOverrideObject ## SYNOPSIS -Create RuleGroupOverride Object for WAF policy creation +Create an in-memory object for ManagedRuleGroupOverride. ## SYNTAX ``` -New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName - [-ManagedRuleOverride ] [-Exclusion ] - [-DefaultProfile ] [] +New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName [-Exclusion ] + [-ManagedRuleOverride ] [] ``` ## DESCRIPTION -Create RuleGroupOverride Object for WAF policy creation +Create an in-memory object for ManagedRuleGroupOverride. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log -$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log - -New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 +{{ Add code here }} ``` ```output -RuleGroupName ManagedRuleOverrides -------------- -------------------- -SQLI {942250, 942251} +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Create a RuleGroupOverride Object +{{ Add description here }} -## PARAMETERS +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +{{ Add description here }} -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` +## PARAMETERS ### -Exclusion -Exclusion +Describes the exclusions that are applied to all rules in the group. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[] Parameter Sets: (All) Aliases: @@ -72,10 +62,11 @@ Accept wildcard characters: False ``` ### -ManagedRuleOverride -Rule override list +List of rules that will be disabled. +If none specified, all rules in the group will be disabled. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRuleOverride[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride[] Parameter Sets: (All) Aliases: @@ -87,7 +78,7 @@ Accept wildcard characters: False ``` ### -RuleGroupName -Rule Group Name for which these overrides apply +Describes the managed rule group to override. ```yaml Type: System.String @@ -106,14 +97,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSAzureRuleGroupOverride +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafManagedRuleObject](./New-AzFrontDoorWafManagedRuleObject.md) diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md index 01da2aa69c64..3ab181faa2bb 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoor schema: 2.0.0 @@ -8,70 +8,75 @@ schema: 2.0.0 # Remove-AzFrontDoor ## SYNOPSIS -Remove Front Door load balancer +Deletes an existing Front Door with the specified parameters. ## SYNTAX -### ByFieldsParameterSet (Default) +### Delete (Default) ``` -Remove-AzFrontDoor -ResourceGroupName -Name [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -### ByObjectParameterSet -``` -Remove-AzFrontDoor -InputObject [-PassThru] [-DefaultProfile ] [-WhatIf] +Remove-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### ByResourceIdParameterSet +### DeleteViaIdentity ``` -Remove-AzFrontDoor -ResourceId [-PassThru] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Remove-AzFrontDoor -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -The **Remove-AzFrontDoor** cmdlet removes a Front Door load balancer under the current subscription +Deletes an existing Front Door with the specified parameters. ## EXAMPLES -### Example 1: Remove "frontdoor1" in resource group "rg1" under the current subscription. +### Example 1: {{ Add title here }} ```powershell -Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1" +{{ Add code here }} ``` -Remove "frontdoor1" in resource group "rg1" under the current subscription. - -### Example 2: Remove all FrontDoors in resource group "rg1" under the current subscription. -```powershell -Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Remove all FrontDoors in resource group "rg1" under the current subscription. +{{ Add description here }} -### Example 3: Remove all FrontDoors under the current subscription. +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoor | Remove-AzFrontDoor +{{ Add code here }} ``` -Remove all FrontDoors under the current subscription. - -### Example 4: Remove all FrontDoors with name "frontdoor1" under the current subscription. -```powershell -Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Remove all FrontDoors with name "frontdoor1" under the current subscription. +{{ Add description here }} ## PARAMETERS +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -81,11 +86,11 @@ Accept wildcard characters: False ``` ### -InputObject -The Front Door object to delete. +Identity Parameter ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor -Parameter Sets: ByObjectParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DeleteViaIdentity Aliases: Required: True @@ -96,12 +101,12 @@ Accept wildcard characters: False ``` ### -Name -The name of the Front Door to delete. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet -Aliases: +Parameter Sets: Delete +Aliases: FrontDoorName Required: True Position: Named @@ -110,8 +115,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PassThru -Return object (if specified). +Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter @@ -126,11 +146,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group to which the Front Door belongs. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: Delete Aliases: Required: True @@ -140,18 +160,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the Front Door to delete +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet +Parameter Sets: Delete Aliases: -Required: True +Required: False Position: Named -Default value: None -Accept pipeline input: True (ByPropertyName) +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False Accept wildcard characters: False ``` @@ -191,9 +212,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor - -### System.String +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS @@ -202,6 +221,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - -[New-AzFrontDoor](./New-AzFrontDoor.md) -[Get-AzFrontDoor](./Get-AzFrontDoor.md) \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md index e64000470260..669f4bb8d2db 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorcontent schema: 2.0.0 @@ -8,33 +8,118 @@ schema: 2.0.0 # Remove-AzFrontDoorContent ## SYNOPSIS -Remove contents in Front Door +Removes a content from Front Door. ## SYNTAX +### PurgeExpanded (Default) ``` -Remove-AzFrontDoorContent -ResourceGroupName -Name -ContentPath [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName [-SubscriptionId ] + -ContentPath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### PurgeViaJsonString +``` +Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### PurgeViaJsonFilePath +``` +Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### Purge +``` +Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName [-SubscriptionId ] + -ContentFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### PurgeViaIdentityExpanded +``` +Remove-AzFrontDoorContent -InputObject -ContentPath + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +### PurgeViaIdentity +``` +Remove-AzFrontDoorContent -InputObject -ContentFilePath + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION -Remove-AzFrontDoorContent purges cached contents in a Front Door +Removes a content from Front Door. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Remove-AzFrontDoorContent -ResourceGroupName $ResourceGroupName -Name $FrontDoorName -ContentPath "/*" +{{ Add code here }} ``` +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + ## PARAMETERS +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContentFilePath +Parameters required for content purge. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters +Parameter Sets: Purge, PurgeViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ContentPath -The paths to the content to be purged. +The path to the content to be purged. +Can describe a file path or a wild card directory. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: PurgeExpanded, PurgeViaIdentityExpanded Aliases: Required: True @@ -45,12 +130,13 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -59,12 +145,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -Front Door name. +### -FrontDoorName +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: PurgeExpanded, PurgeViaJsonString, PurgeViaJsonFilePath, Purge Aliases: Required: True @@ -74,8 +160,68 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: PurgeViaIdentityExpanded, PurgeViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Purge operation + +```yaml +Type: System.String +Parameter Sets: PurgeViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Purge operation + +```yaml +Type: System.String +Parameter Sets: PurgeViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PassThru -Return object (if specified). +Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter @@ -90,11 +236,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name of the Front Door +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: PurgeExpanded, PurgeViaJsonString, PurgeViaJsonFilePath, Purge Aliases: Required: True @@ -104,6 +250,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: PurgeExpanded, PurgeViaJsonString, PurgeViaJsonFilePath, Purge +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -140,7 +302,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### None +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters ## OUTPUTS diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md index 1c2db5897a93..01d88463bff0 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorrulesengine schema: 2.0.0 @@ -8,69 +8,82 @@ schema: 2.0.0 # Remove-AzFrontDoorRulesEngine ## SYNOPSIS -Remove Rules Engine from Front Door +Deletes an existing Rules Engine Configuration with the specified parameters. ## SYNTAX -### ByFieldsParameterSet (Default) +### Delete (Default) ``` -Remove-AzFrontDoorRulesEngine -ResourceGroupName -FrontDoorName -Name [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Remove-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] ``` -### ByObjectParameterSet +### DeleteViaIdentityFrontDoor ``` -Remove-AzFrontDoorRulesEngine -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Remove-AzFrontDoorRulesEngine -Name -FrontDoorInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] ``` -### ByResourceIdParameterSet +### DeleteViaIdentity ``` -Remove-AzFrontDoorRulesEngine -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] +Remove-AzFrontDoorRulesEngine -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Remove Rules Engine from Front Door +Deletes an existing Rules Engine Configuration with the specified parameters. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $rulesEngine.Name -PassThru +{{ Add code here }} ``` ```output -True +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Remove rules engine configuration. +{{ Add description here }} -### Example 2 +### Example 2: {{ Add title here }} ```powershell -Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistentRulesEngine +{{ Add code here }} ``` ```output -Remove-AzFrontDoorRulesEngine : Rules Engine with name 'nonexistentRulesEngine' in Front Door 'frontDoorName' in the resource group 'resourceGroupName' does not exist. -At line:1 char:1 -+ Remove-AzFrontDoorRulesEngine -ResourceGroupName resourceGroupName -Fro ... -+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+ CategoryInfo : CloseError: (:) [Remove-AzFrontDoorRulesEngine], PSArgumentException -+ FullyQualifiedErrorId : Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Expected outcome when removing a nonexistent rules engine configuration. +{{ Add description here }} ## PARAMETERS +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -79,12 +92,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FrontDoorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DeleteViaIdentityFrontDoor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -FrontDoorName -Front Door name. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: Delete Aliases: Required: True @@ -95,11 +123,11 @@ Accept wildcard characters: False ``` ### -InputObject -The Rules Engine object to update. +Identity Parameter ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine -Parameter Sets: ByObjectParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DeleteViaIdentity Aliases: Required: True @@ -110,12 +138,12 @@ Accept wildcard characters: False ``` ### -Name -Rules engine name. +Name of the Rules Engine which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet -Aliases: +Parameter Sets: Delete, DeleteViaIdentityFrontDoor +Aliases: RulesEngineName Required: True Position: Named @@ -124,8 +152,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PassThru -Return object (if specified). +Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter @@ -140,11 +183,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group name that the Front Door will be created in. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: Delete Aliases: Required: True @@ -154,18 +197,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the RulesEngine to update +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet +Parameter Sets: Delete Aliases: -Required: True +Required: False Position: Named -Default value: None -Accept pipeline input: True (ByPropertyName) +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False Accept wildcard characters: False ``` @@ -185,7 +229,8 @@ Accept wildcard characters: False ``` ### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. +Shows what would happen if the cmdlet runs. +The cmdlet is not run. ```yaml Type: System.Management.Automation.SwitchParameter @@ -204,9 +249,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine - -### System.String +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md index 32ef4ec10cee..101d3046a0df 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorwafpolicy schema: 2.0.0 @@ -8,56 +8,75 @@ schema: 2.0.0 # Remove-AzFrontDoorWafPolicy ## SYNOPSIS -Remove WAF policy +Deletes Policy ## SYNTAX -### ByFieldsParameterSet (Default) +### Delete (Default) ``` -Remove-AzFrontDoorWafPolicy -ResourceGroupName -Name [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Remove-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] ``` -### ByObjectParameterSet +### DeleteViaIdentity ``` -Remove-AzFrontDoorWafPolicy -InputObject [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] -``` - -### ByResourceIdParameterSet -``` -Remove-AzFrontDoorWafPolicy -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] +Remove-AzFrontDoorWafPolicy -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -The **Remove-AzFrontDoorWafPolicy** cmdlet removes a WAF policy under the current subscription +Deletes Policy ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} ```powershell -Remove-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Remove the WAF policy called $policyName in $resourceGroupName. +{{ Add description here }} -### Example 2 +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy +{{ Add code here }} ``` -Remove all WAF policy in $resourceGroupName. +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -67,11 +86,11 @@ Accept wildcard characters: False ``` ### -InputObject -The WAF policy object to delete. +Identity Parameter ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy -Parameter Sets: ByObjectParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: DeleteViaIdentity Aliases: Required: True @@ -82,12 +101,12 @@ Accept wildcard characters: False ``` ### -Name -The name of the WAF policy to delete. +The name of the Web Application Firewall Policy. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet -Aliases: +Parameter Sets: Delete +Aliases: PolicyName Required: True Position: Named @@ -96,8 +115,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PassThru -Return object (if specified). +Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter @@ -112,11 +146,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group to which the WAF policy belongs. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: Delete Aliases: Required: True @@ -126,18 +160,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the WAF policy to delete +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet +Parameter Sets: Delete Aliases: -Required: True +Required: False Position: Named -Default value: None -Accept pipeline input: True (ByPropertyName) +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False Accept wildcard characters: False ``` @@ -177,9 +212,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy - -### System.String +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS @@ -188,6 +221,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - -[New-AzFrontDoorWafPolicy](./New-AzFrontDoorWafPolicy.md) -[Get-AzFrontDoorWafPolicy](./Get-AzFrontDoorWafPolicy.md) diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md index 7537d99e6bde..48d434b422c1 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor schema: 2.0.0 @@ -8,209 +8,84 @@ schema: 2.0.0 # Set-AzFrontDoor ## SYNOPSIS -Update a Front Door load balancer +Update a new Front Door with a Front Door name under the specified subscription and resource group. ## SYNTAX -### ByFieldsParameterSet (Default) +### UpdateExpanded (Default) ``` -Set-AzFrontDoor -ResourceGroupName -Name [-RoutingRule ] - [-BackendPool ] [-FrontendEndpoint ] - [-LoadBalancingSetting ] [-HealthProbeSetting ] - [-Tag ] [-EnabledState ] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-BackendPool ] [-BackendPoolsSetting ] [-DisableCertificateNameCheck] + [-EnabledState ] [-FriendlyName ] [-FrontendEndpoint ] + [-HealthProbeSetting ] [-LoadBalancingSetting ] + [-RoutingRule ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` -### ByFieldsWithCertificateNameCheckParameterSet +### UpdateViaJsonFilePath ``` -Set-AzFrontDoor -ResourceGroupName -Name [-RoutingRule ] - [-BackendPool ] [-FrontendEndpoint ] - [-LoadBalancingSetting ] [-HealthProbeSetting ] - [-Tag ] [-EnabledState ] [-DisableCertificateNameCheck] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-DisableCertificateNameCheck] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` -### ByFieldsWithBackendPoolsSettingParameterSet +### UpdateViaJsonString ``` -Set-AzFrontDoor -ResourceGroupName -Name [-RoutingRule ] - [-BackendPool ] [-FrontendEndpoint ] - [-LoadBalancingSetting ] [-HealthProbeSetting ] - [-Tag ] [-EnabledState ] -BackendPoolsSetting - [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -### ByObjectParameterSet -``` -Set-AzFrontDoor -InputObject [-RoutingRule ] [-BackendPool ] - [-FrontendEndpoint ] [-LoadBalancingSetting ] - [-HealthProbeSetting ] [-Tag ] [-EnabledState ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -### ByObjectWithCertificateNameCheckParameterSet -``` -Set-AzFrontDoor -InputObject [-RoutingRule ] [-BackendPool ] - [-FrontendEndpoint ] [-LoadBalancingSetting ] - [-HealthProbeSetting ] [-Tag ] [-EnabledState ] - [-DisableCertificateNameCheck] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] -``` - -### ByObjectWithBackendPoolsSettingParameterSet -``` -Set-AzFrontDoor -InputObject [-RoutingRule ] [-BackendPool ] - [-FrontendEndpoint ] [-LoadBalancingSetting ] - [-HealthProbeSetting ] [-Tag ] [-EnabledState ] - -BackendPoolsSetting [-DefaultProfile ] [-WhatIf] [-Confirm] - [] -``` - -### ByResourceIdParameterSet -``` -Set-AzFrontDoor -ResourceId [-RoutingRule ] [-BackendPool ] - [-FrontendEndpoint ] [-LoadBalancingSetting ] - [-HealthProbeSetting ] [-Tag ] [-EnabledState ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -### ByResourceIdWithCertificateNameCheckParameterSet -``` -Set-AzFrontDoor -ResourceId [-RoutingRule ] [-BackendPool ] - [-FrontendEndpoint ] [-LoadBalancingSetting ] - [-HealthProbeSetting ] [-Tag ] [-EnabledState ] - [-DisableCertificateNameCheck] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] -``` - -### ByResourceIdWithBackendPoolsSettingParameterSet -``` -Set-AzFrontDoor -ResourceId [-RoutingRule ] [-BackendPool ] - [-FrontendEndpoint ] [-LoadBalancingSetting ] - [-HealthProbeSetting ] [-Tag ] [-EnabledState ] - -BackendPoolsSetting [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-DisableCertificateNameCheck] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -The **Set-AzFrontDoor** cmdlet updates a Front Door load balancer. If input parameters are not provided, old parameters from the existing Front Door will be used. +Update a new Front Door with a Front Door name under the specified subscription and resource group. ## EXAMPLES -### Example 1: update an existing Front Door with FrontDoorName and ResourceGroupName. +### Example 1: {{ Add title here }} ```powershell -Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +{{ Add code here }} ``` ```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoors +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -update an existing FrontDoor. +{{ Add description here }} -### Example 2: update an existing Front Door with PSFrontDoor object. +### Example 2: {{ Add title here }} ```powershell -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +{{ Add code here }} ``` ```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -update an existing FrontDoor. +{{ Add description here }} -### Example 3: update an existing Front Door with ResourceId -```powershell -Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. +## PARAMETERS -### Example 4: update BackendPoolSetting property EnforceCertificateNameCheck of an existing Front Door with -DisableCertificateNameCheck switch parameter -Front Door to be updated can be identified using FrontDoorName and ResourceGroupName, PSFrontDoor object, or ResourceId. (See above 3 examples for example) -The below example uses PSFrontDoor object. +### -AsJob +Run the command as a job -```powershell -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck -``` +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {PSBackendPoolsSetting object with EnforceCertificateNameCheck is set to Disabled} -EnforceCertificateNameCheck : Disabled -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False ``` -update an existing FrontDoor. - -## PARAMETERS - ### -BackendPool -Backendpools available to routing rule. +Backend pools available to routing rules. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -221,14 +96,14 @@ Accept wildcard characters: False ``` ### -BackendPoolsSetting -Settings for all backendPools. +Settings for all backendPools ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting -Parameter Sets: ByFieldsWithBackendPoolsSettingParameterSet, ByObjectWithBackendPoolsSettingParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings +Parameter Sets: UpdateExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -236,12 +111,13 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -251,14 +127,13 @@ Accept wildcard characters: False ``` ### -DisableCertificateNameCheck -Whether to disable certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: ByFieldsWithCertificateNameCheckParameterSet, ByObjectWithCertificateNameCheckParameterSet, ByResourceIdWithCertificateNameCheckParameterSet +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -267,12 +142,27 @@ Accept wildcard characters: False ### -EnabledState Operational status of the Front Door load balancer. +Permitted values are 'Enabled' or 'Disabled' ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FriendlyName +A friendly name for the frontDoor + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -282,11 +172,11 @@ Accept wildcard characters: False ``` ### -FrontendEndpoint -Frontend endpoints available to routing rule. +Frontend endpoints available to routing rules. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -300,8 +190,8 @@ Accept wildcard characters: False Health probe settings associated with this Front Door instance. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -311,18 +201,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -The Front Door object to update. +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor -Parameter Sets: ByObjectParameterSet, ByObjectWithCertificateNameCheckParameterSet, ByObjectWithBackendPoolsSettingParameterSet +Type: System.String +Parameter Sets: UpdateViaJsonString Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -330,8 +235,8 @@ Accept wildcard characters: False Load balancing settings associated with this Front Door instance. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -342,12 +247,12 @@ Accept wildcard characters: False ``` ### -Name -The name of the Front Door to update. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet, ByFieldsWithCertificateNameCheckParameterSet, ByFieldsWithBackendPoolsSettingParameterSet -Aliases: +Parameter Sets: (All) +Aliases: FrontDoorName Required: True Position: Named @@ -356,42 +261,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -The resource group to which the Front Door belongs. +### -NoWait +Run the command asynchronously ```yaml -Type: System.String -Parameter Sets: ByFieldsParameterSet, ByFieldsWithCertificateNameCheckParameterSet, ByFieldsWithBackendPoolsSettingParameterSet +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the Front Door to update +### -ResourceGroupName +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet +Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` ### -RoutingRule -Routing rules associated with this FrontDoor +Routing rules associated with this Front Door. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -401,12 +306,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag -The tags associate with the FrontDoor. +Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -452,20 +373,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor -### System.String ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + ## NOTES ## RELATED LINKS - -[New-AzFrontDoor](./New-AzFrontDoor.md) -[Get-AzFrontDoor](./Get-AzFrontDoor.md) -[Remove-AzFrontDoor](./Remove-AzFrontDoor.md) -[New-AzFrontDoorRoutingRuleObject](./New-AzFrontDoorRoutingRuleObject.md) -[New-AzFrontDoorHealthProbeSettingObject](./New-AzFrontDoorHealthProbeSettingObject.md) -[New-AzFrontDoorLoadBalancingSettingObject](./New-AzFrontDoorLoadBalancingSettingObject.md) -[New-AzFrontDoorFrontendEndpointObject](./New-AzFrontDoorFrontendEndpointObject.md) -[New-AzFrontDoorBackendPoolObject](./New-AzFrontDoorBackendPoolObject.md) diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md index 2e650b030265..8fb396a6f311 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine schema: 2.0.0 @@ -8,62 +8,52 @@ schema: 2.0.0 # Set-AzFrontDoorRulesEngine ## SYNOPSIS -Update a Rules Engine. +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ## SYNTAX -### ByFieldsParameterSet (Default) ``` -Set-AzFrontDoorRulesEngine -ResourceGroupName -FrontDoorName -Name - [-Rule ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] -``` - -### ByObjectParameterSet -``` -Set-AzFrontDoorRulesEngine -InputObject [-Rule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -### ByResourceIdParameterSet -``` -Set-AzFrontDoorRulesEngine -ResourceId [-Rule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update a Rules Engine. +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ## EXAMPLES -### Example 1 - +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine +{{ Add code here }} +``` -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1} +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} -$rulesEngineRule2 = New-AzFrontDoorRulesEngineRuleObject -Name rules2 -Priority 3 -Action $rulesEngineAction -Set-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1, $rulesEngineRule2 +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1, rules2} +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get an existing rules engine configuration and add another rules engine rule to it. +{{ Add description here }} ## PARAMETERS -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +### -AsJob +Run the command as a job ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: Required: False Position: Named @@ -72,43 +62,44 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FrontDoorName -Front Door name. +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: System.String -Parameter Sets: ByFieldsParameterSet -Aliases: +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -The Rules Engine object to update. +### -FrontDoorName +Name of the Front Door which is globally unique. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine -Parameter Sets: ByObjectParameterSet +Type: System.String +Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` ### -Name -Rules engine name. +Name of the Rules Engine which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet -Aliases: +Parameter Sets: (All) +Aliases: RulesEngineName Required: True Position: Named @@ -117,33 +108,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -The resource group name that the Front Door will be created in. +### -NoWait +Run the command asynchronously ```yaml -Type: System.String -Parameter Sets: ByFieldsParameterSet +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the RulesEngine to update +### -ResourceGroupName +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet +Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -151,7 +142,7 @@ Accept wildcard characters: False A list of rules that define a particular Rules Engine Configuration. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] Parameter Sets: (All) Aliases: @@ -162,6 +153,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -178,7 +185,8 @@ Accept wildcard characters: False ``` ### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. +Shows what would happen if the cmdlet runs. +The cmdlet is not run. ```yaml Type: System.Management.Automation.SwitchParameter @@ -197,13 +205,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine - -### System.String - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md index 6b711c336bd7..4630997b25f4 100644 --- a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy schema: 2.0.0 @@ -8,98 +8,61 @@ schema: 2.0.0 # Update-AzFrontDoorWafPolicy ## SYNOPSIS -Update WAF policy +Update policy with specified rule set name within a resource group. ## SYNTAX -### ByFieldsParameterSet (Default) +### UpdateExpanded (Default) ``` -Update-AzFrontDoorWafPolicy -ResourceGroupName -Name [-EnabledState ] - [-Mode ] [-Customrule ] [-ManagedRule ] [-RedirectUrl ] - [-CustomBlockResponseStatusCode ] [-CustomBlockResponseBody ] [-RequestBodyCheck ] - [-LogScrubbingSetting ] [-JavascriptChallengeExpirationInMinutes ] - [-CaptchaExpirationInMinutes ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] +Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] + [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] + [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] + [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` -### ByObjectParameterSet +### UpdateViaIdentityExpanded ``` -Update-AzFrontDoorWafPolicy -InputObject [-EnabledState ] [-Mode ] - [-Customrule ] [-ManagedRule ] [-RedirectUrl ] - [-CustomBlockResponseStatusCode ] [-CustomBlockResponseBody ] [-RequestBodyCheck ] - [-LogScrubbingSetting ] [-JavascriptChallengeExpirationInMinutes ] - [-CaptchaExpirationInMinutes ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] -``` - -### ByResourceIdParameterSet -``` -Update-AzFrontDoorWafPolicy -ResourceId [-EnabledState ] [-Mode ] - [-Customrule ] [-ManagedRule ] [-RedirectUrl ] - [-CustomBlockResponseStatusCode ] [-CustomBlockResponseBody ] [-RequestBodyCheck ] - [-LogScrubbingSetting ] [-JavascriptChallengeExpirationInMinutes ] - [-CaptchaExpirationInMinutes ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] +Update-AzFrontDoorWafPolicy -InputObject [-CustomRule ] [-Etag ] + [-ManagedRuleSet ] [-SkuName ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -The **Update-AzFrontDoorWafPolicy** cmdlet updates an existing WAF policy. If input parameters are not provided, old parameters from the existing WAF policy will be used. +Update policy with specified rule set name within a resource group. ## EXAMPLES -### Example 1 -```powershell -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 -``` - -```output -Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl ----- ---------- ------------------ ----------------------------- ----------- -{policyName} Prevention Enabled 403 https://www.bing.com/ -``` - -Update an existing WAF policy custom status code. - -### Example 2 +### Example 1: {{ Add title here }} ```powershell -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection +{{ Add code here }} ``` ```output -Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl ----- ---------- ------------------ ----------------------------- ----------- -{policyName} Detection Enabled 403 https://www.bing.com/ +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Update an existing WAF policy mode. +{{ Add description here }} -### Example 3 +### Example 2: {{ Add title here }} ```powershell -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +{{ Add code here }} ``` ```output -Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl ----- ---------- ------------------ ----------------------------- ----------- -{policyName} Detection Disabled 403 https://www.bing.com/ +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Update an existing WAF policy enabled state and mode. - -### Example 4 -```powershell -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled -``` - -Update all WAF policies in $resourceGroupName +{{ Add description here }} ## PARAMETERS -### -CaptchaExpirationInMinutes -setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 +### -AsJob +Run the command as a job ```yaml -Type: System.Nullable`1[System.Int32] +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -111,11 +74,17 @@ Accept wildcard characters: False ``` ### -CustomBlockResponseBody -Custom Response Body +[Parameter()] +[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] +[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] +# Describes settings for the policy. +${PolicySetting}, +If the action type is block, customer can override the response body. +The body must be specified in base64 encoding. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -126,11 +95,11 @@ Accept wildcard characters: False ``` ### -CustomBlockResponseStatusCode -Custom Response Status Code +If the action type is block, customer can override the response status code. ```yaml -Type: System.Nullable`1[System.Int32] -Parameter Sets: (All) +Type: System.Int32 +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -140,11 +109,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Customrule -Custom rules inside the policy +### -CustomRule +List of rules ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] Parameter Sets: (All) Aliases: @@ -156,12 +125,13 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -171,14 +141,28 @@ Accept wildcard characters: False ``` ### -EnabledState -Whether the policy is in enabled state or disabled state. -Possible values include: 'Disabled', 'Enabled' +Describes if the policy is in enabled or disabled state. +Defaults to Enabled if not specified. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Gets a unique read-only string that changes whenever the resource is updated. + +```yaml +Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Enabled, Disabled Required: False Position: Named @@ -188,11 +172,11 @@ Accept wildcard characters: False ``` ### -InputObject -The FireWallPolicy object to update. +Identity Parameter ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy -Parameter Sets: ByObjectParameterSet +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: UpdateViaIdentityExpanded Aliases: Required: True @@ -203,11 +187,13 @@ Accept wildcard characters: False ``` ### -JavascriptChallengeExpirationInMinutes -setting is only applicable to Premium_AzureFrontDoor. 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. ```yaml -Type: System.Nullable`1[System.Int32] -Parameter Sets: (All) +Type: System.Int32 +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -218,11 +204,11 @@ Accept wildcard characters: False ``` ### -LogScrubbingSetting -Defines rules that scrub sensitive fields in the Web Application Firewall. +Defines rules that scrub sensitive fields in the Web Application Firewall logs. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -232,11 +218,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagedRule -Managed rules inside the policy +### -ManagedRuleSet +List of rule sets. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRule[] +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] Parameter Sets: (All) Aliases: @@ -248,12 +234,11 @@ Accept wildcard characters: False ``` ### -Mode -Describes if it is in detection mode or prevention mode at policy level. -Possible values include:'Prevention', 'Detection' +Describes if it is in detection mode or prevention mode at policy level. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -264,12 +249,12 @@ Accept wildcard characters: False ``` ### -Name -The name of the FireWallPolicy to update. +The name of the Web Application Firewall Policy. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet -Aliases: +Parameter Sets: UpdateExpanded +Aliases: PolicyName Required: True Position: Named @@ -278,12 +263,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RedirectUrl -Redirect URL +If action type is redirect, this field represents redirect URL for the client. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -294,11 +294,11 @@ Accept wildcard characters: False ``` ### -RequestBodyCheck -Defines if the body should be inspected by managed rules. Possible values include: 'Enabled', 'Disabled' +Describes if policy managed rules will inspect the request body content. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -309,11 +309,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The resource group to which the FireWallPolicy belongs. +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: UpdateExpanded Aliases: Required: True @@ -323,18 +323,49 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the FireWallPolicy to update +### -SkuName +Name of the pricing tier. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet +Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False Position: Named Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -374,19 +405,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy - -### System.String +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy ## NOTES ## RELATED LINKS -[New-AzFrontDoorWafPolicy](./New-AzFrontDoorWafPolicy.md) -[Get-AzFrontDoorWafPolicy](./Get-AzFrontDoorWafPolicy.md) -[New-AzFrontDoorWafManagedRuleObject](./New-AzFrontDoorWafManagedRuleObject.md) -[New-AzFrontDoorWafCustomRuleObject](./New-AzFrontDoorWafManagedRuleObject.md) From ce199bd163a17bff33b5793bc9e8e2dccc681c1d Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 20 Aug 2025 11:27:51 +1000 Subject: [PATCH 02/30] update --- .../Update-AzFrontDoorRulesEngine.Tests.ps1 | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 deleted file mode 100644 index 9a2946a3dbe8..000000000000 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorRulesEngine')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzFrontDoorRulesEngine.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzFrontDoorRulesEngine' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityFrontDoorExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} From ef20776a8891dc712d486e656b6f477ef299e7e9 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 20 Aug 2025 13:25:03 +1000 Subject: [PATCH 03/30] update --- src/FrontDoor/FrontDoor.Autorest/README.md | 5 + src/FrontDoor/FrontDoor.sln | 28 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 25 +- src/FrontDoor/FrontDoor/help/Az.FrontDoor.md | 13 +- .../Disable-AzFrontDoorCustomDomainHttps.md | 2 +- .../Enable-AzFrontDoorCustomDomainHttps.md | 2 +- .../FrontDoor/help/Get-AzFrontDoor.md | 2 +- .../help/Get-AzFrontDoorFrontendEndpoint.md | 2 +- .../help/Get-AzFrontDoorRulesEngine.md | 2 +- ...-AzFrontDoorWafManagedRuleSetDefinition.md | 2 +- .../help/Get-AzFrontDoorWafPolicy.md | 2 +- .../FrontDoor/help/New-AzFrontDoor.md | 2 +- .../help/New-AzFrontDoorBackendObject.md | 2 +- .../help/New-AzFrontDoorBackendPoolObject.md | 2 +- ...ew-AzFrontDoorBackendPoolsSettingObject.md | 2 +- .../New-AzFrontDoorFrontendEndpointObject.md | 2 +- .../help/New-AzFrontDoorHeaderActionObject.md | 2 +- ...New-AzFrontDoorHealthProbeSettingObject.md | 2 +- ...w-AzFrontDoorLoadBalancingSettingObject.md | 2 +- .../help/New-AzFrontDoorRoutingRuleObject.md | 2 +- .../help/New-AzFrontDoorRulesEngine.md | 2 +- .../New-AzFrontDoorRulesEngineActionObject.md | 2 +- ...rontDoorRulesEngineMatchConditionObject.md | 2 +- .../New-AzFrontDoorRulesEngineRuleObject.md | 2 +- ...tDoorWafCustomRuleGroupByVariableObject.md | 2 +- .../New-AzFrontDoorWafCustomRuleObject.md | 2 +- ...ew-AzFrontDoorWafLogScrubbingRuleObject.md | 2 +- ...AzFrontDoorWafLogScrubbingSettingObject.md | 2 +- ...zFrontDoorWafManagedRuleExclusionObject.md | 2 +- .../New-AzFrontDoorWafManagedRuleObject.md | 2 +- ...AzFrontDoorWafManagedRuleOverrideObject.md | 2 +- .../New-AzFrontDoorWafMatchConditionObject.md | 2 +- .../help/New-AzFrontDoorWafPolicy.md | 2 +- ...w-AzFrontDoorWafRuleGroupOverrideObject.md | 2 +- .../FrontDoor/help/Remove-AzFrontDoor.md | 2 +- .../help/Remove-AzFrontDoorContent.md | 2 +- .../help/Remove-AzFrontDoorRulesEngine.md | 2 +- .../help/Remove-AzFrontDoorWafPolicy.md | 2 +- .../FrontDoor/help/Set-AzFrontDoor.md | 2 +- .../help/Set-AzFrontDoorRulesEngine.md | 2 +- .../help/Update-AzFrontDoorWafPolicy.md | 239 ++---------------- 41 files changed, 93 insertions(+), 289 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/README.md b/src/FrontDoor/FrontDoor.Autorest/README.md index 1af5161f73ad..cf6ea72b4175 100644 --- a/src/FrontDoor/FrontDoor.Autorest/README.md +++ b/src/FrontDoor/FrontDoor.Autorest/README.md @@ -150,6 +150,10 @@ directive: set: verb: Get subject: WafManagedRuleSetDefinition + - where: + verb: Set + subject: WafPolicy + hide: true # Hide Waf - where: verb: New @@ -253,6 +257,7 @@ directive: subject: RulesEngine set: verb: Set + subject: RulesEngine # Breaking change avoid rename # New-AzFrontDoorHeaderActionObject diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 9e6d3aa6da10..446c17d7af06 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -29,7 +29,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FrontDoor.Management.Sdk", EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{25FB9EDC-BEFD-4574-93A8-97BA6683AD63}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -161,18 +161,18 @@ Global {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x64.Build.0 = Release|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.ActiveCfg = Release|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.Build.0 = Release|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|Any CPU.Build.0 = Debug|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|x64.ActiveCfg = Debug|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|x64.Build.0 = Debug|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|x86.ActiveCfg = Debug|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Debug|x86.Build.0 = Debug|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|Any CPU.ActiveCfg = Release|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|Any CPU.Build.0 = Release|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|x64.ActiveCfg = Release|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|x64.Build.0 = Release|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|x86.ActiveCfg = Release|Any CPU - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63}.Release|x86.Build.0 = Release|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|x64.ActiveCfg = Debug|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|x64.Build.0 = Debug|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|x86.ActiveCfg = Debug|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|x86.Build.0 = Debug|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|Any CPU.Build.0 = Release|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|x64.ActiveCfg = Release|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|x64.Build.0 = Release|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|x86.ActiveCfg = Release|Any CPU + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -186,7 +186,7 @@ Global {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} {4C8972CB-B1DD-4E1A-8766-F039AF530062} = {4A3D22CE-940D-4656-A344-7603474FB7A8} {CEE04FC4-EA9E-49F5-8E65-1BF927763971} = {4A3D22CE-940D-4656-A344-7603474FB7A8} - {25FB9EDC-BEFD-4574-93A8-97BA6683AD63} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 7bb4ea9e15ea..ffc6e664b4a0 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -53,24 +53,24 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.2.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) # Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'Microsoft.Azure.PowerShell.FrontDoor.Management.Sdk.dll', - 'FrontDoor.Autorest/bin/Az.FrontDoor.private.dll' +RequiredAssemblies = 'FrontDoor.Autorest/bin/Az.FrontDoor.private.dll', + 'Microsoft.Azure.PowerShell.FrontDoor.Management.Sdk.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'FrontDoor.Autorest/Az.FrontDoor.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll', - 'FrontDoor.Autorest/Az.FrontDoor.psm1') +NestedModules = @('FrontDoor.Autorest/Az.FrontDoor.psm1', + 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll') # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = 'Disable-AzFrontDoorCustomDomainHttps', @@ -104,8 +104,7 @@ FunctionsToExport = 'Disable-AzFrontDoorCustomDomainHttps', 'New-AzFrontDoorWafRuleGroupOverrideObject', 'Remove-AzFrontDoor', 'Remove-AzFrontDoorContent', 'Remove-AzFrontDoorRulesEngine', 'Remove-AzFrontDoorWafPolicy', 'Set-AzFrontDoor', - 'Update-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy', - 'Set-AzFrontDoorRulesEngine' + 'Set-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Disable-AzFrontDoorCustomDomainHttps', @@ -123,10 +122,10 @@ CmdletsToExport = 'Disable-AzFrontDoorCustomDomainHttps', 'New-AzFrontDoorRulesEngineActionObject', 'New-AzFrontDoorRulesEngineMatchConditionObject', 'New-AzFrontDoorRulesEngineRuleObject', + 'New-AzFrontDoorWafCustomRuleGroupByVariableObject', + 'New-AzFrontDoorWafCustomRuleObject', 'New-AzFrontDoorWafLogScrubbingRuleObject', 'New-AzFrontDoorWafLogScrubbingSettingObject', - 'New-AzFrontDoorWafCustomRuleObject', - 'New-AzFrontDoorWafCustomRuleGroupByVariableObject', 'New-AzFrontDoorWafManagedRuleExclusionObject', 'New-AzFrontDoorWafManagedRuleObject', 'New-AzFrontDoorWafManagedRuleOverrideObject', @@ -138,10 +137,10 @@ CmdletsToExport = 'Disable-AzFrontDoorCustomDomainHttps', 'Set-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy' # Variables to export from this module -VariablesToExport = '*' +# VariablesToExport = @() # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = 'Set-AzFrontDoorRulesEngine' +AliasesToExport = @() # DSC resources to export from this module # DscResourcesToExport = @() diff --git a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md index 97ce48c0775c..50f48f787251 100644 --- a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md @@ -1,14 +1,14 @@ --- Module Name: Az.FrontDoor -Module Guid: 91832aaa-dc11-4583-8239-adb7df531604 -Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor -Help Version: 0.1.0 -Locale: en-US +Module Guid: {{ Update Module Guid }} +Download Help Link: {{ Update Download Link }} +Help Version: {{ Update Help Version }} +Locale: {{ Update Locale }} --- # Az.FrontDoor Module ## Description -The topics in this section document the Azure PowerShell cmdlets for Azure Front Door Service in the Azure Resource Manager (ARM) framework. The cmdlets exist in the Microsoft.Azure.Commands.FrontDoor namespace. +{{ Fill in the Description }} ## Az.FrontDoor Cmdlets ### [Disable-AzFrontDoorCustomDomainHttps](Disable-AzFrontDoorCustomDomainHttps.md) @@ -131,3 +131,6 @@ Update a new Front Door with a Front Door name under the specified subscription ### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) Update a new Rules Engine Configuration with the specified name within the specified Front Door. +### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) +Update a new Rules Engine Configuration with the specified name within the specified Front Door. + diff --git a/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md index 2fc932a64f53..367199cb8eec 100644 --- a/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/disable-azfrontdoorcustomdomainhttps schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md index 7509223ef4d4..9999b2bf62a5 100644 --- a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md index 2e21fdfc8466..9cbdae30aa9d 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoor schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md index 76fe214fd8f7..9261b9ccafc5 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md index 70a45f1514b2..d29c064c4210 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorrulesengine schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md index 10106263afed..4f8ce24e2b67 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafmanagedrulesetdefinition schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md index 47d42ea4188e..a21199fb2ecc 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafpolicy schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md index 8147ba6e9add..c936dc7d5500 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md index 7615e4bc2463..71785073acdf 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md index e3c98f22b18f..600a28fea1d9 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md index 5b8700f2a230..29fd12f79538 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md index a787ab0c7831..e5b3ae7ddc9b 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md index 3fb03a76d810..f98019c1dbd9 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorheaderactionobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md index e5a052d62594..c8ed5df251c4 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md index 3ee5a831b033..4bc8aabf90f3 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md index d1e5ea09f207..c3a2217f3695 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md index 48a69de256a2..a2f538d0c8fc 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengine schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md index b0c79ce1d04f..24c6ddb8e04c 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md index 83b4097234f8..33ef087d78ff 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md index 419e12237e5a..e08162826a95 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md index 372b1a7c7846..99c5b22de735 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomrulegroupbyvariableobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md index 064b8659e7e8..5d88c4d8bebe 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md index eba7c389a12f..708052617908 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingruleobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md index 8e0cfb90686f..68355841aaa3 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingsettingobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md index ab87463fd6c5..ffb074c7d7df 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleexclusionobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md index e719f030ff49..2e3392f0daf4 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md index a0e6ea0566cd..51f429512ade 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md index 06bc9ba9594f..1dbb763b22bf 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmatchconditionobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md index ff5c32a1f732..1078f31519e9 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md index 78f2b0720b5a..808c80988c5c 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafrulegroupoverrideobject schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md index 3ab181faa2bb..784693eb531d 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoor schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md index 669f4bb8d2db..60caa3c3482b 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorcontent schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md index 01d88463bff0..fe3e6be9ac73 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorrulesengine schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md index 101d3046a0df..f34557790f0d 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorwafpolicy schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md index 48d434b422c1..b2565942c7d7 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md index 8fb396a6f311..4cb36ffcc337 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine schema: 2.0.0 diff --git a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md index 4630997b25f4..00b5196818c2 100644 --- a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md @@ -1,36 +1,25 @@ --- -external help file: +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy schema: 2.0.0 --- -# Update-AzFrontDoorWafPolicy +# Set-AzFrontDoorRulesEngine ## SYNOPSIS -Update policy with specified rule set name within a resource group. +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ## SYNTAX -### UpdateExpanded (Default) ``` -Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] - [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] - [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] - [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] - [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzFrontDoorWafPolicy -InputObject [-CustomRule ] [-Etag ] - [-ManagedRuleSet ] [-SkuName ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update policy with specified rule set name within a resource group. +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ## EXAMPLES @@ -73,57 +62,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomBlockResponseBody -[Parameter()] -[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] -[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] -# Describes settings for the policy. -${PolicySetting}, -If the action type is block, customer can override the response body. -The body must be specified in base64 encoding. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CustomBlockResponseStatusCode -If the action type is block, customer can override the response status code. - -```yaml -Type: System.Int32 -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CustomRule -List of rules - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -140,121 +78,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -EnabledState -Describes if the policy is in enabled or disabled state. -Defaults to Enabled if not specified. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Etag -Gets a unique read-only string that changes whenever the resource is updated. +### -FrontDoorName +Name of the Front Door which is globally unique. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -JavascriptChallengeExpirationInMinutes -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. - -```yaml -Type: System.Int32 -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -LogScrubbingSetting -Defines rules that scrub sensitive fields in the Web Application Firewall logs. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ManagedRuleSet -List of rule sets. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Mode -Describes if it is in detection mode or prevention mode at policy level. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Name -The name of the Web Application Firewall Policy. +Name of the Rules Engine which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: UpdateExpanded -Aliases: PolicyName +Parameter Sets: (All) +Aliases: RulesEngineName Required: True Position: Named @@ -278,42 +123,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -RedirectUrl -If action type is redirect, this field represents redirect URL for the client. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RequestBodyCheck -Describes if policy managed rules will inspect the request body content. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -ResourceGroupName Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -323,11 +138,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -SkuName -Name of the pricing tier. +### -Rule +A list of rules that define a particular Rules Engine Configuration. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] Parameter Sets: (All) Aliases: @@ -344,27 +159,12 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Tag -Resource tags. - -```yaml -Type: System.Collections.Hashtable Parameter Sets: (All) Aliases: Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` @@ -405,13 +205,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine ## NOTES ## RELATED LINKS - From f2e25566de5a12c9d8dd382e12fa01e48ca02943 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 20 Aug 2025 16:16:31 +1000 Subject: [PATCH 04/30] update --- src/FrontDoor/FrontDoor.Autorest/README.md | 12 ++++++---- src/FrontDoor/FrontDoor.sln | 28 +++++++++++----------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/README.md b/src/FrontDoor/FrontDoor.Autorest/README.md index cf6ea72b4175..de25ce778407 100644 --- a/src/FrontDoor/FrontDoor.Autorest/README.md +++ b/src/FrontDoor/FrontDoor.Autorest/README.md @@ -159,6 +159,7 @@ directive: verb: New subject: WafPolicy hide: true + # Hide for customization - where: verb: Update subject: WafPolicy @@ -170,6 +171,7 @@ directive: hide: true - where: verb: Set + subject: FrontDoor hide: true - where: @@ -205,10 +207,6 @@ directive: verb: Enable subject: CustomDomainHttps hide: true - - where: - verb: Set - subject: RulesEngine - hide: true # AzFrontDoor - where: @@ -251,7 +249,11 @@ directive: verb: Remove subject: Content - # Update Rules Engine alias + # Update Rules Engine rename, and hide set + - where: + verb: Set + subject: RulesEngine + hide: true - where: verb: Update subject: RulesEngine diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 446c17d7af06..31c09d1884cd 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -29,7 +29,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FrontDoor.Management.Sdk", EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{F7271A2A-8B09-4448-9BCA-8A5665FCEA66}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -161,18 +161,18 @@ Global {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x64.Build.0 = Release|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.ActiveCfg = Release|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.Build.0 = Release|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|x64.ActiveCfg = Debug|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|x64.Build.0 = Debug|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|x86.ActiveCfg = Debug|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Debug|x86.Build.0 = Debug|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|Any CPU.Build.0 = Release|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|x64.ActiveCfg = Release|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|x64.Build.0 = Release|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|x86.ActiveCfg = Release|Any CPU - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2}.Release|x86.Build.0 = Release|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|x64.ActiveCfg = Debug|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|x64.Build.0 = Debug|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|x86.ActiveCfg = Debug|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|x86.Build.0 = Debug|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|Any CPU.Build.0 = Release|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|x64.ActiveCfg = Release|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|x64.Build.0 = Release|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|x86.ActiveCfg = Release|Any CPU + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -186,7 +186,7 @@ Global {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} {4C8972CB-B1DD-4E1A-8766-F039AF530062} = {4A3D22CE-940D-4656-A344-7603474FB7A8} {CEE04FC4-EA9E-49F5-8E65-1BF927763971} = {4A3D22CE-940D-4656-A344-7603474FB7A8} - {04AC2E4D-ECB3-47A5-BB66-DB4E75C499E2} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {F7271A2A-8B09-4448-9BCA-8A5665FCEA66} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} From a1acb236d680c7c8f0beb1138572230b43a4bcd8 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Thu, 21 Aug 2025 19:43:55 +1000 Subject: [PATCH 05/30] hide all RulesEngine --- .../Properties/AssemblyInfo.cs | 1 + src/FrontDoor/FrontDoor.Autorest/README.md | 6 +- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 3 - .../docs/Set-AzFrontDoorRulesEngine.md | 215 ------------------ .../examples/Set-AzFrontDoorRulesEngine.md | 22 -- .../Update-AzFrontDoorRulesEngine.Tests.ps1 | 29 +++ src/FrontDoor/FrontDoor.sln | 28 +-- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 4 +- src/FrontDoor/FrontDoor/help/Az.FrontDoor.md | 4 +- .../help/Set-AzFrontDoorRulesEngine.md | 125 +++++----- .../help/Update-AzFrontDoorWafPolicy.md | 123 +++++----- 11 files changed, 162 insertions(+), 398 deletions(-) delete mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md delete mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs index b6db8e525a56..95c2780d31cd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -24,3 +24,4 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/FrontDoor/FrontDoor.Autorest/README.md b/src/FrontDoor/FrontDoor.Autorest/README.md index de25ce778407..24cf99e33fa1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/README.md +++ b/src/FrontDoor/FrontDoor.Autorest/README.md @@ -257,9 +257,9 @@ directive: - where: verb: Update subject: RulesEngine - set: - verb: Set - subject: RulesEngine + hide: true + # set: + # alias: Set-AzureFrontDoorRulesEngine # Breaking change avoid rename # New-AzFrontDoorHeaderActionObject diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 93797dd7680d..1e58b0be8e2c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -128,9 +128,6 @@ Deletes Policy ### [Set-AzFrontDoor](Set-AzFrontDoor.md) Update a new Front Door with a Front Door name under the specified subscription and resource group. -### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) -Update a new Rules Engine Configuration with the specified name within the specified Front Door. - ### [Update-AzFrontDoorWafPolicy](Update-AzFrontDoorWafPolicy.md) Update policy with specified rule set name within a resource group. diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md deleted file mode 100644 index 0891a6714916..000000000000 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md +++ /dev/null @@ -1,215 +0,0 @@ ---- -external help file: -Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine -schema: 2.0.0 ---- - -# Set-AzFrontDoorRulesEngine - -## SYNOPSIS -Update a new Rules Engine Configuration with the specified name within the specified Front Door. - -## SYNTAX - -``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Update a new Rules Engine Configuration with the specified name within the specified Front Door. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FrontDoorName -Name of the Front Door which is globally unique. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -Name of the Rules Engine which is unique within the Front Door. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: RulesEngineName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -Name of the Resource group within the Azure subscription. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Rule -A list of rules that define a particular Rules Engine Configuration. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - -## NOTES - -## RELATED LINKS - diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 new file mode 100644 index 000000000000..9a2946a3dbe8 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorRulesEngine.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorRulesEngine')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzFrontDoorRulesEngine.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzFrontDoorRulesEngine' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityFrontDoorExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 31c09d1884cd..5d4bdb850ebe 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -29,7 +29,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FrontDoor.Management.Sdk", EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{F7271A2A-8B09-4448-9BCA-8A5665FCEA66}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{8883511F-26AD-43E9-BA54-EAB5AF4E17C6}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -161,18 +161,18 @@ Global {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x64.Build.0 = Release|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.ActiveCfg = Release|Any CPU {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.Build.0 = Release|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|x64.ActiveCfg = Debug|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|x64.Build.0 = Debug|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|x86.ActiveCfg = Debug|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Debug|x86.Build.0 = Debug|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|Any CPU.Build.0 = Release|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|x64.ActiveCfg = Release|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|x64.Build.0 = Release|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|x86.ActiveCfg = Release|Any CPU - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66}.Release|x86.Build.0 = Release|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|x64.ActiveCfg = Debug|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|x64.Build.0 = Debug|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|x86.ActiveCfg = Debug|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|x86.Build.0 = Debug|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|Any CPU.Build.0 = Release|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|x64.ActiveCfg = Release|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|x64.Build.0 = Release|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|x86.ActiveCfg = Release|Any CPU + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -186,7 +186,7 @@ Global {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} {4C8972CB-B1DD-4E1A-8766-F039AF530062} = {4A3D22CE-940D-4656-A344-7603474FB7A8} {CEE04FC4-EA9E-49F5-8E65-1BF927763971} = {4A3D22CE-940D-4656-A344-7603474FB7A8} - {F7271A2A-8B09-4448-9BCA-8A5665FCEA66} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {8883511F-26AD-43E9-BA54-EAB5AF4E17C6} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index ffc6e664b4a0..dfbb2e19ac34 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/8/20 +# Generated on: 2025/8/21 # @{ @@ -104,7 +104,7 @@ FunctionsToExport = 'Disable-AzFrontDoorCustomDomainHttps', 'New-AzFrontDoorWafRuleGroupOverrideObject', 'Remove-AzFrontDoor', 'Remove-AzFrontDoorContent', 'Remove-AzFrontDoorRulesEngine', 'Remove-AzFrontDoorWafPolicy', 'Set-AzFrontDoor', - 'Set-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy' + 'Update-AzFrontDoorWafPolicy' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Disable-AzFrontDoorCustomDomainHttps', diff --git a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md index 50f48f787251..28ec3ea00275 100644 --- a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md @@ -129,8 +129,8 @@ Deletes Policy Update a new Front Door with a Front Door name under the specified subscription and resource group. ### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) -Update a new Rules Engine Configuration with the specified name within the specified Front Door. +{{ Fill in the Synopsis }} ### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) -Update a new Rules Engine Configuration with the specified name within the specified Front Door. +{{ Fill in the Synopsis }} diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md index 4cb36ffcc337..ad798618f615 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md @@ -1,75 +1,59 @@ --- -external help file: Az.FrontDoor-help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml Module Name: Az.FrontDoor -online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine +online version: schema: 2.0.0 --- # Set-AzFrontDoorRulesEngine ## SYNOPSIS -Update a new Rules Engine Configuration with the specified name within the specified Front Door. +{{ Fill in the Synopsis }} ## SYNTAX +### ByFieldsParameterSet (Default) ``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] +Set-AzFrontDoorRulesEngine -ResourceGroupName -FrontDoorName -Name + [-Rule ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` -## DESCRIPTION -Update a new Rules Engine Configuration with the specified name within the specified Front Door. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} +### ByObjectParameterSet ``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Set-AzFrontDoorRulesEngine -InputObject [-Rule ] + [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} +### ByResourceIdParameterSet ``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Set-AzFrontDoorRulesEngine -ResourceId [-Rule ] + [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` -{{ Add description here }} +## DESCRIPTION +{{ Fill in the Description }} -## PARAMETERS +## EXAMPLES -### -AsJob -Run the command as a job +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: +{{ Add example description here }} -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` +## PARAMETERS ### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. +The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: System.Management.Automation.PSObject +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential +Aliases: AzContext, AzureRmContext, AzureCredential Required: False Position: Named @@ -79,11 +63,11 @@ Accept wildcard characters: False ``` ### -FrontDoorName -Name of the Front Door which is globally unique. +Front Door name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsParameterSet Aliases: Required: True @@ -93,30 +77,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -Name of the Rules Engine which is unique within the Front Door. +### -InputObject +The Rules Engine object to update. ```yaml -Type: System.String -Parameter Sets: (All) -Aliases: RulesEngineName +Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine +Parameter Sets: ByObjectParameterSet +Aliases: Required: True Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -NoWait -Run the command asynchronously +### -Name +Rules engine name. ```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Type: System.String +Parameter Sets: ByFieldsParameterSet Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -124,11 +108,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -Name of the Resource group within the Azure subscription. +The resource group name that the Front Door will be created in. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsParameterSet Aliases: Required: True @@ -138,33 +122,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Rule -A list of rules that define a particular Rules Engine Configuration. +### -ResourceId +Resource Id of the RulesEngine to update ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] -Parameter Sets: (All) +Type: System.String +Parameter Sets: ByResourceIdParameterSet Aliases: -Required: False +Required: True Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -SubscriptionId -The subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +### -Rule +A list of rules that define a particular Rules Engine Configuration. ```yaml -Type: System.String +Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule[] Parameter Sets: (All) Aliases: Required: False Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -205,9 +188,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine + +### System.String + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md index 00b5196818c2..674b747336a6 100644 --- a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Az.FrontDoor-help.xml +external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy schema: 2.0.0 @@ -8,68 +8,52 @@ schema: 2.0.0 # Set-AzFrontDoorRulesEngine ## SYNOPSIS -Update a new Rules Engine Configuration with the specified name within the specified Front Door. +{{ Fill in the Synopsis }} ## SYNTAX +### ByFieldsParameterSet (Default) ``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] +Set-AzFrontDoorRulesEngine -ResourceGroupName -FrontDoorName -Name + [-Rule ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` -## DESCRIPTION -Update a new Rules Engine Configuration with the specified name within the specified Front Door. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} +### ByObjectParameterSet ``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Set-AzFrontDoorRulesEngine -InputObject [-Rule ] + [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} +### ByResourceIdParameterSet ``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Set-AzFrontDoorRulesEngine -ResourceId [-Rule ] + [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` -{{ Add description here }} +## DESCRIPTION +{{ Fill in the Description }} -## PARAMETERS +## EXAMPLES -### -AsJob -Run the command as a job +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: +{{ Add example description here }} -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` +## PARAMETERS ### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. +The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: System.Management.Automation.PSObject +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential +Aliases: AzContext, AzureRmContext, AzureCredential Required: False Position: Named @@ -79,11 +63,11 @@ Accept wildcard characters: False ``` ### -FrontDoorName -Name of the Front Door which is globally unique. +Front Door name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsParameterSet Aliases: Required: True @@ -93,30 +77,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -Name of the Rules Engine which is unique within the Front Door. +### -InputObject +The Rules Engine object to update. ```yaml -Type: System.String -Parameter Sets: (All) -Aliases: RulesEngineName +Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine +Parameter Sets: ByObjectParameterSet +Aliases: Required: True Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -NoWait -Run the command asynchronously +### -Name +Rules engine name. ```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Type: System.String +Parameter Sets: ByFieldsParameterSet Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -124,11 +108,11 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -Name of the Resource group within the Azure subscription. +The resource group name that the Front Door will be created in. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsParameterSet Aliases: Required: True @@ -138,33 +122,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Rule -A list of rules that define a particular Rules Engine Configuration. +### -ResourceId +Resource Id of the RulesEngine to update ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] -Parameter Sets: (All) +Type: System.String +Parameter Sets: ByResourceIdParameterSet Aliases: -Required: False +Required: True Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -SubscriptionId -The subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +### -Rule +A list of rules that define a particular Rules Engine Configuration. ```yaml -Type: System.String +Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule[] Parameter Sets: (All) Aliases: Required: False Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -205,9 +188,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine + +### System.String + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine ## NOTES From b9f04897c15134d9eaf8fe174070c8646a80e3fe Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 27 Aug 2025 15:02:39 +1000 Subject: [PATCH 06/30] update --- .../custom/Set-AzFrontDoorRulesEngine.ps1 | 171 + .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 3 + .../docs/Set-AzFrontDoorRulesEngine.md | 260 ++ .../examples/Set-AzFrontDoorRulesEngine.md | 22 + .../FrontDoor.Management.Sdk.csproj | 16 - .../Generated/EndpointsOperations.cs | 301 -- .../EndpointsOperationsExtensions.cs | 86 - .../Generated/ExperimentsOperations.cs | 1549 -------- .../ExperimentsOperationsExtensions.cs | 395 -- .../Generated/FrontDoor.cs | 396 -- .../FrontDoorNameAvailabilityOperations.cs | 237 -- ...oorNameAvailabilityOperationsExtensions.cs | 41 - ...eAvailabilityWithSubscriptionOperations.cs | 243 -- ...ityWithSubscriptionOperationsExtensions.cs | 41 - .../Generated/FrontDoorsOperations.cs | 1822 --------- .../FrontDoorsOperationsExtensions.cs | 376 -- .../Generated/FrontendEndpointsOperations.cs | 1251 ------- .../FrontendEndpointsOperationsExtensions.cs | 301 -- .../Generated/IEndpointsOperations.cs | 73 - .../Generated/IExperimentsOperations.cs | 273 -- .../Generated/IFrontDoor.cs | 129 - .../IFrontDoorNameAvailabilityOperations.cs | 38 - ...eAvailabilityWithSubscriptionOperations.cs | 38 - .../Generated/IFrontDoorsOperations.cs | 271 -- .../Generated/IFrontendEndpointsOperations.cs | 205 -- .../Generated/IManagedRuleSetsOperations.cs | 58 - .../INetworkExperimentProfilesOperations.cs | 296 -- .../Generated/IPoliciesOperations.cs | 300 -- .../IPreconfiguredEndpointsOperations.cs | 64 - .../Generated/IReportsOperations.cs | 102 - .../Generated/IRulesEnginesOperations.cs | 221 -- .../Generated/ManagedRuleSetsOperations.cs | 402 -- .../ManagedRuleSetsOperationsExtensions.cs | 74 - .../Generated/Models/ActionType.cs | 22 - .../Generated/Models/AggregationInterval.cs | 17 - .../Generated/Models/Availability.cs | 17 - .../Models/AzureAsyncOperationResult.cs | 63 - .../Generated/Models/Backend.cs | 232 -- .../Generated/Models/BackendEnabledState.cs | 17 - .../Generated/Models/BackendPool.cs | 102 - .../Generated/Models/BackendPoolListResult.cs | 58 - .../Generated/Models/BackendPoolProperties.cs | 58 - .../Models/BackendPoolUpdateParameters.cs | 66 - .../Generated/Models/BackendPoolsSettings.cs | 77 - .../Generated/Models/CacheConfiguration.cs | 83 - .../Models/CheckNameAvailabilityInput.cs | 72 - .../Models/CheckNameAvailabilityOutput.cs | 66 - .../Models/CustomHttpsConfiguration.cs | 139 - .../Models/CustomHttpsProvisioningState.cs | 20 - .../Models/CustomHttpsProvisioningSubstate.cs | 25 - .../Generated/Models/CustomRule.cs | 202 - .../Models/CustomRuleEnabledState.cs | 17 - .../Generated/Models/CustomRuleList.cs | 46 - .../Generated/Models/DefaultErrorResponse.cs | 47 - .../Models/DefaultErrorResponseError.cs | 56 - .../Models/DefaultErrorResponseException.cs | 53 - .../Models/DynamicCompressionEnabled.cs | 17 - .../Generated/Models/Endpoint.cs | 56 - .../Generated/Models/EndpointType.cs | 19 - ...EnforceCertificateNameCheckEnabledState.cs | 17 - .../Generated/Models/Error.cs | 83 - .../Generated/Models/ErrorDetails.cs | 63 - .../Generated/Models/ErrorResponse.cs | 57 - .../Models/ErrorResponseException.cs | 53 - .../Generated/Models/Experiment.cs | 124 - .../Generated/Models/ExperimentProperties.cs | 107 - .../Generated/Models/ExperimentUpdateModel.cs | 67 - .../Models/ExperimentUpdateProperties.cs | 56 - .../Models/ForwardingConfiguration.cs | 80 - .../Models/FrontDoorCertificateSource.cs | 17 - .../FrontDoorCertificateSourceParameters.cs | 48 - .../Models/FrontDoorCertificateType.cs | 16 - .../Generated/Models/FrontDoorEnabledState.cs | 17 - .../Models/FrontDoorForwardingProtocol.cs | 18 - .../Models/FrontDoorHealthProbeMethod.cs | 17 - .../Generated/Models/FrontDoorModel.cs | 234 -- .../Generated/Models/FrontDoorProperties.cs | 140 - .../Generated/Models/FrontDoorProtocol.cs | 17 - .../Generated/Models/FrontDoorQuery.cs | 19 - .../Models/FrontDoorRedirectProtocol.cs | 18 - .../Generated/Models/FrontDoorRedirectType.cs | 19 - .../Models/FrontDoorResourceState.cs | 23 - .../Models/FrontDoorTlsProtocolType.cs | 16 - .../Models/FrontDoorUpdateParameters.cs | 149 - .../Generated/Models/FrontendEndpoint.cs | 177 - .../Generated/Models/FrontendEndpointLink.cs | 46 - .../Models/FrontendEndpointProperties.cs | 118 - .../FrontendEndpointUpdateParameters.cs | 81 - ...ametersWebApplicationFirewallPolicyLink.cs | 46 - .../Generated/Models/GroupByVariable.cs | 60 - .../Generated/Models/HeaderAction.cs | 88 - .../Generated/Models/HeaderActionType.cs | 18 - .../Generated/Models/HealthProbeEnabled.cs | 17 - .../Models/HealthProbeSettingsListResult.cs | 58 - .../Models/HealthProbeSettingsModel.cs | 128 - .../Models/HealthProbeSettingsProperties.cs | 67 - .../HealthProbeSettingsUpdateParameters.cs | 92 - .../KeyVaultCertificateSourceParameters.cs | 68 - ...eyVaultCertificateSourceParametersVault.cs | 46 - .../Generated/Models/LatencyMetric.cs | 136 - .../Generated/Models/LatencyScorecard.cs | 146 - .../LatencyScorecardAggregationInterval.cs | 18 - .../Models/LatencyScorecardProperties.cs | 129 - .../Models/LoadBalancingSettingsListResult.cs | 59 - .../Models/LoadBalancingSettingsModel.cs | 105 - .../Models/LoadBalancingSettingsProperties.cs | 59 - .../LoadBalancingSettingsUpdateParameters.cs | 69 - .../Generated/Models/ManagedRuleDefinition.cs | 78 - .../Models/ManagedRuleEnabledState.cs | 17 - .../Generated/Models/ManagedRuleExclusion.cs | 96 - .../ManagedRuleExclusionMatchVariable.cs | 20 - ...nagedRuleExclusionSelectorMatchOperator.cs | 20 - .../Models/ManagedRuleGroupDefinition.cs | 66 - .../Models/ManagedRuleGroupOverride.cs | 103 - .../Generated/Models/ManagedRuleOverride.cs | 106 - .../Generated/Models/ManagedRuleSet.cs | 127 - .../Models/ManagedRuleSetActionType.cs | 18 - .../Models/ManagedRuleSetDefinition.cs | 103 - .../ManagedRuleSetDefinitionProperties.cs | 86 - .../Generated/Models/ManagedRuleSetList.cs | 46 - .../Generated/Models/MatchCondition.cs | 128 - .../Models/MatchProcessingBehavior.cs | 17 - .../Generated/Models/MatchVariable.cs | 24 - .../Generated/Models/MinimumTLSVersion.cs | 17 - .../Models/NetworkExperimentResourceState.cs | 21 - .../Models/NetworkOperationStatus.cs | 18 - .../Generated/Models/Operator.cs | 27 - .../Generated/Models/Page.cs | 41 - .../Generated/Models/PolicyEnabledState.cs | 17 - .../Generated/Models/PolicyMode.cs | 17 - .../Models/PolicyRequestBodyCheck.cs | 17 - .../Generated/Models/PolicyResourceState.cs | 21 - .../Generated/Models/PolicySettings.cs | 189 - .../Models/PolicySettingsLogScrubbing.cs | 58 - .../Generated/Models/PreconfiguredEndpoint.cs | 93 - .../Models/PreconfiguredEndpointProperties.cs | 76 - .../Generated/Models/PrivateEndpointStatus.cs | 20 - .../Generated/Models/Profile.cs | 86 - .../Generated/Models/ProfileProperties.cs | 57 - .../Generated/Models/ProfileUpdateModel.cs | 57 - .../Models/ProfileUpdateProperties.cs | 46 - .../Generated/Models/PurgeParameters.cs | 62 - .../Generated/Models/RedirectConfiguration.cs | 113 - .../Generated/Models/Resource.cs | 86 - .../Generated/Models/ResourceType.cs | 49 - .../Generated/Models/RouteConfiguration.cs | 29 - .../Generated/Models/RoutingRule.cs | 149 - .../Models/RoutingRuleEnabledState.cs | 17 - .../Generated/Models/RoutingRuleLink.cs | 46 - .../Generated/Models/RoutingRuleListResult.cs | 58 - .../Generated/Models/RoutingRuleProperties.cs | 73 - .../Models/RoutingRuleUpdateParameters.cs | 112 - ...ametersWebApplicationFirewallPolicyLink.cs | 47 - .../Generated/Models/RuleType.cs | 17 - .../Generated/Models/RulesEngine.cs | 90 - .../Generated/Models/RulesEngineAction.cs | 69 - .../Models/RulesEngineMatchCondition.cs | 130 - .../Models/RulesEngineMatchVariable.cs | 27 - .../Generated/Models/RulesEngineOperator.cs | 26 - .../Generated/Models/RulesEngineProperties.cs | 52 - .../Generated/Models/RulesEngineRule.cs | 126 - .../Models/RulesEngineUpdateParameters.cs | 47 - .../Models/ScrubbingRuleEntryMatchOperator.cs | 17 - .../Models/ScrubbingRuleEntryMatchVariable.cs | 22 - .../Models/ScrubbingRuleEntryState.cs | 17 - .../Generated/Models/SecurityPolicyLink.cs | 46 - .../Models/SessionAffinityEnabledState.cs | 17 - .../Generated/Models/Sku.cs | 47 - .../Generated/Models/SkuName.cs | 18 - .../Generated/Models/State.cs | 17 - .../Generated/Models/SubResource.cs | 46 - .../Generated/Models/TagsObject.cs | 46 - .../Generated/Models/Timeseries.cs | 127 - .../Models/TimeseriesAggregationInterval.cs | 17 - .../Generated/Models/TimeseriesDataPoint.cs | 56 - .../Generated/Models/TimeseriesProperties.cs | 110 - .../Generated/Models/TimeseriesType.cs | 19 - .../Generated/Models/Transform.cs | 21 - .../Generated/Models/TransformType.cs | 21 - .../Models/ValidateCustomDomainInput.cs | 60 - .../Models/ValidateCustomDomainOutput.cs | 66 - .../Generated/Models/VariableName.cs | 18 - .../Models/WebApplicationFirewallPolicy.cs | 186 - .../WebApplicationFirewallPolicyProperties.cs | 143 - .../WebApplicationFirewallScrubbingRules.cs | 104 - .../WebApplicationFirewallScrubbingState.cs | 17 - .../NetworkExperimentProfilesOperations.cs | 1824 --------- ...kExperimentProfilesOperationsExtensions.cs | 411 --- .../Generated/PoliciesOperations.cs | 1816 --------- .../Generated/PoliciesOperationsExtensions.cs | 415 --- .../PreconfiguredEndpointsOperations.cs | 442 --- ...configuredEndpointsOperationsExtensions.cs | 86 - .../Generated/ReportsOperations.cs | 611 --- .../Generated/ReportsOperationsExtensions.cs | 162 - .../Generated/RulesEnginesOperations.cs | 1311 ------- .../RulesEnginesOperationsExtensions.cs | 315 -- .../Properties/AssemblyInfo.cs | 17 - .../FrontDoor.Management.Sdk/README.md | 38 - .../FrontDoor.Test/FrontDoor.Test.csproj | 16 - .../FrontDoor.Test/Properties/AssemblyInfo.cs | 50 - .../FrontDoor.Test/ScenarioTests/Common.ps1 | 93 - .../ScenarioTests/FrontDoorTestRunner.cs | 56 - .../ScenarioTests/FrontDoorTests.cs | 89 - .../ScenarioTests/FrontDoorTests.ps1 | 479 --- .../WebApplicationFireWallPolicyTests.cs | 61 - .../WebApplicationFireWallPolicyTests.ps1 | 191 - .../TestFrontDoorCrud.json | 2614 ------------- .../TestFrontDoorCrudDefaults.json | 2923 --------------- .../TestFrontDoorCrudPrivateLink.json | 3121 ---------------- .../TestFrontDoorCrudRedirect.json | 3097 ---------------- .../TestFrontDoorCrudWithPiping.json | 2842 -------------- ...intCustomDomainHTTPSByocLatestVersion.json | 998 ----- ...tCustomDomainHTTPSByocSpecificVersion.json | 791 ---- ...oorEndpointCustomDomainHTTPSFrontDoor.json | 2031 ---------- .../TestFrontDoorRulesEngineCrud.json | 3280 ----------------- .../TestCustomBlockResponseBody.json | 574 --- .../TestManagedRuleSetDefinitions.json | 80 - .../TestPolicyAction.json | 553 --- .../TestPolicyCrud.json | 862 ----- .../TestPolicyCrudWithPiping.json | 772 ---- src/FrontDoor/FrontDoor.sln | 60 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 33 +- .../DisableFrontDoorCustomDomainHttps.cs | 108 - .../EnableFrontDoorCustomDomainHttps.cs | 170 - .../FrontDoor/Cmdlets/GetFrontDoor.cs | 94 - .../Cmdlets/GetFrontDoorFrontendEndpoint.cs | 103 - .../Cmdlets/GetFrontDoorRulesEngine.cs | 94 - ...GetFrontDoorWafManagedRuleSetDefinition.cs | 47 - .../Cmdlets/GetFrontDoorWafPolicy.cs | 74 - .../FrontDoor/Cmdlets/NewFrontDoor.cs | 168 - .../Cmdlets/NewFrontDoorBackendObject.cs | 116 - .../Cmdlets/NewFrontDoorBackendPoolObject.cs | 88 - .../NewFrontDoorBackendPoolsSettingObject.cs | 50 - .../NewFrontDoorFrontendEndpointObject.cs | 127 - .../Cmdlets/NewFrontDoorHeaderActionObject.cs | 46 - .../NewFrontDoorHealthProbeSettingObject.cs | 82 - .../NewFrontDoorLoadBalancingSettingObject.cs | 68 - .../Cmdlets/NewFrontDoorRoutingRuleObject.cs | 205 -- .../Cmdlets/NewFrontDoorRulesEngine.cs | 67 - .../NewFrontDoorRulesEngineActionObject.cs | 131 - ...rontDoorRulesEngineMatchConditionObject.cs | 65 - .../NewFrontDoorRulesEngineRuleObject.cs | 68 - ...tDoorWafCustomRuleGroupByVariableObject.cs | 47 - .../NewFrontDoorWafCustomRuleObject.cs | 108 - .../NewFrontDoorWafLogScrubbingRuleObject.cs | 75 - ...ewFrontDoorWafLogScrubbingSettingObject.cs | 54 - ...wFrontDoorWafManagedRuleExclusionObject.cs | 77 - .../NewFrontDoorWafManagedRuleObject.cs | 77 - ...ewFrontDoorWafManagedRuleOverrideObject.cs | 68 - .../NewFrontDoorWafMatchConditionObject.cs | 104 - .../Cmdlets/NewFrontDoorWafPolicy.cs | 218 -- .../NewFrontDoorWafRuleGroupOverrideObject.cs | 58 - .../FrontDoor/Cmdlets/RemoveFrontDoor.cs | 90 - .../Cmdlets/RemoveFrontDoorContent.cs | 63 - .../Cmdlets/RemoveFrontDoorRulesEngine.cs | 108 - .../Cmdlets/RemoveFrontDoorWafPolicy.cs | 90 - .../FrontDoor/Cmdlets/SetFrontDoor.cs | 246 -- .../Cmdlets/SetFrontDoorRulesEngine.cs | 119 - .../Cmdlets/UpdateFrontDoorWafPolicy.cs | 279 -- .../Common/AzureFrontDoorCmdletBase.cs | 77 - .../FrontDoor/Helpers/ModelExtensions.cs | 935 ----- .../Helpers/ResourceIdentifierExtensions.cs | 58 - src/FrontDoor/FrontDoor/Models/PSAction.cs | 24 - .../FrontDoor/Models/PSAzureManagedRule.cs | 25 - .../Models/PSAzureManagedRuleOverride.cs | 29 - .../Models/PSAzureRuleGroupOverride.cs | 27 - src/FrontDoor/FrontDoor/Models/PSBackend.cs | 53 - .../FrontDoor/Models/PSBackendPool.cs | 33 - .../FrontDoor/Models/PSBackendPoolsSetting.cs | 27 - .../FrontDoor/Models/PSCertificateSource.cs | 22 - .../FrontDoor/Models/PSCertificateType.cs | 22 - .../Models/PSCustomHttpsProvisioningState.cs | 25 - .../PSCustomHttpsProvisioningSubstate.cs | 33 - .../FrontDoor/Models/PSCustomRule.cs | 39 - .../FrontDoor/Models/PSCustomRuleType.cs | 22 - .../FrontDoor/Models/PSEnabledState.cs | 22 - .../Models/PSEnforceCertificateNameCheck.cs | 22 - .../Models/PSExclusionOperatorProperty.cs | 25 - .../FrontDoor/Models/PSForwardingProtocol.cs | 23 - src/FrontDoor/FrontDoor/Models/PSFrontDoor.cs | 49 - ...PSFrontDoorWafCustomRuleGroupByVariable.cs | 22 - .../Models/PSFrontDoorWafLogScrubbingRule.cs | 28 - .../PSFrontDoorWafLogScrubbingSetting.cs | 26 - .../FrontDoor/Models/PSFrontendEndpoint.cs | 52 - .../FrontDoor/Models/PSHealthProbeSetting.cs | 35 - .../Models/PSLoadBalancingSetting.cs | 31 - .../FrontDoor/Models/PSManagedRule.cs | 25 - .../Models/PSManagedRuleDefinition.cs | 29 - .../Models/PSManagedRuleExclusion.cs | 27 - .../Models/PSManagedRuleGroupDefinition.cs | 27 - .../Models/PSManagedRuleSetDefinition.cs | 29 - .../FrontDoor/Models/PSMatchCondition.cs | 34 - .../FrontDoor/Models/PSMatchVariable.cs | 27 - src/FrontDoor/FrontDoor/Models/PSMode.cs | 22 - .../FrontDoor/Models/PSOperatorProperty.cs | 31 - src/FrontDoor/FrontDoor/Models/PSPolicy.cs | 48 - src/FrontDoor/FrontDoor/Models/PSProtocol.cs | 22 - .../FrontDoor/Models/PSProtocolType.cs | 22 - .../Models/PSQueryParameterStripDirective.cs | 22 - .../FrontDoor/Models/PSRedirectProtocol.cs | 23 - .../FrontDoor/Models/PSRedirectType.cs | 24 - src/FrontDoor/FrontDoor/Models/PSResources.cs | 40 - .../FrontDoor/Models/PSRouteConfiguration.cs | 57 - .../FrontDoor/Models/PSRoutingRule.cs | 41 - .../FrontDoor/Models/PSRulesEngine.cs | 23 - .../FrontDoor/Models/PSRulesEngineRule.cs | 125 - .../FrontDoor/Models/PSTrackedResource.cs | 29 - src/FrontDoor/FrontDoor/help/Az.FrontDoor.md | 14 +- .../help/Set-AzFrontDoorRulesEngine.md | 150 +- .../help/Update-AzFrontDoorWafPolicy.md | 148 +- 310 files changed, 687 insertions(+), 58728 deletions(-) create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoorRulesEngine.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md create mode 100644 src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/FrontDoor.Management.Sdk.csproj delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/EndpointsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/EndpointsOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/ExperimentsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/ExperimentsOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoor.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityWithSubscriptionOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityWithSubscriptionOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorsOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontendEndpointsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontendEndpointsOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IEndpointsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IExperimentsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoor.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorNameAvailabilityOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorNameAvailabilityWithSubscriptionOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontendEndpointsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IManagedRuleSetsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/INetworkExperimentProfilesOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IPoliciesOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IPreconfiguredEndpointsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IReportsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/IRulesEnginesOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/ManagedRuleSetsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/ManagedRuleSetsOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ActionType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/AggregationInterval.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Availability.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/AzureAsyncOperationResult.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Backend.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPool.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolListResult.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolUpdateParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolsSettings.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CacheConfiguration.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CheckNameAvailabilityInput.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CheckNameAvailabilityOutput.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsConfiguration.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsProvisioningState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsProvisioningSubstate.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRule.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRuleEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRuleList.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponse.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponseError.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponseException.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DynamicCompressionEnabled.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Endpoint.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EndpointType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EnforceCertificateNameCheckEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Error.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorDetails.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorResponse.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorResponseException.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Experiment.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentUpdateModel.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentUpdateProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ForwardingConfiguration.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateSource.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateSourceParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorForwardingProtocol.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorHealthProbeMethod.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorModel.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorProtocol.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorQuery.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorRedirectProtocol.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorRedirectType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorResourceState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorTlsProtocolType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorUpdateParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpoint.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointLink.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointUpdateParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/GroupByVariable.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HeaderAction.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HeaderActionType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeEnabled.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsListResult.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsModel.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsUpdateParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/KeyVaultCertificateSourceParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/KeyVaultCertificateSourceParametersVault.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyMetric.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecard.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecardAggregationInterval.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecardProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsListResult.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsModel.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsUpdateParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleDefinition.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusion.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusionMatchVariable.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusionSelectorMatchOperator.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleGroupDefinition.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleGroupOverride.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleOverride.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSet.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetActionType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetDefinition.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetDefinitionProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetList.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchCondition.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchProcessingBehavior.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchVariable.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MinimumTLSVersion.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/NetworkExperimentResourceState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/NetworkOperationStatus.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Operator.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Page.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyMode.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyRequestBodyCheck.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyResourceState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicySettings.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicySettingsLogScrubbing.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PreconfiguredEndpoint.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PreconfiguredEndpointProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PrivateEndpointStatus.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Profile.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileUpdateModel.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileUpdateProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PurgeParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RedirectConfiguration.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Resource.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ResourceType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RouteConfiguration.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRule.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleLink.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleListResult.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleUpdateParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RuleType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngine.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineAction.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineMatchCondition.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineMatchVariable.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineOperator.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineRule.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineUpdateParameters.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryMatchOperator.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryMatchVariable.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SecurityPolicyLink.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SessionAffinityEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Sku.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SkuName.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/State.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SubResource.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TagsObject.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Timeseries.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesAggregationInterval.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesDataPoint.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Transform.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TransformType.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ValidateCustomDomainInput.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ValidateCustomDomainOutput.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/VariableName.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallPolicy.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallPolicyProperties.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallScrubbingRules.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallScrubbingState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/NetworkExperimentProfilesOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/NetworkExperimentProfilesOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/PoliciesOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/PoliciesOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/PreconfiguredEndpointsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/PreconfiguredEndpointsOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/ReportsOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/ReportsOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/RulesEnginesOperations.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/RulesEnginesOperationsExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Properties/AssemblyInfo.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/README.md delete mode 100644 src/FrontDoor/FrontDoor.Test/FrontDoor.Test.csproj delete mode 100644 src/FrontDoor/FrontDoor.Test/Properties/AssemblyInfo.cs delete mode 100644 src/FrontDoor/FrontDoor.Test/ScenarioTests/Common.ps1 delete mode 100644 src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTestRunner.cs delete mode 100644 src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTests.cs delete mode 100644 src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTests.ps1 delete mode 100644 src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.cs delete mode 100644 src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.ps1 delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrud.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudDefaults.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudPrivateLink.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudRedirect.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudWithPiping.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSByocLatestVersion.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSByocSpecificVersion.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSFrontDoor.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorRulesEngineCrud.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestCustomBlockResponseBody.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestManagedRuleSetDefinitions.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyAction.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyCrud.json delete mode 100644 src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyCrudWithPiping.json delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/DisableFrontDoorCustomDomainHttps.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/EnableFrontDoorCustomDomainHttps.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoor.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorFrontendEndpoint.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorRulesEngine.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorWafManagedRuleSetDefinition.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorWafPolicy.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoor.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendPoolObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendPoolsSettingObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorFrontendEndpointObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorHeaderActionObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorHealthProbeSettingObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorLoadBalancingSettingObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRoutingRuleObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngine.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineActionObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineMatchConditionObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineRuleObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafCustomRuleGroupByVariableObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafCustomRuleObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafLogScrubbingRuleObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafLogScrubbingSettingObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleExclusionObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleOverrideObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafMatchConditionObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafPolicy.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafRuleGroupOverrideObject.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoor.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorContent.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorRulesEngine.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorWafPolicy.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/SetFrontDoor.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/SetFrontDoorRulesEngine.cs delete mode 100644 src/FrontDoor/FrontDoor/Cmdlets/UpdateFrontDoorWafPolicy.cs delete mode 100644 src/FrontDoor/FrontDoor/Common/AzureFrontDoorCmdletBase.cs delete mode 100644 src/FrontDoor/FrontDoor/Helpers/ModelExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor/Helpers/ResourceIdentifierExtensions.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSAction.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSAzureManagedRule.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSAzureManagedRuleOverride.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSAzureRuleGroupOverride.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSBackend.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSBackendPool.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSBackendPoolsSetting.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSCertificateSource.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSCertificateType.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSCustomHttpsProvisioningState.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSCustomHttpsProvisioningSubstate.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSCustomRule.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSCustomRuleType.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSEnforceCertificateNameCheck.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSExclusionOperatorProperty.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSForwardingProtocol.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSFrontDoor.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSFrontDoorWafCustomRuleGroupByVariable.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSFrontDoorWafLogScrubbingRule.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSFrontDoorWafLogScrubbingSetting.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSFrontendEndpoint.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSHealthProbeSetting.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSLoadBalancingSetting.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSManagedRule.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSManagedRuleDefinition.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSManagedRuleExclusion.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSManagedRuleGroupDefinition.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSManagedRuleSetDefinition.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSMatchCondition.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSMatchVariable.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSMode.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSOperatorProperty.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSPolicy.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSProtocol.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSProtocolType.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSQueryParameterStripDirective.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSRedirectProtocol.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSRedirectType.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSResources.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSRouteConfiguration.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSRoutingRule.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSRulesEngine.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSRulesEngineRule.cs delete mode 100644 src/FrontDoor/FrontDoor/Models/PSTrackedResource.cs diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoorRulesEngine.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoorRulesEngine.ps1 new file mode 100644 index 000000000000..4f528d8bf5ae --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoorRulesEngine.ps1 @@ -0,0 +1,171 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +RULE : A list of rules that define a particular Rules Engine Configuration. + Action : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + Name : A name to refer to this specific rule. + Priority : A priority assigned to this rule. + [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms + [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine +#> +function Set-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] + # A list of rules that define a particular Rules Engine Configuration. + ${Rule}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + Az.FrontDoor.internal\Update-AzFrontDoorRulesEngine @PSBoundParameters +} + +} diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 1e58b0be8e2c..93797dd7680d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -128,6 +128,9 @@ Deletes Policy ### [Set-AzFrontDoor](Set-AzFrontDoor.md) Update a new Front Door with a Front Door name under the specified subscription and resource group. +### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) +Update a new Rules Engine Configuration with the specified name within the specified Front Door. + ### [Update-AzFrontDoorWafPolicy](Update-AzFrontDoorWafPolicy.md) Update policy with specified rule set name within a resource group. diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..1934d09126ca --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md @@ -0,0 +1,260 @@ +--- +external help file: +Module Name: Az.FrontDoor +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine +schema: 2.0.0 +--- + +# Set-AzFrontDoorRulesEngine + +## SYNOPSIS +Update a new Rules Engine Configuration with the specified name within the specified Front Door. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaJsonString +``` +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Update a new Rules Engine Configuration with the specified name within the specified Front Door. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FrontDoorName +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the Rules Engine which is unique within the Front Door. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: RulesEngineName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Rule +A list of rules that define a particular Rules Engine Configuration. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + +## NOTES + +## RELATED LINKS + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/FrontDoor.Management.Sdk.csproj b/src/FrontDoor/FrontDoor.Management.Sdk/FrontDoor.Management.Sdk.csproj deleted file mode 100644 index 26a7f63560e9..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/FrontDoor.Management.Sdk.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - FrontDoor - - - - - - netstandard2.0 - Microsoft.Azure.PowerShell.FrontDoor.Management.Sdk - Microsoft.Azure.Management.FrontDoor - $(NoWarn);CS0108;CS1573 - - - \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/EndpointsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/EndpointsOperations.cs deleted file mode 100644 index 3cdff2430987..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/EndpointsOperations.cs +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// EndpointsOperations operations. - /// - internal partial class EndpointsOperations : Microsoft.Rest.IServiceOperations, IEndpointsOperations - { - /// - /// Initializes a new instance of the EndpointsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal EndpointsOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Removes a content from Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The path to the content to be purged. Path can be a full URL, e.g. - /// '/pictures/city.png' which removes a single file, or a directory with a - /// wildcard, e.g. '/pictures/*' which removes all folders and files in the - /// directory. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task PurgeContentWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginPurgeContentWithHttpMessagesAsync(resourceGroupName, frontDoorName, contentFilePaths, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Removes a content from Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The path to the content to be purged. Path can be a full URL, e.g. - /// '/pictures/city.png' which removes a single file, or a directory with a - /// wildcard, e.g. '/pictures/*' which removes all folders and files in the - /// directory. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task BeginPurgeContentWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (contentFilePaths == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "contentFilePaths"); - } - if (contentFilePaths != null) - { - contentFilePaths.Validate(); - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("contentFilePaths", contentFilePaths); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginPurgeContent", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(contentFilePaths != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(contentFilePaths, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/EndpointsOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/EndpointsOperationsExtensions.cs deleted file mode 100644 index 7e5a1a95edbd..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/EndpointsOperationsExtensions.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for EndpointsOperations - /// - public static partial class EndpointsOperationsExtensions - { - /// - /// Removes a content from Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static void PurgeContent(this IEndpointsOperations operations, string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths) - { - ((IEndpointsOperations)operations).PurgeContentAsync(resourceGroupName, frontDoorName, contentFilePaths).GetAwaiter().GetResult(); - } - - /// - /// Removes a content from Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task PurgeContentAsync(this IEndpointsOperations operations, string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.PurgeContentWithHttpMessagesAsync(resourceGroupName, frontDoorName, contentFilePaths, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Removes a content from Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static void BeginPurgeContent(this IEndpointsOperations operations, string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths) - { - ((IEndpointsOperations)operations).BeginPurgeContentAsync(resourceGroupName, frontDoorName, contentFilePaths).GetAwaiter().GetResult(); - } - - /// - /// Removes a content from Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginPurgeContentAsync(this IEndpointsOperations operations, string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.BeginPurgeContentWithHttpMessagesAsync(resourceGroupName, frontDoorName, contentFilePaths, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ExperimentsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ExperimentsOperations.cs deleted file mode 100644 index 324214e4b904..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ExperimentsOperations.cs +++ /dev/null @@ -1,1549 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// ExperimentsOperations operations. - /// - internal partial class ExperimentsOperations : Microsoft.Rest.IServiceOperations, IExperimentsOperations - { - /// - /// Initializes a new instance of the ExperimentsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal ExperimentsOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Gets a list of Experiments - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByProfileWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByProfile", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets an Experiment by ExperimentName - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (experimentName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "experimentName"); - } - if (experimentName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("experimentName", experimentName); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Creates or updates an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The Experiment resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The Experiment Update Model - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Creates or updates an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The Experiment resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (parameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); - } - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (experimentName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "experimentName"); - } - if (experimentName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("experimentName", experimentName); - - tracingParameters.Add("parameters", parameters); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Updates an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The Experiment Update Model - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (parameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (experimentName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "experimentName"); - } - if (experimentName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("experimentName", experimentName); - - tracingParameters.Add("parameters", parameters); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Deletes an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (experimentName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "experimentName"); - } - if (experimentName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("experimentName", experimentName); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a list of Experiments - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByProfileNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByProfileNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ExperimentsOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ExperimentsOperationsExtensions.cs deleted file mode 100644 index b2f0c091843d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ExperimentsOperationsExtensions.cs +++ /dev/null @@ -1,395 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for ExperimentsOperations - /// - public static partial class ExperimentsOperationsExtensions - { - /// - /// Gets a list of Experiments - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - public static Microsoft.Rest.Azure.IPage ListByProfile(this IExperimentsOperations operations, string resourceGroupName, string profileName) - { - return ((IExperimentsOperations)operations).ListByProfileAsync(resourceGroupName, profileName).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of Experiments - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByProfileAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByProfileWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets an Experiment by ExperimentName - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - public static Experiment Get(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName) - { - return ((IExperimentsOperations)operations).GetAsync(resourceGroupName, profileName, experimentName).GetAwaiter().GetResult(); - } - - /// - /// Gets an Experiment by ExperimentName - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task GetAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Creates or updates an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - public static Experiment CreateOrUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters) - { - return ((IExperimentsOperations)operations).CreateOrUpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates or updates an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Updates an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - public static Experiment Update(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters) - { - return ((IExperimentsOperations)operations).UpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Updates an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task UpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - public static void Delete(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName) - { - ((IExperimentsOperations)operations).DeleteAsync(resourceGroupName, profileName, experimentName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task DeleteAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Creates or updates an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - public static Experiment BeginCreateOrUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters) - { - return ((IExperimentsOperations)operations).BeginCreateOrUpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates or updates an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginCreateOrUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Updates an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - public static Experiment BeginUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters) - { - return ((IExperimentsOperations)operations).BeginUpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Updates an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - public static void BeginDelete(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName) - { - ((IExperimentsOperations)operations).BeginDeleteAsync(resourceGroupName, profileName, experimentName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginDeleteAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Gets a list of Experiments - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListByProfileNext(this IExperimentsOperations operations, string nextPageLink) - { - return ((IExperimentsOperations)operations).ListByProfileNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of Experiments - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByProfileNextAsync(this IExperimentsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByProfileNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoor.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoor.cs deleted file mode 100644 index 37e1ad28adb1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoor.cs +++ /dev/null @@ -1,396 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// 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. - /// - public partial class FrontDoor : Microsoft.Rest.ServiceClient, IFrontDoor, IAzureClient - { - /// - /// The base URI of the service. - /// - public System.Uri BaseUri { get; set; } - /// - /// Gets or sets json serialization settings. - /// - public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; private set; } - /// - /// Gets or sets json deserialization settings. - /// - public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; private set; } - /// - /// Credentials needed for the client to connect to Azure. - /// - public Microsoft.Rest.ServiceClientCredentials Credentials { get; private set; } - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure - /// subscription. The subscription ID forms part of the URI for every service - /// call. - /// - public string SubscriptionId { get; set;} - - /// - /// The preferred language for the response. - /// - public string AcceptLanguage { get; set;} - - /// - /// The retry timeout in seconds for Long Running Operations. Default - /// /// value is 30. - /// - public int? LongRunningOperationRetryTimeout { get; set;} - - /// - /// Whether a unique x-ms-client-request-id should be generated. When - /// /// set to true a unique x-ms-client-request-id value is generated and - /// /// included in each request. Default is true. - /// - public bool? GenerateClientRequestId { get; set;} - - /// - /// Gets the IPoliciesOperations - /// - public virtual IPoliciesOperations Policies { get; private set; } - /// - /// Gets the IManagedRuleSetsOperations - /// - public virtual IManagedRuleSetsOperations ManagedRuleSets { get; private set; } - /// - /// Gets the IFrontDoorNameAvailabilityOperations - /// - public virtual IFrontDoorNameAvailabilityOperations FrontDoorNameAvailability { get; private set; } - /// - /// Gets the IFrontDoorNameAvailabilityWithSubscriptionOperations - /// - public virtual IFrontDoorNameAvailabilityWithSubscriptionOperations FrontDoorNameAvailabilityWithSubscription { get; private set; } - /// - /// Gets the IFrontDoorsOperations - /// - public virtual IFrontDoorsOperations FrontDoors { get; private set; } - /// - /// Gets the IFrontendEndpointsOperations - /// - public virtual IFrontendEndpointsOperations FrontendEndpoints { get; private set; } - /// - /// Gets the IEndpointsOperations - /// - public virtual IEndpointsOperations Endpoints { get; private set; } - /// - /// Gets the IRulesEnginesOperations - /// - public virtual IRulesEnginesOperations RulesEngines { get; private set; } - /// - /// Gets the INetworkExperimentProfilesOperations - /// - public virtual INetworkExperimentProfilesOperations NetworkExperimentProfiles { get; private set; } - /// - /// Gets the IPreconfiguredEndpointsOperations - /// - public virtual IPreconfiguredEndpointsOperations PreconfiguredEndpoints { get; private set; } - /// - /// Gets the IExperimentsOperations - /// - public virtual IExperimentsOperations Experiments { get; private set; } - /// - /// Gets the IReportsOperations - /// - public virtual IReportsOperations Reports { get; private set; } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// HttpClient to be used - /// - /// - /// True: will dispose the provided httpClient on calling FrontDoor.Dispose(). False: will not dispose provided httpClient - protected FrontDoor(System.Net.Http.HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) - { - this.Initialize(); - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - protected FrontDoor(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) - { - this.Initialize(); - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - protected FrontDoor(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) - { - this.Initialize(); - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - protected FrontDoor(System.Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - this.BaseUri = baseUri; - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - protected FrontDoor(System.Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - - this.BaseUri = baseUri; - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public FrontDoor(Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) - { - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - this.Credentials = credentials; - if (this.Credentials != null) - { - this.Credentials.InitializeServiceClient(this); - } - - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// HttpClient to be used - /// - /// - /// True: will dispose the provided httpClient on calling FrontDoor.Dispose(). False: will not dispose provided httpClient - /// - /// Thrown when a required parameter is null - /// - public FrontDoor(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) - { - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - this.Credentials = credentials; - if (this.Credentials != null) - { - this.Credentials.InitializeServiceClient(this); - } - - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public FrontDoor(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) - { - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - this.Credentials = credentials; - if (this.Credentials != null) - { - this.Credentials.InitializeServiceClient(this); - } - - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public FrontDoor(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - this.BaseUri = baseUri; - this.Credentials = credentials; - if (this.Credentials != null) - { - this.Credentials.InitializeServiceClient(this); - } - - } - /// - /// Initializes a new instance of the FrontDoor class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public FrontDoor(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - this.BaseUri = baseUri; - this.Credentials = credentials; - if (this.Credentials != null) - { - this.Credentials.InitializeServiceClient(this); - } - - } - /// - /// An optional partial-method to perform custom initialization. - /// - partial void CustomInitialize(); - - /// - /// Initializes client properties. - /// - 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); - this.FrontendEndpoints = new FrontendEndpointsOperations(this); - this.Endpoints = new EndpointsOperations(this); - this.RulesEngines = new RulesEnginesOperations(this); - this.NetworkExperimentProfiles = new NetworkExperimentProfilesOperations(this); - this.PreconfiguredEndpoints = new PreconfiguredEndpointsOperations(this); - this.Experiments = new ExperimentsOperations(this); - this.Reports = new ReportsOperations(this); - this.BaseUri = new System.Uri("https://management.azure.com"); - this.AcceptLanguage = "en-US"; - this.LongRunningOperationRetryTimeout = 30; - this.GenerateClientRequestId = true; - SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings - { - Formatting = Newtonsoft.Json.Formatting.Indented, - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List - { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() - } - }; - SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter()); - DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings - { - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List - { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() - } - }; - SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("@odata.type")); - DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("@odata.type")); - CustomInitialize(); - DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter()); - DeserializationSettings.Converters.Add(new Microsoft.Rest.Azure.CloudErrorJsonConverter()); - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityOperations.cs deleted file mode 100644 index f0043d07589e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityOperations.cs +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// FrontDoorNameAvailabilityOperations operations. - /// - internal partial class FrontDoorNameAvailabilityOperations : Microsoft.Rest.IServiceOperations, IFrontDoorNameAvailabilityOperations - { - /// - /// Initializes a new instance of the FrontDoorNameAvailabilityOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal FrontDoorNameAvailabilityOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Check the availability of a Front Door resource name. - /// - /// - /// Input to check. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> CheckWithHttpMessagesAsync(CheckNameAvailabilityInput checkFrontDoorNameAvailabilityInput, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (checkFrontDoorNameAvailabilityInput == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "checkFrontDoorNameAvailabilityInput"); - } - if (checkFrontDoorNameAvailabilityInput != null) - { - checkFrontDoorNameAvailabilityInput.Validate(); - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("checkFrontDoorNameAvailabilityInput", checkFrontDoorNameAvailabilityInput); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Check", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Network/checkFrontDoorNameAvailability").ToString(); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(checkFrontDoorNameAvailabilityInput != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(checkFrontDoorNameAvailabilityInput, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityOperationsExtensions.cs deleted file mode 100644 index b4486cd91255..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityOperationsExtensions.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for FrontDoorNameAvailabilityOperations - /// - public static partial class FrontDoorNameAvailabilityOperationsExtensions - { - /// - /// Check the availability of a Front Door resource name. - /// - /// - /// The operations group for this extension method. - /// - public static CheckNameAvailabilityOutput Check(this IFrontDoorNameAvailabilityOperations operations, CheckNameAvailabilityInput checkFrontDoorNameAvailabilityInput) - { - return ((IFrontDoorNameAvailabilityOperations)operations).CheckAsync(checkFrontDoorNameAvailabilityInput).GetAwaiter().GetResult(); - } - - /// - /// Check the availability of a Front Door resource name. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task CheckAsync(this IFrontDoorNameAvailabilityOperations operations, CheckNameAvailabilityInput checkFrontDoorNameAvailabilityInput, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.CheckWithHttpMessagesAsync(checkFrontDoorNameAvailabilityInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityWithSubscriptionOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityWithSubscriptionOperations.cs deleted file mode 100644 index 65c15eec7924..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityWithSubscriptionOperations.cs +++ /dev/null @@ -1,243 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// FrontDoorNameAvailabilityWithSubscriptionOperations operations. - /// - internal partial class FrontDoorNameAvailabilityWithSubscriptionOperations : Microsoft.Rest.IServiceOperations, IFrontDoorNameAvailabilityWithSubscriptionOperations - { - /// - /// Initializes a new instance of the FrontDoorNameAvailabilityWithSubscriptionOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal FrontDoorNameAvailabilityWithSubscriptionOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Check the availability of a Front Door subdomain. - /// - /// - /// Input to check. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> CheckWithHttpMessagesAsync(CheckNameAvailabilityInput checkFrontDoorNameAvailabilityInput, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (checkFrontDoorNameAvailabilityInput == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "checkFrontDoorNameAvailabilityInput"); - } - if (checkFrontDoorNameAvailabilityInput != null) - { - checkFrontDoorNameAvailabilityInput.Validate(); - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("checkFrontDoorNameAvailabilityInput", checkFrontDoorNameAvailabilityInput); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Check", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(checkFrontDoorNameAvailabilityInput != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(checkFrontDoorNameAvailabilityInput, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityWithSubscriptionOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityWithSubscriptionOperationsExtensions.cs deleted file mode 100644 index cc928612821f..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorNameAvailabilityWithSubscriptionOperationsExtensions.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for FrontDoorNameAvailabilityWithSubscriptionOperations - /// - public static partial class FrontDoorNameAvailabilityWithSubscriptionOperationsExtensions - { - /// - /// Check the availability of a Front Door subdomain. - /// - /// - /// The operations group for this extension method. - /// - public static CheckNameAvailabilityOutput Check(this IFrontDoorNameAvailabilityWithSubscriptionOperations operations, CheckNameAvailabilityInput checkFrontDoorNameAvailabilityInput) - { - return ((IFrontDoorNameAvailabilityWithSubscriptionOperations)operations).CheckAsync(checkFrontDoorNameAvailabilityInput).GetAwaiter().GetResult(); - } - - /// - /// Check the availability of a Front Door subdomain. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task CheckAsync(this IFrontDoorNameAvailabilityWithSubscriptionOperations operations, CheckNameAvailabilityInput checkFrontDoorNameAvailabilityInput, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.CheckWithHttpMessagesAsync(checkFrontDoorNameAvailabilityInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorsOperations.cs deleted file mode 100644 index 0e8f8da5fa0a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorsOperations.cs +++ /dev/null @@ -1,1822 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// FrontDoorsOperations operations. - /// - internal partial class FrontDoorsOperations : Microsoft.Rest.IServiceOperations, IFrontDoorsOperations - { - /// - /// Initializes a new instance of the FrontDoorsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal FrontDoorsOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a Front Door with the specified Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Front Door properties needed to create a new Front Door. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, FrontDoorModel frontDoorParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontDoorParameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front - /// Door endpoint in DNS. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Custom domain to be validated. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> ValidateCustomDomainWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, ValidateCustomDomainInput customDomainProperties, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (customDomainProperties == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "customDomainProperties"); - } - if (customDomainProperties != null) - { - customDomainProperties.Validate(); - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("customDomainProperties", customDomainProperties); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ValidateCustomDomain", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(customDomainProperties != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(customDomainProperties, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Front Door properties needed to create a new Front Door. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, FrontDoorModel frontDoorParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (frontDoorParameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorParameters"); - } - if (frontDoorParameters != null) - { - frontDoorParameters.Validate(); - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("frontDoorParameters", frontDoorParameters); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(frontDoorParameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(frontDoorParameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorsOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorsOperationsExtensions.cs deleted file mode 100644 index 5d202f864aba..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoorsOperationsExtensions.cs +++ /dev/null @@ -1,376 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for FrontDoorsOperations - /// - public static partial class FrontDoorsOperationsExtensions - { - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// The operations group for this extension method. - /// - public static Microsoft.Rest.Azure.IPage List(this IFrontDoorsOperations operations) - { - return ((IFrontDoorsOperations)operations).ListAsync().GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListAsync(this IFrontDoorsOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this IFrontDoorsOperations operations, string resourceGroupName) - { - return ((IFrontDoorsOperations)operations).ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByResourceGroupAsync(this IFrontDoorsOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets a Front Door with the specified Front Door name under the specified - /// subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static FrontDoorModel Get(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName) - { - return ((IFrontDoorsOperations)operations).GetAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Gets a Front Door with the specified Front Door name under the specified - /// subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task GetAsync(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static FrontDoorModel CreateOrUpdate(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, FrontDoorModel frontDoorParameters) - { - return ((IFrontDoorsOperations)operations).CreateOrUpdateAsync(resourceGroupName, frontDoorName, frontDoorParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, FrontDoorModel frontDoorParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontDoorParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static void Delete(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName) - { - ((IFrontDoorsOperations)operations).DeleteAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task DeleteAsync(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front - /// Door endpoint in DNS. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static ValidateCustomDomainOutput ValidateCustomDomain(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, ValidateCustomDomainInput customDomainProperties) - { - return ((IFrontDoorsOperations)operations).ValidateCustomDomainAsync(resourceGroupName, frontDoorName, customDomainProperties).GetAwaiter().GetResult(); - } - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front - /// Door endpoint in DNS. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task ValidateCustomDomainAsync(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, ValidateCustomDomainInput customDomainProperties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ValidateCustomDomainWithHttpMessagesAsync(resourceGroupName, frontDoorName, customDomainProperties, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static FrontDoorModel BeginCreateOrUpdate(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, FrontDoorModel frontDoorParameters) - { - return ((IFrontDoorsOperations)operations).BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, frontDoorParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginCreateOrUpdateAsync(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, FrontDoorModel frontDoorParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontDoorParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static void BeginDelete(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName) - { - ((IFrontDoorsOperations)operations).BeginDeleteAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginDeleteAsync(this IFrontDoorsOperations operations, string resourceGroupName, string frontDoorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListNext(this IFrontDoorsOperations operations, string nextPageLink) - { - return ((IFrontDoorsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListNextAsync(this IFrontDoorsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this IFrontDoorsOperations operations, string nextPageLink) - { - return ((IFrontDoorsOperations)operations).ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByResourceGroupNextAsync(this IFrontDoorsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontendEndpointsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontendEndpointsOperations.cs deleted file mode 100644 index 7d72e968c720..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontendEndpointsOperations.cs +++ /dev/null @@ -1,1251 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// FrontendEndpointsOperations operations. - /// - internal partial class FrontendEndpointsOperations : Microsoft.Rest.IServiceOperations, IFrontendEndpointsOperations - { - /// - /// Initializes a new instance of the FrontendEndpointsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal FrontendEndpointsOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoor", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a Frontend endpoint with the specified name within the specified Front - /// Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (frontendEndpointName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontendEndpointName"); - } - if (frontendEndpointName != null) - { - if (frontendEndpointName.Length > 255) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontendEndpointName", 255); - } - if (frontendEndpointName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontendEndpointName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontendEndpointName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontendEndpointName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("frontendEndpointName", frontendEndpointName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{frontendEndpointName}", System.Uri.EscapeDataString(frontendEndpointName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The configuration specifying how to enable HTTPS - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task EnableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginEnableHttpsWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, customHttpsConfiguration, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task DisableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDisableHttpsWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The configuration specifying how to enable HTTPS - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task BeginEnableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (customHttpsConfiguration == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "customHttpsConfiguration"); - } - if (customHttpsConfiguration != null) - { - customHttpsConfiguration.Validate(); - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (frontendEndpointName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontendEndpointName"); - } - if (frontendEndpointName != null) - { - if (frontendEndpointName.Length > 255) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontendEndpointName", 255); - } - if (frontendEndpointName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontendEndpointName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontendEndpointName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontendEndpointName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("frontendEndpointName", frontendEndpointName); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("customHttpsConfiguration", customHttpsConfiguration); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginEnableHttps", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{frontendEndpointName}", System.Uri.EscapeDataString(frontendEndpointName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(customHttpsConfiguration != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(customHttpsConfiguration, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task BeginDisableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (frontendEndpointName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontendEndpointName"); - } - if (frontendEndpointName != null) - { - if (frontendEndpointName.Length > 255) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontendEndpointName", 255); - } - if (frontendEndpointName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontendEndpointName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontendEndpointName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontendEndpointName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("frontendEndpointName", frontendEndpointName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDisableHttps", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{frontendEndpointName}", System.Uri.EscapeDataString(frontendEndpointName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoorNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontendEndpointsOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontendEndpointsOperationsExtensions.cs deleted file mode 100644 index ed13b4934652..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontendEndpointsOperationsExtensions.cs +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for FrontendEndpointsOperations - /// - public static partial class FrontendEndpointsOperationsExtensions - { - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static Microsoft.Rest.Azure.IPage ListByFrontDoor(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName) - { - return ((IFrontendEndpointsOperations)operations).ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByFrontDoorAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets a Frontend endpoint with the specified name within the specified Front - /// Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - public static FrontendEndpoint Get(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName) - { - return ((IFrontendEndpointsOperations)operations).GetAsync(resourceGroupName, frontDoorName, frontendEndpointName).GetAwaiter().GetResult(); - } - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front - /// Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task GetAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - public static void EnableHttps(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration) - { - ((IFrontendEndpointsOperations)operations).EnableHttpsAsync(resourceGroupName, frontDoorName, frontendEndpointName, customHttpsConfiguration).GetAwaiter().GetResult(); - } - - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task EnableHttpsAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.EnableHttpsWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, customHttpsConfiguration, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - public static void DisableHttps(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName) - { - ((IFrontendEndpointsOperations)operations).DisableHttpsAsync(resourceGroupName, frontDoorName, frontendEndpointName).GetAwaiter().GetResult(); - } - - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task DisableHttpsAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.DisableHttpsWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - public static void BeginEnableHttps(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration) - { - ((IFrontendEndpointsOperations)operations).BeginEnableHttpsAsync(resourceGroupName, frontDoorName, frontendEndpointName, customHttpsConfiguration).GetAwaiter().GetResult(); - } - - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginEnableHttpsAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.BeginEnableHttpsWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, customHttpsConfiguration, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - public static void BeginDisableHttps(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName) - { - ((IFrontendEndpointsOperations)operations).BeginDisableHttpsAsync(resourceGroupName, frontDoorName, frontendEndpointName).GetAwaiter().GetResult(); - } - - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginDisableHttpsAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.BeginDisableHttpsWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListByFrontDoorNext(this IFrontendEndpointsOperations operations, string nextPageLink) - { - return ((IFrontendEndpointsOperations)operations).ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByFrontDoorNextAsync(this IFrontendEndpointsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IEndpointsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IEndpointsOperations.cs deleted file mode 100644 index d1220f76b925..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IEndpointsOperations.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// EndpointsOperations operations. - /// - public partial interface IEndpointsOperations - { - /// - /// Removes a content from Front Door. - /// - /// - /// Removes a content from Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The path to the content to be purged. Path can be a full URL, e.g. - /// '/pictures/city.png' which removes a single file, or a directory with a - /// wildcard, e.g. '/pictures/*' which removes all folders and files in the - /// directory. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task PurgeContentWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Removes a content from Front Door. - /// - /// - /// Removes a content from Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The path to the content to be purged. Path can be a full URL, e.g. - /// '/pictures/city.png' which removes a single file, or a directory with a - /// wildcard, e.g. '/pictures/*' which removes all folders and files in the - /// directory. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task BeginPurgeContentWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IExperimentsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IExperimentsOperations.cs deleted file mode 100644 index cfe3adc7acec..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IExperimentsOperations.cs +++ /dev/null @@ -1,273 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// ExperimentsOperations operations. - /// - public partial interface IExperimentsOperations - { - /// - /// Gets a list of Experiments - /// - /// - /// Gets a list of Experiments - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByProfileWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets an Experiment by ExperimentName - /// - /// - /// Gets an Experiment by ExperimentName - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Creates or updates an Experiment - /// - /// - /// Creates or updates an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The Experiment resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Updates an Experiment - /// - /// - /// Updates an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The Experiment Update Model - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes an Experiment - /// - /// - /// Deletes an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Creates or updates an Experiment - /// - /// - /// Creates or updates an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The Experiment resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Updates an Experiment - /// - /// - /// Updates an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The Experiment Update Model - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes an Experiment - /// - /// - /// Deletes an Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a list of Experiments - /// - /// - /// Gets a list of Experiments - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByProfileNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoor.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoor.cs deleted file mode 100644 index ef8348913a1e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoor.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// 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. - /// - public partial interface IFrontDoor : System.IDisposable - { - /// - /// The base URI of the service. - /// - System.Uri BaseUri { get; set; } - - /// - /// Gets or sets json serialization settings. - /// - Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; } - - /// - /// Gets or sets json deserialization settings. - /// - Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; } - - /// - /// Credentials needed for the client to connect to Azure. - /// - Microsoft.Rest.ServiceClientCredentials Credentials { get;} - - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure - /// subscription. The subscription ID forms part of the URI for every service - /// call. - /// - string SubscriptionId { get; set;} - - - /// - /// The preferred language for the response. - /// - string AcceptLanguage { get; set;} - - - /// - /// The retry timeout in seconds for Long Running Operations. Default - /// /// value is 30. - /// - int? LongRunningOperationRetryTimeout { get; set;} - - - /// - /// Whether a unique x-ms-client-request-id should be generated. When - /// /// set to true a unique x-ms-client-request-id value is generated and - /// /// included in each request. Default is true. - /// - bool? GenerateClientRequestId { get; set;} - - - /// - /// Gets the IPoliciesOperations - /// - IPoliciesOperations Policies { get; } - - /// - /// Gets the IManagedRuleSetsOperations - /// - IManagedRuleSetsOperations ManagedRuleSets { get; } - - /// - /// Gets the IFrontDoorNameAvailabilityOperations - /// - IFrontDoorNameAvailabilityOperations FrontDoorNameAvailability { get; } - - /// - /// Gets the IFrontDoorNameAvailabilityWithSubscriptionOperations - /// - IFrontDoorNameAvailabilityWithSubscriptionOperations FrontDoorNameAvailabilityWithSubscription { get; } - - /// - /// Gets the IFrontDoorsOperations - /// - IFrontDoorsOperations FrontDoors { get; } - - /// - /// Gets the IFrontendEndpointsOperations - /// - IFrontendEndpointsOperations FrontendEndpoints { get; } - - /// - /// Gets the IEndpointsOperations - /// - IEndpointsOperations Endpoints { get; } - - /// - /// Gets the IRulesEnginesOperations - /// - IRulesEnginesOperations RulesEngines { get; } - - /// - /// Gets the INetworkExperimentProfilesOperations - /// - INetworkExperimentProfilesOperations NetworkExperimentProfiles { get; } - - /// - /// Gets the IPreconfiguredEndpointsOperations - /// - IPreconfiguredEndpointsOperations PreconfiguredEndpoints { get; } - - /// - /// Gets the IExperimentsOperations - /// - IExperimentsOperations Experiments { get; } - - /// - /// Gets the IReportsOperations - /// - IReportsOperations Reports { get; } - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorNameAvailabilityOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorNameAvailabilityOperations.cs deleted file mode 100644 index 8cf995c51c9d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorNameAvailabilityOperations.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// FrontDoorNameAvailabilityOperations operations. - /// - public partial interface IFrontDoorNameAvailabilityOperations - { - /// - /// Check the availability of a Front Door resource name. - /// - /// - /// Check the availability of a Front Door resource name. - /// - /// - /// Input to check. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> CheckWithHttpMessagesAsync(CheckNameAvailabilityInput checkFrontDoorNameAvailabilityInput, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorNameAvailabilityWithSubscriptionOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorNameAvailabilityWithSubscriptionOperations.cs deleted file mode 100644 index b42613311045..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorNameAvailabilityWithSubscriptionOperations.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// FrontDoorNameAvailabilityWithSubscriptionOperations operations. - /// - public partial interface IFrontDoorNameAvailabilityWithSubscriptionOperations - { - /// - /// Check the availability of a Front Door subdomain. - /// - /// - /// Check the availability of a Front Door subdomain. - /// - /// - /// Input to check. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> CheckWithHttpMessagesAsync(CheckNameAvailabilityInput checkFrontDoorNameAvailabilityInput, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorsOperations.cs deleted file mode 100644 index f8bf87800ad2..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoorsOperations.cs +++ /dev/null @@ -1,271 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// FrontDoorsOperations operations. - /// - public partial interface IFrontDoorsOperations - { - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a Front Door with the specified Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Gets a Front Door with the specified Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Front Door properties needed to create a new Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, FrontDoorModel frontDoorParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front - /// Door endpoint in DNS. - /// - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front - /// Door endpoint in DNS. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Custom domain to be validated. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> ValidateCustomDomainWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, ValidateCustomDomainInput customDomainProperties, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Creates a new Front Door with a Front Door name under the specified - /// subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Front Door properties needed to create a new Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, FrontDoorModel frontDoorParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// Deletes an existing Front Door with the specified parameters. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// Lists all of the Front Doors within an Azure subscription. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontendEndpointsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontendEndpointsOperations.cs deleted file mode 100644 index 27aee1807d16..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontendEndpointsOperations.cs +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// FrontendEndpointsOperations operations. - /// - public partial interface IFrontendEndpointsOperations - { - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front - /// Door. - /// - /// - /// Gets a Frontend endpoint with the specified name within the specified Front - /// Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The configuration specifying how to enable HTTPS - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task EnableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task DisableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The configuration specifying how to enable HTTPS - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task BeginEnableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Frontend endpoint which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task BeginDisableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// Lists all of the frontend endpoints within a Front Door. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IManagedRuleSetsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IManagedRuleSetsOperations.cs deleted file mode 100644 index 169f8d1d7adb..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IManagedRuleSetsOperations.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// ManagedRuleSetsOperations operations. - /// - public partial interface IManagedRuleSetsOperations - { - /// - /// Lists all available managed rule sets. - /// - /// - /// Lists all available managed rule sets. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all available managed rule sets. - /// - /// - /// Lists all available managed rule sets. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/INetworkExperimentProfilesOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/INetworkExperimentProfilesOperations.cs deleted file mode 100644 index c55632762e57..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/INetworkExperimentProfilesOperations.cs +++ /dev/null @@ -1,296 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// NetworkExperimentProfilesOperations operations. - /// - public partial interface INetworkExperimentProfilesOperations - { - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets an NetworkExperiment Profile by ProfileName - /// - /// - /// Gets an NetworkExperiment Profile by ProfileName - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// An Network Experiment Profile - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string profileName, string resourceGroupName, Profile parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Profile Update Model - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, ProfileUpdateModel parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// An Network Experiment Profile - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string profileName, string resourceGroupName, Profile parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Profile Update Model - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, ProfileUpdateModel parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IPoliciesOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IPoliciesOperations.cs deleted file mode 100644 index 5505092b0659..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IPoliciesOperations.cs +++ /dev/null @@ -1,300 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// PoliciesOperations operations. - /// - public partial interface IPoliciesOperations - { - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListBySubscriptionWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Retrieve protection policy with specified name within a resource group. - /// - /// - /// Retrieve protection policy with specified name within a resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string policyName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// Policy to be created. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// FrontdoorWebApplicationFirewallPolicy parameters to be patched. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, TagsObject parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes Policy - /// - /// - /// Deletes Policy - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string policyName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// Policy to be created. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// FrontdoorWebApplicationFirewallPolicy parameters to be patched. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, TagsObject parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes Policy - /// - /// - /// Deletes Policy - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string policyName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IPreconfiguredEndpointsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IPreconfiguredEndpointsOperations.cs deleted file mode 100644 index a3e3e4c0f3df..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IPreconfiguredEndpointsOperations.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// PreconfiguredEndpointsOperations operations. - /// - public partial interface IPreconfiguredEndpointsOperations - { - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IReportsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IReportsOperations.cs deleted file mode 100644 index 40c8a496328b..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IReportsOperations.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// ReportsOperations operations. - /// - public partial interface IReportsOperations - { - /// - /// Gets a Latency Scorecard for a given Experiment - /// - /// - /// Gets a Latency Scorecard for a given Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The end DateTime of the Latency Scorecard in UTC - /// - /// - /// The country associated with the Latency Scorecard. Values are country ISO - /// codes as specified here- https://www.iso.org/iso-3166-country-codes.html - /// - /// - /// The aggregation interval of the Latency Scorecard - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> GetLatencyScorecardsWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, string aggregationInterval, string endDateTimeUTC = default(string), string country = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a Timeseries for a given Experiment - /// - /// - /// Gets a Timeseries for a given Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The start DateTime of the Timeseries in UTC - /// - /// - /// The end DateTime of the Timeseries in UTC - /// - /// - /// The aggregation interval of the Timeseries - /// - /// - /// The type of Timeseries - /// - /// - /// The specific endpoint - /// - /// - /// The country associated with the Timeseries. Values are country ISO codes as - /// specified here- https://www.iso.org/iso-3166-country-codes.html - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> GetTimeseriesWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, System.DateTime startDateTimeUTC, System.DateTime endDateTimeUTC, string aggregationInterval, string timeseriesType, string endpoint = default(string), string country = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IRulesEnginesOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IRulesEnginesOperations.cs deleted file mode 100644 index 34dd3c873652..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/IRulesEnginesOperations.cs +++ /dev/null @@ -1,221 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// RulesEnginesOperations operations. - /// - public partial interface IRulesEnginesOperations - { - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Gets a Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Gets a Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// Rules Engine Configuration properties needed to create a new Rules Engine - /// Configuration. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// Rules Engine Configuration properties needed to create a new Rules Engine - /// Configuration. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ManagedRuleSetsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ManagedRuleSetsOperations.cs deleted file mode 100644 index 934ba421e3cd..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ManagedRuleSetsOperations.cs +++ /dev/null @@ -1,402 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// ManagedRuleSetsOperations operations. - /// - internal partial class ManagedRuleSetsOperations : Microsoft.Rest.IServiceOperations, IManagedRuleSetsOperations - { - /// - /// Initializes a new instance of the ManagedRuleSetsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal ManagedRuleSetsOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Lists all available managed rule sets. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2025-03-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all available managed rule sets. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ManagedRuleSetsOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ManagedRuleSetsOperationsExtensions.cs deleted file mode 100644 index 005a481f822c..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ManagedRuleSetsOperationsExtensions.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for ManagedRuleSetsOperations - /// - public static partial class ManagedRuleSetsOperationsExtensions - { - /// - /// Lists all available managed rule sets. - /// - /// - /// The operations group for this extension method. - /// - public static Microsoft.Rest.Azure.IPage List(this IManagedRuleSetsOperations operations) - { - return ((IManagedRuleSetsOperations)operations).ListAsync().GetAwaiter().GetResult(); - } - - /// - /// Lists all available managed rule sets. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListAsync(this IManagedRuleSetsOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Lists all available managed rule sets. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListNext(this IManagedRuleSetsOperations operations, string nextPageLink) - { - return ((IManagedRuleSetsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all available managed rule sets. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListNextAsync(this IManagedRuleSetsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ActionType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ActionType.cs deleted file mode 100644 index b39b848fd3a1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ActionType.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ActionType. - /// - - - public static class ActionType - { - public const string Allow = "Allow"; - public const string Block = "Block"; - public const string Log = "Log"; - public const string Redirect = "Redirect"; - public const string AnomalyScoring = "AnomalyScoring"; - public const string JSChallenge = "JSChallenge"; - public const string Captcha = "CAPTCHA"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/AggregationInterval.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/AggregationInterval.cs deleted file mode 100644 index 0b7503a536cb..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/AggregationInterval.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for AggregationInterval. - /// - - - public static class AggregationInterval - { - public const string Hourly = "Hourly"; - public const string Daily = "Daily"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Availability.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Availability.cs deleted file mode 100644 index ced4b05c0ad1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Availability.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for Availability. - /// - - - public static class Availability - { - public const string Available = "Available"; - public const string Unavailable = "Unavailable"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/AzureAsyncOperationResult.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/AzureAsyncOperationResult.cs deleted file mode 100644 index 4fea376a8cb6..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/AzureAsyncOperationResult.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The response body contains the status of the specified asynchronous - /// operation, indicating whether it has succeeded, is in progress, or has - /// failed. Note that this status is distinct from the HTTP status code - /// returned for the Get Operation Status operation itself. If the asynchronous - /// operation succeeded, the response body includes the HTTP status code for - /// the successful request. If the asynchronous operation failed, the response - /// body includes the HTTP status code for the failed request and error - /// information regarding the failure. - /// - public partial class AzureAsyncOperationResult - { - /// - /// Initializes a new instance of the AzureAsyncOperationResult class. - /// - public AzureAsyncOperationResult() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the AzureAsyncOperationResult class. - /// - - /// Status of the Azure async operation. - /// Possible values include: 'InProgress', 'Succeeded', 'Failed' - - /// - /// - public AzureAsyncOperationResult(string status = default(string), Error error = default(Error)) - - { - this.Status = status; - this.Error = error; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets status of the Azure async operation. Possible values include: 'InProgress', 'Succeeded', 'Failed' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] - public string Status {get; set; } - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "error")] - public Error Error {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Backend.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Backend.cs deleted file mode 100644 index 2132feed2765..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Backend.cs +++ /dev/null @@ -1,232 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Backend address of a frontDoor load balancer. - /// - public partial class Backend - { - /// - /// Initializes a new instance of the Backend class. - /// - public Backend() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Backend class. - /// - - /// Location of the backend (IP address or FQDN) - /// - - /// The Alias of the Private Link resource. Populating this optional field - /// indicates that this backend is 'Private' - /// - - /// The Resource Id of the Private Link resource. Populating this optional - /// field indicates that this backend is 'Private' - /// - - /// The location of the Private Link resource. Required only if - /// 'privateLinkResourceId' is populated - /// - - /// The Approval status for the connection to the Private Link - /// Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', - /// 'Timeout' - - /// A custom message to be included in the approval request to connect to the - /// Private Link - /// - - /// The HTTP TCP port number. Must be between 1 and 65535. - /// - - /// The HTTPS TCP port number. Must be between 1 and 65535. - /// - - /// Whether to enable use of this backend. Permitted values are 'Enabled' or - /// 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// Priority to use for load balancing. Higher priorities will not be used for - /// load balancing if any lower priority backend is healthy. - /// - - /// Weight of this endpoint for load balancing purposes. - /// - - /// The value to use as the host header sent to the backend. If blank or - /// unspecified, this defaults to the incoming host. - /// - public Backend(string address = default(string), string privateLinkAlias = default(string), string privateLinkResourceId = default(string), string privateLinkLocation = default(string), string privateEndpointStatus = default(string), string privateLinkApprovalMessage = default(string), int? httpPort = default(int?), int? httpsPort = default(int?), string enabledState = default(string), int? priority = default(int?), int? weight = default(int?), string backendHostHeader = default(string)) - - { - this.Address = address; - this.PrivateLinkAlias = privateLinkAlias; - this.PrivateLinkResourceId = privateLinkResourceId; - this.PrivateLinkLocation = privateLinkLocation; - this.PrivateEndpointStatus = privateEndpointStatus; - this.PrivateLinkApprovalMessage = privateLinkApprovalMessage; - this.HttpPort = httpPort; - this.HttpsPort = httpsPort; - this.EnabledState = enabledState; - this.Priority = priority; - this.Weight = weight; - this.BackendHostHeader = backendHostHeader; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets location of the backend (IP address or FQDN) - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "address")] - public string Address {get; set; } - - /// - /// Gets or sets the Alias of the Private Link resource. Populating this - /// optional field indicates that this backend is 'Private' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "privateLinkAlias")] - public string PrivateLinkAlias {get; set; } - - /// - /// Gets or sets the Resource Id of the Private Link resource. Populating this - /// optional field indicates that this backend is 'Private' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "privateLinkResourceId")] - public string PrivateLinkResourceId {get; set; } - - /// - /// Gets or sets the location of the Private Link resource. Required only if - /// 'privateLinkResourceId' is populated - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "privateLinkLocation")] - public string PrivateLinkLocation {get; set; } - - /// - /// Gets the Approval status for the connection to the Private Link Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "privateEndpointStatus")] - public string PrivateEndpointStatus {get; private set; } - - /// - /// Gets or sets a custom message to be included in the approval request to - /// connect to the Private Link - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "privateLinkApprovalMessage")] - public string PrivateLinkApprovalMessage {get; set; } - - /// - /// Gets or sets the HTTP TCP port number. Must be between 1 and 65535. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "httpPort")] - public int? HttpPort {get; set; } - - /// - /// Gets or sets the HTTPS TCP port number. Must be between 1 and 65535. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "httpsPort")] - public int? HttpsPort {get; set; } - - /// - /// Gets or sets whether to enable use of this backend. Permitted values are - /// 'Enabled' or 'Disabled' Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets or sets priority to use for load balancing. Higher priorities will not - /// be used for load balancing if any lower priority backend is healthy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "priority")] - public int? Priority {get; set; } - - /// - /// Gets or sets weight of this endpoint for load balancing purposes. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "weight")] - public int? Weight {get; set; } - - /// - /// Gets or sets the value to use as the host header sent to the backend. If - /// blank or unspecified, this defaults to the incoming host. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "backendHostHeader")] - public string BackendHostHeader {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - - - - - - - if (this.HttpPort != null) - { - if (this.HttpPort > 65535) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "HttpPort", 65535); - } - if (this.HttpPort < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "HttpPort", 1); - } - } - if (this.HttpsPort != null) - { - if (this.HttpsPort > 65535) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "HttpsPort", 65535); - } - if (this.HttpsPort < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "HttpsPort", 1); - } - } - - if (this.Priority != null) - { - if (this.Priority > 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "Priority", 5); - } - if (this.Priority < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "Priority", 1); - } - } - if (this.Weight != null) - { - if (this.Weight > 1000) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "Weight", 1000); - } - if (this.Weight < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "Weight", 1); - } - } - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendEnabledState.cs deleted file mode 100644 index f5da9af74da7..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for BackendEnabledState. - /// - - - public static class BackendEnabledState - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPool.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPool.cs deleted file mode 100644 index 679b3648dc27..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPool.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// A backend pool is a collection of backends that can be routed to. - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class BackendPool : SubResource - { - /// - /// Initializes a new instance of the BackendPool class. - /// - public BackendPool() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BackendPool class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// The set of backends for this pool - /// - - /// Load balancing settings for a backend pool - /// - - /// L7 health probe settings for a backend pool - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public BackendPool(string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IList backends = default(System.Collections.Generic.IList), SubResource loadBalancingSettings = default(SubResource), SubResource healthProbeSettings = default(SubResource), string resourceState = default(string)) - - : base(id) - { - this.Name = name; - this.Type = type; - this.Backends = backends; - this.LoadBalancingSettings = loadBalancingSettings; - this.HealthProbeSettings = healthProbeSettings; - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets resource type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type {get; private set; } - - /// - /// Gets or sets the set of backends for this pool - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.backends")] - public System.Collections.Generic.IList Backends {get; set; } - - /// - /// Gets or sets load balancing settings for a backend pool - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.loadBalancingSettings")] - public SubResource LoadBalancingSettings {get; set; } - - /// - /// Gets or sets l7 health probe settings for a backend pool - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.healthProbeSettings")] - public SubResource HealthProbeSettings {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolListResult.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolListResult.cs deleted file mode 100644 index a9f58ed5756a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolListResult.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Result of the request to list Backend Pools. It contains a list of Backend - /// Pools objects and a URL link to get the next set of results. - /// - public partial class BackendPoolListResult - { - /// - /// Initializes a new instance of the BackendPoolListResult class. - /// - public BackendPoolListResult() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BackendPoolListResult class. - /// - - /// List of Backend Pools within a Front Door. - /// - - /// URL to get the next set of BackendPool objects if there are any. - /// - public BackendPoolListResult(System.Collections.Generic.IList value = default(System.Collections.Generic.IList), string nextLink = default(string)) - - { - this.Value = value; - this.NextLink = nextLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets list of Backend Pools within a Front Door. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] - public System.Collections.Generic.IList Value {get; private set; } - - /// - /// Gets or sets uRL to get the next set of BackendPool objects if there are - /// any. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "nextLink")] - public string NextLink {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolProperties.cs deleted file mode 100644 index e68469ccf886..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolProperties.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The JSON object that contains the properties required to create a Backend - /// Pool. - /// - public partial class BackendPoolProperties : BackendPoolUpdateParameters - { - /// - /// Initializes a new instance of the BackendPoolProperties class. - /// - public BackendPoolProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BackendPoolProperties class. - /// - - /// The set of backends for this pool - /// - - /// Load balancing settings for a backend pool - /// - - /// L7 health probe settings for a backend pool - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public BackendPoolProperties(System.Collections.Generic.IList backends = default(System.Collections.Generic.IList), SubResource loadBalancingSettings = default(SubResource), SubResource healthProbeSettings = default(SubResource), string resourceState = default(string)) - - : base(backends, loadBalancingSettings, healthProbeSettings) - { - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolUpdateParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolUpdateParameters.cs deleted file mode 100644 index 760df81f1c04..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolUpdateParameters.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// A collection of backends that can be routed to. - /// - public partial class BackendPoolUpdateParameters - { - /// - /// Initializes a new instance of the BackendPoolUpdateParameters class. - /// - public BackendPoolUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BackendPoolUpdateParameters class. - /// - - /// The set of backends for this pool - /// - - /// Load balancing settings for a backend pool - /// - - /// L7 health probe settings for a backend pool - /// - public BackendPoolUpdateParameters(System.Collections.Generic.IList backends = default(System.Collections.Generic.IList), SubResource loadBalancingSettings = default(SubResource), SubResource healthProbeSettings = default(SubResource)) - - { - this.Backends = backends; - this.LoadBalancingSettings = loadBalancingSettings; - this.HealthProbeSettings = healthProbeSettings; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the set of backends for this pool - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "backends")] - public System.Collections.Generic.IList Backends {get; set; } - - /// - /// Gets or sets load balancing settings for a backend pool - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "loadBalancingSettings")] - public SubResource LoadBalancingSettings {get; set; } - - /// - /// Gets or sets l7 health probe settings for a backend pool - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "healthProbeSettings")] - public SubResource HealthProbeSettings {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolsSettings.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolsSettings.cs deleted file mode 100644 index 8ea294b6280e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/BackendPoolsSettings.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Settings that apply to all backend pools. - /// - public partial class BackendPoolsSettings - { - /// - /// Initializes a new instance of the BackendPoolsSettings class. - /// - public BackendPoolsSettings() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BackendPoolsSettings class. - /// - - /// Whether to enforce certificate name check on HTTPS requests to all backend - /// pools. No effect on non-HTTPS requests. - /// Possible values include: 'Enabled', 'Disabled' - - /// Send and receive timeout on forwarding request to the backend. When timeout - /// is reached, the request fails and returns. - /// - public BackendPoolsSettings(string enforceCertificateNameCheck = default(string), int? sendRecvTimeoutSeconds = default(int?)) - - { - this.EnforceCertificateNameCheck = enforceCertificateNameCheck; - this.SendRecvTimeoutSeconds = sendRecvTimeoutSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets whether to enforce certificate name check on HTTPS requests to - /// all backend pools. No effect on non-HTTPS requests. Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enforceCertificateNameCheck")] - public string EnforceCertificateNameCheck {get; set; } - - /// - /// Gets or sets send and receive timeout on forwarding request to the backend. - /// When timeout is reached, the request fails and returns. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sendRecvTimeoutSeconds")] - public int? SendRecvTimeoutSeconds {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - - if (this.SendRecvTimeoutSeconds != null) - { - if (this.SendRecvTimeoutSeconds < 16) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "SendRecvTimeoutSeconds", 16); - } - } - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CacheConfiguration.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CacheConfiguration.cs deleted file mode 100644 index 7065c3865db6..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CacheConfiguration.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Caching settings for a caching-type route. To disable caching, do not - /// provide a cacheConfiguration object. - /// - public partial class CacheConfiguration - { - /// - /// Initializes a new instance of the CacheConfiguration class. - /// - public CacheConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CacheConfiguration class. - /// - - /// Treatment of URL query terms when forming the cache key. - /// Possible values include: 'StripNone', 'StripAll', 'StripOnly', - /// 'StripAllExcept' - - /// query parameters to include or exclude (comma separated). - /// - - /// Whether to use dynamic compression for cached content - /// Possible values include: 'Enabled', 'Disabled' - - /// The duration for which the content needs to be cached. Allowed format is in - /// ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP - /// requires the value to be no more than a year - /// - public CacheConfiguration(string queryParameterStripDirective = default(string), string queryParameters = default(string), string dynamicCompression = default(string), System.TimeSpan? cacheDuration = default(System.TimeSpan?)) - - { - this.QueryParameterStripDirective = queryParameterStripDirective; - this.QueryParameters = queryParameters; - this.DynamicCompression = dynamicCompression; - this.CacheDuration = cacheDuration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets treatment of URL query terms when forming the cache key. Possible values include: 'StripNone', 'StripAll', 'StripOnly', 'StripAllExcept' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "queryParameterStripDirective")] - public string QueryParameterStripDirective {get; set; } - - /// - /// Gets or sets query parameters to include or exclude (comma separated). - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "queryParameters")] - public string QueryParameters {get; set; } - - /// - /// Gets or sets whether to use dynamic compression for cached content Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dynamicCompression")] - public string DynamicCompression {get; set; } - - /// - /// Gets or sets the duration for which the content needs to be cached. Allowed - /// format is in ISO 8601 format - /// (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value - /// to be no more than a year - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "cacheDuration")] - public System.TimeSpan? CacheDuration {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CheckNameAvailabilityInput.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CheckNameAvailabilityInput.cs deleted file mode 100644 index 2574454e49dc..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CheckNameAvailabilityInput.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Input of CheckNameAvailability API. - /// - public partial class CheckNameAvailabilityInput - { - /// - /// Initializes a new instance of the CheckNameAvailabilityInput class. - /// - public CheckNameAvailabilityInput() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CheckNameAvailabilityInput class. - /// - - /// The resource name to validate. - /// - - /// The type of the resource whose name is to be validated. - /// Possible values include: 'Microsoft.Network/frontDoors', - /// 'Microsoft.Network/frontDoors/frontendEndpoints' - public CheckNameAvailabilityInput(string name, ResourceType type) - - { - this.Name = name; - this.Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the resource name to validate. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets or sets the type of the resource whose name is to be validated. Possible values include: 'Microsoft.Network/frontDoors', 'Microsoft.Network/frontDoors/frontendEndpoints' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public ResourceType Type {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.Name == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); - } - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CheckNameAvailabilityOutput.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CheckNameAvailabilityOutput.cs deleted file mode 100644 index b2a6d2a8675d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CheckNameAvailabilityOutput.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Output of check name availability API. - /// - public partial class CheckNameAvailabilityOutput - { - /// - /// Initializes a new instance of the CheckNameAvailabilityOutput class. - /// - public CheckNameAvailabilityOutput() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CheckNameAvailabilityOutput class. - /// - - /// Indicates whether the name is available. - /// Possible values include: 'Available', 'Unavailable' - - /// The reason why the name is not available. - /// - - /// The detailed error message describing why the name is not available. - /// - public CheckNameAvailabilityOutput(string nameAvailability = default(string), string reason = default(string), string message = default(string)) - - { - this.NameAvailability = nameAvailability; - this.Reason = reason; - this.Message = message; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets indicates whether the name is available. Possible values include: 'Available', 'Unavailable' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "nameAvailability")] - public string NameAvailability {get; private set; } - - /// - /// Gets the reason why the name is not available. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "reason")] - public string Reason {get; private set; } - - /// - /// Gets the detailed error message describing why the name is not available. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] - public string Message {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsConfiguration.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsConfiguration.cs deleted file mode 100644 index b243800bc138..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsConfiguration.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Https settings for a domain - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class CustomHttpsConfiguration - { - /// - /// Initializes a new instance of the CustomHttpsConfiguration class. - /// - public CustomHttpsConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CustomHttpsConfiguration class. - /// - - /// Defines the source of the SSL certificate - /// Possible values include: 'AzureKeyVault', 'FrontDoor' - - /// The minimum TLS version required from the clients to establish an SSL - /// handshake with Front Door. - /// Possible values include: '1.0', '1.2' - - /// The Key Vault containing the SSL certificate - /// - - /// The name of the Key Vault secret representing the full certificate PFX - /// - - /// The version of the Key Vault secret representing the full certificate PFX - /// - - /// Defines the type of the certificate used for secure connections to a - /// frontendEndpoint - /// Possible values include: 'Dedicated' - public CustomHttpsConfiguration(string certificateSource, string minimumTlsVersion, KeyVaultCertificateSourceParametersVault vault = default(KeyVaultCertificateSourceParametersVault), string secretName = default(string), string secretVersion = default(string), string certificateType = default(string)) - - { - this.CertificateSource = certificateSource; - this.MinimumTlsVersion = minimumTlsVersion; - this.Vault = vault; - this.SecretName = secretName; - this.SecretVersion = secretVersion; - this.CertificateType = certificateType; - CustomInit(); - } - /// - /// Static constructor for CustomHttpsConfiguration class. - /// - static CustomHttpsConfiguration() - { - ProtocolType = "ServerNameIndication"; - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets defines the source of the SSL certificate Possible values include: 'AzureKeyVault', 'FrontDoor' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "certificateSource")] - public string CertificateSource {get; set; } - - /// - /// Gets or sets the minimum TLS version required from the clients to establish - /// an SSL handshake with Front Door. Possible values include: '1.0', '1.2' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "minimumTlsVersion")] - public string MinimumTlsVersion {get; set; } - - /// - /// Gets or sets the Key Vault containing the SSL certificate - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "keyVaultCertificateSourceParameters.vault")] - public KeyVaultCertificateSourceParametersVault Vault {get; set; } - - /// - /// Gets or sets the name of the Key Vault secret representing the full - /// certificate PFX - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "keyVaultCertificateSourceParameters.secretName")] - public string SecretName {get; set; } - - /// - /// Gets or sets the version of the Key Vault secret representing the full - /// certificate PFX - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "keyVaultCertificateSourceParameters.secretVersion")] - public string SecretVersion {get; set; } - - /// - /// Gets or sets defines the type of the certificate used for secure - /// connections to a frontendEndpoint Possible values include: 'Dedicated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "frontDoorCertificateSourceParameters.certificateType")] - public string CertificateType {get; set; } - /// - /// Gets or sets defines the TLS extension protocol that is used for secure delivery - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "protocolType")] - public static string ProtocolType {get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.CertificateSource == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "CertificateSource"); - } - if (this.MinimumTlsVersion == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "MinimumTlsVersion"); - } - - - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsProvisioningState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsProvisioningState.cs deleted file mode 100644 index 905dc2b4db0b..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsProvisioningState.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for CustomHttpsProvisioningState. - /// - - - public static class CustomHttpsProvisioningState - { - public const string Enabling = "Enabling"; - public const string Enabled = "Enabled"; - public const string Disabling = "Disabling"; - public const string Disabled = "Disabled"; - public const string Failed = "Failed"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsProvisioningSubstate.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsProvisioningSubstate.cs deleted file mode 100644 index ad7cea7993be..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomHttpsProvisioningSubstate.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for CustomHttpsProvisioningSubstate. - /// - - - public static class CustomHttpsProvisioningSubstate - { - public const string SubmittingDomainControlValidationRequest = "SubmittingDomainControlValidationRequest"; - public const string PendingDomainControlValidationREquestApproval = "PendingDomainControlValidationREquestApproval"; - public const string DomainControlValidationRequestApproved = "DomainControlValidationRequestApproved"; - public const string DomainControlValidationRequestRejected = "DomainControlValidationRequestRejected"; - public const string DomainControlValidationRequestTimedOut = "DomainControlValidationRequestTimedOut"; - public const string IssuingCertificate = "IssuingCertificate"; - public const string DeployingCertificate = "DeployingCertificate"; - public const string CertificateDeployed = "CertificateDeployed"; - public const string DeletingCertificate = "DeletingCertificate"; - public const string CertificateDeleted = "CertificateDeleted"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRule.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRule.cs deleted file mode 100644 index c6b59ffb6ad9..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRule.cs +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines contents of a web application rule - /// - public partial class CustomRule - { - /// - /// Initializes a new instance of the CustomRule class. - /// - public CustomRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CustomRule class. - /// - - /// Describes the name of the rule. - /// - - /// Describes priority of the rule. Rules with a lower value will be evaluated - /// before rules with a higher value. - /// - - /// Describes if the custom rule is in enabled or disabled state. Defaults to - /// Enabled if not specified. - /// Possible values include: 'Disabled', 'Enabled' - - /// Describes type of rule. - /// Possible values include: 'MatchRule', 'RateLimitRule' - - /// Time window for resetting the rate limit count. Default is 1 minute. - /// - - /// Number of allowed requests per client within the time window. - /// - - /// Describes the list of variables to group the rate limit requests - /// - - /// List of match conditions. - /// - - /// Describes what action to be applied when rule matches. - /// Possible values include: 'Allow', 'Block', 'Log', 'Redirect', - /// 'AnomalyScoring', 'JSChallenge', 'CAPTCHA' - public CustomRule(int priority, string ruleType, System.Collections.Generic.IList matchConditions, string action, string name = default(string), string enabledState = default(string), int? rateLimitDurationInMinutes = default(int?), int? rateLimitThreshold = default(int?), System.Collections.Generic.IList groupBy = default(System.Collections.Generic.IList)) - - { - this.Name = name; - this.Priority = priority; - this.EnabledState = enabledState; - this.RuleType = ruleType; - this.RateLimitDurationInMinutes = rateLimitDurationInMinutes; - this.RateLimitThreshold = rateLimitThreshold; - this.GroupBy = groupBy; - this.MatchConditions = matchConditions; - this.Action = action; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets describes the name of the rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets or sets describes priority of the rule. Rules with a lower value will - /// be evaluated before rules with a higher value. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "priority")] - public int Priority {get; set; } - - /// - /// Gets or sets describes if the custom rule is in enabled or disabled state. - /// Defaults to Enabled if not specified. Possible values include: 'Disabled', 'Enabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets or sets describes type of rule. Possible values include: 'MatchRule', 'RateLimitRule' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleType")] - public string RuleType {get; set; } - - /// - /// Gets or sets time window for resetting the rate limit count. Default is 1 - /// minute. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rateLimitDurationInMinutes")] - public int? RateLimitDurationInMinutes {get; set; } - - /// - /// Gets or sets number of allowed requests per client within the time window. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rateLimitThreshold")] - public int? RateLimitThreshold {get; set; } - - /// - /// Gets or sets describes the list of variables to group the rate limit - /// requests - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "groupBy")] - public System.Collections.Generic.IList GroupBy {get; set; } - - /// - /// Gets or sets list of match conditions. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "matchConditions")] - public System.Collections.Generic.IList MatchConditions {get; set; } - - /// - /// Gets or sets describes what action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect', 'AnomalyScoring', 'JSChallenge', 'CAPTCHA' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "action")] - public string Action {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.RuleType == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RuleType"); - } - if (this.MatchConditions == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "MatchConditions"); - } - if (this.Action == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Action"); - } - if (this.Name != null) - { - if (this.Name.Length > 128) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "Name", 128); - } - } - - - if (this.RateLimitDurationInMinutes != null) - { - if (this.RateLimitDurationInMinutes > 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "RateLimitDurationInMinutes", 5); - } - if (this.RateLimitDurationInMinutes < 0) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "RateLimitDurationInMinutes", 0); - } - } - if (this.RateLimitThreshold != null) - { - if (this.RateLimitThreshold < 0) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "RateLimitThreshold", 0); - } - } - if (this.GroupBy != null) - { - foreach (var element in this.GroupBy) - { - if (element != null) - { - element.Validate(); - } - } - } - if (this.MatchConditions != null) - { - foreach (var element in this.MatchConditions) - { - if (element != null) - { - element.Validate(); - } - } - } - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRuleEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRuleEnabledState.cs deleted file mode 100644 index 7f9a3e7fef9c..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRuleEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for CustomRuleEnabledState. - /// - - - public static class CustomRuleEnabledState - { - public const string Disabled = "Disabled"; - public const string Enabled = "Enabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRuleList.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRuleList.cs deleted file mode 100644 index 289f7cf941a3..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/CustomRuleList.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines contents of custom rules - /// - public partial class CustomRuleList - { - /// - /// Initializes a new instance of the CustomRuleList class. - /// - public CustomRuleList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CustomRuleList class. - /// - - /// List of rules - /// - public CustomRuleList(System.Collections.Generic.IList rules = default(System.Collections.Generic.IList)) - - { - this.Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets list of rules - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rules")] - public System.Collections.Generic.IList Rules {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponse.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponse.cs deleted file mode 100644 index 926e8c97b1ee..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponse.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Error response indicates Front Door service is not able to process the - /// incoming request. The reason is provided in the error message. - /// - public partial class DefaultErrorResponse - { - /// - /// Initializes a new instance of the DefaultErrorResponse class. - /// - public DefaultErrorResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DefaultErrorResponse class. - /// - - /// Error model. - /// - public DefaultErrorResponse(DefaultErrorResponseError error = default(DefaultErrorResponseError)) - - { - this.Error = error; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets error model. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "error")] - public DefaultErrorResponseError Error {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponseError.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponseError.cs deleted file mode 100644 index 484659f972d9..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponseError.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Error model. - /// - public partial class DefaultErrorResponseError - { - /// - /// Initializes a new instance of the DefaultErrorResponseError class. - /// - public DefaultErrorResponseError() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DefaultErrorResponseError class. - /// - - /// Error code. - /// - - /// Error message indicating why the operation failed. - /// - public DefaultErrorResponseError(string code = default(string), string message = default(string)) - - { - this.Code = code; - this.Message = message; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets error code. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] - public string Code {get; private set; } - - /// - /// Gets error message indicating why the operation failed. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] - public string Message {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponseException.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponseException.cs deleted file mode 100644 index 962e009cadc2..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DefaultErrorResponseException.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Exception thrown for an invalid response with DefaultErrorResponse information. - /// - public partial class DefaultErrorResponseException : Microsoft.Rest.RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public Microsoft.Rest.HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public Microsoft.Rest.HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public DefaultErrorResponse Body { get; set; } - - /// - /// Initializes a new instance of the DefaultErrorResponseException class. - /// - public DefaultErrorResponseException() - { - } - - /// - /// Initializes a new instance of the DefaultErrorResponse class. - /// - /// The exception message. - public DefaultErrorResponseException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the DefaultErrorResponse class. - /// - /// The exception message. - /// Inner exception. - public DefaultErrorResponseException(string message, System.Exception innerException) - : base(message, innerException) - { - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DynamicCompressionEnabled.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DynamicCompressionEnabled.cs deleted file mode 100644 index 8298f0b4dd6e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/DynamicCompressionEnabled.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for DynamicCompressionEnabled. - /// - - - public static class DynamicCompressionEnabled - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Endpoint.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Endpoint.cs deleted file mode 100644 index 006182713743..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Endpoint.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the endpoint properties - /// - public partial class Endpoint - { - /// - /// Initializes a new instance of the Endpoint class. - /// - public Endpoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Endpoint class. - /// - - /// The name of the endpoint - /// - - /// The endpoint URL - /// - public Endpoint(string name = default(string), string endpointProperty = default(string)) - - { - this.Name = name; - this.EndpointProperty = endpointProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the name of the endpoint - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets or sets the endpoint URL - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endpoint")] - public string EndpointProperty {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EndpointType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EndpointType.cs deleted file mode 100644 index e06100dfc191..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EndpointType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for EndpointType. - /// - - - public static class EndpointType - { - public const string AFD = "AFD"; - public const string AzureRegion = "AzureRegion"; - public const string CDN = "CDN"; - public const string ATM = "ATM"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EnforceCertificateNameCheckEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EnforceCertificateNameCheckEnabledState.cs deleted file mode 100644 index d98fbf92ae7b..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EnforceCertificateNameCheckEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for EnforceCertificateNameCheckEnabledState. - /// - - - public static class EnforceCertificateNameCheckEnabledState - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Error.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Error.cs deleted file mode 100644 index 07d3fc80a98e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Error.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Error class. - /// - - /// - /// - - /// - /// - - /// - /// - - /// - /// - - /// - /// - public Error(string code = default(string), string message = default(string), string target = default(string), System.Collections.Generic.IList details = default(System.Collections.Generic.IList), string innerError = default(string)) - - { - this.Code = code; - this.Message = message; - this.Target = target; - this.Details = details; - this.InnerError = innerError; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] - public string Code {get; set; } - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] - public string Message {get; set; } - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "target")] - public string Target {get; set; } - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "details")] - public System.Collections.Generic.IList Details {get; set; } - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "innerError")] - public string InnerError {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorDetails.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorDetails.cs deleted file mode 100644 index 472f8d6c74fd..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorDetails.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - public partial class ErrorDetails - { - /// - /// Initializes a new instance of the ErrorDetails class. - /// - public ErrorDetails() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ErrorDetails class. - /// - - /// - /// - - /// - /// - - /// - /// - public ErrorDetails(string code = default(string), string target = default(string), string message = default(string)) - - { - this.Code = code; - this.Target = target; - this.Message = message; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] - public string Code {get; set; } - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "target")] - public string Target {get; set; } - - /// - /// Gets or sets - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] - public string Message {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorResponse.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorResponse.cs deleted file mode 100644 index ef55e713d4b5..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Error response indicates Front Door service is not able to process the - /// incoming request. The reason is provided in the error message. - /// - public partial class ErrorResponse - { - /// - /// Initializes a new instance of the ErrorResponse class. - /// - public ErrorResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ErrorResponse class. - /// - - /// Error code. - /// - - /// Error message indicating why the operation failed. - /// - public ErrorResponse(string code = default(string), string message = default(string)) - - { - this.Code = code; - this.Message = message; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets error code. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] - public string Code {get; private set; } - - /// - /// Gets error message indicating why the operation failed. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] - public string Message {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorResponseException.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorResponseException.cs deleted file mode 100644 index 2c055cd7bf67..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ErrorResponseException.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Exception thrown for an invalid response with ErrorResponse information. - /// - public partial class ErrorResponseException : Microsoft.Rest.RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public Microsoft.Rest.HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public Microsoft.Rest.HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public ErrorResponse Body { get; set; } - - /// - /// Initializes a new instance of the ErrorResponseException class. - /// - public ErrorResponseException() - { - } - - /// - /// Initializes a new instance of the ErrorResponse class. - /// - /// The exception message. - public ErrorResponseException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorResponse class. - /// - /// The exception message. - /// Inner exception. - public ErrorResponseException(string message, System.Exception innerException) - : base(message, innerException) - { - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Experiment.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Experiment.cs deleted file mode 100644 index aa9665572764..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Experiment.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of an Experiment - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class Experiment : Resource - { - /// - /// Initializes a new instance of the Experiment class. - /// - public Experiment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Experiment class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - - /// The endpoint A of an experiment - /// - - /// The endpoint B of an experiment - /// - - /// The description of the details or intents of the Experiment - /// - - /// The state of the Experiment - /// Possible values include: 'Enabled', 'Disabled' - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting' - - /// The description of Experiment status from the server side - /// - - /// The uri to the Script used in the Experiment - /// - public Experiment(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), Endpoint endpointA = default(Endpoint), Endpoint endpointB = default(Endpoint), string description = default(string), string enabledState = default(string), string resourceState = default(string), string status = default(string), string scriptFileUri = default(string)) - - : base(id, name, type, location, tags) - { - this.EndpointA = endpointA; - this.EndpointB = endpointB; - this.Description = description; - this.EnabledState = enabledState; - this.ResourceState = resourceState; - this.Status = status; - this.ScriptFileUri = scriptFileUri; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the endpoint A of an experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endpointA")] - public Endpoint EndpointA {get; set; } - - /// - /// Gets or sets the endpoint B of an experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endpointB")] - public Endpoint EndpointB {get; set; } - - /// - /// Gets or sets the description of the details or intents of the Experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.description")] - public string Description {get; set; } - - /// - /// Gets or sets the state of the Experiment Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - - /// - /// Gets the description of Experiment status from the server side - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.status")] - public string Status {get; private set; } - - /// - /// Gets the uri to the Script used in the Experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.scriptFileUri")] - public string ScriptFileUri {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentProperties.cs deleted file mode 100644 index 7e7c0081dc28..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentProperties.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of an experiment - /// - public partial class ExperimentProperties - { - /// - /// Initializes a new instance of the ExperimentProperties class. - /// - public ExperimentProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ExperimentProperties class. - /// - - /// The description of the details or intents of the Experiment - /// - - /// The endpoint A of an experiment - /// - - /// The endpoint B of an experiment - /// - - /// The state of the Experiment - /// Possible values include: 'Enabled', 'Disabled' - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting' - - /// The description of Experiment status from the server side - /// - - /// The uri to the Script used in the Experiment - /// - public ExperimentProperties(string description = default(string), Endpoint endpointA = default(Endpoint), Endpoint endpointB = default(Endpoint), string enabledState = default(string), string resourceState = default(string), string status = default(string), string scriptFileUri = default(string)) - - { - this.Description = description; - this.EndpointA = endpointA; - this.EndpointB = endpointB; - this.EnabledState = enabledState; - this.ResourceState = resourceState; - this.Status = status; - this.ScriptFileUri = scriptFileUri; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the description of the details or intents of the Experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "description")] - public string Description {get; set; } - - /// - /// Gets or sets the endpoint A of an experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endpointA")] - public Endpoint EndpointA {get; set; } - - /// - /// Gets or sets the endpoint B of an experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endpointB")] - public Endpoint EndpointB {get; set; } - - /// - /// Gets or sets the state of the Experiment Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - - /// - /// Gets the description of Experiment status from the server side - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] - public string Status {get; private set; } - - /// - /// Gets the uri to the Script used in the Experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "scriptFileUri")] - public string ScriptFileUri {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentUpdateModel.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentUpdateModel.cs deleted file mode 100644 index 14ab7f6b88aa..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentUpdateModel.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines modifiable attributes of an Experiment - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class ExperimentUpdateModel - { - /// - /// Initializes a new instance of the ExperimentUpdateModel class. - /// - public ExperimentUpdateModel() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ExperimentUpdateModel class. - /// - - /// Resource tags. - /// - - /// The description of the intent or details of the Experiment - /// - - /// The state of the Experiment - /// Possible values include: 'Enabled', 'Disabled' - public ExperimentUpdateModel(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string description = default(string), string enabledState = default(string)) - - { - this.Tags = tags; - this.Description = description; - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource tags. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags {get; set; } - - /// - /// Gets or sets the description of the intent or details of the Experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.description")] - public string Description {get; set; } - - /// - /// Gets or sets the state of the Experiment Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledState")] - public string EnabledState {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentUpdateProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentUpdateProperties.cs deleted file mode 100644 index e786c50e917e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ExperimentUpdateProperties.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of an experiment - /// - public partial class ExperimentUpdateProperties - { - /// - /// Initializes a new instance of the ExperimentUpdateProperties class. - /// - public ExperimentUpdateProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ExperimentUpdateProperties class. - /// - - /// The description of the intent or details of the Experiment - /// - - /// The state of the Experiment - /// Possible values include: 'Enabled', 'Disabled' - public ExperimentUpdateProperties(string description = default(string), string enabledState = default(string)) - - { - this.Description = description; - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the description of the intent or details of the Experiment - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "description")] - public string Description {get; set; } - - /// - /// Gets or sets the state of the Experiment Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ForwardingConfiguration.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ForwardingConfiguration.cs deleted file mode 100644 index 9c54a933115a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ForwardingConfiguration.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Describes Forwarding Route. - /// - [Newtonsoft.Json.JsonObject("#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration")] - public partial class ForwardingConfiguration : RouteConfiguration - { - /// - /// Initializes a new instance of the ForwardingConfiguration class. - /// - public ForwardingConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ForwardingConfiguration class. - /// - - /// A custom path used to rewrite resource paths matched by this rule. Leave - /// empty to use incoming path. - /// - - /// Protocol this rule will use when forwarding traffic to backends. - /// Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest' - - /// The caching configuration associated with this rule. - /// - - /// A reference to the BackendPool which this rule routes to. - /// - public ForwardingConfiguration(string customForwardingPath = default(string), string forwardingProtocol = default(string), CacheConfiguration cacheConfiguration = default(CacheConfiguration), SubResource backendPool = default(SubResource)) - - { - this.CustomForwardingPath = customForwardingPath; - this.ForwardingProtocol = forwardingProtocol; - this.CacheConfiguration = cacheConfiguration; - this.BackendPool = backendPool; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets a custom path used to rewrite resource paths matched by this - /// rule. Leave empty to use incoming path. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customForwardingPath")] - public string CustomForwardingPath {get; set; } - - /// - /// Gets or sets protocol this rule will use when forwarding traffic to - /// backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "forwardingProtocol")] - public string ForwardingProtocol {get; set; } - - /// - /// Gets or sets the caching configuration associated with this rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "cacheConfiguration")] - public CacheConfiguration CacheConfiguration {get; set; } - - /// - /// Gets or sets a reference to the BackendPool which this rule routes to. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "backendPool")] - public SubResource BackendPool {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateSource.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateSource.cs deleted file mode 100644 index a0baa97ab89a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateSource.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorCertificateSource. - /// - - - public static class FrontDoorCertificateSource - { - public const string AzureKeyVault = "AzureKeyVault"; - public const string FrontDoor = "FrontDoor"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateSourceParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateSourceParameters.cs deleted file mode 100644 index 0e7e9ad1b038..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateSourceParameters.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Parameters required for enabling SSL with Front Door-managed certificates - /// - public partial class FrontDoorCertificateSourceParameters - { - /// - /// Initializes a new instance of the FrontDoorCertificateSourceParameters class. - /// - public FrontDoorCertificateSourceParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontDoorCertificateSourceParameters class. - /// - - /// Defines the type of the certificate used for secure connections to a - /// frontendEndpoint - /// Possible values include: 'Dedicated' - public FrontDoorCertificateSourceParameters(string certificateType = default(string)) - - { - this.CertificateType = certificateType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets defines the type of the certificate used for secure - /// connections to a frontendEndpoint Possible values include: 'Dedicated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "certificateType")] - public string CertificateType {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateType.cs deleted file mode 100644 index 722b799686ff..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorCertificateType.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorCertificateType. - /// - - - public static class FrontDoorCertificateType - { - public const string Dedicated = "Dedicated"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorEnabledState.cs deleted file mode 100644 index e67a06577574..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorEnabledState. - /// - - - public static class FrontDoorEnabledState - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorForwardingProtocol.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorForwardingProtocol.cs deleted file mode 100644 index 35c522b7c34b..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorForwardingProtocol.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorForwardingProtocol. - /// - - - public static class FrontDoorForwardingProtocol - { - public const string HttpOnly = "HttpOnly"; - public const string HttpsOnly = "HttpsOnly"; - public const string MatchRequest = "MatchRequest"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorHealthProbeMethod.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorHealthProbeMethod.cs deleted file mode 100644 index dcdd5ea74c4e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorHealthProbeMethod.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorHealthProbeMethod. - /// - - - public static class FrontDoorHealthProbeMethod - { - public const string GET = "GET"; - public const string Head = "HEAD"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorModel.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorModel.cs deleted file mode 100644 index 2dc772504898..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorModel.cs +++ /dev/null @@ -1,234 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Front Door represents a collection of backend endpoints to route traffic to - /// along with rules that specify how traffic is sent there. - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class FrontDoorModel : Resource - { - /// - /// Initializes a new instance of the FrontDoorModel class. - /// - public FrontDoorModel() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontDoorModel class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - - /// A friendly name for the frontDoor - /// - - /// Routing rules associated with this Front Door. - /// - - /// Load balancing settings associated with this Front Door instance. - /// - - /// Health probe settings associated with this Front Door instance. - /// - - /// Backend pools available to routing rules. - /// - - /// Frontend endpoints available to routing rules. - /// - - /// Settings for all backendPools - /// - - /// Operational status of the Front Door load balancer. Permitted values are - /// 'Enabled' or 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// Resource status of the Front Door. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - - /// Provisioning state of the Front Door. - /// - - /// The host that each frontendEndpoint must CNAME to. - /// - - /// The Id of the frontdoor. - /// - - /// Rules Engine Configurations available to routing rules. - /// - - /// Key-Value pair representing additional properties for frontdoor. - /// - public FrontDoorModel(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string friendlyName = default(string), System.Collections.Generic.IList routingRules = default(System.Collections.Generic.IList), System.Collections.Generic.IList loadBalancingSettings = default(System.Collections.Generic.IList), System.Collections.Generic.IList healthProbeSettings = default(System.Collections.Generic.IList), System.Collections.Generic.IList backendPools = default(System.Collections.Generic.IList), System.Collections.Generic.IList frontendEndpoints = default(System.Collections.Generic.IList), BackendPoolsSettings backendPoolsSettings = default(BackendPoolsSettings), string enabledState = default(string), string resourceState = default(string), string provisioningState = default(string), string cname = default(string), string frontdoorId = default(string), System.Collections.Generic.IList rulesEngines = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary extendedProperties = default(System.Collections.Generic.IDictionary)) - - : base(id, name, type, location, tags) - { - this.FriendlyName = friendlyName; - this.RoutingRules = routingRules; - this.LoadBalancingSettings = loadBalancingSettings; - this.HealthProbeSettings = healthProbeSettings; - this.BackendPools = backendPools; - this.FrontendEndpoints = frontendEndpoints; - this.BackendPoolsSettings = backendPoolsSettings; - this.EnabledState = enabledState; - this.ResourceState = resourceState; - this.ProvisioningState = provisioningState; - this.Cname = cname; - this.FrontdoorId = frontdoorId; - this.RulesEngines = rulesEngines; - this.ExtendedProperties = extendedProperties; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets a friendly name for the frontDoor - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.friendlyName")] - public string FriendlyName {get; set; } - - /// - /// Gets or sets routing rules associated with this Front Door. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.routingRules")] - public System.Collections.Generic.IList RoutingRules {get; set; } - - /// - /// Gets or sets load balancing settings associated with this Front Door - /// instance. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.loadBalancingSettings")] - public System.Collections.Generic.IList LoadBalancingSettings {get; set; } - - /// - /// Gets or sets health probe settings associated with this Front Door - /// instance. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.healthProbeSettings")] - public System.Collections.Generic.IList HealthProbeSettings {get; set; } - - /// - /// Gets or sets backend pools available to routing rules. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.backendPools")] - public System.Collections.Generic.IList BackendPools {get; set; } - - /// - /// Gets or sets frontend endpoints available to routing rules. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.frontendEndpoints")] - public System.Collections.Generic.IList FrontendEndpoints {get; set; } - - /// - /// Gets or sets settings for all backendPools - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.backendPoolsSettings")] - public BackendPoolsSettings BackendPoolsSettings {get; set; } - - /// - /// Gets or sets operational status of the Front Door load balancer. Permitted - /// values are 'Enabled' or 'Disabled' Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets resource status of the Front Door. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - - /// - /// Gets provisioning state of the Front Door. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState {get; private set; } - - /// - /// Gets the host that each frontendEndpoint must CNAME to. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.cname")] - public string Cname {get; private set; } - - /// - /// Gets the Id of the frontdoor. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.frontdoorId")] - public string FrontdoorId {get; private set; } - - /// - /// Gets rules Engine Configurations available to routing rules. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.rulesEngines")] - public System.Collections.Generic.IList RulesEngines {get; private set; } - - /// - /// Gets key-Value pair representing additional properties for frontdoor. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.extendedProperties")] - public System.Collections.Generic.IDictionary ExtendedProperties {get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - - - - - - if (this.FrontendEndpoints != null) - { - foreach (var element in this.FrontendEndpoints) - { - if (element != null) - { - element.Validate(); - } - } - } - if (this.BackendPoolsSettings != null) - { - this.BackendPoolsSettings.Validate(); - } - - - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorProperties.cs deleted file mode 100644 index 3b3c3767be11..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorProperties.cs +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The JSON object that contains the properties required to create an - /// endpoint. - /// - public partial class FrontDoorProperties : FrontDoorUpdateParameters - { - /// - /// Initializes a new instance of the FrontDoorProperties class. - /// - public FrontDoorProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontDoorProperties class. - /// - - /// A friendly name for the frontDoor - /// - - /// Routing rules associated with this Front Door. - /// - - /// Load balancing settings associated with this Front Door instance. - /// - - /// Health probe settings associated with this Front Door instance. - /// - - /// Backend pools available to routing rules. - /// - - /// Frontend endpoints available to routing rules. - /// - - /// Settings for all backendPools - /// - - /// Operational status of the Front Door load balancer. Permitted values are - /// 'Enabled' or 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// Resource status of the Front Door. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - - /// Provisioning state of the Front Door. - /// - - /// The host that each frontendEndpoint must CNAME to. - /// - - /// The Id of the frontdoor. - /// - - /// Rules Engine Configurations available to routing rules. - /// - - /// Key-Value pair representing additional properties for frontdoor. - /// - public FrontDoorProperties(string friendlyName = default(string), System.Collections.Generic.IList routingRules = default(System.Collections.Generic.IList), System.Collections.Generic.IList loadBalancingSettings = default(System.Collections.Generic.IList), System.Collections.Generic.IList healthProbeSettings = default(System.Collections.Generic.IList), System.Collections.Generic.IList backendPools = default(System.Collections.Generic.IList), System.Collections.Generic.IList frontendEndpoints = default(System.Collections.Generic.IList), BackendPoolsSettings backendPoolsSettings = default(BackendPoolsSettings), string enabledState = default(string), string resourceState = default(string), string provisioningState = default(string), string cname = default(string), string frontdoorId = default(string), System.Collections.Generic.IList rulesEngines = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary extendedProperties = default(System.Collections.Generic.IDictionary)) - - : base(friendlyName, routingRules, loadBalancingSettings, healthProbeSettings, backendPools, frontendEndpoints, backendPoolsSettings, enabledState) - { - this.ResourceState = resourceState; - this.ProvisioningState = provisioningState; - this.Cname = cname; - this.FrontdoorId = frontdoorId; - this.RulesEngines = rulesEngines; - this.ExtendedProperties = extendedProperties; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource status of the Front Door. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - - /// - /// Gets provisioning state of the Front Door. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState {get; private set; } - - /// - /// Gets the host that each frontendEndpoint must CNAME to. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "cname")] - public string Cname {get; private set; } - - /// - /// Gets the Id of the frontdoor. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "frontdoorId")] - public string FrontdoorId {get; private set; } - - /// - /// Gets rules Engine Configurations available to routing rules. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rulesEngines")] - public System.Collections.Generic.IList RulesEngines {get; private set; } - - /// - /// Gets key-Value pair representing additional properties for frontdoor. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "extendedProperties")] - public System.Collections.Generic.IDictionary ExtendedProperties {get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorProtocol.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorProtocol.cs deleted file mode 100644 index 3f3df26ace51..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorProtocol.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorProtocol. - /// - - - public static class FrontDoorProtocol - { - public const string Http = "Http"; - public const string Https = "Https"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorQuery.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorQuery.cs deleted file mode 100644 index 4d00e966e489..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorQuery.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorQuery. - /// - - - public static class FrontDoorQuery - { - public const string StripNone = "StripNone"; - public const string StripAll = "StripAll"; - public const string StripOnly = "StripOnly"; - public const string StripAllExcept = "StripAllExcept"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorRedirectProtocol.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorRedirectProtocol.cs deleted file mode 100644 index 1f238f673427..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorRedirectProtocol.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorRedirectProtocol. - /// - - - public static class FrontDoorRedirectProtocol - { - public const string HttpOnly = "HttpOnly"; - public const string HttpsOnly = "HttpsOnly"; - public const string MatchRequest = "MatchRequest"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorRedirectType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorRedirectType.cs deleted file mode 100644 index e72ba10e2f91..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorRedirectType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorRedirectType. - /// - - - public static class FrontDoorRedirectType - { - public const string Moved = "Moved"; - public const string Found = "Found"; - public const string TemporaryRedirect = "TemporaryRedirect"; - public const string PermanentRedirect = "PermanentRedirect"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorResourceState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorResourceState.cs deleted file mode 100644 index c8da67bdcb6b..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorResourceState.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorResourceState. - /// - - - public static class FrontDoorResourceState - { - public const string Creating = "Creating"; - public const string Enabling = "Enabling"; - public const string Enabled = "Enabled"; - public const string Disabling = "Disabling"; - public const string Disabled = "Disabled"; - public const string Deleting = "Deleting"; - public const string Migrating = "Migrating"; - public const string Migrated = "Migrated"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorTlsProtocolType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorTlsProtocolType.cs deleted file mode 100644 index 48989ce8ad87..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorTlsProtocolType.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for FrontDoorTlsProtocolType. - /// - - - public static class FrontDoorTlsProtocolType - { - public const string ServerNameIndication = "ServerNameIndication"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorUpdateParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorUpdateParameters.cs deleted file mode 100644 index d321bbe27283..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontDoorUpdateParameters.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The properties needed to update a Front Door - /// - public partial class FrontDoorUpdateParameters - { - /// - /// Initializes a new instance of the FrontDoorUpdateParameters class. - /// - public FrontDoorUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontDoorUpdateParameters class. - /// - - /// A friendly name for the frontDoor - /// - - /// Routing rules associated with this Front Door. - /// - - /// Load balancing settings associated with this Front Door instance. - /// - - /// Health probe settings associated with this Front Door instance. - /// - - /// Backend pools available to routing rules. - /// - - /// Frontend endpoints available to routing rules. - /// - - /// Settings for all backendPools - /// - - /// Operational status of the Front Door load balancer. Permitted values are - /// 'Enabled' or 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - public FrontDoorUpdateParameters(string friendlyName = default(string), System.Collections.Generic.IList routingRules = default(System.Collections.Generic.IList), System.Collections.Generic.IList loadBalancingSettings = default(System.Collections.Generic.IList), System.Collections.Generic.IList healthProbeSettings = default(System.Collections.Generic.IList), System.Collections.Generic.IList backendPools = default(System.Collections.Generic.IList), System.Collections.Generic.IList frontendEndpoints = default(System.Collections.Generic.IList), BackendPoolsSettings backendPoolsSettings = default(BackendPoolsSettings), string enabledState = default(string)) - - { - this.FriendlyName = friendlyName; - this.RoutingRules = routingRules; - this.LoadBalancingSettings = loadBalancingSettings; - this.HealthProbeSettings = healthProbeSettings; - this.BackendPools = backendPools; - this.FrontendEndpoints = frontendEndpoints; - this.BackendPoolsSettings = backendPoolsSettings; - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets a friendly name for the frontDoor - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "friendlyName")] - public string FriendlyName {get; set; } - - /// - /// Gets or sets routing rules associated with this Front Door. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "routingRules")] - public System.Collections.Generic.IList RoutingRules {get; set; } - - /// - /// Gets or sets load balancing settings associated with this Front Door - /// instance. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "loadBalancingSettings")] - public System.Collections.Generic.IList LoadBalancingSettings {get; set; } - - /// - /// Gets or sets health probe settings associated with this Front Door - /// instance. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "healthProbeSettings")] - public System.Collections.Generic.IList HealthProbeSettings {get; set; } - - /// - /// Gets or sets backend pools available to routing rules. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "backendPools")] - public System.Collections.Generic.IList BackendPools {get; set; } - - /// - /// Gets or sets frontend endpoints available to routing rules. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "frontendEndpoints")] - public System.Collections.Generic.IList FrontendEndpoints {get; set; } - - /// - /// Gets or sets settings for all backendPools - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "backendPoolsSettings")] - public BackendPoolsSettings BackendPoolsSettings {get; set; } - - /// - /// Gets or sets operational status of the Front Door load balancer. Permitted - /// values are 'Enabled' or 'Disabled' Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - - - - - - if (this.FrontendEndpoints != null) - { - foreach (var element in this.FrontendEndpoints) - { - if (element != null) - { - element.Validate(); - } - } - } - if (this.BackendPoolsSettings != null) - { - this.BackendPoolsSettings.Validate(); - } - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpoint.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpoint.cs deleted file mode 100644 index 7afb2c9f24d1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpoint.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// A frontend endpoint used for routing. - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class FrontendEndpoint : SubResource - { - /// - /// Initializes a new instance of the FrontendEndpoint class. - /// - public FrontendEndpoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontendEndpoint class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// The host name of the frontendEndpoint. Must be a domain name. - /// - - /// Whether to allow session affinity on this host. Valid options are 'Enabled' - /// or 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// UNUSED. This field will be ignored. The TTL to use in seconds for session - /// affinity, if applicable. - /// - - /// Defines the Web Application Firewall policy for each host (if applicable) - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - - /// Provisioning status of Custom Https of the frontendEndpoint. - /// Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', - /// 'Failed' - - /// Provisioning substate shows the progress of custom HTTPS enabling/disabling - /// process step by step. - /// Possible values include: 'SubmittingDomainControlValidationRequest', - /// 'PendingDomainControlValidationREquestApproval', - /// 'DomainControlValidationRequestApproved', - /// 'DomainControlValidationRequestRejected', - /// 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', - /// 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', - /// 'CertificateDeleted' - - /// The configuration specifying how to enable HTTPS - /// - public FrontendEndpoint(string id = default(string), string name = default(string), string type = default(string), string hostName = default(string), string sessionAffinityEnabledState = default(string), int? sessionAffinityTtlSeconds = default(int?), FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink), string resourceState = default(string), string customHttpsProvisioningState = default(string), string customHttpsProvisioningSubstate = default(string), CustomHttpsConfiguration customHttpsConfiguration = default(CustomHttpsConfiguration)) - - : base(id) - { - this.Name = name; - this.Type = type; - this.HostName = hostName; - this.SessionAffinityEnabledState = sessionAffinityEnabledState; - this.SessionAffinityTtlSeconds = sessionAffinityTtlSeconds; - this.WebApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink; - this.ResourceState = resourceState; - this.CustomHttpsProvisioningState = customHttpsProvisioningState; - this.CustomHttpsProvisioningSubstate = customHttpsProvisioningSubstate; - this.CustomHttpsConfiguration = customHttpsConfiguration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets resource type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type {get; private set; } - - /// - /// Gets or sets the host name of the frontendEndpoint. Must be a domain name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.hostName")] - public string HostName {get; set; } - - /// - /// Gets or sets whether to allow session affinity on this host. Valid options - /// are 'Enabled' or 'Disabled' Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.sessionAffinityEnabledState")] - public string SessionAffinityEnabledState {get; set; } - - /// - /// Gets or sets uNUSED. This field will be ignored. The TTL to use in seconds - /// for session affinity, if applicable. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.sessionAffinityTtlSeconds")] - public int? SessionAffinityTtlSeconds {get; set; } - - /// - /// Gets or sets defines the Web Application Firewall policy for each host (if - /// applicable) - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.webApplicationFirewallPolicyLink")] - public FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - - /// - /// Gets provisioning status of Custom Https of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Failed' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.customHttpsProvisioningState")] - public string CustomHttpsProvisioningState {get; private set; } - - /// - /// Gets provisioning substate shows the progress of custom HTTPS - /// enabling/disabling process step by step. Possible values include: 'SubmittingDomainControlValidationRequest', 'PendingDomainControlValidationREquestApproval', 'DomainControlValidationRequestApproved', 'DomainControlValidationRequestRejected', 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', 'CertificateDeleted' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.customHttpsProvisioningSubstate")] - public string CustomHttpsProvisioningSubstate {get; private set; } - - /// - /// Gets the configuration specifying how to enable HTTPS - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.customHttpsConfiguration")] - public CustomHttpsConfiguration CustomHttpsConfiguration {get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - - - - - - - - - if (this.CustomHttpsConfiguration != null) - { - this.CustomHttpsConfiguration.Validate(); - } - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointLink.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointLink.cs deleted file mode 100644 index 40f1095f2b80..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointLink.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the Resource ID for a Frontend Endpoint. - /// - public partial class FrontendEndpointLink - { - /// - /// Initializes a new instance of the FrontendEndpointLink class. - /// - public FrontendEndpointLink() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontendEndpointLink class. - /// - - /// Resource ID. - /// - public FrontendEndpointLink(string id = default(string)) - - { - this.Id = id; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointProperties.cs deleted file mode 100644 index 2c32cb5f5090..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointProperties.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The JSON object that contains the properties required to create a frontend - /// endpoint. - /// - public partial class FrontendEndpointProperties : FrontendEndpointUpdateParameters - { - /// - /// Initializes a new instance of the FrontendEndpointProperties class. - /// - public FrontendEndpointProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontendEndpointProperties class. - /// - - /// The host name of the frontendEndpoint. Must be a domain name. - /// - - /// Whether to allow session affinity on this host. Valid options are 'Enabled' - /// or 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// UNUSED. This field will be ignored. The TTL to use in seconds for session - /// affinity, if applicable. - /// - - /// Defines the Web Application Firewall policy for each host (if applicable) - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - - /// Provisioning status of Custom Https of the frontendEndpoint. - /// Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', - /// 'Failed' - - /// Provisioning substate shows the progress of custom HTTPS enabling/disabling - /// process step by step. - /// Possible values include: 'SubmittingDomainControlValidationRequest', - /// 'PendingDomainControlValidationREquestApproval', - /// 'DomainControlValidationRequestApproved', - /// 'DomainControlValidationRequestRejected', - /// 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', - /// 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', - /// 'CertificateDeleted' - - /// The configuration specifying how to enable HTTPS - /// - public FrontendEndpointProperties(string hostName = default(string), string sessionAffinityEnabledState = default(string), int? sessionAffinityTtlSeconds = default(int?), FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink), string resourceState = default(string), string customHttpsProvisioningState = default(string), string customHttpsProvisioningSubstate = default(string), CustomHttpsConfiguration customHttpsConfiguration = default(CustomHttpsConfiguration)) - - : base(hostName, sessionAffinityEnabledState, sessionAffinityTtlSeconds, webApplicationFirewallPolicyLink) - { - this.ResourceState = resourceState; - this.CustomHttpsProvisioningState = customHttpsProvisioningState; - this.CustomHttpsProvisioningSubstate = customHttpsProvisioningSubstate; - this.CustomHttpsConfiguration = customHttpsConfiguration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - - /// - /// Gets provisioning status of Custom Https of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Failed' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customHttpsProvisioningState")] - public string CustomHttpsProvisioningState {get; private set; } - - /// - /// Gets provisioning substate shows the progress of custom HTTPS - /// enabling/disabling process step by step. Possible values include: 'SubmittingDomainControlValidationRequest', 'PendingDomainControlValidationREquestApproval', 'DomainControlValidationRequestApproved', 'DomainControlValidationRequestRejected', 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', 'CertificateDeleted' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customHttpsProvisioningSubstate")] - public string CustomHttpsProvisioningSubstate {get; private set; } - - /// - /// Gets the configuration specifying how to enable HTTPS - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customHttpsConfiguration")] - public CustomHttpsConfiguration CustomHttpsConfiguration {get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - - - - if (this.CustomHttpsConfiguration != null) - { - this.CustomHttpsConfiguration.Validate(); - } - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointUpdateParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointUpdateParameters.cs deleted file mode 100644 index a2641cd4f972..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointUpdateParameters.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Frontend endpoint used in routing rule - /// - public partial class FrontendEndpointUpdateParameters - { - /// - /// Initializes a new instance of the FrontendEndpointUpdateParameters class. - /// - public FrontendEndpointUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontendEndpointUpdateParameters class. - /// - - /// The host name of the frontendEndpoint. Must be a domain name. - /// - - /// Whether to allow session affinity on this host. Valid options are 'Enabled' - /// or 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// UNUSED. This field will be ignored. The TTL to use in seconds for session - /// affinity, if applicable. - /// - - /// Defines the Web Application Firewall policy for each host (if applicable) - /// - public FrontendEndpointUpdateParameters(string hostName = default(string), string sessionAffinityEnabledState = default(string), int? sessionAffinityTtlSeconds = default(int?), FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink)) - - { - this.HostName = hostName; - this.SessionAffinityEnabledState = sessionAffinityEnabledState; - this.SessionAffinityTtlSeconds = sessionAffinityTtlSeconds; - this.WebApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the host name of the frontendEndpoint. Must be a domain name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "hostName")] - public string HostName {get; set; } - - /// - /// Gets or sets whether to allow session affinity on this host. Valid options - /// are 'Enabled' or 'Disabled' Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sessionAffinityEnabledState")] - public string SessionAffinityEnabledState {get; set; } - - /// - /// Gets or sets uNUSED. This field will be ignored. The TTL to use in seconds - /// for session affinity, if applicable. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sessionAffinityTtlSeconds")] - public int? SessionAffinityTtlSeconds {get; set; } - - /// - /// Gets or sets defines the Web Application Firewall policy for each host (if - /// applicable) - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "webApplicationFirewallPolicyLink")] - public FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs deleted file mode 100644 index ec89a8a52e84..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the Web Application Firewall policy for each host (if applicable) - /// - public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - { - /// - /// Initializes a new instance of the FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink class. - /// - public FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink class. - /// - - /// Resource ID. - /// - public FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(string id = default(string)) - - { - this.Id = id; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/GroupByVariable.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/GroupByVariable.cs deleted file mode 100644 index 240dfd0bbe1e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/GroupByVariable.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Describes the variables available to group the rate limit requests - /// - public partial class GroupByVariable - { - /// - /// Initializes a new instance of the GroupByVariable class. - /// - public GroupByVariable() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the GroupByVariable class. - /// - - /// Describes the supported variable for group by - /// Possible values include: 'SocketAddr', 'GeoLocation', 'None' - public GroupByVariable(string variableName) - - { - this.VariableName = variableName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets describes the supported variable for group by Possible values include: 'SocketAddr', 'GeoLocation', 'None' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "variableName")] - public string VariableName {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.VariableName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "VariableName"); - } - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HeaderAction.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HeaderAction.cs deleted file mode 100644 index 0422f834daa8..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HeaderAction.cs +++ /dev/null @@ -1,88 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// An action that can manipulate an http header. - /// - public partial class HeaderAction - { - /// - /// Initializes a new instance of the HeaderAction class. - /// - public HeaderAction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HeaderAction class. - /// - - /// Which type of manipulation to apply to the header. - /// Possible values include: 'Append', 'Delete', 'Overwrite' - - /// The name of the header this action will apply to. - /// - - /// The value to update the given header name with. This value is not used if - /// the actionType is Delete. - /// - public HeaderAction(string headerActionType, string headerName, string value = default(string)) - - { - this.HeaderActionType = headerActionType; - this.HeaderName = headerName; - this.Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets which type of manipulation to apply to the header. Possible values include: 'Append', 'Delete', 'Overwrite' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "headerActionType")] - public string HeaderActionType {get; set; } - - /// - /// Gets or sets the name of the header this action will apply to. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "headerName")] - public string HeaderName {get; set; } - - /// - /// Gets or sets the value to update the given header name with. This value is - /// not used if the actionType is Delete. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] - public string Value {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.HeaderActionType == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "HeaderActionType"); - } - if (this.HeaderName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "HeaderName"); - } - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HeaderActionType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HeaderActionType.cs deleted file mode 100644 index bf232b85e8d0..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HeaderActionType.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for HeaderActionType. - /// - - - public static class HeaderActionType - { - public const string Append = "Append"; - public const string Delete = "Delete"; - public const string Overwrite = "Overwrite"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeEnabled.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeEnabled.cs deleted file mode 100644 index 805c3164bda5..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeEnabled.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for HealthProbeEnabled. - /// - - - public static class HealthProbeEnabled - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsListResult.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsListResult.cs deleted file mode 100644 index 60129b88a3d1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsListResult.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Result of the request to list HealthProbeSettings. It contains a list of - /// HealthProbeSettings objects and a URL link to get the next set of results. - /// - public partial class HealthProbeSettingsListResult - { - /// - /// Initializes a new instance of the HealthProbeSettingsListResult class. - /// - public HealthProbeSettingsListResult() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HealthProbeSettingsListResult class. - /// - - /// List of HealthProbeSettings within a Front Door. - /// - - /// URL to get the next set of HealthProbeSettings objects if there are any. - /// - public HealthProbeSettingsListResult(System.Collections.Generic.IList value = default(System.Collections.Generic.IList), string nextLink = default(string)) - - { - this.Value = value; - this.NextLink = nextLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets list of HealthProbeSettings within a Front Door. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] - public System.Collections.Generic.IList Value {get; private set; } - - /// - /// Gets or sets uRL to get the next set of HealthProbeSettings objects if - /// there are any. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "nextLink")] - public string NextLink {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsModel.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsModel.cs deleted file mode 100644 index 442cc8fed90e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsModel.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Load balancing settings for a backend pool - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class HealthProbeSettingsModel : SubResource - { - /// - /// Initializes a new instance of the HealthProbeSettingsModel class. - /// - public HealthProbeSettingsModel() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HealthProbeSettingsModel class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// The path to use for the health probe. Default is / - /// - - /// Protocol scheme to use for this probe - /// Possible values include: 'Http', 'Https' - - /// The number of seconds between health probes. - /// - - /// Configures which HTTP method to use to probe the backends defined under - /// backendPools. - /// Possible values include: 'GET', 'HEAD' - - /// Whether to enable health probes to be made against backends defined under - /// backendPools. Health probes can only be disabled if there is a single - /// enabled backend in single enabled backend pool. - /// Possible values include: 'Enabled', 'Disabled' - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public HealthProbeSettingsModel(string id = default(string), string name = default(string), string type = default(string), string path = default(string), string protocol = default(string), int? intervalInSeconds = default(int?), string healthProbeMethod = default(string), string enabledState = default(string), string resourceState = default(string)) - - : base(id) - { - this.Name = name; - this.Type = type; - this.Path = path; - this.Protocol = protocol; - this.IntervalInSeconds = intervalInSeconds; - this.HealthProbeMethod = healthProbeMethod; - this.EnabledState = enabledState; - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets resource type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type {get; private set; } - - /// - /// Gets or sets the path to use for the health probe. Default is / - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.path")] - public string Path {get; set; } - - /// - /// Gets or sets protocol scheme to use for this probe Possible values include: 'Http', 'Https' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.protocol")] - public string Protocol {get; set; } - - /// - /// Gets or sets the number of seconds between health probes. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.intervalInSeconds")] - public int? IntervalInSeconds {get; set; } - - /// - /// Gets or sets configures which HTTP method to use to probe the backends - /// defined under backendPools. Possible values include: 'GET', 'HEAD' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.healthProbeMethod")] - public string HealthProbeMethod {get; set; } - - /// - /// Gets or sets whether to enable health probes to be made against backends - /// defined under backendPools. Health probes can only be disabled if there is - /// a single enabled backend in single enabled backend pool. Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsProperties.cs deleted file mode 100644 index 74fd03ab5921..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsProperties.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The JSON object that contains the properties required to create a health - /// probe settings. - /// - public partial class HealthProbeSettingsProperties : HealthProbeSettingsUpdateParameters - { - /// - /// Initializes a new instance of the HealthProbeSettingsProperties class. - /// - public HealthProbeSettingsProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HealthProbeSettingsProperties class. - /// - - /// The path to use for the health probe. Default is / - /// - - /// Protocol scheme to use for this probe - /// Possible values include: 'Http', 'Https' - - /// The number of seconds between health probes. - /// - - /// Configures which HTTP method to use to probe the backends defined under - /// backendPools. - /// Possible values include: 'GET', 'HEAD' - - /// Whether to enable health probes to be made against backends defined under - /// backendPools. Health probes can only be disabled if there is a single - /// enabled backend in single enabled backend pool. - /// Possible values include: 'Enabled', 'Disabled' - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public HealthProbeSettingsProperties(string path = default(string), string protocol = default(string), int? intervalInSeconds = default(int?), string healthProbeMethod = default(string), string enabledState = default(string), string resourceState = default(string)) - - : base(path, protocol, intervalInSeconds, healthProbeMethod, enabledState) - { - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsUpdateParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsUpdateParameters.cs deleted file mode 100644 index c7f4c706dd36..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsUpdateParameters.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// L7 health probe settings for a backend pool - /// - public partial class HealthProbeSettingsUpdateParameters - { - /// - /// Initializes a new instance of the HealthProbeSettingsUpdateParameters class. - /// - public HealthProbeSettingsUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HealthProbeSettingsUpdateParameters class. - /// - - /// The path to use for the health probe. Default is / - /// - - /// Protocol scheme to use for this probe - /// Possible values include: 'Http', 'Https' - - /// The number of seconds between health probes. - /// - - /// Configures which HTTP method to use to probe the backends defined under - /// backendPools. - /// Possible values include: 'GET', 'HEAD' - - /// Whether to enable health probes to be made against backends defined under - /// backendPools. Health probes can only be disabled if there is a single - /// enabled backend in single enabled backend pool. - /// Possible values include: 'Enabled', 'Disabled' - public HealthProbeSettingsUpdateParameters(string path = default(string), string protocol = default(string), int? intervalInSeconds = default(int?), string healthProbeMethod = default(string), string enabledState = default(string)) - - { - this.Path = path; - this.Protocol = protocol; - this.IntervalInSeconds = intervalInSeconds; - this.HealthProbeMethod = healthProbeMethod; - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the path to use for the health probe. Default is / - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "path")] - public string Path {get; set; } - - /// - /// Gets or sets protocol scheme to use for this probe Possible values include: 'Http', 'Https' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "protocol")] - public string Protocol {get; set; } - - /// - /// Gets or sets the number of seconds between health probes. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "intervalInSeconds")] - public int? IntervalInSeconds {get; set; } - - /// - /// Gets or sets configures which HTTP method to use to probe the backends - /// defined under backendPools. Possible values include: 'GET', 'HEAD' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "healthProbeMethod")] - public string HealthProbeMethod {get; set; } - - /// - /// Gets or sets whether to enable health probes to be made against backends - /// defined under backendPools. Health probes can only be disabled if there is - /// a single enabled backend in single enabled backend pool. Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/KeyVaultCertificateSourceParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/KeyVaultCertificateSourceParameters.cs deleted file mode 100644 index 9ba24978adf3..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/KeyVaultCertificateSourceParameters.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Parameters required for bring-your-own-certification via Key Vault - /// - public partial class KeyVaultCertificateSourceParameters - { - /// - /// Initializes a new instance of the KeyVaultCertificateSourceParameters class. - /// - public KeyVaultCertificateSourceParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the KeyVaultCertificateSourceParameters class. - /// - - /// The Key Vault containing the SSL certificate - /// - - /// The name of the Key Vault secret representing the full certificate PFX - /// - - /// The version of the Key Vault secret representing the full certificate PFX - /// - public KeyVaultCertificateSourceParameters(KeyVaultCertificateSourceParametersVault vault = default(KeyVaultCertificateSourceParametersVault), string secretName = default(string), string secretVersion = default(string)) - - { - this.Vault = vault; - this.SecretName = secretName; - this.SecretVersion = secretVersion; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the Key Vault containing the SSL certificate - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "vault")] - public KeyVaultCertificateSourceParametersVault Vault {get; set; } - - /// - /// Gets or sets the name of the Key Vault secret representing the full - /// certificate PFX - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "secretName")] - public string SecretName {get; set; } - - /// - /// Gets or sets the version of the Key Vault secret representing the full - /// certificate PFX - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "secretVersion")] - public string SecretVersion {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/KeyVaultCertificateSourceParametersVault.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/KeyVaultCertificateSourceParametersVault.cs deleted file mode 100644 index c5955c3de1ba..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/KeyVaultCertificateSourceParametersVault.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The Key Vault containing the SSL certificate - /// - public partial class KeyVaultCertificateSourceParametersVault - { - /// - /// Initializes a new instance of the KeyVaultCertificateSourceParametersVault class. - /// - public KeyVaultCertificateSourceParametersVault() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the KeyVaultCertificateSourceParametersVault class. - /// - - /// Resource ID. - /// - public KeyVaultCertificateSourceParametersVault(string id = default(string)) - - { - this.Id = id; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyMetric.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyMetric.cs deleted file mode 100644 index c0473aa84070..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyMetric.cs +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of a latency metric used in the latency scorecard - /// - public partial class LatencyMetric - { - /// - /// Initializes a new instance of the LatencyMetric class. - /// - public LatencyMetric() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the LatencyMetric class. - /// - - /// The name of the Latency Metric - /// - - /// The end time of the Latency Scorecard in UTC - /// - - /// The metric value of the A endpoint - /// - - /// The metric value of the B endpoint - /// - - /// The difference in value between endpoint A and B - /// - - /// The percent difference between endpoint A and B - /// - - /// The lower end of the 95% confidence interval for endpoint A - /// - - /// The upper end of the 95% confidence interval for endpoint A - /// - - /// The lower end of the 95% confidence interval for endpoint B - /// - - /// The upper end of the 95% confidence interval for endpoint B - /// - public LatencyMetric(string name = default(string), string endDateTimeUtc = default(string), double? aValue = default(double?), double? bValue = default(double?), double? delta = default(double?), double? deltaPercent = default(double?), double? acLower95Ci = default(double?), double? ahUpper95Ci = default(double?), double? bcLower95Ci = default(double?), double? bUpper95Ci = default(double?)) - - { - this.Name = name; - this.EndDateTimeUtc = endDateTimeUtc; - this.AValue = aValue; - this.BValue = bValue; - this.Delta = delta; - this.DeltaPercent = deltaPercent; - this.ACLower95Ci = acLower95Ci; - this.AHUpper95Ci = ahUpper95Ci; - this.BCLower95Ci = bcLower95Ci; - this.BUpper95Ci = bUpper95Ci; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets the name of the Latency Metric - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; private set; } - - /// - /// Gets the end time of the Latency Scorecard in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endDateTimeUTC")] - public string EndDateTimeUtc {get; private set; } - - /// - /// Gets the metric value of the A endpoint - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "aValue")] - public double? AValue {get; private set; } - - /// - /// Gets the metric value of the B endpoint - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "bValue")] - public double? BValue {get; private set; } - - /// - /// Gets the difference in value between endpoint A and B - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "delta")] - public double? Delta {get; private set; } - - /// - /// Gets the percent difference between endpoint A and B - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "deltaPercent")] - public double? DeltaPercent {get; private set; } - - /// - /// Gets the lower end of the 95% confidence interval for endpoint A - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "aCLower95CI")] - public double? ACLower95Ci {get; private set; } - - /// - /// Gets the upper end of the 95% confidence interval for endpoint A - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "aHUpper95CI")] - public double? AHUpper95Ci {get; private set; } - - /// - /// Gets the lower end of the 95% confidence interval for endpoint B - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "bCLower95CI")] - public double? BCLower95Ci {get; private set; } - - /// - /// Gets the upper end of the 95% confidence interval for endpoint B - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "bUpper95CI")] - public double? BUpper95Ci {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecard.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecard.cs deleted file mode 100644 index 1c658e4c5086..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecard.cs +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the LatencyScorecard - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class LatencyScorecard : Resource - { - /// - /// Initializes a new instance of the LatencyScorecard class. - /// - public LatencyScorecard() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the LatencyScorecard class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - - /// The unique identifier of the Latency Scorecard - /// - - /// The name of the Latency Scorecard - /// - - /// The description of the Latency Scorecard - /// - - /// The A endpoint in the scorecard - /// - - /// The B endpoint in the scorecard - /// - - /// The start time of the Latency Scorecard in UTC - /// - - /// The end time of the Latency Scorecard in UTC - /// - - /// The country associated with the Latency Scorecard. Values are country ISO - /// codes as specified here- https://www.iso.org/iso-3166-country-codes.html - /// - - /// The latency metrics of the Latency Scorecard - /// - public LatencyScorecard(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string propertiesId = default(string), string propertiesName = default(string), string description = default(string), string endpointA = default(string), string endpointB = default(string), System.DateTime? startDateTimeUtc = default(System.DateTime?), System.DateTime? endDateTimeUtc = default(System.DateTime?), string country = default(string), System.Collections.Generic.IList latencyMetrics = default(System.Collections.Generic.IList)) - - : base(id, name, type, location, tags) - { - this.PropertiesId = propertiesId; - this.PropertiesName = propertiesName; - this.Description = description; - this.EndpointA = endpointA; - this.EndpointB = endpointB; - this.StartDateTimeUtc = startDateTimeUtc; - this.EndDateTimeUtc = endDateTimeUtc; - this.Country = country; - this.LatencyMetrics = latencyMetrics; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets the unique identifier of the Latency Scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.id")] - public string PropertiesId {get; private set; } - - /// - /// Gets the name of the Latency Scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.name")] - public string PropertiesName {get; private set; } - - /// - /// Gets the description of the Latency Scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.description")] - public string Description {get; private set; } - - /// - /// Gets the A endpoint in the scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endpointA")] - public string EndpointA {get; private set; } - - /// - /// Gets the B endpoint in the scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endpointB")] - public string EndpointB {get; private set; } - - /// - /// Gets the start time of the Latency Scorecard in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.startDateTimeUTC")] - public System.DateTime? StartDateTimeUtc {get; private set; } - - /// - /// Gets the end time of the Latency Scorecard in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endDateTimeUTC")] - public System.DateTime? EndDateTimeUtc {get; private set; } - - /// - /// Gets the country associated with the Latency Scorecard. Values are country - /// ISO codes as specified here- - /// https://www.iso.org/iso-3166-country-codes.html - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.country")] - public string Country {get; private set; } - - /// - /// Gets or sets the latency metrics of the Latency Scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.latencyMetrics")] - public System.Collections.Generic.IList LatencyMetrics {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecardAggregationInterval.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecardAggregationInterval.cs deleted file mode 100644 index 8e2e5d77dd89..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecardAggregationInterval.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for LatencyScorecardAggregationInterval. - /// - - - public static class LatencyScorecardAggregationInterval - { - public const string Daily = "Daily"; - public const string Weekly = "Weekly"; - public const string Monthly = "Monthly"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecardProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecardProperties.cs deleted file mode 100644 index 6eb979d1707d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LatencyScorecardProperties.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines a the properties of a Latency Scorecard - /// - public partial class LatencyScorecardProperties - { - /// - /// Initializes a new instance of the LatencyScorecardProperties class. - /// - public LatencyScorecardProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the LatencyScorecardProperties class. - /// - - /// The unique identifier of the Latency Scorecard - /// - - /// The name of the Latency Scorecard - /// - - /// The description of the Latency Scorecard - /// - - /// The A endpoint in the scorecard - /// - - /// The B endpoint in the scorecard - /// - - /// The start time of the Latency Scorecard in UTC - /// - - /// The end time of the Latency Scorecard in UTC - /// - - /// The country associated with the Latency Scorecard. Values are country ISO - /// codes as specified here- https://www.iso.org/iso-3166-country-codes.html - /// - - /// The latency metrics of the Latency Scorecard - /// - public LatencyScorecardProperties(string id = default(string), string name = default(string), string description = default(string), string endpointA = default(string), string endpointB = default(string), System.DateTime? startDateTimeUtc = default(System.DateTime?), System.DateTime? endDateTimeUtc = default(System.DateTime?), string country = default(string), System.Collections.Generic.IList latencyMetrics = default(System.Collections.Generic.IList)) - - { - this.Id = id; - this.Name = name; - this.Description = description; - this.EndpointA = endpointA; - this.EndpointB = endpointB; - this.StartDateTimeUtc = startDateTimeUtc; - this.EndDateTimeUtc = endDateTimeUtc; - this.Country = country; - this.LatencyMetrics = latencyMetrics; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets the unique identifier of the Latency Scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; private set; } - - /// - /// Gets the name of the Latency Scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; private set; } - - /// - /// Gets the description of the Latency Scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "description")] - public string Description {get; private set; } - - /// - /// Gets the A endpoint in the scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endpointA")] - public string EndpointA {get; private set; } - - /// - /// Gets the B endpoint in the scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endpointB")] - public string EndpointB {get; private set; } - - /// - /// Gets the start time of the Latency Scorecard in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "startDateTimeUTC")] - public System.DateTime? StartDateTimeUtc {get; private set; } - - /// - /// Gets the end time of the Latency Scorecard in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endDateTimeUTC")] - public System.DateTime? EndDateTimeUtc {get; private set; } - - /// - /// Gets the country associated with the Latency Scorecard. Values are country - /// ISO codes as specified here- - /// https://www.iso.org/iso-3166-country-codes.html - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "country")] - public string Country {get; private set; } - - /// - /// Gets or sets the latency metrics of the Latency Scorecard - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "latencyMetrics")] - public System.Collections.Generic.IList LatencyMetrics {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsListResult.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsListResult.cs deleted file mode 100644 index 73d303e13741..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsListResult.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Result of the request to list load balancing settings. It contains a list - /// of load balancing settings objects and a URL link to get the next set of - /// results. - /// - public partial class LoadBalancingSettingsListResult - { - /// - /// Initializes a new instance of the LoadBalancingSettingsListResult class. - /// - public LoadBalancingSettingsListResult() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the LoadBalancingSettingsListResult class. - /// - - /// List of Backend Pools within a Front Door. - /// - - /// URL to get the next set of LoadBalancingSettings objects if there are any. - /// - public LoadBalancingSettingsListResult(System.Collections.Generic.IList value = default(System.Collections.Generic.IList), string nextLink = default(string)) - - { - this.Value = value; - this.NextLink = nextLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets list of Backend Pools within a Front Door. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] - public System.Collections.Generic.IList Value {get; private set; } - - /// - /// Gets or sets uRL to get the next set of LoadBalancingSettings objects if - /// there are any. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "nextLink")] - public string NextLink {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsModel.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsModel.cs deleted file mode 100644 index 2cf03f40fe5a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsModel.cs +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Load balancing settings for a backend pool - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class LoadBalancingSettingsModel : SubResource - { - /// - /// Initializes a new instance of the LoadBalancingSettingsModel class. - /// - public LoadBalancingSettingsModel() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the LoadBalancingSettingsModel class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// The number of samples to consider for load balancing decisions - /// - - /// The number of samples within the sample period that must succeed - /// - - /// The additional latency in milliseconds for probes to fall into the lowest - /// latency bucket - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public LoadBalancingSettingsModel(string id = default(string), string name = default(string), string type = default(string), int? sampleSize = default(int?), int? successfulSamplesRequired = default(int?), int? additionalLatencyMilliseconds = default(int?), string resourceState = default(string)) - - : base(id) - { - this.Name = name; - this.Type = type; - this.SampleSize = sampleSize; - this.SuccessfulSamplesRequired = successfulSamplesRequired; - this.AdditionalLatencyMilliseconds = additionalLatencyMilliseconds; - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets resource type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type {get; private set; } - - /// - /// Gets or sets the number of samples to consider for load balancing decisions - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.sampleSize")] - public int? SampleSize {get; set; } - - /// - /// Gets or sets the number of samples within the sample period that must - /// succeed - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.successfulSamplesRequired")] - public int? SuccessfulSamplesRequired {get; set; } - - /// - /// Gets or sets the additional latency in milliseconds for probes to fall into - /// the lowest latency bucket - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.additionalLatencyMilliseconds")] - public int? AdditionalLatencyMilliseconds {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsProperties.cs deleted file mode 100644 index 314329d75b1a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsProperties.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The JSON object that contains the properties required to create load - /// balancing settings - /// - public partial class LoadBalancingSettingsProperties : LoadBalancingSettingsUpdateParameters - { - /// - /// Initializes a new instance of the LoadBalancingSettingsProperties class. - /// - public LoadBalancingSettingsProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the LoadBalancingSettingsProperties class. - /// - - /// The number of samples to consider for load balancing decisions - /// - - /// The number of samples within the sample period that must succeed - /// - - /// The additional latency in milliseconds for probes to fall into the lowest - /// latency bucket - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public LoadBalancingSettingsProperties(int? sampleSize = default(int?), int? successfulSamplesRequired = default(int?), int? additionalLatencyMilliseconds = default(int?), string resourceState = default(string)) - - : base(sampleSize, successfulSamplesRequired, additionalLatencyMilliseconds) - { - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsUpdateParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsUpdateParameters.cs deleted file mode 100644 index 12c3782b3f02..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/LoadBalancingSettingsUpdateParameters.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Round-Robin load balancing settings for a backend pool - /// - public partial class LoadBalancingSettingsUpdateParameters - { - /// - /// Initializes a new instance of the LoadBalancingSettingsUpdateParameters class. - /// - public LoadBalancingSettingsUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the LoadBalancingSettingsUpdateParameters class. - /// - - /// The number of samples to consider for load balancing decisions - /// - - /// The number of samples within the sample period that must succeed - /// - - /// The additional latency in milliseconds for probes to fall into the lowest - /// latency bucket - /// - public LoadBalancingSettingsUpdateParameters(int? sampleSize = default(int?), int? successfulSamplesRequired = default(int?), int? additionalLatencyMilliseconds = default(int?)) - - { - this.SampleSize = sampleSize; - this.SuccessfulSamplesRequired = successfulSamplesRequired; - this.AdditionalLatencyMilliseconds = additionalLatencyMilliseconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the number of samples to consider for load balancing decisions - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sampleSize")] - public int? SampleSize {get; set; } - - /// - /// Gets or sets the number of samples within the sample period that must - /// succeed - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "successfulSamplesRequired")] - public int? SuccessfulSamplesRequired {get; set; } - - /// - /// Gets or sets the additional latency in milliseconds for probes to fall into - /// the lowest latency bucket - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "additionalLatencyMilliseconds")] - public int? AdditionalLatencyMilliseconds {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleDefinition.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleDefinition.cs deleted file mode 100644 index 3482e01fa134..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleDefinition.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Describes a managed rule definition. - /// - public partial class ManagedRuleDefinition - { - /// - /// Initializes a new instance of the ManagedRuleDefinition class. - /// - public ManagedRuleDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleDefinition class. - /// - - /// Identifier for the managed rule. - /// - - /// Describes the default state for the managed rule. - /// Possible values include: 'Disabled', 'Enabled' - - /// Describes the default action to be applied when the managed rule matches. - /// Possible values include: 'Allow', 'Block', 'Log', 'Redirect', - /// 'AnomalyScoring', 'JSChallenge', 'CAPTCHA' - - /// Describes the functionality of the managed rule. - /// - public ManagedRuleDefinition(string ruleId = default(string), string defaultState = default(string), string defaultAction = default(string), string description = default(string)) - - { - this.RuleId = ruleId; - this.DefaultState = defaultState; - this.DefaultAction = defaultAction; - this.Description = description; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets identifier for the managed rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleId")] - public string RuleId {get; private set; } - - /// - /// Gets describes the default state for the managed rule. Possible values include: 'Disabled', 'Enabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "defaultState")] - public string DefaultState {get; private set; } - - /// - /// Gets describes the default action to be applied when the managed rule - /// matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect', 'AnomalyScoring', 'JSChallenge', 'CAPTCHA' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "defaultAction")] - public string DefaultAction {get; private set; } - - /// - /// Gets describes the functionality of the managed rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "description")] - public string Description {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleEnabledState.cs deleted file mode 100644 index 47439cc9fed3..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ManagedRuleEnabledState. - /// - - - public static class ManagedRuleEnabledState - { - public const string Disabled = "Disabled"; - public const string Enabled = "Enabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusion.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusion.cs deleted file mode 100644 index a014176a2be3..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusion.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Exclude variables from managed rule evaluation. - /// - public partial class ManagedRuleExclusion - { - /// - /// Initializes a new instance of the ManagedRuleExclusion class. - /// - public ManagedRuleExclusion() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleExclusion class. - /// - - /// The variable type to be excluded. - /// Possible values include: 'RequestHeaderNames', 'RequestCookieNames', - /// 'QueryStringArgNames', 'RequestBodyPostArgNames', 'RequestBodyJsonArgNames' - - /// Comparison operator to apply to the selector when specifying which elements - /// in the collection this exclusion applies to. - /// Possible values include: 'Equals', 'Contains', 'StartsWith', 'EndsWith', - /// 'EqualsAny' - - /// Selector value for which elements in the collection this exclusion applies - /// to. - /// - public ManagedRuleExclusion(string matchVariable, string selectorMatchOperator, string selector) - - { - this.MatchVariable = matchVariable; - this.SelectorMatchOperator = selectorMatchOperator; - this.Selector = selector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the variable type to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'QueryStringArgNames', 'RequestBodyPostArgNames', 'RequestBodyJsonArgNames' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "matchVariable")] - public string MatchVariable {get; set; } - - /// - /// Gets or sets comparison operator to apply to the selector when specifying - /// which elements in the collection this exclusion applies to. Possible values include: 'Equals', 'Contains', 'StartsWith', 'EndsWith', 'EqualsAny' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "selectorMatchOperator")] - public string SelectorMatchOperator {get; set; } - - /// - /// Gets or sets selector value for which elements in the collection this - /// exclusion applies to. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "selector")] - public string Selector {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.MatchVariable == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "MatchVariable"); - } - if (this.SelectorMatchOperator == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectorMatchOperator"); - } - if (this.Selector == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Selector"); - } - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusionMatchVariable.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusionMatchVariable.cs deleted file mode 100644 index ab87db5e1f31..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusionMatchVariable.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ManagedRuleExclusionMatchVariable. - /// - - - public static class ManagedRuleExclusionMatchVariable - { - public const string RequestHeaderNames = "RequestHeaderNames"; - public const string RequestCookieNames = "RequestCookieNames"; - public const string QueryStringArgNames = "QueryStringArgNames"; - public const string RequestBodyPostArgNames = "RequestBodyPostArgNames"; - public const string RequestBodyJsonArgNames = "RequestBodyJsonArgNames"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusionSelectorMatchOperator.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusionSelectorMatchOperator.cs deleted file mode 100644 index a382f940884e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleExclusionSelectorMatchOperator.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ManagedRuleExclusionSelectorMatchOperator. - /// - - - public static class ManagedRuleExclusionSelectorMatchOperator - { - public const string Equals = "Equals"; - public const string Contains = "Contains"; - public const string StartsWith = "StartsWith"; - public const string EndsWith = "EndsWith"; - public const string EqualsAny = "EqualsAny"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleGroupDefinition.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleGroupDefinition.cs deleted file mode 100644 index 53fe717fec00..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleGroupDefinition.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Describes a managed rule group. - /// - public partial class ManagedRuleGroupDefinition - { - /// - /// Initializes a new instance of the ManagedRuleGroupDefinition class. - /// - public ManagedRuleGroupDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleGroupDefinition class. - /// - - /// Name of the managed rule group. - /// - - /// Description of the managed rule group. - /// - - /// List of rules within the managed rule group. - /// - public ManagedRuleGroupDefinition(string ruleGroupName = default(string), string description = default(string), System.Collections.Generic.IList rules = default(System.Collections.Generic.IList)) - - { - this.RuleGroupName = ruleGroupName; - this.Description = description; - this.Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets name of the managed rule group. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleGroupName")] - public string RuleGroupName {get; private set; } - - /// - /// Gets description of the managed rule group. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "description")] - public string Description {get; private set; } - - /// - /// Gets list of rules within the managed rule group. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rules")] - public System.Collections.Generic.IList Rules {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleGroupOverride.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleGroupOverride.cs deleted file mode 100644 index 961564181bf6..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleGroupOverride.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines a managed rule group override setting. - /// - public partial class ManagedRuleGroupOverride - { - /// - /// Initializes a new instance of the ManagedRuleGroupOverride class. - /// - public ManagedRuleGroupOverride() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleGroupOverride class. - /// - - /// Describes the managed rule group to override. - /// - - /// Describes the exclusions that are applied to all rules in the group. - /// - - /// List of rules that will be disabled. If none specified, all rules in the - /// group will be disabled. - /// - public ManagedRuleGroupOverride(string ruleGroupName, System.Collections.Generic.IList exclusions = default(System.Collections.Generic.IList), System.Collections.Generic.IList rules = default(System.Collections.Generic.IList)) - - { - this.RuleGroupName = ruleGroupName; - this.Exclusions = exclusions; - this.Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets describes the managed rule group to override. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleGroupName")] - public string RuleGroupName {get; set; } - - /// - /// Gets or sets describes the exclusions that are applied to all rules in the - /// group. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "exclusions")] - public System.Collections.Generic.IList Exclusions {get; set; } - - /// - /// Gets or sets list of rules that will be disabled. If none specified, all - /// rules in the group will be disabled. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rules")] - public System.Collections.Generic.IList Rules {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.RuleGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RuleGroupName"); - } - - if (this.Exclusions != null) - { - foreach (var element in this.Exclusions) - { - if (element != null) - { - element.Validate(); - } - } - } - if (this.Rules != null) - { - foreach (var element in this.Rules) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleOverride.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleOverride.cs deleted file mode 100644 index 4a66e055c320..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleOverride.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines a managed rule group override setting. - /// - public partial class ManagedRuleOverride - { - /// - /// Initializes a new instance of the ManagedRuleOverride class. - /// - public ManagedRuleOverride() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleOverride class. - /// - - /// Identifier for the managed rule. - /// - - /// Describes if the managed rule is in enabled or disabled state. Defaults to - /// Disabled if not specified. - /// Possible values include: 'Disabled', 'Enabled' - - /// Describes the override action to be applied when rule matches. - /// Possible values include: 'Allow', 'Block', 'Log', 'Redirect', - /// 'AnomalyScoring', 'JSChallenge', 'CAPTCHA' - - /// Describes the exclusions that are applied to this specific rule. - /// - public ManagedRuleOverride(string ruleId, string enabledState = default(string), string action = default(string), System.Collections.Generic.IList exclusions = default(System.Collections.Generic.IList)) - - { - this.RuleId = ruleId; - this.EnabledState = enabledState; - this.Action = action; - this.Exclusions = exclusions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets identifier for the managed rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleId")] - public string RuleId {get; set; } - - /// - /// Gets or sets describes if the managed rule is in enabled or disabled state. - /// Defaults to Disabled if not specified. Possible values include: 'Disabled', 'Enabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets or sets describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect', 'AnomalyScoring', 'JSChallenge', 'CAPTCHA' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "action")] - public string Action {get; set; } - - /// - /// Gets or sets describes the exclusions that are applied to this specific - /// rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "exclusions")] - public System.Collections.Generic.IList Exclusions {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.RuleId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RuleId"); - } - - - - if (this.Exclusions != null) - { - foreach (var element in this.Exclusions) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSet.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSet.cs deleted file mode 100644 index c964bc5743be..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSet.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines a managed rule set. - /// - public partial class ManagedRuleSet - { - /// - /// Initializes a new instance of the ManagedRuleSet class. - /// - public ManagedRuleSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleSet class. - /// - - /// Defines the rule set type to use. - /// - - /// Defines the version of the rule set to use. - /// - - /// Defines the rule set action. - /// Possible values include: 'Block', 'Log', 'Redirect' - - /// Describes the exclusions that are applied to all rules in the set. - /// - - /// Defines the rule group overrides to apply to the rule set. - /// - public ManagedRuleSet(string ruleSetType, string ruleSetVersion, string ruleSetAction = default(string), System.Collections.Generic.IList exclusions = default(System.Collections.Generic.IList), System.Collections.Generic.IList ruleGroupOverrides = default(System.Collections.Generic.IList)) - - { - this.RuleSetType = ruleSetType; - this.RuleSetVersion = ruleSetVersion; - this.RuleSetAction = ruleSetAction; - this.Exclusions = exclusions; - this.RuleGroupOverrides = ruleGroupOverrides; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets defines the rule set type to use. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleSetType")] - public string RuleSetType {get; set; } - - /// - /// Gets or sets defines the version of the rule set to use. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleSetVersion")] - public string RuleSetVersion {get; set; } - - /// - /// Gets or sets defines the rule set action. Possible values include: 'Block', 'Log', 'Redirect' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleSetAction")] - public string RuleSetAction {get; set; } - - /// - /// Gets or sets describes the exclusions that are applied to all rules in the - /// set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "exclusions")] - public System.Collections.Generic.IList Exclusions {get; set; } - - /// - /// Gets or sets defines the rule group overrides to apply to the rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleGroupOverrides")] - public System.Collections.Generic.IList RuleGroupOverrides {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.RuleSetType == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RuleSetType"); - } - if (this.RuleSetVersion == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RuleSetVersion"); - } - - - - if (this.Exclusions != null) - { - foreach (var element in this.Exclusions) - { - if (element != null) - { - element.Validate(); - } - } - } - if (this.RuleGroupOverrides != null) - { - foreach (var element in this.RuleGroupOverrides) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetActionType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetActionType.cs deleted file mode 100644 index 43ba37a96d01..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetActionType.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ManagedRuleSetActionType. - /// - - - public static class ManagedRuleSetActionType - { - public const string Block = "Block"; - public const string Log = "Log"; - public const string Redirect = "Redirect"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetDefinition.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetDefinition.cs deleted file mode 100644 index 6bfbb7a7c162..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetDefinition.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Describes the a managed rule set definition. - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class ManagedRuleSetDefinition : Resource - { - /// - /// Initializes a new instance of the ManagedRuleSetDefinition class. - /// - public ManagedRuleSetDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleSetDefinition class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - - /// Provisioning state of the managed rule set. - /// - - /// Id of the managed rule set. - /// - - /// Type of the managed rule set. - /// - - /// Version of the managed rule set type. - /// - - /// Rule groups of the managed rule set. - /// - public ManagedRuleSetDefinition(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string provisioningState = default(string), string ruleSetId = default(string), string ruleSetType = default(string), string ruleSetVersion = default(string), System.Collections.Generic.IList ruleGroups = default(System.Collections.Generic.IList)) - - : base(id, name, type, location, tags) - { - this.ProvisioningState = provisioningState; - this.RuleSetId = ruleSetId; - this.RuleSetType = ruleSetType; - this.RuleSetVersion = ruleSetVersion; - this.RuleGroups = ruleGroups; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets provisioning state of the managed rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState {get; private set; } - - /// - /// Gets id of the managed rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.ruleSetId")] - public string RuleSetId {get; private set; } - - /// - /// Gets type of the managed rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.ruleSetType")] - public string RuleSetType {get; private set; } - - /// - /// Gets version of the managed rule set type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.ruleSetVersion")] - public string RuleSetVersion {get; private set; } - - /// - /// Gets rule groups of the managed rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.ruleGroups")] - public System.Collections.Generic.IList RuleGroups {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetDefinitionProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetDefinitionProperties.cs deleted file mode 100644 index 6aee0024f643..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetDefinitionProperties.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Properties for a managed rule set definition. - /// - public partial class ManagedRuleSetDefinitionProperties - { - /// - /// Initializes a new instance of the ManagedRuleSetDefinitionProperties class. - /// - public ManagedRuleSetDefinitionProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleSetDefinitionProperties class. - /// - - /// Provisioning state of the managed rule set. - /// - - /// Id of the managed rule set. - /// - - /// Type of the managed rule set. - /// - - /// Version of the managed rule set type. - /// - - /// Rule groups of the managed rule set. - /// - public ManagedRuleSetDefinitionProperties(string provisioningState = default(string), string ruleSetId = default(string), string ruleSetType = default(string), string ruleSetVersion = default(string), System.Collections.Generic.IList ruleGroups = default(System.Collections.Generic.IList)) - - { - this.ProvisioningState = provisioningState; - this.RuleSetId = ruleSetId; - this.RuleSetType = ruleSetType; - this.RuleSetVersion = ruleSetVersion; - this.RuleGroups = ruleGroups; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets provisioning state of the managed rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState {get; private set; } - - /// - /// Gets id of the managed rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleSetId")] - public string RuleSetId {get; private set; } - - /// - /// Gets type of the managed rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleSetType")] - public string RuleSetType {get; private set; } - - /// - /// Gets version of the managed rule set type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleSetVersion")] - public string RuleSetVersion {get; private set; } - - /// - /// Gets rule groups of the managed rule set. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ruleGroups")] - public System.Collections.Generic.IList RuleGroups {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetList.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetList.cs deleted file mode 100644 index 0020388bfd6d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ManagedRuleSetList.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the list of managed rule sets for the policy. - /// - public partial class ManagedRuleSetList - { - /// - /// Initializes a new instance of the ManagedRuleSetList class. - /// - public ManagedRuleSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ManagedRuleSetList class. - /// - - /// List of rule sets. - /// - public ManagedRuleSetList(System.Collections.Generic.IList managedRuleSets = default(System.Collections.Generic.IList)) - - { - this.ManagedRuleSets = managedRuleSets; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets list of rule sets. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "managedRuleSets")] - public System.Collections.Generic.IList ManagedRuleSets {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchCondition.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchCondition.cs deleted file mode 100644 index b2b6e29cce52..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchCondition.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Define a match condition. - /// - public partial class MatchCondition - { - /// - /// Initializes a new instance of the MatchCondition class. - /// - public MatchCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the MatchCondition class. - /// - - /// Request variable to compare with. - /// Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', - /// 'PostArgs', 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies', - /// 'SocketAddr' - - /// Match against a specific key from the QueryString, PostArgs, RequestHeader - /// or Cookies variables. Default is null. - /// - - /// Comparison type to use for matching with the variable value. - /// Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', - /// 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', - /// 'BeginsWith', 'EndsWith', 'RegEx' - - /// Describes if the result of this condition should be negated. - /// - - /// List of possible match values. - /// - - /// List of transforms. - /// - public MatchCondition(string matchVariable, string operatorProperty, System.Collections.Generic.IList matchValue, string selector = default(string), bool? negateCondition = default(bool?), System.Collections.Generic.IList transforms = default(System.Collections.Generic.IList)) - - { - this.MatchVariable = matchVariable; - this.Selector = selector; - this.OperatorProperty = operatorProperty; - this.NegateCondition = negateCondition; - this.MatchValue = matchValue; - this.Transforms = transforms; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets request variable to compare with. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies', 'SocketAddr' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "matchVariable")] - public string MatchVariable {get; set; } - - /// - /// Gets or sets match against a specific key from the QueryString, PostArgs, - /// RequestHeader or Cookies variables. Default is null. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "selector")] - public string Selector {get; set; } - - /// - /// Gets or sets comparison type to use for matching with the variable value. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "operator")] - public string OperatorProperty {get; set; } - - /// - /// Gets or sets describes if the result of this condition should be negated. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "negateCondition")] - public bool? NegateCondition {get; set; } - - /// - /// Gets or sets list of possible match values. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "matchValue")] - public System.Collections.Generic.IList MatchValue {get; set; } - - /// - /// Gets or sets list of transforms. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "transforms")] - public System.Collections.Generic.IList Transforms {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.MatchVariable == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "MatchVariable"); - } - if (this.OperatorProperty == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "OperatorProperty"); - } - if (this.MatchValue == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "MatchValue"); - } - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchProcessingBehavior.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchProcessingBehavior.cs deleted file mode 100644 index 43fb9d961743..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchProcessingBehavior.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for MatchProcessingBehavior. - /// - - - public static class MatchProcessingBehavior - { - public const string Continue = "Continue"; - public const string Stop = "Stop"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchVariable.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchVariable.cs deleted file mode 100644 index 8025677afebb..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MatchVariable.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for MatchVariable. - /// - - - public static class MatchVariable - { - public const string RemoteAddr = "RemoteAddr"; - public const string RequestMethod = "RequestMethod"; - public const string QueryString = "QueryString"; - public const string PostArgs = "PostArgs"; - public const string RequestUri = "RequestUri"; - public const string RequestHeader = "RequestHeader"; - public const string RequestBody = "RequestBody"; - public const string Cookies = "Cookies"; - public const string SocketAddr = "SocketAddr"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MinimumTLSVersion.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MinimumTLSVersion.cs deleted file mode 100644 index fc9aaf4ca3fd..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/MinimumTLSVersion.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for MinimumTLSVersion. - /// - - - public static class MinimumTLSVersion - { - public const string One0 = "1.0"; - public const string One2 = "1.2"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/NetworkExperimentResourceState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/NetworkExperimentResourceState.cs deleted file mode 100644 index 0492ae62a9fa..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/NetworkExperimentResourceState.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for NetworkExperimentResourceState. - /// - - - public static class NetworkExperimentResourceState - { - public const string Creating = "Creating"; - public const string Enabling = "Enabling"; - public const string Enabled = "Enabled"; - public const string Disabling = "Disabling"; - public const string Disabled = "Disabled"; - public const string Deleting = "Deleting"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/NetworkOperationStatus.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/NetworkOperationStatus.cs deleted file mode 100644 index e5105927b9b4..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/NetworkOperationStatus.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for NetworkOperationStatus. - /// - - - public static class NetworkOperationStatus - { - public const string InProgress = "InProgress"; - public const string Succeeded = "Succeeded"; - public const string Failed = "Failed"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Operator.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Operator.cs deleted file mode 100644 index e32d56f9c5a3..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Operator.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for Operator. - /// - - - public static class Operator - { - public const string Any = "Any"; - public const string IPMatch = "IPMatch"; - public const string GeoMatch = "GeoMatch"; - public const string Equal = "Equal"; - public const string Contains = "Contains"; - public const string LessThan = "LessThan"; - public const string GreaterThan = "GreaterThan"; - public const string LessThanOrEqual = "LessThanOrEqual"; - public const string GreaterThanOrEqual = "GreaterThanOrEqual"; - public const string BeginsWith = "BeginsWith"; - public const string EndsWith = "EndsWith"; - public const string RegEx = "RegEx"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Page.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Page.cs deleted file mode 100644 index 57dff5bb1723..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Page.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines a page in Azure responses. - /// - /// Type of the page content items - [Newtonsoft.Json.JsonObject] - public class Page : Microsoft.Rest.Azure.IPage - { - /// - /// Gets the link to the next page. - /// - [Newtonsoft.Json.JsonProperty("nextLink")] - public System.String NextPageLink { get; private set; } - - [Newtonsoft.Json.JsonProperty("value")] - private System.Collections.Generic.IList Items{ get; set; } - - /// - /// Returns an enumerator that iterates through the collection. - /// - /// A an enumerator that can be used to iterate through the collection. - public System.Collections.Generic.IEnumerator GetEnumerator() - { - return (Items == null) ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); - } - - /// - /// Returns an enumerator that iterates through the collection. - /// - /// A an enumerator that can be used to iterate through the collection. - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyEnabledState.cs deleted file mode 100644 index bdc5f49dec3a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for PolicyEnabledState. - /// - - - public static class PolicyEnabledState - { - public const string Disabled = "Disabled"; - public const string Enabled = "Enabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyMode.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyMode.cs deleted file mode 100644 index b243c2ac3dc9..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyMode.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for PolicyMode. - /// - - - public static class PolicyMode - { - public const string Prevention = "Prevention"; - public const string Detection = "Detection"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyRequestBodyCheck.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyRequestBodyCheck.cs deleted file mode 100644 index 3fa805efe50e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyRequestBodyCheck.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for PolicyRequestBodyCheck. - /// - - - public static class PolicyRequestBodyCheck - { - public const string Disabled = "Disabled"; - public const string Enabled = "Enabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyResourceState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyResourceState.cs deleted file mode 100644 index 4dcbab98d8f1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicyResourceState.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for PolicyResourceState. - /// - - - public static class PolicyResourceState - { - public const string Creating = "Creating"; - public const string Enabling = "Enabling"; - public const string Enabled = "Enabled"; - public const string Disabling = "Disabling"; - public const string Disabled = "Disabled"; - public const string Deleting = "Deleting"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicySettings.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicySettings.cs deleted file mode 100644 index ffb324b05df6..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicySettings.cs +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines top-level WebApplicationFirewallPolicy configuration settings. - /// - public partial class PolicySettings - { - /// - /// Initializes a new instance of the PolicySettings class. - /// - public PolicySettings() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PolicySettings class. - /// - - /// Describes if the policy is in enabled or disabled state. Defaults to - /// Enabled if not specified. - /// Possible values include: 'Disabled', 'Enabled' - - /// Describes if it is in detection mode or prevention mode at policy level. - /// Possible values include: 'Prevention', 'Detection' - - /// If action type is redirect, this field represents redirect URL for the - /// client. - /// - - /// 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. - /// Possible values include: 'Disabled', 'Enabled' - - /// 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. - /// - - /// Defines rules that scrub sensitive fields in the Web Application Firewall - /// logs. - /// - public PolicySettings(string enabledState = default(string), string mode = default(string), string redirectUrl = default(string), int? customBlockResponseStatusCode = default(int?), string customBlockResponseBody = default(string), string requestBodyCheck = default(string), int? javascriptChallengeExpirationInMinutes = default(int?), int? captchaExpirationInMinutes = default(int?), PolicySettingsLogScrubbing logScrubbing = default(PolicySettingsLogScrubbing)) - - { - this.EnabledState = enabledState; - this.Mode = mode; - this.RedirectUrl = redirectUrl; - this.CustomBlockResponseStatusCode = customBlockResponseStatusCode; - this.CustomBlockResponseBody = customBlockResponseBody; - this.RequestBodyCheck = requestBodyCheck; - this.JavascriptChallengeExpirationInMinutes = javascriptChallengeExpirationInMinutes; - this.CaptchaExpirationInMinutes = captchaExpirationInMinutes; - this.LogScrubbing = logScrubbing; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets describes if the policy is in enabled or disabled state. - /// Defaults to Enabled if not specified. Possible values include: 'Disabled', 'Enabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets or sets describes if it is in detection mode or prevention mode at - /// policy level. Possible values include: 'Prevention', 'Detection' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "mode")] - public string Mode {get; set; } - - /// - /// Gets or sets if action type is redirect, this field represents redirect URL - /// for the client. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "redirectUrl")] - public string RedirectUrl {get; set; } - - /// - /// Gets or sets if the action type is block, customer can override the - /// response status code. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customBlockResponseStatusCode")] - public int? CustomBlockResponseStatusCode {get; set; } - - /// - /// Gets or sets if the action type is block, customer can override the - /// response body. The body must be specified in base64 encoding. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customBlockResponseBody")] - public string CustomBlockResponseBody {get; set; } - - /// - /// Gets or sets describes if policy managed rules will inspect the request - /// body content. Possible values include: 'Disabled', 'Enabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "requestBodyCheck")] - public string RequestBodyCheck {get; set; } - - /// - /// Gets or sets 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. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "javascriptChallengeExpirationInMinutes")] - public int? JavascriptChallengeExpirationInMinutes {get; set; } - - /// - /// Gets or sets 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. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "captchaExpirationInMinutes")] - public int? CaptchaExpirationInMinutes {get; set; } - - /// - /// Gets or sets defines rules that scrub sensitive fields in the Web - /// Application Firewall logs. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "logScrubbing")] - public PolicySettingsLogScrubbing LogScrubbing {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - - - - if (this.CustomBlockResponseBody != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(this.CustomBlockResponseBody, "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "CustomBlockResponseBody", "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"); - } - } - - if (this.JavascriptChallengeExpirationInMinutes != null) - { - if (this.JavascriptChallengeExpirationInMinutes > 1440) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "JavascriptChallengeExpirationInMinutes", 1440); - } - if (this.JavascriptChallengeExpirationInMinutes < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "JavascriptChallengeExpirationInMinutes", 5); - } - } - if (this.CaptchaExpirationInMinutes != null) - { - if (this.CaptchaExpirationInMinutes > 1440) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "CaptchaExpirationInMinutes", 1440); - } - if (this.CaptchaExpirationInMinutes < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "CaptchaExpirationInMinutes", 5); - } - } - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicySettingsLogScrubbing.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicySettingsLogScrubbing.cs deleted file mode 100644 index 6775488bf779..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PolicySettingsLogScrubbing.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines rules that scrub sensitive fields in the Web Application Firewall - /// logs. - /// - public partial class PolicySettingsLogScrubbing - { - /// - /// Initializes a new instance of the PolicySettingsLogScrubbing class. - /// - public PolicySettingsLogScrubbing() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PolicySettingsLogScrubbing class. - /// - - /// State of the log scrubbing config. Default value is Enabled. - /// Possible values include: 'Enabled', 'Disabled' - - /// List of log scrubbing rules applied to the Web Application Firewall logs. - /// - public PolicySettingsLogScrubbing(string state = default(string), System.Collections.Generic.IList scrubbingRules = default(System.Collections.Generic.IList)) - - { - this.State = state; - this.ScrubbingRules = scrubbingRules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets state of the log scrubbing config. Default value is Enabled. Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "state")] - public string State {get; set; } - - /// - /// Gets or sets list of log scrubbing rules applied to the Web Application - /// Firewall logs. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "scrubbingRules")] - public System.Collections.Generic.IList ScrubbingRules {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PreconfiguredEndpoint.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PreconfiguredEndpoint.cs deleted file mode 100644 index 50cd3d2471e7..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PreconfiguredEndpoint.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of a preconfigured endpoint - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class PreconfiguredEndpoint : Resource - { - /// - /// Initializes a new instance of the PreconfiguredEndpoint class. - /// - public PreconfiguredEndpoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PreconfiguredEndpoint class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - - /// The type of endpoint - /// Possible values include: 'AFD', 'AzureRegion', 'CDN', 'ATM' - - /// The description of the endpoint - /// - - /// The endpoint that is preconfigured - /// - - /// The preconfigured endpoint backend - /// - public PreconfiguredEndpoint(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string endpointType = default(string), string description = default(string), string endpoint = default(string), string backend = default(string)) - - : base(id, name, type, location, tags) - { - this.EndpointType = endpointType; - this.Description = description; - this.Endpoint = endpoint; - this.Backend = backend; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the type of endpoint Possible values include: 'AFD', 'AzureRegion', 'CDN', 'ATM' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endpointType")] - public string EndpointType {get; set; } - - /// - /// Gets or sets the description of the endpoint - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.description")] - public string Description {get; set; } - - /// - /// Gets or sets the endpoint that is preconfigured - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endpoint")] - public string Endpoint {get; set; } - - /// - /// Gets or sets the preconfigured endpoint backend - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.backend")] - public string Backend {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PreconfiguredEndpointProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PreconfiguredEndpointProperties.cs deleted file mode 100644 index 858b4e644b16..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PreconfiguredEndpointProperties.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of a preconfigured endpoint - /// - public partial class PreconfiguredEndpointProperties - { - /// - /// Initializes a new instance of the PreconfiguredEndpointProperties class. - /// - public PreconfiguredEndpointProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PreconfiguredEndpointProperties class. - /// - - /// The description of the endpoint - /// - - /// The endpoint that is preconfigured - /// - - /// The type of endpoint - /// Possible values include: 'AFD', 'AzureRegion', 'CDN', 'ATM' - - /// The preconfigured endpoint backend - /// - public PreconfiguredEndpointProperties(string description = default(string), string endpoint = default(string), string endpointType = default(string), string backend = default(string)) - - { - this.Description = description; - this.Endpoint = endpoint; - this.EndpointType = endpointType; - this.Backend = backend; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the description of the endpoint - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "description")] - public string Description {get; set; } - - /// - /// Gets or sets the endpoint that is preconfigured - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endpoint")] - public string Endpoint {get; set; } - - /// - /// Gets or sets the type of endpoint Possible values include: 'AFD', 'AzureRegion', 'CDN', 'ATM' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endpointType")] - public string EndpointType {get; set; } - - /// - /// Gets or sets the preconfigured endpoint backend - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "backend")] - public string Backend {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PrivateEndpointStatus.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PrivateEndpointStatus.cs deleted file mode 100644 index 9f70670d0f01..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PrivateEndpointStatus.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for PrivateEndpointStatus. - /// - - - public static class PrivateEndpointStatus - { - public const string Pending = "Pending"; - public const string Approved = "Approved"; - public const string Rejected = "Rejected"; - public const string Disconnected = "Disconnected"; - public const string Timeout = "Timeout"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Profile.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Profile.cs deleted file mode 100644 index 94eac26b5aed..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Profile.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines an Network Experiment Profile and lists of Experiments - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class Profile : Resource - { - /// - /// Initializes a new instance of the Profile class. - /// - public Profile() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Profile class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - - /// Gets a unique read-only string that changes whenever the resource is - /// updated. - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting' - - /// The state of the Experiment - /// Possible values include: 'Enabled', 'Disabled' - public Profile(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string etag = default(string), string resourceState = default(string), string enabledState = default(string)) - - : base(id, name, type, location, tags) - { - this.Etag = etag; - this.ResourceState = resourceState; - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets gets a unique read-only string that changes whenever the - /// resource is updated. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "etag")] - public string Etag {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - - /// - /// Gets or sets the state of the Experiment Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledState")] - public string EnabledState {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileProperties.cs deleted file mode 100644 index 8495e2f8c86e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileProperties.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of an experiment - /// - public partial class ProfileProperties - { - /// - /// Initializes a new instance of the ProfileProperties class. - /// - public ProfileProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ProfileProperties class. - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting' - - /// The state of the Experiment - /// Possible values include: 'Enabled', 'Disabled' - public ProfileProperties(string resourceState = default(string), string enabledState = default(string)) - - { - this.ResourceState = resourceState; - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - - /// - /// Gets or sets the state of the Experiment Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileUpdateModel.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileUpdateModel.cs deleted file mode 100644 index 8b2f794cc220..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileUpdateModel.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines modifiable attributes of a Profile - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class ProfileUpdateModel - { - /// - /// Initializes a new instance of the ProfileUpdateModel class. - /// - public ProfileUpdateModel() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ProfileUpdateModel class. - /// - - /// Resource tags. - /// - - /// The enabled state of the Profile - /// Possible values include: 'Enabled', 'Disabled' - public ProfileUpdateModel(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string enabledState = default(string)) - - { - this.Tags = tags; - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource tags. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags {get; set; } - - /// - /// Gets or sets the enabled state of the Profile Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledState")] - public string EnabledState {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileUpdateProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileUpdateProperties.cs deleted file mode 100644 index 4695b244e982..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ProfileUpdateProperties.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of an experiment - /// - public partial class ProfileUpdateProperties - { - /// - /// Initializes a new instance of the ProfileUpdateProperties class. - /// - public ProfileUpdateProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ProfileUpdateProperties class. - /// - - /// The enabled state of the Profile - /// Possible values include: 'Enabled', 'Disabled' - public ProfileUpdateProperties(string enabledState = default(string)) - - { - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the enabled state of the Profile Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PurgeParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PurgeParameters.cs deleted file mode 100644 index 63ee8786e7e9..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/PurgeParameters.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Parameters required for content purge. - /// - public partial class PurgeParameters - { - /// - /// Initializes a new instance of the PurgeParameters class. - /// - public PurgeParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PurgeParameters class. - /// - - /// The path to the content to be purged. Can describe a file path or a wild - /// card directory. - /// - public PurgeParameters(System.Collections.Generic.IList contentPaths) - - { - this.ContentPaths = contentPaths; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the path to the content to be purged. Can describe a file path - /// or a wild card directory. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "contentPaths")] - public System.Collections.Generic.IList ContentPaths {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.ContentPaths == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ContentPaths"); - } - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RedirectConfiguration.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RedirectConfiguration.cs deleted file mode 100644 index 6cf26d3fe705..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RedirectConfiguration.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Describes Redirect Route. - /// - [Newtonsoft.Json.JsonObject("#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration")] - public partial class RedirectConfiguration : RouteConfiguration - { - /// - /// Initializes a new instance of the RedirectConfiguration class. - /// - public RedirectConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RedirectConfiguration class. - /// - - /// The redirect type the rule will use when redirecting traffic. - /// Possible values include: 'Moved', 'Found', 'TemporaryRedirect', - /// 'PermanentRedirect' - - /// The protocol of the destination to where the traffic is redirected - /// Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest' - - /// Host to redirect. Leave empty to use the incoming host as the destination - /// host. - /// - - /// The full path to redirect. Path cannot be empty and must start with /. - /// Leave empty to use the incoming path as destination path. - /// - - /// Fragment to add to the redirect URL. Fragment is the part of the URL that - /// comes after #. Do not include the #. - /// - - /// The set of query strings to be placed in the redirect URL. Setting this - /// value would replace any existing query string; leave empty to preserve the - /// incoming query string. Query string must be in <key>=<value> format. The - /// first ? and & will be added automatically so do not include them in the - /// front, but do separate multiple query strings with &. - /// - public RedirectConfiguration(string redirectType = default(string), string redirectProtocol = default(string), string customHost = default(string), string customPath = default(string), string customFragment = default(string), string customQueryString = default(string)) - - { - this.RedirectType = redirectType; - this.RedirectProtocol = redirectProtocol; - this.CustomHost = customHost; - this.CustomPath = customPath; - this.CustomFragment = customFragment; - this.CustomQueryString = customQueryString; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "redirectType")] - public string RedirectType {get; set; } - - /// - /// Gets or sets the protocol of the destination to where the traffic is - /// redirected Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "redirectProtocol")] - public string RedirectProtocol {get; set; } - - /// - /// Gets or sets host to redirect. Leave empty to use the incoming host as the - /// destination host. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customHost")] - public string CustomHost {get; set; } - - /// - /// Gets or sets the full path to redirect. Path cannot be empty and must start - /// with /. Leave empty to use the incoming path as destination path. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customPath")] - public string CustomPath {get; set; } - - /// - /// Gets or sets fragment to add to the redirect URL. Fragment is the part of - /// the URL that comes after #. Do not include the #. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customFragment")] - public string CustomFragment {get; set; } - - /// - /// Gets or sets the set of query strings to be placed in the redirect URL. - /// Setting this value would replace any existing query string; leave empty to - /// preserve the incoming query string. Query string must be in <key>=<value> - /// format. The first ? and & will be added automatically so do not include - /// them in the front, but do separate multiple query strings with &. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customQueryString")] - public string CustomQueryString {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Resource.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Resource.cs deleted file mode 100644 index e128395cfcde..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Resource.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Common resource representation. - /// - public partial class Resource : Microsoft.Rest.Azure.IResource - { - /// - /// Initializes a new instance of the Resource class. - /// - public Resource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Resource class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary)) - - { - this.Id = id; - this.Name = name; - this.Type = type; - this.Location = location; - this.Tags = tags; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; private set; } - - /// - /// Gets resource name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; private set; } - - /// - /// Gets resource type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type {get; private set; } - - /// - /// Gets or sets resource location. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] - public string Location {get; set; } - - /// - /// Gets or sets resource tags. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ResourceType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ResourceType.cs deleted file mode 100644 index cd32aecc6e7f..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ResourceType.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ResourceType. - /// - - - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] - public enum ResourceType - { - [System.Runtime.Serialization.EnumMember(Value = "Microsoft.Network/frontDoors")] - MicrosoftNetworkFrontDoors, - [System.Runtime.Serialization.EnumMember(Value = "Microsoft.Network/frontDoors/frontendEndpoints")] - MicrosoftNetworkFrontDoorsFrontendEndpoints - } - internal static class ResourceTypeEnumExtension - { - internal static string ToSerializedValue(this ResourceType? value) - { - return value == null ? null : ((ResourceType)value).ToSerializedValue(); - } - internal static string ToSerializedValue(this ResourceType value) - { - switch( value ) - { - case ResourceType.MicrosoftNetworkFrontDoors: - return "Microsoft.Network/frontDoors"; - case ResourceType.MicrosoftNetworkFrontDoorsFrontendEndpoints: - return "Microsoft.Network/frontDoors/frontendEndpoints"; - } - return null; - } - internal static ResourceType? ParseResourceType(this string value) - { - switch( value ) - { - case "Microsoft.Network/frontDoors": - return ResourceType.MicrosoftNetworkFrontDoors; - case "Microsoft.Network/frontDoors/frontendEndpoints": - return ResourceType.MicrosoftNetworkFrontDoorsFrontendEndpoints; - } - return null; - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RouteConfiguration.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RouteConfiguration.cs deleted file mode 100644 index 8265af95d20d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RouteConfiguration.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Base class for all types of Route. - /// - [Newtonsoft.Json.JsonObject("RouteConfiguration")] - public partial class RouteConfiguration - { - /// - /// Initializes a new instance of the RouteConfiguration class. - /// - public RouteConfiguration() - { - CustomInit(); - } - - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRule.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRule.cs deleted file mode 100644 index e82253c4ebab..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRule.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// A routing rule represents a specification for traffic to treat and where to - /// send it, along with health probe information. - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class RoutingRule : SubResource - { - /// - /// Initializes a new instance of the RoutingRule class. - /// - public RoutingRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RoutingRule class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// A reference to the routing configuration. - /// - - /// Frontend endpoints associated with this rule - /// - - /// Protocol schemes to match for this rule - /// - - /// The route patterns of the rule. - /// - - /// Whether to enable use of this rule. Permitted values are 'Enabled' or - /// 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// A reference to a specific Rules Engine Configuration to apply to this - /// route. - /// - - /// Defines the Web Application Firewall policy for each routing rule (if - /// applicable) - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public RoutingRule(string id = default(string), string name = default(string), string type = default(string), RouteConfiguration routeConfiguration = default(RouteConfiguration), System.Collections.Generic.IList frontendEndpoints = default(System.Collections.Generic.IList), System.Collections.Generic.IList acceptedProtocols = default(System.Collections.Generic.IList), System.Collections.Generic.IList patternsToMatch = default(System.Collections.Generic.IList), string enabledState = default(string), SubResource rulesEngine = default(SubResource), RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink), string resourceState = default(string)) - - : base(id) - { - this.Name = name; - this.Type = type; - this.RouteConfiguration = routeConfiguration; - this.FrontendEndpoints = frontendEndpoints; - this.AcceptedProtocols = acceptedProtocols; - this.PatternsToMatch = patternsToMatch; - this.EnabledState = enabledState; - this.RulesEngine = rulesEngine; - this.WebApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink; - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets resource type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type {get; private set; } - - /// - /// Gets or sets a reference to the routing configuration. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.routeConfiguration")] - public RouteConfiguration RouteConfiguration {get; set; } - - /// - /// Gets or sets frontend endpoints associated with this rule - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.frontendEndpoints")] - public System.Collections.Generic.IList FrontendEndpoints {get; set; } - - /// - /// Gets or sets protocol schemes to match for this rule - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.acceptedProtocols")] - public System.Collections.Generic.IList AcceptedProtocols {get; set; } - - /// - /// Gets or sets the route patterns of the rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.patternsToMatch")] - public System.Collections.Generic.IList PatternsToMatch {get; set; } - - /// - /// Gets or sets whether to enable use of this rule. Permitted values are - /// 'Enabled' or 'Disabled' Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets or sets a reference to a specific Rules Engine Configuration to apply - /// to this route. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.rulesEngine")] - public SubResource RulesEngine {get; set; } - - /// - /// Gets or sets defines the Web Application Firewall policy for each routing - /// rule (if applicable) - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.webApplicationFirewallPolicyLink")] - public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleEnabledState.cs deleted file mode 100644 index f6cac1a90b8a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for RoutingRuleEnabledState. - /// - - - public static class RoutingRuleEnabledState - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleLink.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleLink.cs deleted file mode 100644 index 5b90380041ea..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleLink.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the Resource ID for a Routing Rule. - /// - public partial class RoutingRuleLink - { - /// - /// Initializes a new instance of the RoutingRuleLink class. - /// - public RoutingRuleLink() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RoutingRuleLink class. - /// - - /// Resource ID. - /// - public RoutingRuleLink(string id = default(string)) - - { - this.Id = id; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleListResult.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleListResult.cs deleted file mode 100644 index daab8f9ad18e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleListResult.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Result of the request to list Routing Rules. It contains a list of Routing - /// Rule objects and a URL link to get the next set of results. - /// - public partial class RoutingRuleListResult - { - /// - /// Initializes a new instance of the RoutingRuleListResult class. - /// - public RoutingRuleListResult() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RoutingRuleListResult class. - /// - - /// List of Routing Rules within a Front Door. - /// - - /// URL to get the next set of RoutingRule objects if there are any. - /// - public RoutingRuleListResult(System.Collections.Generic.IList value = default(System.Collections.Generic.IList), string nextLink = default(string)) - - { - this.Value = value; - this.NextLink = nextLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets list of Routing Rules within a Front Door. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] - public System.Collections.Generic.IList Value {get; private set; } - - /// - /// Gets or sets uRL to get the next set of RoutingRule objects if there are - /// any. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "nextLink")] - public string NextLink {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleProperties.cs deleted file mode 100644 index 488c92d413ee..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleProperties.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The JSON object that contains the properties required to create a routing - /// rule. - /// - public partial class RoutingRuleProperties : RoutingRuleUpdateParameters - { - /// - /// Initializes a new instance of the RoutingRuleProperties class. - /// - public RoutingRuleProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RoutingRuleProperties class. - /// - - /// Frontend endpoints associated with this rule - /// - - /// Protocol schemes to match for this rule - /// - - /// The route patterns of the rule. - /// - - /// Whether to enable use of this rule. Permitted values are 'Enabled' or - /// 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// A reference to the routing configuration. - /// - - /// A reference to a specific Rules Engine Configuration to apply to this - /// route. - /// - - /// Defines the Web Application Firewall policy for each routing rule (if - /// applicable) - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public RoutingRuleProperties(System.Collections.Generic.IList frontendEndpoints = default(System.Collections.Generic.IList), System.Collections.Generic.IList acceptedProtocols = default(System.Collections.Generic.IList), System.Collections.Generic.IList patternsToMatch = default(System.Collections.Generic.IList), string enabledState = default(string), RouteConfiguration routeConfiguration = default(RouteConfiguration), SubResource rulesEngine = default(SubResource), RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink), string resourceState = default(string)) - - : base(frontendEndpoints, acceptedProtocols, patternsToMatch, enabledState, routeConfiguration, rulesEngine, webApplicationFirewallPolicyLink) - { - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleUpdateParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleUpdateParameters.cs deleted file mode 100644 index 51f7db5f2656..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleUpdateParameters.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Routing rules to apply to an endpoint - /// - public partial class RoutingRuleUpdateParameters - { - /// - /// Initializes a new instance of the RoutingRuleUpdateParameters class. - /// - public RoutingRuleUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RoutingRuleUpdateParameters class. - /// - - /// Frontend endpoints associated with this rule - /// - - /// Protocol schemes to match for this rule - /// - - /// The route patterns of the rule. - /// - - /// Whether to enable use of this rule. Permitted values are 'Enabled' or - /// 'Disabled' - /// Possible values include: 'Enabled', 'Disabled' - - /// A reference to the routing configuration. - /// - - /// A reference to a specific Rules Engine Configuration to apply to this - /// route. - /// - - /// Defines the Web Application Firewall policy for each routing rule (if - /// applicable) - /// - public RoutingRuleUpdateParameters(System.Collections.Generic.IList frontendEndpoints = default(System.Collections.Generic.IList), System.Collections.Generic.IList acceptedProtocols = default(System.Collections.Generic.IList), System.Collections.Generic.IList patternsToMatch = default(System.Collections.Generic.IList), string enabledState = default(string), RouteConfiguration routeConfiguration = default(RouteConfiguration), SubResource rulesEngine = default(SubResource), RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink)) - - { - this.FrontendEndpoints = frontendEndpoints; - this.AcceptedProtocols = acceptedProtocols; - this.PatternsToMatch = patternsToMatch; - this.EnabledState = enabledState; - this.RouteConfiguration = routeConfiguration; - this.RulesEngine = rulesEngine; - this.WebApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets frontend endpoints associated with this rule - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "frontendEndpoints")] - public System.Collections.Generic.IList FrontendEndpoints {get; set; } - - /// - /// Gets or sets protocol schemes to match for this rule - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "acceptedProtocols")] - public System.Collections.Generic.IList AcceptedProtocols {get; set; } - - /// - /// Gets or sets the route patterns of the rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "patternsToMatch")] - public System.Collections.Generic.IList PatternsToMatch {get; set; } - - /// - /// Gets or sets whether to enable use of this rule. Permitted values are - /// 'Enabled' or 'Disabled' Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - - /// - /// Gets or sets a reference to the routing configuration. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "routeConfiguration")] - public RouteConfiguration RouteConfiguration {get; set; } - - /// - /// Gets or sets a reference to a specific Rules Engine Configuration to apply - /// to this route. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rulesEngine")] - public SubResource RulesEngine {get; set; } - - /// - /// Gets or sets defines the Web Application Firewall policy for each routing - /// rule (if applicable) - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "webApplicationFirewallPolicyLink")] - public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs deleted file mode 100644 index 5c4e202e8f8d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the Web Application Firewall policy for each routing rule (if - /// applicable) - /// - public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink - { - /// - /// Initializes a new instance of the RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink class. - /// - public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink class. - /// - - /// Resource ID. - /// - public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(string id = default(string)) - - { - this.Id = id; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RuleType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RuleType.cs deleted file mode 100644 index 1b62cb30520c..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RuleType.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for RuleType. - /// - - - public static class RuleType - { - public const string MatchRule = "MatchRule"; - public const string RateLimitRule = "RateLimitRule"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngine.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngine.cs deleted file mode 100644 index 03cbe85958c5..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngine.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// A rules engine configuration containing a list of rules that will run to - /// modify the runtime behavior of the request and response. - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class RulesEngine : Microsoft.Rest.Azure.IResource - { - /// - /// Initializes a new instance of the RulesEngine class. - /// - public RulesEngine() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RulesEngine class. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource ID. - /// - - /// A list of rules that define a particular Rules Engine Configuration. - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public RulesEngine(string name = default(string), string type = default(string), string id = default(string), System.Collections.Generic.IList rules = default(System.Collections.Generic.IList), string resourceState = default(string)) - - { - this.Name = name; - this.Type = type; - this.Id = id; - this.Rules = rules; - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; private set; } - - /// - /// Gets resource type. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type {get; private set; } - - /// - /// Gets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; private set; } - - /// - /// Gets or sets a list of rules that define a particular Rules Engine - /// Configuration. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.rules")] - public System.Collections.Generic.IList Rules {get; set; } - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineAction.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineAction.cs deleted file mode 100644 index d77d14e9db8e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineAction.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// One or more actions that will execute, modifying the request and/or - /// response. - /// - public partial class RulesEngineAction - { - /// - /// Initializes a new instance of the RulesEngineAction class. - /// - public RulesEngineAction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RulesEngineAction class. - /// - - /// A list of header actions to apply from the request from AFD to the origin. - /// - - /// A list of header actions to apply from the response from AFD to the client. - /// - - /// Override the route configuration. - /// - public RulesEngineAction(System.Collections.Generic.IList requestHeaderActions = default(System.Collections.Generic.IList), System.Collections.Generic.IList responseHeaderActions = default(System.Collections.Generic.IList), RouteConfiguration routeConfigurationOverride = default(RouteConfiguration)) - - { - this.RequestHeaderActions = requestHeaderActions; - this.ResponseHeaderActions = responseHeaderActions; - this.RouteConfigurationOverride = routeConfigurationOverride; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets a list of header actions to apply from the request from AFD to - /// the origin. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "requestHeaderActions")] - public System.Collections.Generic.IList RequestHeaderActions {get; set; } - - /// - /// Gets or sets a list of header actions to apply from the response from AFD - /// to the client. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "responseHeaderActions")] - public System.Collections.Generic.IList ResponseHeaderActions {get; set; } - - /// - /// Gets or sets override the route configuration. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "routeConfigurationOverride")] - public RouteConfiguration RouteConfigurationOverride {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineMatchCondition.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineMatchCondition.cs deleted file mode 100644 index 7bd99f02c95a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineMatchCondition.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Define a match condition - /// - public partial class RulesEngineMatchCondition - { - /// - /// Initializes a new instance of the RulesEngineMatchCondition class. - /// - public RulesEngineMatchCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RulesEngineMatchCondition class. - /// - - /// Match Variable - /// Possible values include: 'IsMobile', 'RemoteAddr', 'RequestMethod', - /// 'QueryString', 'PostArgs', 'RequestUri', 'RequestPath', 'RequestFilename', - /// 'RequestFilenameExtension', 'RequestHeader', 'RequestBody', 'RequestScheme' - - /// Name of selector in RequestHeader or RequestBody to be matched - /// - - /// Describes operator to apply to the match condition. - /// Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', - /// 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', - /// 'BeginsWith', 'EndsWith' - - /// Describes if this is negate condition or not - /// - - /// Match values to match against. The operator will apply to each value in - /// here with OR semantics. If any of them match the variable with the given - /// operator this match condition is considered a match. - /// - - /// List of transforms - /// - public RulesEngineMatchCondition(string rulesEngineMatchVariable, string rulesEngineOperator, System.Collections.Generic.IList rulesEngineMatchValue, string selector = default(string), bool? negateCondition = default(bool?), System.Collections.Generic.IList transforms = default(System.Collections.Generic.IList)) - - { - this.RulesEngineMatchVariable = rulesEngineMatchVariable; - this.Selector = selector; - this.RulesEngineOperator = rulesEngineOperator; - this.NegateCondition = negateCondition; - this.RulesEngineMatchValue = rulesEngineMatchValue; - this.Transforms = transforms; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets match Variable Possible values include: 'IsMobile', 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestPath', 'RequestFilename', 'RequestFilenameExtension', 'RequestHeader', 'RequestBody', 'RequestScheme' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rulesEngineMatchVariable")] - public string RulesEngineMatchVariable {get; set; } - - /// - /// Gets or sets name of selector in RequestHeader or RequestBody to be matched - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "selector")] - public string Selector {get; set; } - - /// - /// Gets or sets describes operator to apply to the match condition. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rulesEngineOperator")] - public string RulesEngineOperator {get; set; } - - /// - /// Gets or sets describes if this is negate condition or not - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "negateCondition")] - public bool? NegateCondition {get; set; } - - /// - /// Gets or sets match values to match against. The operator will apply to each - /// value in here with OR semantics. If any of them match the variable with the - /// given operator this match condition is considered a match. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rulesEngineMatchValue")] - public System.Collections.Generic.IList RulesEngineMatchValue {get; set; } - - /// - /// Gets or sets list of transforms - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "transforms")] - public System.Collections.Generic.IList Transforms {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.RulesEngineMatchVariable == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RulesEngineMatchVariable"); - } - if (this.RulesEngineOperator == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RulesEngineOperator"); - } - if (this.RulesEngineMatchValue == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RulesEngineMatchValue"); - } - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineMatchVariable.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineMatchVariable.cs deleted file mode 100644 index f484d831db4c..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineMatchVariable.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for RulesEngineMatchVariable. - /// - - - public static class RulesEngineMatchVariable - { - public const string IsMobile = "IsMobile"; - public const string RemoteAddr = "RemoteAddr"; - public const string RequestMethod = "RequestMethod"; - public const string QueryString = "QueryString"; - public const string PostArgs = "PostArgs"; - public const string RequestUri = "RequestUri"; - public const string RequestPath = "RequestPath"; - public const string RequestFilename = "RequestFilename"; - public const string RequestFilenameExtension = "RequestFilenameExtension"; - public const string RequestHeader = "RequestHeader"; - public const string RequestBody = "RequestBody"; - public const string RequestScheme = "RequestScheme"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineOperator.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineOperator.cs deleted file mode 100644 index e9ab36d2bf37..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineOperator.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for RulesEngineOperator. - /// - - - public static class RulesEngineOperator - { - public const string Any = "Any"; - public const string IPMatch = "IPMatch"; - public const string GeoMatch = "GeoMatch"; - public const string Equal = "Equal"; - public const string Contains = "Contains"; - public const string LessThan = "LessThan"; - public const string GreaterThan = "GreaterThan"; - public const string LessThanOrEqual = "LessThanOrEqual"; - public const string GreaterThanOrEqual = "GreaterThanOrEqual"; - public const string BeginsWith = "BeginsWith"; - public const string EndsWith = "EndsWith"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineProperties.cs deleted file mode 100644 index 30788f7badc1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineProperties.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The JSON object that contains the properties required to create a Rules - /// Engine Configuration. - /// - public partial class RulesEngineProperties : RulesEngineUpdateParameters - { - /// - /// Initializes a new instance of the RulesEngineProperties class. - /// - public RulesEngineProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RulesEngineProperties class. - /// - - /// A list of rules that define a particular Rules Engine Configuration. - /// - - /// Resource status. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting', 'Migrating', 'Migrated' - public RulesEngineProperties(System.Collections.Generic.IList rules = default(System.Collections.Generic.IList), string resourceState = default(string)) - - : base(rules) - { - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting', 'Migrating', 'Migrated' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineRule.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineRule.cs deleted file mode 100644 index bd924e8a7444..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineRule.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Contains a list of match conditions, and an action on how to modify the - /// request/response. If multiple rules match, the actions from one rule that - /// conflict with a previous rule overwrite for a singular action, or append in - /// the case of headers manipulation. - /// - public partial class RulesEngineRule - { - /// - /// Initializes a new instance of the RulesEngineRule class. - /// - public RulesEngineRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RulesEngineRule class. - /// - - /// A name to refer to this specific rule. - /// - - /// A priority assigned to this rule. - /// - - /// Actions to perform on the request and response if all of the match - /// conditions are met. - /// - - /// A list of match conditions that must meet in order for the actions of this - /// rule to run. Having no match conditions means the actions will always run. - /// - - /// If this rule is a match should the rules engine continue running the - /// remaining rules or stop. If not present, defaults to Continue. - /// Possible values include: 'Continue', 'Stop' - public RulesEngineRule(string name, int priority, RulesEngineAction action, System.Collections.Generic.IList matchConditions = default(System.Collections.Generic.IList), string matchProcessingBehavior = default(string)) - - { - this.Name = name; - this.Priority = priority; - this.Action = action; - this.MatchConditions = matchConditions; - this.MatchProcessingBehavior = matchProcessingBehavior; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets a name to refer to this specific rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - - /// - /// Gets or sets a priority assigned to this rule. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "priority")] - public int Priority {get; set; } - - /// - /// Gets or sets actions to perform on the request and response if all of the - /// match conditions are met. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "action")] - public RulesEngineAction Action {get; set; } - - /// - /// Gets or sets a list of match conditions that must meet in order for the - /// actions of this rule to run. Having no match conditions means the actions - /// will always run. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "matchConditions")] - public System.Collections.Generic.IList MatchConditions {get; set; } - - /// - /// Gets or sets if this rule is a match should the rules engine continue - /// running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "matchProcessingBehavior")] - public string MatchProcessingBehavior {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.Name == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); - } - if (this.Action == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Action"); - } - - - if (this.MatchConditions != null) - { - foreach (var element in this.MatchConditions) - { - if (element != null) - { - element.Validate(); - } - } - } - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineUpdateParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineUpdateParameters.cs deleted file mode 100644 index a9ab4123a309..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/RulesEngineUpdateParameters.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Rules Engine Configuration to apply to a Routing Rule. - /// - public partial class RulesEngineUpdateParameters - { - /// - /// Initializes a new instance of the RulesEngineUpdateParameters class. - /// - public RulesEngineUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RulesEngineUpdateParameters class. - /// - - /// A list of rules that define a particular Rules Engine Configuration. - /// - public RulesEngineUpdateParameters(System.Collections.Generic.IList rules = default(System.Collections.Generic.IList)) - - { - this.Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets a list of rules that define a particular Rules Engine - /// Configuration. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "rules")] - public System.Collections.Generic.IList Rules {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryMatchOperator.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryMatchOperator.cs deleted file mode 100644 index 22e0fb3a661a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryMatchOperator.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ScrubbingRuleEntryMatchOperator. - /// - - - public static class ScrubbingRuleEntryMatchOperator - { - public const string EqualsAny = "EqualsAny"; - public const string Equals = "Equals"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryMatchVariable.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryMatchVariable.cs deleted file mode 100644 index cfd68087510f..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryMatchVariable.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ScrubbingRuleEntryMatchVariable. - /// - - - public static class ScrubbingRuleEntryMatchVariable - { - public const string RequestIPAddress = "RequestIPAddress"; - public const string RequestUri = "RequestUri"; - public const string QueryStringArgNames = "QueryStringArgNames"; - public const string RequestHeaderNames = "RequestHeaderNames"; - public const string RequestCookieNames = "RequestCookieNames"; - public const string RequestBodyPostArgNames = "RequestBodyPostArgNames"; - public const string RequestBodyJsonArgNames = "RequestBodyJsonArgNames"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryState.cs deleted file mode 100644 index 29f73608d4ef..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ScrubbingRuleEntryState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for ScrubbingRuleEntryState. - /// - - - public static class ScrubbingRuleEntryState - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SecurityPolicyLink.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SecurityPolicyLink.cs deleted file mode 100644 index e13bce020973..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SecurityPolicyLink.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the Resource ID for a Security Policy. - /// - public partial class SecurityPolicyLink - { - /// - /// Initializes a new instance of the SecurityPolicyLink class. - /// - public SecurityPolicyLink() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SecurityPolicyLink class. - /// - - /// Resource ID. - /// - public SecurityPolicyLink(string id = default(string)) - - { - this.Id = id; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SessionAffinityEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SessionAffinityEnabledState.cs deleted file mode 100644 index c148b81e1a94..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SessionAffinityEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for SessionAffinityEnabledState. - /// - - - public static class SessionAffinityEnabledState - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Sku.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Sku.cs deleted file mode 100644 index 74dbabdf6395..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Sku.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// The pricing tier of the web application firewall policy. - /// - public partial class Sku - { - /// - /// Initializes a new instance of the Sku class. - /// - public Sku() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Sku class. - /// - - /// Name of the pricing tier. - /// Possible values include: 'Classic_AzureFrontDoor', - /// 'Standard_AzureFrontDoor', 'Premium_AzureFrontDoor' - public Sku(string name = default(string)) - - { - this.Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets name of the pricing tier. Possible values include: 'Classic_AzureFrontDoor', 'Standard_AzureFrontDoor', 'Premium_AzureFrontDoor' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SkuName.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SkuName.cs deleted file mode 100644 index defa6679a254..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SkuName.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for SkuName. - /// - - - public static class SkuName - { - public const string ClassicAzureFrontDoor = "Classic_AzureFrontDoor"; - public const string StandardAzureFrontDoor = "Standard_AzureFrontDoor"; - public const string PremiumAzureFrontDoor = "Premium_AzureFrontDoor"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/State.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/State.cs deleted file mode 100644 index 1230fd557230..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/State.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for State. - /// - - - public static class State - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SubResource.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SubResource.cs deleted file mode 100644 index 4684d11c912d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/SubResource.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Reference to another subresource. - /// - public partial class SubResource : Microsoft.Rest.Azure.IResource - { - /// - /// Initializes a new instance of the SubResource class. - /// - public SubResource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SubResource class. - /// - - /// Resource ID. - /// - public SubResource(string id = default(string)) - - { - this.Id = id; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource ID. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TagsObject.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TagsObject.cs deleted file mode 100644 index 766e0ed1e024..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TagsObject.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Tags object for patch operations. - /// - public partial class TagsObject - { - /// - /// Initializes a new instance of the TagsObject class. - /// - public TagsObject() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TagsObject class. - /// - - /// Resource tags. - /// - public TagsObject(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary)) - - { - this.Tags = tags; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets resource tags. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Timeseries.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Timeseries.cs deleted file mode 100644 index f1f0180a862a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Timeseries.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the Timeseries - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class Timeseries : Resource - { - /// - /// Initializes a new instance of the Timeseries class. - /// - public Timeseries() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Timeseries class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - - /// The aggregation interval of the Timeseries - /// Possible values include: 'Hourly', 'Daily' - - /// The type of Timeseries - /// Possible values include: 'MeasurementCounts', 'LatencyP50', 'LatencyP75', - /// 'LatencyP95' - - /// The endpoint associated with the Timeseries data point - /// - - /// The start DateTime of the Timeseries in UTC - /// - - /// The end DateTime of the Timeseries in UTC - /// - - /// The country associated with the Timeseries. Values are country ISO codes as - /// specified here- https://www.iso.org/iso-3166-country-codes.html - /// - - /// The set of data points for the timeseries - /// - public Timeseries(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string aggregationInterval = default(string), string timeseriesType = default(string), string endpoint = default(string), string startDateTimeUtc = default(string), string endDateTimeUtc = default(string), string country = default(string), System.Collections.Generic.IList timeseriesData = default(System.Collections.Generic.IList)) - - : base(id, name, type, location, tags) - { - this.AggregationInterval = aggregationInterval; - this.TimeseriesType = timeseriesType; - this.Endpoint = endpoint; - this.StartDateTimeUtc = startDateTimeUtc; - this.EndDateTimeUtc = endDateTimeUtc; - this.Country = country; - this.TimeseriesData = timeseriesData; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the aggregation interval of the Timeseries Possible values include: 'Hourly', 'Daily' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.aggregationInterval")] - public string AggregationInterval {get; set; } - - /// - /// Gets or sets the type of Timeseries Possible values include: 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.timeseriesType")] - public string TimeseriesType {get; set; } - - /// - /// Gets or sets the endpoint associated with the Timeseries data point - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endpoint")] - public string Endpoint {get; set; } - - /// - /// Gets or sets the start DateTime of the Timeseries in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.startDateTimeUTC")] - public string StartDateTimeUtc {get; set; } - - /// - /// Gets or sets the end DateTime of the Timeseries in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.endDateTimeUTC")] - public string EndDateTimeUtc {get; set; } - - /// - /// Gets or sets the country associated with the Timeseries. Values are country - /// ISO codes as specified here- - /// https://www.iso.org/iso-3166-country-codes.html - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.country")] - public string Country {get; set; } - - /// - /// Gets or sets the set of data points for the timeseries - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.timeseriesData")] - public System.Collections.Generic.IList TimeseriesData {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesAggregationInterval.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesAggregationInterval.cs deleted file mode 100644 index a81db48e6d43..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesAggregationInterval.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for TimeseriesAggregationInterval. - /// - - - public static class TimeseriesAggregationInterval - { - public const string Hourly = "Hourly"; - public const string Daily = "Daily"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesDataPoint.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesDataPoint.cs deleted file mode 100644 index daab45f82ec8..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesDataPoint.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines a timeseries datapoint used in a timeseries - /// - public partial class TimeseriesDataPoint - { - /// - /// Initializes a new instance of the TimeseriesDataPoint class. - /// - public TimeseriesDataPoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TimeseriesDataPoint class. - /// - - /// The DateTime of the Timeseries data point in UTC - /// - - /// The Value of the Timeseries data point - /// - public TimeseriesDataPoint(string dateTimeUtc = default(string), double? value = default(double?)) - - { - this.DateTimeUtc = dateTimeUtc; - this.Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the DateTime of the Timeseries data point in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dateTimeUTC")] - public string DateTimeUtc {get; set; } - - /// - /// Gets or sets the Value of the Timeseries data point - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] - public double? Value {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesProperties.cs deleted file mode 100644 index 85c3b9f3ca21..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesProperties.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the properties of a timeseries - /// - public partial class TimeseriesProperties - { - /// - /// Initializes a new instance of the TimeseriesProperties class. - /// - public TimeseriesProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TimeseriesProperties class. - /// - - /// The endpoint associated with the Timeseries data point - /// - - /// The start DateTime of the Timeseries in UTC - /// - - /// The end DateTime of the Timeseries in UTC - /// - - /// The aggregation interval of the Timeseries - /// Possible values include: 'Hourly', 'Daily' - - /// The type of Timeseries - /// Possible values include: 'MeasurementCounts', 'LatencyP50', 'LatencyP75', - /// 'LatencyP95' - - /// The country associated with the Timeseries. Values are country ISO codes as - /// specified here- https://www.iso.org/iso-3166-country-codes.html - /// - - /// The set of data points for the timeseries - /// - public TimeseriesProperties(string endpoint = default(string), string startDateTimeUtc = default(string), string endDateTimeUtc = default(string), string aggregationInterval = default(string), string timeseriesType = default(string), string country = default(string), System.Collections.Generic.IList timeseriesData = default(System.Collections.Generic.IList)) - - { - this.Endpoint = endpoint; - this.StartDateTimeUtc = startDateTimeUtc; - this.EndDateTimeUtc = endDateTimeUtc; - this.AggregationInterval = aggregationInterval; - this.TimeseriesType = timeseriesType; - this.Country = country; - this.TimeseriesData = timeseriesData; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the endpoint associated with the Timeseries data point - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endpoint")] - public string Endpoint {get; set; } - - /// - /// Gets or sets the start DateTime of the Timeseries in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "startDateTimeUTC")] - public string StartDateTimeUtc {get; set; } - - /// - /// Gets or sets the end DateTime of the Timeseries in UTC - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "endDateTimeUTC")] - public string EndDateTimeUtc {get; set; } - - /// - /// Gets or sets the aggregation interval of the Timeseries Possible values include: 'Hourly', 'Daily' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "aggregationInterval")] - public string AggregationInterval {get; set; } - - /// - /// Gets or sets the type of Timeseries Possible values include: 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "timeseriesType")] - public string TimeseriesType {get; set; } - - /// - /// Gets or sets the country associated with the Timeseries. Values are country - /// ISO codes as specified here- - /// https://www.iso.org/iso-3166-country-codes.html - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "country")] - public string Country {get; set; } - - /// - /// Gets or sets the set of data points for the timeseries - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "timeseriesData")] - public System.Collections.Generic.IList TimeseriesData {get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesType.cs deleted file mode 100644 index 2f5b61ece9f1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TimeseriesType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for TimeseriesType. - /// - - - public static class TimeseriesType - { - public const string MeasurementCounts = "MeasurementCounts"; - public const string LatencyP50 = "LatencyP50"; - public const string LatencyP75 = "LatencyP75"; - public const string LatencyP95 = "LatencyP95"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Transform.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Transform.cs deleted file mode 100644 index bcb5cfd6090a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/Transform.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for Transform. - /// - - - public static class Transform - { - public const string Lowercase = "Lowercase"; - public const string Uppercase = "Uppercase"; - public const string Trim = "Trim"; - public const string UrlDecode = "UrlDecode"; - public const string UrlEncode = "UrlEncode"; - public const string RemoveNulls = "RemoveNulls"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TransformType.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TransformType.cs deleted file mode 100644 index d1d6a408047f..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/TransformType.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for TransformType. - /// - - - public static class TransformType - { - public const string Lowercase = "Lowercase"; - public const string Uppercase = "Uppercase"; - public const string Trim = "Trim"; - public const string UrlDecode = "UrlDecode"; - public const string UrlEncode = "UrlEncode"; - public const string RemoveNulls = "RemoveNulls"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ValidateCustomDomainInput.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ValidateCustomDomainInput.cs deleted file mode 100644 index 09b4dd89072a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ValidateCustomDomainInput.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Input of the custom domain to be validated for DNS mapping. - /// - public partial class ValidateCustomDomainInput - { - /// - /// Initializes a new instance of the ValidateCustomDomainInput class. - /// - public ValidateCustomDomainInput() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ValidateCustomDomainInput class. - /// - - /// The host name of the custom domain. Must be a domain name. - /// - public ValidateCustomDomainInput(string hostName) - - { - this.HostName = hostName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the host name of the custom domain. Must be a domain name. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "hostName")] - public string HostName {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.HostName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "HostName"); - } - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ValidateCustomDomainOutput.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ValidateCustomDomainOutput.cs deleted file mode 100644 index a4de12335a0a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/ValidateCustomDomainOutput.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Output of custom domain validation. - /// - public partial class ValidateCustomDomainOutput - { - /// - /// Initializes a new instance of the ValidateCustomDomainOutput class. - /// - public ValidateCustomDomainOutput() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ValidateCustomDomainOutput class. - /// - - /// Indicates whether the custom domain is valid or not. - /// - - /// The reason why the custom domain is not valid. - /// - - /// Error message describing why the custom domain is not valid. - /// - public ValidateCustomDomainOutput(bool? customDomainValidated = default(bool?), string reason = default(string), string message = default(string)) - - { - this.CustomDomainValidated = customDomainValidated; - this.Reason = reason; - this.Message = message; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets indicates whether the custom domain is valid or not. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customDomainValidated")] - public bool? CustomDomainValidated {get; private set; } - - /// - /// Gets the reason why the custom domain is not valid. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "reason")] - public string Reason {get; private set; } - - /// - /// Gets error message describing why the custom domain is not valid. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] - public string Message {get; private set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/VariableName.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/VariableName.cs deleted file mode 100644 index 6353d19d2846..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/VariableName.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for VariableName. - /// - - - public static class VariableName - { - public const string SocketAddr = "SocketAddr"; - public const string GeoLocation = "GeoLocation"; - public const string None = "None"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallPolicy.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallPolicy.cs deleted file mode 100644 index 04233596495e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallPolicy.cs +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines web application firewall policy. - /// - [Microsoft.Rest.Serialization.JsonTransformation] - public partial class WebApplicationFirewallPolicy : Resource - { - /// - /// Initializes a new instance of the WebApplicationFirewallPolicy class. - /// - public WebApplicationFirewallPolicy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the WebApplicationFirewallPolicy class. - /// - - /// Resource ID. - /// - - /// Resource name. - /// - - /// Resource type. - /// - - /// Resource location. - /// - - /// Resource tags. - /// - - /// Gets a unique read-only string that changes whenever the resource is - /// updated. - /// - - /// The pricing tier of web application firewall policy. Defaults to - /// Classic_AzureFrontDoor if not specified. - /// - - /// Describes settings for the policy. - /// - - /// Describes custom rules inside the policy. - /// - - /// Describes managed rules inside the policy. - /// - - /// Describes Frontend Endpoints associated with this Web Application Firewall - /// policy. - /// - - /// Describes Routing Rules associated with this Web Application Firewall - /// policy. - /// - - /// Describes Security Policy associated with this Web Application Firewall - /// policy. - /// - - /// Provisioning state of the policy. - /// - - /// Resource status of the policy. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting' - public WebApplicationFirewallPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string etag = default(string), Sku sku = default(Sku), PolicySettings policySettings = default(PolicySettings), CustomRuleList customRules = default(CustomRuleList), ManagedRuleSetList managedRules = default(ManagedRuleSetList), System.Collections.Generic.IList frontendEndpointLinks = default(System.Collections.Generic.IList), System.Collections.Generic.IList routingRuleLinks = default(System.Collections.Generic.IList), System.Collections.Generic.IList securityPolicyLinks = default(System.Collections.Generic.IList), string provisioningState = default(string), string resourceState = default(string)) - - : base(id, name, type, location, tags) - { - this.Etag = etag; - this.Sku = sku; - this.PolicySettings = policySettings; - this.CustomRules = customRules; - this.ManagedRules = managedRules; - this.FrontendEndpointLinks = frontendEndpointLinks; - this.RoutingRuleLinks = routingRuleLinks; - this.SecurityPolicyLinks = securityPolicyLinks; - this.ProvisioningState = provisioningState; - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets gets a unique read-only string that changes whenever the - /// resource is updated. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "etag")] - public string Etag {get; set; } - - /// - /// Gets or sets the pricing tier of web application firewall policy. Defaults - /// to Classic_AzureFrontDoor if not specified. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sku")] - public Sku Sku {get; set; } - - /// - /// Gets or sets describes settings for the policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.policySettings")] - public PolicySettings PolicySettings {get; set; } - - /// - /// Gets or sets describes custom rules inside the policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.customRules")] - public CustomRuleList CustomRules {get; set; } - - /// - /// Gets or sets describes managed rules inside the policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.managedRules")] - public ManagedRuleSetList ManagedRules {get; set; } - - /// - /// Gets describes Frontend Endpoints associated with this Web Application - /// Firewall policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.frontendEndpointLinks")] - public System.Collections.Generic.IList FrontendEndpointLinks {get; private set; } - - /// - /// Gets describes Routing Rules associated with this Web Application Firewall - /// policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.routingRuleLinks")] - public System.Collections.Generic.IList RoutingRuleLinks {get; private set; } - - /// - /// Gets describes Security Policy associated with this Web Application - /// Firewall policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.securityPolicyLinks")] - public System.Collections.Generic.IList SecurityPolicyLinks {get; private set; } - - /// - /// Gets provisioning state of the policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState {get; private set; } - - /// - /// Gets resource status of the policy. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceState")] - public string ResourceState {get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - - - if (this.PolicySettings != null) - { - this.PolicySettings.Validate(); - } - - - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallPolicyProperties.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallPolicyProperties.cs deleted file mode 100644 index fe1b716f190d..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallPolicyProperties.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines web application firewall policy properties. - /// - public partial class WebApplicationFirewallPolicyProperties - { - /// - /// Initializes a new instance of the WebApplicationFirewallPolicyProperties class. - /// - public WebApplicationFirewallPolicyProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the WebApplicationFirewallPolicyProperties class. - /// - - /// Describes settings for the policy. - /// - - /// Describes custom rules inside the policy. - /// - - /// Describes managed rules inside the policy. - /// - - /// Describes Frontend Endpoints associated with this Web Application Firewall - /// policy. - /// - - /// Describes Routing Rules associated with this Web Application Firewall - /// policy. - /// - - /// Describes Security Policy associated with this Web Application Firewall - /// policy. - /// - - /// Provisioning state of the policy. - /// - - /// Resource status of the policy. - /// Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', - /// 'Disabled', 'Deleting' - public WebApplicationFirewallPolicyProperties(PolicySettings policySettings = default(PolicySettings), CustomRuleList customRules = default(CustomRuleList), ManagedRuleSetList managedRules = default(ManagedRuleSetList), System.Collections.Generic.IList frontendEndpointLinks = default(System.Collections.Generic.IList), System.Collections.Generic.IList routingRuleLinks = default(System.Collections.Generic.IList), System.Collections.Generic.IList securityPolicyLinks = default(System.Collections.Generic.IList), string provisioningState = default(string), string resourceState = default(string)) - - { - this.PolicySettings = policySettings; - this.CustomRules = customRules; - this.ManagedRules = managedRules; - this.FrontendEndpointLinks = frontendEndpointLinks; - this.RoutingRuleLinks = routingRuleLinks; - this.SecurityPolicyLinks = securityPolicyLinks; - this.ProvisioningState = provisioningState; - this.ResourceState = resourceState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets describes settings for the policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "policySettings")] - public PolicySettings PolicySettings {get; set; } - - /// - /// Gets or sets describes custom rules inside the policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customRules")] - public CustomRuleList CustomRules {get; set; } - - /// - /// Gets or sets describes managed rules inside the policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "managedRules")] - public ManagedRuleSetList ManagedRules {get; set; } - - /// - /// Gets describes Frontend Endpoints associated with this Web Application - /// Firewall policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "frontendEndpointLinks")] - public System.Collections.Generic.IList FrontendEndpointLinks {get; private set; } - - /// - /// Gets describes Routing Rules associated with this Web Application Firewall - /// policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "routingRuleLinks")] - public System.Collections.Generic.IList RoutingRuleLinks {get; private set; } - - /// - /// Gets describes Security Policy associated with this Web Application - /// Firewall policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "securityPolicyLinks")] - public System.Collections.Generic.IList SecurityPolicyLinks {get; private set; } - - /// - /// Gets provisioning state of the policy. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState {get; private set; } - - /// - /// Gets resource status of the policy. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "resourceState")] - public string ResourceState {get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.PolicySettings != null) - { - this.PolicySettings.Validate(); - } - - - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallScrubbingRules.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallScrubbingRules.cs deleted file mode 100644 index d653846c312e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallScrubbingRules.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// Defines the contents of the log scrubbing rules. - /// - public partial class WebApplicationFirewallScrubbingRules - { - /// - /// Initializes a new instance of the WebApplicationFirewallScrubbingRules class. - /// - public WebApplicationFirewallScrubbingRules() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the WebApplicationFirewallScrubbingRules class. - /// - - /// The variable to be scrubbed from the logs. - /// Possible values include: 'RequestIPAddress', 'RequestUri', - /// 'QueryStringArgNames', 'RequestHeaderNames', 'RequestCookieNames', - /// 'RequestBodyPostArgNames', 'RequestBodyJsonArgNames' - - /// When matchVariable is a collection, operate on the selector to specify - /// which elements in the collection this rule applies to. - /// Possible values include: 'EqualsAny', 'Equals' - - /// When matchVariable is a collection, operator used to specify which elements - /// in the collection this rule applies to. - /// - - /// Defines the state of a log scrubbing rule. Default value is enabled. - /// Possible values include: 'Enabled', 'Disabled' - public WebApplicationFirewallScrubbingRules(string matchVariable, string selectorMatchOperator, string selector = default(string), string state = default(string)) - - { - this.MatchVariable = matchVariable; - this.SelectorMatchOperator = selectorMatchOperator; - this.Selector = selector; - this.State = state; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the variable to be scrubbed from the logs. Possible values include: 'RequestIPAddress', 'RequestUri', 'QueryStringArgNames', 'RequestHeaderNames', 'RequestCookieNames', 'RequestBodyPostArgNames', 'RequestBodyJsonArgNames' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "matchVariable")] - public string MatchVariable {get; set; } - - /// - /// Gets or sets when matchVariable is a collection, operate on the selector to - /// specify which elements in the collection this rule applies to. Possible values include: 'EqualsAny', 'Equals' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "selectorMatchOperator")] - public string SelectorMatchOperator {get; set; } - - /// - /// Gets or sets when matchVariable is a collection, operator used to specify - /// which elements in the collection this rule applies to. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "selector")] - public string Selector {get; set; } - - /// - /// Gets or sets defines the state of a log scrubbing rule. Default value is - /// enabled. Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "state")] - public string State {get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (this.MatchVariable == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "MatchVariable"); - } - if (this.SelectorMatchOperator == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectorMatchOperator"); - } - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallScrubbingState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallScrubbingState.cs deleted file mode 100644 index 0b0cc7698f71..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/WebApplicationFirewallScrubbingState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for WebApplicationFirewallScrubbingState. - /// - - - public static class WebApplicationFirewallScrubbingState - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/NetworkExperimentProfilesOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/NetworkExperimentProfilesOperations.cs deleted file mode 100644 index 062c3a0617d4..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/NetworkExperimentProfilesOperations.cs +++ /dev/null @@ -1,1824 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// NetworkExperimentProfilesOperations operations. - /// - internal partial class NetworkExperimentProfilesOperations : Microsoft.Rest.IServiceOperations, INetworkExperimentProfilesOperations - { - /// - /// Initializes a new instance of the NetworkExperimentProfilesOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal NetworkExperimentProfilesOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/NetworkExperimentProfiles").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets an NetworkExperiment Profile by ProfileName - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// An Network Experiment Profile - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string profileName, string resourceGroupName, Profile parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(profileName, resourceGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Profile Update Model - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, ProfileUpdateModel parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// An Network Experiment Profile - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string profileName, string resourceGroupName, Profile parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (parameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); - } - - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - - tracingParameters.Add("parameters", parameters); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}").ToString(); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Profile Update Model - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, ProfileUpdateModel parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (parameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - - tracingParameters.Add("parameters", parameters); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/NetworkExperimentProfilesOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/NetworkExperimentProfilesOperationsExtensions.cs deleted file mode 100644 index 0a346fbe857e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/NetworkExperimentProfilesOperationsExtensions.cs +++ /dev/null @@ -1,411 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for NetworkExperimentProfilesOperations - /// - public static partial class NetworkExperimentProfilesOperationsExtensions - { - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// The operations group for this extension method. - /// - public static Microsoft.Rest.Azure.IPage List(this INetworkExperimentProfilesOperations operations) - { - return ((INetworkExperimentProfilesOperations)operations).ListAsync().GetAwaiter().GetResult(); - } - - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListAsync(this INetworkExperimentProfilesOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this INetworkExperimentProfilesOperations operations, string resourceGroupName) - { - return ((INetworkExperimentProfilesOperations)operations).ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByResourceGroupAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets an NetworkExperiment Profile by ProfileName - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - public static Profile Get(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName) - { - return ((INetworkExperimentProfilesOperations)operations).GetAsync(resourceGroupName, profileName).GetAwaiter().GetResult(); - } - - /// - /// Gets an NetworkExperiment Profile by ProfileName - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task GetAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// The operations group for this extension method. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - public static Profile CreateOrUpdate(this INetworkExperimentProfilesOperations operations, string profileName, string resourceGroupName, Profile parameters) - { - return ((INetworkExperimentProfilesOperations)operations).CreateOrUpdateAsync(profileName, resourceGroupName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// The operations group for this extension method. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this INetworkExperimentProfilesOperations operations, string profileName, string resourceGroupName, Profile parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(profileName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - public static Profile Update(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, ProfileUpdateModel parameters) - { - return ((INetworkExperimentProfilesOperations)operations).UpdateAsync(resourceGroupName, profileName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task UpdateAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, ProfileUpdateModel parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - public static void Delete(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName) - { - ((INetworkExperimentProfilesOperations)operations).DeleteAsync(resourceGroupName, profileName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task DeleteAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// The operations group for this extension method. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - public static Profile BeginCreateOrUpdate(this INetworkExperimentProfilesOperations operations, string profileName, string resourceGroupName, Profile parameters) - { - return ((INetworkExperimentProfilesOperations)operations).BeginCreateOrUpdateAsync(profileName, resourceGroupName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates an NetworkExperiment Profile - /// - /// - /// The operations group for this extension method. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginCreateOrUpdateAsync(this INetworkExperimentProfilesOperations operations, string profileName, string resourceGroupName, Profile parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(profileName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - public static Profile BeginUpdate(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, ProfileUpdateModel parameters) - { - return ((INetworkExperimentProfilesOperations)operations).BeginUpdateAsync(resourceGroupName, profileName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Updates an NetworkExperimentProfiles - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginUpdateAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, ProfileUpdateModel parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - public static void BeginDelete(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName) - { - ((INetworkExperimentProfilesOperations)operations).BeginDeleteAsync(resourceGroupName, profileName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an NetworkExperiment Profile by ProfileName - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginDeleteAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListNext(this INetworkExperimentProfilesOperations operations, string nextPageLink) - { - return ((INetworkExperimentProfilesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of Network Experiment Profiles under a subscription - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListNextAsync(this INetworkExperimentProfilesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this INetworkExperimentProfilesOperations operations, string nextPageLink) - { - return ((INetworkExperimentProfilesOperations)operations).ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of Network Experiment Profiles within a resource group under a - /// subscription - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByResourceGroupNextAsync(this INetworkExperimentProfilesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PoliciesOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PoliciesOperations.cs deleted file mode 100644 index 0926bb107c01..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PoliciesOperations.cs +++ /dev/null @@ -1,1816 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// PoliciesOperations operations. - /// - internal partial class PoliciesOperations : Microsoft.Rest.IServiceOperations, IPoliciesOperations - { - /// - /// Initializes a new instance of the PoliciesOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal PoliciesOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2025-03-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListBySubscriptionWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2025-03-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - DefaultErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Retrieve protection policy with specified name within a resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string policyName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (policyName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "policyName"); - } - if (policyName != null) - { - if (policyName.Length > 128) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "policyName", 128); - } - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2025-03-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("policyName", policyName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// Policy to be created. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, policyName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// FrontdoorWebApplicationFirewallPolicy parameters to be patched. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, TagsObject parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, policyName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes Policy - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string policyName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, policyName, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// Policy to be created. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (parameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) - { - parameters.Validate(); - } - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (policyName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "policyName"); - } - if (policyName != null) - { - if (policyName.Length > 128) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "policyName", 128); - } - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2025-03-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("policyName", policyName); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("parameters", parameters); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// FrontdoorWebApplicationFirewallPolicy parameters to be patched. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, TagsObject parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (parameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); - } - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (policyName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "policyName"); - } - if (policyName != null) - { - if (policyName.Length > 128) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "policyName", 128); - } - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2025-03-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("policyName", policyName); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("parameters", parameters); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Deletes Policy - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string policyName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (policyName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "policyName"); - } - if (policyName != null) - { - if (policyName.Length > 128) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "policyName", 128); - } - } - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - string apiVersion = "2025-03-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("policyName", policyName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySubscriptionNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new DefaultErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - DefaultErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PoliciesOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PoliciesOperationsExtensions.cs deleted file mode 100644 index 08c001ce6eea..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PoliciesOperationsExtensions.cs +++ /dev/null @@ -1,415 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for PoliciesOperations - /// - public static partial class PoliciesOperationsExtensions - { - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - public static Microsoft.Rest.Azure.IPage List(this IPoliciesOperations operations, string resourceGroupName) - { - return ((IPoliciesOperations)operations).ListAsync(resourceGroupName).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListAsync(this IPoliciesOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// The operations group for this extension method. - /// - public static Microsoft.Rest.Azure.IPage ListBySubscription(this IPoliciesOperations operations) - { - return ((IPoliciesOperations)operations).ListBySubscriptionAsync().GetAwaiter().GetResult(); - } - - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListBySubscriptionAsync(this IPoliciesOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Retrieve protection policy with specified name within a resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - public static WebApplicationFirewallPolicy Get(this IPoliciesOperations operations, string resourceGroupName, string policyName) - { - return ((IPoliciesOperations)operations).GetAsync(resourceGroupName, policyName).GetAwaiter().GetResult(); - } - - /// - /// Retrieve protection policy with specified name within a resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task GetAsync(this IPoliciesOperations operations, string resourceGroupName, string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, policyName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - public static WebApplicationFirewallPolicy CreateOrUpdate(this IPoliciesOperations operations, string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters) - { - return ((IPoliciesOperations)operations).CreateOrUpdateAsync(resourceGroupName, policyName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IPoliciesOperations operations, string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, policyName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - public static WebApplicationFirewallPolicy Update(this IPoliciesOperations operations, string resourceGroupName, string policyName, TagsObject parameters) - { - return ((IPoliciesOperations)operations).UpdateAsync(resourceGroupName, policyName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task UpdateAsync(this IPoliciesOperations operations, string resourceGroupName, string policyName, TagsObject parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, policyName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes Policy - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - public static void Delete(this IPoliciesOperations operations, string resourceGroupName, string policyName) - { - ((IPoliciesOperations)operations).DeleteAsync(resourceGroupName, policyName).GetAwaiter().GetResult(); - } - - /// - /// Deletes Policy - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task DeleteAsync(this IPoliciesOperations operations, string resourceGroupName, string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, policyName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - public static WebApplicationFirewallPolicy BeginCreateOrUpdate(this IPoliciesOperations operations, string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters) - { - return ((IPoliciesOperations)operations).BeginCreateOrUpdateAsync(resourceGroupName, policyName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Create or update policy with specified rule set name within a resource - /// group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginCreateOrUpdateAsync(this IPoliciesOperations operations, string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, policyName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - public static WebApplicationFirewallPolicy BeginUpdate(this IPoliciesOperations operations, string resourceGroupName, string policyName, TagsObject parameters) - { - return ((IPoliciesOperations)operations).BeginUpdateAsync(resourceGroupName, policyName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Patch a specific frontdoor webApplicationFirewall policy for tags update - /// under the specified subscription and resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginUpdateAsync(this IPoliciesOperations operations, string resourceGroupName, string policyName, TagsObject parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, policyName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes Policy - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - public static void BeginDelete(this IPoliciesOperations operations, string resourceGroupName, string policyName) - { - ((IPoliciesOperations)operations).BeginDeleteAsync(resourceGroupName, policyName).GetAwaiter().GetResult(); - } - - /// - /// Deletes Policy - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The name of the Web Application Firewall Policy. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginDeleteAsync(this IPoliciesOperations operations, string resourceGroupName, string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, policyName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListNext(this IPoliciesOperations operations, string nextPageLink) - { - return ((IPoliciesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the protection policies within a resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListNextAsync(this IPoliciesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListBySubscriptionNext(this IPoliciesOperations operations, string nextPageLink) - { - return ((IPoliciesOperations)operations).ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the protection policies within a subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListBySubscriptionNextAsync(this IPoliciesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PreconfiguredEndpointsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PreconfiguredEndpointsOperations.cs deleted file mode 100644 index e726009e9402..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PreconfiguredEndpointsOperations.cs +++ /dev/null @@ -1,442 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// PreconfiguredEndpointsOperations operations. - /// - internal partial class PreconfiguredEndpointsOperations : Microsoft.Rest.IServiceOperations, IPreconfiguredEndpointsOperations - { - /// - /// Initializes a new instance of the PreconfiguredEndpointsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal PreconfiguredEndpointsOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string profileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/PreconfiguredEndpoints").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PreconfiguredEndpointsOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PreconfiguredEndpointsOperationsExtensions.cs deleted file mode 100644 index 363914b39d1e..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/PreconfiguredEndpointsOperationsExtensions.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for PreconfiguredEndpointsOperations - /// - public static partial class PreconfiguredEndpointsOperationsExtensions - { - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - public static Microsoft.Rest.Azure.IPage List(this IPreconfiguredEndpointsOperations operations, string resourceGroupName, string profileName) - { - return ((IPreconfiguredEndpointsOperations)operations).ListAsync(resourceGroupName, profileName).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListAsync(this IPreconfiguredEndpointsOperations operations, string resourceGroupName, string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListNext(this IPreconfiguredEndpointsOperations operations, string nextPageLink) - { - return ((IPreconfiguredEndpointsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of Preconfigured Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListNextAsync(this IPreconfiguredEndpointsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ReportsOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ReportsOperations.cs deleted file mode 100644 index 941b9a754acb..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ReportsOperations.cs +++ /dev/null @@ -1,611 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// ReportsOperations operations. - /// - internal partial class ReportsOperations : Microsoft.Rest.IServiceOperations, IReportsOperations - { - /// - /// Initializes a new instance of the ReportsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal ReportsOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Gets a Latency Scorecard for a given Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The end DateTime of the Latency Scorecard in UTC - /// - /// - /// The country associated with the Latency Scorecard. Values are country ISO - /// codes as specified here- https://www.iso.org/iso-3166-country-codes.html - /// - /// - /// The aggregation interval of the Latency Scorecard - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> GetLatencyScorecardsWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, string aggregationInterval, string endDateTimeUTC = default(string), string country = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (experimentName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "experimentName"); - } - if (experimentName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - - - if (aggregationInterval == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "aggregationInterval"); - } - - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("experimentName", experimentName); - tracingParameters.Add("endDateTimeUTC", endDateTimeUTC); - tracingParameters.Add("country", country); - tracingParameters.Add("aggregationInterval", aggregationInterval); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetLatencyScorecards", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/LatencyScorecard").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (endDateTimeUTC != null) - { - _queryParameters.Add(string.Format("endDateTimeUTC={0}", System.Uri.EscapeDataString(endDateTimeUTC))); - } - if (country != null) - { - _queryParameters.Add(string.Format("country={0}", System.Uri.EscapeDataString(country))); - } - if (aggregationInterval != null) - { - _queryParameters.Add(string.Format("aggregationInterval={0}", System.Uri.EscapeDataString(aggregationInterval))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a Timeseries for a given Experiment - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The start DateTime of the Timeseries in UTC - /// - /// - /// The end DateTime of the Timeseries in UTC - /// - /// - /// The aggregation interval of the Timeseries - /// - /// - /// The type of Timeseries - /// - /// - /// The specific endpoint - /// - /// - /// The country associated with the Timeseries. Values are country ISO codes as - /// specified here- https://www.iso.org/iso-3166-country-codes.html - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> GetTimeseriesWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, System.DateTime startDateTimeUTC, System.DateTime endDateTimeUTC, string aggregationInterval, string timeseriesType, string endpoint = default(string), string country = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (profileName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "profileName"); - } - if (profileName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (experimentName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "experimentName"); - } - if (experimentName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - - - if (aggregationInterval == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "aggregationInterval"); - } - - if (timeseriesType == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "timeseriesType"); - } - - - - string apiVersion = "2019-11-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("experimentName", experimentName); - tracingParameters.Add("startDateTimeUTC", startDateTimeUTC); - tracingParameters.Add("endDateTimeUTC", endDateTimeUTC); - tracingParameters.Add("aggregationInterval", aggregationInterval); - tracingParameters.Add("timeseriesType", timeseriesType); - tracingParameters.Add("endpoint", endpoint); - tracingParameters.Add("country", country); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetTimeseries", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - _queryParameters.Add(string.Format("startDateTimeUTC={0}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(startDateTimeUTC, this.Client.SerializationSettings).Trim('"')))); - _queryParameters.Add(string.Format("endDateTimeUTC={0}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(endDateTimeUTC, this.Client.SerializationSettings).Trim('"')))); - if (aggregationInterval != null) - { - _queryParameters.Add(string.Format("aggregationInterval={0}", System.Uri.EscapeDataString(aggregationInterval))); - } - if (timeseriesType != null) - { - _queryParameters.Add(string.Format("timeseriesType={0}", System.Uri.EscapeDataString(timeseriesType))); - } - if (endpoint != null) - { - _queryParameters.Add(string.Format("endpoint={0}", System.Uri.EscapeDataString(endpoint))); - } - if (country != null) - { - _queryParameters.Add(string.Format("country={0}", System.Uri.EscapeDataString(country))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ReportsOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ReportsOperationsExtensions.cs deleted file mode 100644 index 7a8c4570096b..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/ReportsOperationsExtensions.cs +++ /dev/null @@ -1,162 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for ReportsOperations - /// - public static partial class ReportsOperationsExtensions - { - /// - /// Gets a Latency Scorecard for a given Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The end DateTime of the Latency Scorecard in UTC - /// - /// - /// The country associated with the Latency Scorecard. Values are country ISO - /// codes as specified here- https://www.iso.org/iso-3166-country-codes.html - /// - /// - /// The aggregation interval of the Latency Scorecard - /// - public static LatencyScorecard GetLatencyScorecards(this IReportsOperations operations, string resourceGroupName, string profileName, string experimentName, string aggregationInterval, string endDateTimeUTC = default(string), string country = default(string)) - { - return ((IReportsOperations)operations).GetLatencyScorecardsAsync(resourceGroupName, profileName, experimentName, aggregationInterval, endDateTimeUTC, country).GetAwaiter().GetResult(); - } - - /// - /// Gets a Latency Scorecard for a given Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The end DateTime of the Latency Scorecard in UTC - /// - /// - /// The country associated with the Latency Scorecard. Values are country ISO - /// codes as specified here- https://www.iso.org/iso-3166-country-codes.html - /// - /// - /// The aggregation interval of the Latency Scorecard - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task GetLatencyScorecardsAsync(this IReportsOperations operations, string resourceGroupName, string profileName, string experimentName, string aggregationInterval, string endDateTimeUTC = default(string), string country = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.GetLatencyScorecardsWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, aggregationInterval, endDateTimeUTC, country, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets a Timeseries for a given Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The start DateTime of the Timeseries in UTC - /// - /// - /// The end DateTime of the Timeseries in UTC - /// - /// - /// The aggregation interval of the Timeseries - /// - /// - /// The type of Timeseries - /// - /// - /// The specific endpoint - /// - /// - /// The country associated with the Timeseries. Values are country ISO codes as - /// specified here- https://www.iso.org/iso-3166-country-codes.html - /// - public static Timeseries GetTimeseries(this IReportsOperations operations, string resourceGroupName, string profileName, string experimentName, System.DateTime startDateTimeUTC, System.DateTime endDateTimeUTC, string aggregationInterval, string timeseriesType, string endpoint = default(string), string country = default(string)) - { - return ((IReportsOperations)operations).GetTimeseriesAsync(resourceGroupName, profileName, experimentName, startDateTimeUTC, endDateTimeUTC, aggregationInterval, timeseriesType, endpoint, country).GetAwaiter().GetResult(); - } - - /// - /// Gets a Timeseries for a given Experiment - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The Profile identifier associated with the Tenant and Partner - /// - /// - /// The Experiment identifier associated with the Experiment - /// - /// - /// The start DateTime of the Timeseries in UTC - /// - /// - /// The end DateTime of the Timeseries in UTC - /// - /// - /// The aggregation interval of the Timeseries - /// - /// - /// The type of Timeseries - /// - /// - /// The specific endpoint - /// - /// - /// The country associated with the Timeseries. Values are country ISO codes as - /// specified here- https://www.iso.org/iso-3166-country-codes.html - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task GetTimeseriesAsync(this IReportsOperations operations, string resourceGroupName, string profileName, string experimentName, System.DateTime startDateTimeUTC, System.DateTime endDateTimeUTC, string aggregationInterval, string timeseriesType, string endpoint = default(string), string country = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.GetTimeseriesWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, startDateTimeUTC, endDateTimeUTC, aggregationInterval, timeseriesType, endpoint, country, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/RulesEnginesOperations.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/RulesEnginesOperations.cs deleted file mode 100644 index 994f4553632a..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/RulesEnginesOperations.cs +++ /dev/null @@ -1,1311 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor -{ - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - - /// - /// RulesEnginesOperations operations. - /// - internal partial class RulesEnginesOperations : Microsoft.Rest.IServiceOperations, IRulesEnginesOperations - { - /// - /// Initializes a new instance of the RulesEnginesOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal RulesEnginesOperations (FrontDoor client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - this.Client = client; - } - - /// - /// Gets a reference to the FrontDoor - /// - public FrontDoor Client { get; private set; } - - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoor", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Gets a Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (rulesEngineName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "rulesEngineName"); - } - if (rulesEngineName != null) - { - if (rulesEngineName.Length > 90) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "rulesEngineName", 90); - } - if (rulesEngineName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "rulesEngineName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(rulesEngineName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "rulesEngineName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("rulesEngineName", rulesEngineName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{rulesEngineName}", System.Uri.EscapeDataString(rulesEngineName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// Rules Engine Configuration properties needed to create a new Rules Engine - /// Configuration. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// Rules Engine Configuration properties needed to create a new Rules Engine - /// Configuration. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (rulesEngineParameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "rulesEngineParameters"); - } - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (rulesEngineName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "rulesEngineName"); - } - if (rulesEngineName != null) - { - if (rulesEngineName.Length > 90) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "rulesEngineName", 90); - } - if (rulesEngineName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "rulesEngineName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(rulesEngineName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "rulesEngineName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("rulesEngineName", rulesEngineName); - tracingParameters.Add("apiVersion", apiVersion); - - tracingParameters.Add("rulesEngineParameters", rulesEngineParameters); - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{rulesEngineName}", System.Uri.EscapeDataString(rulesEngineName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - if(rulesEngineParameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(rulesEngineParameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string rulesEngineName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - - - - if (this.Client.SubscriptionId == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "frontDoorName", 5); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (rulesEngineName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "rulesEngineName"); - } - if (rulesEngineName != null) - { - if (rulesEngineName.Length > 90) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "rulesEngineName", 90); - } - if (rulesEngineName.Length < 1) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "rulesEngineName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(rulesEngineName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "rulesEngineName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2021-06-01"; - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("rulesEngineName", rulesEngineName); - tracingParameters.Add("apiVersion", apiVersion); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{rulesEngineName}", System.Uri.EscapeDataString(rulesEngineName)); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async System.Threading.Tasks.Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - if (nextPageLink == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - - - tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoorNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (this.Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); - } - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - // Serialize Request - string _requestContent = null; - // Set Credentials - if (this.Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - - if ((int)_statusCode != 200) - { - var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception - } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - - - - - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/RulesEnginesOperationsExtensions.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/RulesEnginesOperationsExtensions.cs deleted file mode 100644 index 2dc87abab812..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/RulesEnginesOperationsExtensions.cs +++ /dev/null @@ -1,315 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/powershell@4.0.737) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.Management.FrontDoor -{ - using Microsoft.Rest.Azure; - using Models; - - /// - /// Extension methods for RulesEnginesOperations - /// - public static partial class RulesEnginesOperationsExtensions - { - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - public static Microsoft.Rest.Azure.IPage ListByFrontDoor(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName) - { - return ((IRulesEnginesOperations)operations).ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByFrontDoorAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets a Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - public static RulesEngine Get(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName) - { - return ((IRulesEnginesOperations)operations).GetAsync(resourceGroupName, frontDoorName, rulesEngineName).GetAwaiter().GetResult(); - } - - /// - /// Gets a Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task GetAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - public static RulesEngine CreateOrUpdate(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters) - { - return ((IRulesEnginesOperations)operations).CreateOrUpdateAsync(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - public static void Delete(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName) - { - ((IRulesEnginesOperations)operations).DeleteAsync(resourceGroupName, frontDoorName, rulesEngineName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task DeleteAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - public static RulesEngine BeginCreateOrUpdate(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters) - { - return ((IRulesEnginesOperations)operations).BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new Rules Engine Configuration with the specified name within the - /// specified Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginCreateOrUpdateAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - public static void BeginDelete(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName) - { - ((IRulesEnginesOperations)operations).BeginDeleteAsync(resourceGroupName, frontDoorName, rulesEngineName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing Rules Engine Configuration with the specified - /// parameters. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the Rules Engine which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task BeginDeleteAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static Microsoft.Rest.Azure.IPage ListByFrontDoorNext(this IRulesEnginesOperations operations, string nextPageLink) - { - return ((IRulesEnginesOperations)operations).ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByFrontDoorNextAsync(this IRulesEnginesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } -} diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Properties/AssemblyInfo.cs deleted file mode 100644 index b2b43a299267..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// - -using System.Reflection; -using System.Resources; - -[assembly: AssemblyTitle("Microsoft Azure Container Service Management Library")] -[assembly: AssemblyDescription("Provides Container Service management capabilities for Microsoft Azure.")] - -[assembly: AssemblyVersion("1.13.0")] -[assembly: AssemblyFileVersion("1.13.0")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("Azure .NET SDK")] -[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] -[assembly: NeutralResourcesLanguage("en")] diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/README.md b/src/FrontDoor/FrontDoor.Management.Sdk/README.md deleted file mode 100644 index ae7a4daf49f9..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/README.md +++ /dev/null @@ -1,38 +0,0 @@ -In this directory, run AutoRest: -``` -autorest --reset -autorest --use:@autorest/powershell@4.x -``` - -### AutoRest Configuration -> see https://aka.ms/autorest -``` yaml - -commit: f11631f1c1057d8363f9e3f9597c73b90f8924c8 -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)//specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-03-01/network.json - - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)//specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-03-01/webapplicationfirewall.json - - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)//specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/frontdoor.json - - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)//specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/networkexperiment.json - -# csharp: true -isSdkGenerator: true -powershell: true -clear-output-folder: true -openapi-type: arm -azure-arm: true -output-folder: Generated -namespace: Microsoft.Azure.Management.FrontDoor -title: FrontDoor - -directive: - - from: swagger-document - where: $.definitions.RouteUpdatePropertiesParameters.properties.supportedProtocols - transform: delete $.default - - from: swagger-document - where: $.definitions.PolicySettings.properties.logScrubbing - transform: $['x-ms-client-flatten'] = false; - - where: - model-name: FrontDoor - set: - model-name: FrontDoorModel diff --git a/src/FrontDoor/FrontDoor.Test/FrontDoor.Test.csproj b/src/FrontDoor/FrontDoor.Test/FrontDoor.Test.csproj deleted file mode 100644 index f8d2a8c4ac92..000000000000 --- a/src/FrontDoor/FrontDoor.Test/FrontDoor.Test.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - FrontDoor - - - - - - $(LegacyAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix).ScenarioTests - - - - - - - \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Test/Properties/AssemblyInfo.cs deleted file mode 100644 index c4d1a95a54bf..000000000000 --- a/src/FrontDoor/FrontDoor.Test/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,50 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Reflection; -using System.Runtime.InteropServices; -using Xunit; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Microsoft.Azure.Commands.FrontDoor.Test")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Microsoft.Azure.Commands.FrontDoor.Test")] -[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("91832aaa-dc11-4583-8239-adb7df531604")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion("0.1.0")] -[assembly: AssemblyFileVersion("0.1.0")] -[assembly: CollectionBehavior(DisableTestParallelization = true)] diff --git a/src/FrontDoor/FrontDoor.Test/ScenarioTests/Common.ps1 b/src/FrontDoor/FrontDoor.Test/ScenarioTests/Common.ps1 deleted file mode 100644 index 78c49d8b2957..000000000000 --- a/src/FrontDoor/FrontDoor.Test/ScenarioTests/Common.ps1 +++ /dev/null @@ -1,93 +0,0 @@ -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.SYNOPSIS -Gets valid resource group name -#> -function Get-ResourceGroupName -{ - return getAssetName -} - -<# -.SYNOPSIS -Gets valid resource name -#> -function Get-ResourceName -{ - return getAssetName -} - -<# -.SYNOPSIS -Creates a resource group to use in tests -#> -function TestSetup-CreateResourceGroup -{ - $resourceGroupName = getAssetName - $rglocation = Get-Location "Microsoft.Resources" "resourceGroups" "West US" - $tag = @{Owner='jingnanxu'} - $resourceGroup = New-AzResourceGroup -Name $resourceGroupName -location $rglocation -Force -Tag $tag - return $resourceGroup -} - -<# -.SYNOPSIS -Asserts if two tags are equal -#> -function Assert-Tags($tags1, $tags2) -{ - if($tags1.count -ne $tags2.count) - { - throw "Tag size not equal. Tag1: $tags1.count Tag2: $tags2.count" - } - - foreach($key in $tags1.Keys) - { - if($tags1[$key] -ne $tags2[$key]) - { - throw "Tag content not equal. Key:$key Tags1:" + $tags1[$key] + "Tags2:" + $tags2[$key] - } - } -} - -<# -.SYNOPSIS -Disable the CustomDomain Https deployment -#> -function TestCleanUp-DisableCustomDomainHttps($resourceGroupName, $frontDoorName, $customFrontendEndpointName) -{ - $customDomain = Get-AzFrontDoorFrontendEndpoint -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $customFrontendEndpointName - Assert-AreEqual $customDomain.CustomHttpsProvisioningState "Enabling" - [int]$counter = 0 - do - { - Wait-Seconds 60 - $customDomain = Get-AzFrontDoorFrontendEndpoint -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $customFrontendEndpointName - } while ($customDomain.CustomHttpsProvisioningState -ne "Enabled" -and $counter++ -lt 60) - Assert-AreEqual $customDomain.CustomHttpsProvisioningState "Enabled" - Assert-AreEqual $customDomain.MinimumTlsVersion "1.2" - - $customDomain = Get-AzFrontDoorFrontendEndpoint -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $customFrontendEndpointName - $disabledCustomDomain = $customDomain | Disable-AzFrontDoorCustomDomainHttps - Assert-AreEqual $disabledCustomDomain.CustomHttpsProvisioningState "Disabling" - [int]$counter = 0 - do - { - Wait-Seconds 60 - $disabledCustomDomain = Get-AzFrontDoorFrontendEndpoint -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $customFrontendEndpointName - } while ($disabledCustomDomain.CustomHttpsProvisioningState -ne "Disabled" -and $counter++ -lt 60) - Assert-AreEqual $disabledCustomDomain.CustomHttpsProvisioningState "Disabled" -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTestRunner.cs b/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTestRunner.cs deleted file mode 100644 index 665566f023d4..000000000000 --- a/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTestRunner.cs +++ /dev/null @@ -1,56 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; -using Xunit.Abstractions; -using Microsoft.Azure.Commands.TestFx; - -namespace Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest -{ - public class FrontDoorTestRunner - { - protected readonly ITestRunner TestRunner; - - protected FrontDoorTestRunner(ITestOutputHelper output) - { - TestRunner = TestManager.CreateInstance(output) - .WithNewPsScriptFilename($"{GetType().Name}.ps1") - .WithProjectSubfolderForTests("ScenarioTests") - .WithCommonPsScripts(new[] - { - @"Common.ps1", - @"../AzureRM.Resources.ps1" - }) - .WithNewRmModules(helper => new[] - { - helper.RMProfileModule, - helper.GetRMModulePath(@"Az.FrontDoor.psd1") - }) - .WithNewRecordMatcherArguments( - userAgentsToIgnore: new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }, - resourceProviders: new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null}, - {"Microsoft.Compute", null} - } - ) - .Build(); - } - } -} diff --git a/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTests.cs b/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTests.cs deleted file mode 100644 index bd40dc2cbe8b..000000000000 --- a/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTests.cs +++ /dev/null @@ -1,89 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Xunit; - -namespace Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest -{ - public class FrontDoorTests : FrontDoorTestRunner - { - public FrontDoorTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) - { - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestFrontDoorCrud() - { - TestRunner.RunTestScript("Test-FrontDoorCrud"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestFrontDoorCrudDefaults() - { - TestRunner.RunTestScript("Test-FrontDoorCrudDefaults"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestFrontDoorCrudWithPiping() - { - TestRunner.RunTestScript("Test-FrontDoorCrudWithPiping"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestFrontDoorRulesEngineCrud() - { - TestRunner.RunTestScript("Test-FrontDoorRulesEngineCrud"); - } - - //[Fact] - //[Trait(Category.AcceptanceType, Category.CheckIn)] - //public void TestFrontDoorEndpointCustomDomainHTTPSFrontDoor() - //{ - // TestController.NewInstance.RunPowerShellTest(_logger, "Test-FrontDoorEndpointCustomDomainHTTPS-FrontDoor"); - //} - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestFrontDoorEndpointCustomDomainHTTPSByocSpecificVersion() - { - TestRunner.RunTestScript("Test-FrontDoorEndpointCustomDomainHTTPS-BYOC-SpecificVersion"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestFrontDoorEndpointCustomDomainHTTPSByocLatestVersion() - { - TestRunner.RunTestScript("Test-FrontDoorEndpointCustomDomainHTTPS-BYOC-LatestVersion"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestFrontDoorCrudRedirect() - { - TestRunner.RunTestScript("Test-FrontDoorCrudRedirect"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestFrontDoorCrudPrivateLink() - { - TestRunner.RunTestScript("Test-FrontDoorCrudPrivateLink"); - } - } -} diff --git a/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTests.ps1 b/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTests.ps1 deleted file mode 100644 index 9be01559d486..000000000000 --- a/src/FrontDoor/FrontDoor.Test/ScenarioTests/FrontDoorTests.ps1 +++ /dev/null @@ -1,479 +0,0 @@ -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.SYNOPSIS -Full Front Door CRUD cycle -#> -function Test-FrontDoorCrud -{ - ## Create Azure Front Door - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "$Name.azurefd.net" - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" - $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" -HealthProbeMethod "Head" -EnabledState "Disabled" - $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName - $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 -EnforceCertificateNameCheck "Enabled" - New-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - $retrievedFrontDoor = Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName - Assert-NotNull $retrievedFrontDoor - Assert-AreEqual $Name $retrievedFrontDoor.Name - Assert-AreEqual $routingrule1.Name $retrievedFrontDoor.RoutingRules[0].Name - Assert-AreEqual $loadBalancingSetting1.Name $retrievedFrontDoor.LoadBalancingSettings[0].Name - Assert-AreEqual $backendpool1.Name $retrievedFrontDoor.BackendPools[0].Name - Assert-AreEqual $frontendEndpoint1.Name $retrievedFrontDoor.FrontendEndpoints[0].Name - Assert-AreEqual $retrievedFrontDoor.RoutingRules[0].RouteConfiguration.GetType().Name "PSForwardingConfiguration" - Assert-Tags $tags $retrievedFrontDoor.Tags - - # Verify HealthProbeSettings - Assert-AreEqual $healthProbeSetting1.Name $retrievedFrontDoor.HealthProbeSettings[0].Name - Assert-AreEqual $healthProbeSetting1.HealthProbeMethod $retrievedFrontDoor.HealthProbeSettings[0].HealthProbeMethod - Assert-AreEqual $healthProbeSetting1.EnabledState $retrievedFrontDoor.HealthProbeSettings[0].EnabledState - - # Verify backendPoolsSetting - Assert-AreEqual $backendPoolsSetting1.SendRecvTimeoutInSeconds $retrievedFrontDoor.BackendPoolsSetting[0].SendRecvTimeoutInSeconds - Assert-AreEqual $backendPoolsSetting1.EnforceCertificateNameCheck $retrievedFrontDoor.BackendPoolsSetting[0].EnforceCertificateNameCheck - Assert-AreEqual $backendPoolsSetting1.EnforceCertificateNameCheck $retrievedFrontDoor.EnforceCertificateNameCheck - - ## Update Azure Front Door - $newTags = @{"tag1" = "value3"; "tag2" = "value4"} - $healthProbeSetting1.HealthProbeMethod = "Get" - $healthProbeSetting1.EnabledState = "Enabled" - $backendPoolsSetting1.SendRecvTimeoutInSeconds = 20 - $updatedFrontDoor = Set-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -Tag $newTags -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 - - Assert-NotNull $updatedFrontDoor - Assert-AreEqual $Name $updatedFrontDoor.Name - Assert-AreEqual $routingrule1.Name $updatedFrontDoor.RoutingRules[0].Name - Assert-AreEqual $loadBalancingSetting1.Name $updatedFrontDoor.LoadBalancingSettings[0].Name - Assert-AreEqual $backendpool1.Name $updatedFrontDoor.BackendPools[0].Name - Assert-AreEqual $frontendEndpoint1.Name $updatedFrontDoor.FrontendEndpoints[0].Name - Assert-Tags $newTags $updatedFrontDoor.Tags - - # Verify HealthProbeSettings - Assert-AreEqual $healthProbeSetting1.Name $updatedFrontDoor.HealthProbeSettings[0].Name - Assert-AreEqual $healthProbeSetting1.HealthProbeMethod $updatedFrontDoor.HealthProbeSettings[0].HealthProbeMethod - Assert-AreEqual $healthProbeSetting1.EnabledState $updatedFrontDoor.HealthProbeSettings[0].EnabledState - - # Verify backendPoolsSetting - Assert-AreEqual $backendPoolsSetting1.SendRecvTimeoutInSeconds $updatedFrontDoor.BackendPoolsSetting[0].SendRecvTimeoutInSeconds - Assert-AreEqual $backendPoolsSetting1.EnforceCertificateNameCheck $updatedFrontDoor.BackendPoolsSetting[0].EnforceCertificateNameCheck - Assert-AreEqual $backendPoolsSetting1.EnforceCertificateNameCheck $updatedFrontDoor.EnforceCertificateNameCheck - - ## Delete Azure Front Door - $removed = Remove-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName } "does not exist" - - Remove-AzResourceGroup -Name $ResourceGroupName -Force -} - -<# -.SYNOPSIS -Full Front Door CRUD to validate default values. -#> -function Test-FrontDoorCrudDefaults -{ - ## Create Azure Front Door - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "$Name.azurefd.net" - - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" - $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" - $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName - $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject - New-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - $retrievedFrontDoor = Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName - Assert-NotNull $retrievedFrontDoor - Assert-AreEqual $Name $retrievedFrontDoor.Name - Assert-AreEqual $routingrule1.Name $retrievedFrontDoor.RoutingRules[0].Name - Assert-AreEqual $loadBalancingSetting1.Name $retrievedFrontDoor.LoadBalancingSettings[0].Name - Assert-AreEqual $backendpool1.Name $retrievedFrontDoor.BackendPools[0].Name - Assert-AreEqual $frontendEndpoint1.Name $retrievedFrontDoor.FrontendEndpoints[0].Name - Assert-AreEqual $retrievedFrontDoor.RoutingRules[0].RouteConfiguration.GetType().Name "PSForwardingConfiguration" - Assert-Tags $tags $retrievedFrontDoor.Tags - - # Verify Default HealthProbeSettings - Assert-AreEqual $retrievedFrontDoor.HealthProbeSettings[0].Name $healthProbeSetting1.Name - Assert-AreEqual $retrievedFrontDoor.HealthProbeSettings[0].HealthProbeMethod "Head" - Assert-AreEqual $retrievedFrontDoor.HealthProbeSettings[0].EnabledState "Enabled" - Assert-AreEqual $retrievedFrontDoor.HealthProbeSettings[0].IntervalInSeconds 30 - - # Verify Default backendPoolsSetting - Assert-AreEqual $retrievedFrontDoor.BackendPoolsSetting[0].SendRecvTimeoutInSeconds 30 - Assert-AreEqual $retrievedFrontDoor.BackendPoolsSetting[0].EnforceCertificateNameCheck "Enabled" - Assert-AreEqual $retrievedFrontDoor.EnforceCertificateNameCheck "Enabled" - - ## Delete Azure Front Door - $removed = Remove-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName } "does not exist" - - Remove-AzResourceGroup -Name $ResourceGroupName -Force -} - -<# -.SYNOPSIS -Full Front Door CRUD cycle with traffic redirection -#> -function Test-FrontDoorCrudRedirect -{ - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "$Name.azurefd.net" - $customHost = "contoso2" - $customPath = "/test" - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost - $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" - $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName - $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 -EnforceCertificateNameCheck "Enabled" - New-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - $retrievedFrontDoor = Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName - Assert-NotNull $retrievedFrontDoor - Assert-AreEqual $Name $retrievedFrontDoor.Name - Assert-AreEqual $routingrule1.Name $retrievedFrontDoor.RoutingRules[0].Name - Assert-AreEqual $loadBalancingSetting1.Name $retrievedFrontDoor.LoadBalancingSettings[0].Name - Assert-AreEqual $healthProbeSetting1.Name $retrievedFrontDoor.HealthProbeSettings[0].Name - Assert-AreEqual $backendpool1.Name $retrievedFrontDoor.BackendPools[0].Name - Assert-AreEqual $frontendEndpoint1.Name $retrievedFrontDoor.FrontendEndpoints[0].Name - Assert-Tags $tags $retrievedFrontDoor.Tags - Assert-AreEqual $retrievedFrontDoor.RoutingRules[0].RouteConfiguration.GetType().Name "PSRedirectConfiguration" - Assert-AreEqual $retrievedFrontDoor.RoutingRules[0].RouteConfiguration.CustomHost $customHost - Assert-AreEqual $backendPoolsSetting1.SendRecvTimeoutInSeconds $retrievedFrontDoor.BackendPoolsSetting[0].SendRecvTimeoutInSeconds - Assert-AreEqual $backendPoolsSetting1.EnforceCertificateNameCheck $retrievedFrontDoor.BackendPoolsSetting[0].EnforceCertificateNameCheck - - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath - $updatedFrontDoor = Set-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 - Assert-NotNull $updatedFrontDoor - Assert-AreEqual $Name $updatedFrontDoor.Name - Assert-AreEqual $routingrule1.Name $updatedFrontDoor.RoutingRules[0].Name - Assert-AreEqual $loadBalancingSetting1.Name $updatedFrontDoor.LoadBalancingSettings[0].Name - Assert-AreEqual $healthProbeSetting1.Name $updatedFrontDoor.HealthProbeSettings[0].Name - Assert-AreEqual $backendpool1.Name $updatedFrontDoor.BackendPools[0].Name - Assert-AreEqual $frontendEndpoint1.Name $updatedFrontDoor.FrontendEndpoints[0].Name - Assert-AreEqual $updatedFrontDoor.RoutingRules[0].RouteConfiguration.GetType().Name "PSRedirectConfiguration" - Assert-AreEqual $updatedFrontDoor.RoutingRules[0].RouteConfiguration.CustomHost $customHost - Assert-AreEqual $updatedFrontDoor.RoutingRules[0].RouteConfiguration.CustomPath $customPath - Assert-AreEqual $backendPoolsSetting1.SendRecvTimeoutInSeconds $updatedFrontDoor.BackendPoolsSetting[0].SendRecvTimeoutInSeconds - Assert-AreEqual $updatedFrontDoor.BackendPoolsSetting[0].EnforceCertificateNameCheck "Enabled" - - $updatedFrontDoor = Set-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -DisableCertificateNameCheck - Assert-NotNull $updatedFrontDoor - Assert-AreEqual $Name $updatedFrontDoor.Name - Assert-AreEqual $routingrule1.Name $updatedFrontDoor.RoutingRules[0].Name - Assert-AreEqual $loadBalancingSetting1.Name $updatedFrontDoor.LoadBalancingSettings[0].Name - Assert-AreEqual $healthProbeSetting1.Name $updatedFrontDoor.HealthProbeSettings[0].Name - Assert-AreEqual $backendpool1.Name $updatedFrontDoor.BackendPools[0].Name - Assert-AreEqual $frontendEndpoint1.Name $updatedFrontDoor.FrontendEndpoints[0].Name - Assert-AreEqual $updatedFrontDoor.RoutingRules[0].RouteConfiguration.GetType().Name "PSRedirectConfiguration" - Assert-AreEqual $updatedFrontDoor.RoutingRules[0].RouteConfiguration.CustomHost $customHost - Assert-AreEqual $updatedFrontDoor.RoutingRules[0].RouteConfiguration.CustomPath $customPath - Assert-AreEqual $updatedFrontDoor.BackendPoolsSetting[0].EnforceCertificateNameCheck "Disabled" - - $removed = Remove-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName } "does not exist" - - Remove-AzResourceGroup -Name $ResourceGroupName -Force -} - -<# -.SYNOPSIS -Front Door cycle with input piping -#> -function Test-FrontDoorCrudWithPiping -{ - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "$Name.azurefd.net" - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" - $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" -HealthProbeMethod "Head" -EnabledState "Disabled" - $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName - $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 -EnforceCertificateNameCheck "Enabled" - New-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - $newTags = @{"tag1" = "value3"; "tag2" = "value4"} - $updatedFrontDoor = Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName | Set-AzFrontDoor -Tag $newTags - Assert-NotNull $updatedFrontDoor - Assert-AreEqual $Name $updatedFrontDoor.Name - Assert-AreEqual $routingrule1.Name $updatedFrontDoor.RoutingRules[0].Name - Assert-AreEqual $loadBalancingSetting1.Name $updatedFrontDoor.LoadBalancingSettings[0].Name - Assert-AreEqual $healthProbeSetting1.Name $updatedFrontDoor.HealthProbeSettings[0].Name - Assert-AreEqual $backendpool1.Name $updatedFrontDoor.BackendPools[0].Name - Assert-AreEqual $frontendEndpoint1.Name $updatedFrontDoor.FrontendEndpoints[0].Name - Assert-Tags $newTags $updatedFrontDoor.Tags - Assert-AreEqual $updatedFrontDoor.RoutingRules[0].RouteConfiguration.GetType().Name "PSForwardingConfiguration" - - # Verify HealthProbeSettings - Assert-AreEqual $healthProbeSetting1.Name $updatedFrontDoor.HealthProbeSettings[0].Name - Assert-AreEqual $healthProbeSetting1.HealthProbeMethod $updatedFrontDoor.HealthProbeSettings[0].HealthProbeMethod - Assert-AreEqual $healthProbeSetting1.EnabledState $updatedFrontDoor.HealthProbeSettings[0].EnabledState - - # Verify backendPoolsSetting - Assert-AreEqual $backendPoolsSetting1.SendRecvTimeoutInSeconds $updatedFrontDoor.BackendPoolsSetting[0].SendRecvTimeoutInSeconds - Assert-AreEqual $backendPoolsSetting1.EnforceCertificateNameCheck $updatedFrontDoor.BackendPoolsSetting[0].EnforceCertificateNameCheck - Assert-AreEqual $backendPoolsSetting1.EnforceCertificateNameCheck $updatedFrontDoor.EnforceCertificateNameCheck - - $removed = Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName | Remove-AzFrontDoor -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName } "does not exist" -} - -function Test-FrontDoorRulesEngineCrud -{ - # Create Azure Front Door - $frontDoorName = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "$frontDoorName.azurefd.net" - - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $frontDoorName -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" - $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" - $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName - $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $frontDoorName -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject - New-AzFrontDoor -Name $frontDoorName -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - $frontDoor = Get-AzFrontDoor -Name $frontDoorName -ResourceGroupName $resourceGroupName - - # Create rules engine - $conditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue "forward" -Transform "LowerCase" -Selector Rules-Engine-Route-Forward -NegateCondition $false - $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" - $ruleEngineResponseHeaderAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions - $ruleEngineResponseHeaderRule = New-AzFrontDoorRulesEngineRuleObject -Name rule101 -Priority 1 -Action $ruleEngineResponseHeaderAction -MatchCondition $conditions - - $ruleEngineForwardAction = New-AzFrontDoorRulesEngineActionObject -ForwardingProtocol HttpsOnly -BackendPoolName "backendpool1" -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true - $ruleEngineForwardRule = New-AzFrontDoorRulesEngineRuleObject -Name rule102 -Priority 2 -Action $ruleEngineForwardAction -MatchCondition $conditions - - $redirectConditions = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue "redirect" -Transform "LowerCase" -Selector Rules-Engine-Route-Forward -NegateCondition $false - $ruleEngineRedirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectProtocol MatchRequest -CustomHost "www.contoso.com" -RedirectType Moved - $ruleEngineRedirectRule = New-AzFrontDoorRulesEngineRuleObject -Name rule103 -Priority 3 -Action $ruleEngineRedirectAction -MatchCondition $redirectConditions - - New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -Rule $ruleEngineResponseHeaderRule,$ruleEngineForwardRule,$ruleEngineRedirectRule -FrontDoorName $frontDoorName -Name engine101 - $ruleEngine = Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name engine101 - - # Verify Conditions - Assert-AreEqual "RequestHeader" $ruleEngine.RulesEngineRules[0].MatchConditions[0].RulesEngineMatchVariable - Assert-AreEqual "Equal" $ruleEngine.RulesEngineRules[0].MatchConditions[0].RulesEngineOperator - Assert-AreEqual "forward" $ruleEngine.RulesEngineRules[0].MatchConditions[0].RulesEngineMatchValue[0] - Assert-AreEqual "Lowercase" $ruleEngine.RulesEngineRules[0].MatchConditions[0].Transforms[0] - Assert-AreEqual "Rules-Engine-Route-Forward" $ruleEngine.RulesEngineRules[0].MatchConditions[0].Selector - Assert-AreEqual $false $ruleEngine.RulesEngineRules[0].MatchConditions[0].NegateCondition - - Assert-AreEqual "RequestHeader" $ruleEngine.RulesEngineRules[2].MatchConditions[0].RulesEngineMatchVariable - Assert-AreEqual "Equal" $ruleEngine.RulesEngineRules[2].MatchConditions[0].RulesEngineOperator - Assert-AreEqual "redirect" $ruleEngine.RulesEngineRules[2].MatchConditions[0].RulesEngineMatchValue[0] - Assert-AreEqual "Lowercase" $ruleEngine.RulesEngineRules[2].MatchConditions[0].Transforms[0] - Assert-AreEqual "Rules-Engine-Route-Forward" $ruleEngine.RulesEngineRules[2].MatchConditions[0].Selector - Assert-AreEqual $false $ruleEngine.RulesEngineRules[2].MatchConditions[0].NegateCondition - - # Verify Actions - Assert-AreEqual "X-Content-Type-Options" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[0].HeaderName - Assert-AreEqual "Append" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[0].HeaderActionType - Assert-AreEqual "nosniff" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[0].Value - - Assert-AreEqual "HttpsOnly" $ruleEngine.RulesEngineRules[1].Action.RouteConfigurationOverride.ForwardingProtocol - Assert-AreEqual $frontDoor.BackendPools[0].Id $ruleEngine.RulesEngineRules[1].Action.RouteConfigurationOverride.BackendPoolId - Assert-AreEqual "StripNone" $ruleEngine.RulesEngineRules[1].Action.RouteConfigurationOverride.QueryParameterStripDirective - Assert-AreEqual "Disabled" $ruleEngine.RulesEngineRules[1].Action.RouteConfigurationOverride.DynamicCompression - Assert-AreEqual $true $ruleEngine.RulesEngineRules[1].Action.RouteConfigurationOverride.EnableCaching - - Assert-AreEqual "Moved" $ruleEngine.RulesEngineRules[2].Action.RouteConfigurationOverride.RedirectType - Assert-AreEqual "MatchRequest" $ruleEngine.RulesEngineRules[2].Action.RouteConfigurationOverride.RedirectProtocol - Assert-AreEqual "www.contoso.com" $ruleEngine.RulesEngineRules[2].Action.RouteConfigurationOverride.CustomHost - - # Update rule engine - $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Overwrite" -HeaderName "Strict-Transport-Security" -Value "max-age=63072000; includeSubDomains; preload" - $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions.Add($headerActions) - $ruleEngine | Set-AzFrontDoorRulesEngine - - # Verify again - $ruleEngine = Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name engine101 - Assert-AreEqual "X-Content-Type-Options" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[0].HeaderName - Assert-AreEqual "Append" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[0].HeaderActionType - Assert-AreEqual "nosniff" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[0].Value - - Assert-AreEqual "Strict-Transport-Security" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[1].HeaderName - Assert-AreEqual "Overwrite" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[1].HeaderActionType - Assert-AreEqual "max-age=63072000; includeSubDomains; preload" $ruleEngine.RulesEngineRules[0].Action.ResponseHeaderActions[1].Value - - Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name engine101 - - ## Delete Azure Front Door - $removed = Remove-AzFrontDoor -Name $frontDoorName -ResourceGroupName $resourceGroupName -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoor -Name $frontDoorName -ResourceGroupName $resourceGroupName } "does not exist" - - Remove-AzResourceGroup -Name $ResourceGroupName -Force -} - -<# -.SYNOPSIS -Set custom domain configuration for FrontDoor endpoint. -#> -function Test-FrontDoorEndpointCustomDomainHTTPS-FrontDoor -{ - $Name = "test-powershell-030620190342" - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "$Name.azurefd.net" - $randomName = getRandomItemName "test" - $customDomainHostName = "$randomName.powershell-custom.azfdtest.xyz" - $customFrontendEndpointName = "frontendendpoint2" - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" - $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" - $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName - $frontendEndpoint2 = New-AzFrontDoorFrontendEndpointObject -Name $customFrontendEndpointName -HostName $customDomainHostName - $frontendEndpoints = $frontendEndpoint1, $frontendEndpoint2 - $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - New-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoints -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - $retrievedFrontDoor = Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName - Assert-NotNull $retrievedFrontDoor - - $customDomain = Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $ResourceGroupName -FrontDoorName $Name -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" - TestCleanUp-DisableCustomDomainHttps $ResourceGroupName $Name $customFrontendEndpointName - $disabledCustomDomain = Get-AzFrontDoorFrontendEndpoint -ResourceId $disabledCustomDomain.Id -} - -<# -.SYNOPSIS -Set custom domain https configuration for FrontDoor endpoint using specific secret version. -This case should only been ran in Playback model, live run requires the resource setup which is too cumbersome. -#> -function Test-FrontDoorEndpointCustomDomainHTTPS-BYOC-SpecificVersion -{ - $frontDoorName = "frontdoorclitest" - $resourceGroupName = "CliDevReservedGroup" - $customFrontendEndpointName = "afdbyoc-specific-localdev-cdn-azure-cn" - $vaultId = "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int" - $secretName = "localdev-multi" - $secretVersion = "6244bbfa61c241d78403a6e394cc2d30" - - $customDomain = Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" -VaultId $vaultId -SecretName $secretName -SecretVersion $secretVersion - Assert-AreEqual $customDomain.SecretVersion $secretVersion - TestCleanUp-DisableCustomDomainHttps $resourceGroupName $frontDoorName $customFrontendEndpointName -} - -<# -.SYNOPSIS -Set custom domain https configuration for FrontDoor endpoint using latest secret version. -This case should only been ran in Playback model, live run requires the resource setup which is too cumbersome. -#> -function Test-FrontDoorEndpointCustomDomainHTTPS-BYOC-LatestVersion -{ - $frontDoorName = "frontdoorclitest" - $resourceGroupName = "CliDevReservedGroup" - $customFrontendEndpointName = "afdbyoc-latest-localdev-cdn-azure-cn" - $vaultId = "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int" - $secretName = "localdev-multi" - - $customDomain = Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" -VaultId $vaultId -SecretName $secretName - Assert-Null $customDomain.SecretVersion - TestCleanUp-DisableCustomDomainHttps $resourceGroupName $frontDoorName $customFrontendEndpointName -} - -<# -.SYNOPSIS -Full Front Door CRUD to validate default values. -#> -function Test-FrontDoorCrudPrivateLink -{ - ## Create Azure Front Door - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "$Name.azurefd.net" - - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" - $backend1 = New-AzFrontDoorBackendObject -Address "20.81.102.49" -PrivateLinkAlias "pls-service1.854b143c-1d50-4008-b778-694fbcfd4154.eastus.azure.privatelinkservice" -PrivateLinkApprovalMessage "please approve connection" - $backend2 = New-AzFrontDoorBackendObject -Address "plstestcli.blob.core.windows.net" -PrivateLinkResourceId "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Storage/storageAccounts/plstestcli/privateLinkResources/blob" -PrivateLinkLocation "eastus" -PrivateLinkApprovalMessage "please approve connection request" - $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" - $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName - $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1,$backend2 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject - New-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - $retrievedFrontDoor = Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName - Assert-NotNull $retrievedFrontDoor - Assert-AreEqual $Name $retrievedFrontDoor.Name - Assert-AreEqual $routingrule1.Name $retrievedFrontDoor.RoutingRules[0].Name - Assert-AreEqual $loadBalancingSetting1.Name $retrievedFrontDoor.LoadBalancingSettings[0].Name - - $retrievedFrontDoorBackendPool = $retrievedFrontDoor.BackendPools[0] - - Assert-AreEqual $backendpool1.Name $retrievedFrontDoorBackendPool.Name - - Assert-AreEqual $backend1.PrivateLinkAlias $retrievedFrontDoorBackendPool.Backends[0].PrivateLinkAlias - Assert-AreEqual $backend1.PrivateLinkApprovalMessage $retrievedFrontDoorBackendPool.Backends[0].PrivateLinkApprovalMessage - - Assert-AreEqual $backend2.PrivateLinkResourceId $retrievedFrontDoorBackendPool.Backends[1].PrivateLinkResourceId - Assert-AreEqual $backend2.PrivateLinkLocation $retrievedFrontDoorBackendPool.Backends[1].PrivateLinkLocation - Assert-AreEqual $backend2.PrivateLinkApprovalMessage $retrievedFrontDoorBackendPool.Backends[1].PrivateLinkApprovalMessage - - Assert-AreEqual $frontendEndpoint1.Name $retrievedFrontDoor.FrontendEndpoints[0].Name - Assert-AreEqual $retrievedFrontDoor.RoutingRules[0].RouteConfiguration.GetType().Name "PSForwardingConfiguration" - Assert-Tags $tags $retrievedFrontDoor.Tags - - # Verify Default HealthProbeSettings - Assert-AreEqual $retrievedFrontDoor.HealthProbeSettings[0].Name $healthProbeSetting1.Name - Assert-AreEqual $retrievedFrontDoor.HealthProbeSettings[0].HealthProbeMethod "Head" - Assert-AreEqual $retrievedFrontDoor.HealthProbeSettings[0].EnabledState "Enabled" - Assert-AreEqual $retrievedFrontDoor.HealthProbeSettings[0].IntervalInSeconds 30 - - # Verify Default backendPoolsSetting - Assert-AreEqual $retrievedFrontDoor.BackendPoolsSetting[0].SendRecvTimeoutInSeconds 30 - Assert-AreEqual $retrievedFrontDoor.BackendPoolsSetting[0].EnforceCertificateNameCheck "Enabled" - Assert-AreEqual $retrievedFrontDoor.EnforceCertificateNameCheck "Enabled" - - ## Delete Azure Front Door - $removed = Remove-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoor -Name $Name -ResourceGroupName $resourceGroupName } "does not exist" - - Remove-AzResourceGroup -Name $ResourceGroupName -Force -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.cs b/src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.cs deleted file mode 100644 index f4f7442af7c1..000000000000 --- a/src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Xunit; - -namespace Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest -{ - public class WebApplicationFireWallPolicyTests : FrontDoorTestRunner - { - public WebApplicationFireWallPolicyTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) - { - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestPolicyCrud() - { - TestRunner.RunTestScript("Test-PolicyCrud"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestPolicyCrudWithPiping() - { - TestRunner.RunTestScript("Test-PolicyCrudWithPiping"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestManagedRuleSetDefinitions() - { - TestRunner.RunTestScript("Test-ManagedRuleSetDefinition"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestPolicyAction() - { - TestRunner.RunTestScript("Test-PolicyAction"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestCustomBlockResponseBody() - { - TestRunner.RunTestScript("Test-CustomBlockResponseBody"); - } - } -} diff --git a/src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.ps1 b/src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.ps1 deleted file mode 100644 index d5d83d75f338..000000000000 --- a/src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.ps1 +++ /dev/null @@ -1,191 +0,0 @@ -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.SYNOPSIS -Full WAF policy CRUD cycle -#> -function Test-PolicyCrud -{ - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" - $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 - - # Create exclusion objects - $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ExcludeInRule" - $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ExcludeInGroup" - $exclusionSet = New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ExcludeInSet" - - $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action Log -Exclusion $exclusionRule - $override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride -Exclusion $exclusionGroup - $managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "1.0" -RuleGroupOverride $override1 -Exclusion $exclusionSet - $managedRule2 = New-AzFrontDoorWafManagedRuleObject -Type BotProtection -Version "preview-0.1" - - $LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" - $logscrubbingSetting = New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) - - New-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -CaptchaExpirationInMinutes 5 -Sku Premium_AzureFrontDoor -Customrule $customRule1 -ManagedRule $managedRule1,$managedRule2 -EnabledState Enabled -Mode Prevention -RequestBodyCheck Disabled -LogScrubbingSetting $logscrubbingSetting -JavascriptChallengeExpirationInMinutes 30 - - $retrievedPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName - Assert-NotNull $retrievedPolicy - Assert-AreEqual $Name $retrievedPolicy.Name - Assert-AreEqual "Disabled" $retrievedPolicy.RequestBodyCheck - Assert-AreEqual $customRule1.Name $retrievedPolicy.CustomRules[0].Name - Assert-AreEqual $customRule1.RuleType $retrievedPolicy.CustomRules[0].RuleType - Assert-AreEqual $customRule1.Action $retrievedPolicy.CustomRules[0].Action - Assert-AreEqual $customRule1.Priority $retrievedPolicy.CustomRules[0].Priority - Assert-AreEqual $matchCondition1.MatchVariable $retrievedPolicy.CustomRules[0].MatchConditions[0].MatchVariable - Assert-AreEqual $matchCondition1.Selector $retrievedPolicy.CustomRules[0].MatchConditions[0].Selector - Assert-AreEqual $matchCondition1.OperatorProperty $retrievedPolicy.CustomRules[0].MatchConditions[0].OperatorProperty - Assert-AreEqual $matchCondition1.MatchValue[0] $retrievedPolicy.CustomRules[0].MatchConditions[0].MatchValue[0] - Assert-AreEqual $matchCondition1.Transform[0] $retrievedPolicy.CustomRules[0].MatchConditions[0].Transform[0] - Assert-AreEqual $managedRule1.Exclusions[0].Selector $retrievedPolicy.ManagedRules[0].Exclusions[0].Selector - Assert-AreEqual $managedRule1.RuleGroupOverrides[0].ManagedRuleOverrides[0].Action $retrievedPolicy.ManagedRules[0].RuleGroupOverrides[0].ManagedRuleOverrides[0].Action - Assert-AreEqual $managedRule1.RuleGroupOverrides[0].Exclusions[0].Selector $retrievedPolicy.ManagedRules[0].RuleGroupOverrides[0].Exclusions[0].Selector - Assert-AreEqual $managedRule1.RuleGroupOverrides[0].ManagedRuleOverrides[0].Exclusions[0].Selector $retrievedPolicy.ManagedRules[0].RuleGroupOverrides[0].ManagedRuleOverrides[0].Exclusions[0].Selector - Assert-AreEqual $managedRule1.RuleSetType $retrievedPolicy.ManagedRules[0].RuleSetType - Assert-AreEqual $managedRule1.RuleSetVersion $retrievedPolicy.ManagedRules[0].RuleSetVersion - Assert-AreEqual $managedRule2.RuleSetType $retrievedPolicy.ManagedRules[1].RuleSetType - Assert-AreEqual $managedRule2.RuleSetVersion $retrievedPolicy.ManagedRules[1].RuleSetVersion - Assert-AreEqual "Enabled" $retrievedPolicy.LogScrubbing.State - Assert-AreEqual $logscrubbingSetting.ScrubbingRule[0].MatchVariable $retrievedPolicy.LogScrubbing.ScrubbingRule[0].MatchVariable - Assert-AreEqual 30 $retrievedPolicy.JavascriptChallengeExpirationInMinutes - Assert-AreEqual 5 $retrievedPolicy.CaptchaExpirationInMinutes - - $customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Log -Priority 2 - $updatedPolicy = Update-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule2 -LogScrubbingSetting @{} - Assert-NotNull $updatedPolicy - Assert-AreEqual $Name $updatedPolicy.Name - Assert-AreEqual $customRule2.Name $updatedPolicy.CustomRules[0].Name - Assert-AreEqual $customRule2.Action $updatedPolicy.CustomRules[0].Action - Assert-AreEqual $customRule2.Priority $updatedPolicy.CustomRules[0].Priority - Assert-AreEqual $managedRule1.RuleGroupOverrides[0].ManagedRuleOverrides[0].Action $updatedPolicy.ManagedRules[0].RuleGroupOverrides[0].ManagedRuleOverrides[0].Action - Assert-Null $updatedPolicy.LogScrubbing - - $customRule3 = New-AzFrontDoorWafCustomRuleObject -Name "Rule3" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Log -Priority 3 -EnabledState Disabled - $updatedPolicy = Update-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule3 - Assert-NotNull $updatedPolicy - Assert-AreEqual $Name $updatedPolicy.Name - Assert-AreEqual $customRule3.Name $updatedPolicy.CustomRules[0].Name - Assert-AreEqual $customRule3.Action $updatedPolicy.CustomRules[0].Action - Assert-AreEqual $customRule3.Priority $updatedPolicy.CustomRules[0].Priority - Assert-AreEqual $customRule3.EnabledState $updatedPolicy.CustomRules[0].EnabledState - Assert-AreEqual $managedRule1.RuleGroupOverrides[0].ManagedRuleOverrides[0].Action $updatedPolicy.ManagedRules[0].RuleGroupOverrides[0].ManagedRuleOverrides[0].Action - - $removed = Remove-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName } "does not exist." -} - -<# -.SYNOPSIS -WAF policy cycle with piping -#> -function Test-PolicyCrudWithPiping -{ - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tag = @{"tag1" = "value1"; "tag2" = "value2"} - $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" - $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 - - $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action Log - $override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride - $managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "1.0" -RuleGroupOverride $override1 - $managedRule2 = New-AzFrontDoorWafManagedRuleObject -Type BotProtection -Version "preview-0.1" - - New-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule1 -ManagedRule $managedRule1,$managedRule2 -EnabledState Enabled -Mode Prevention -RequestBodyCheck Disabled - - $customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Log -Priority 2 - $updatedPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Customrule $customRule2 - Assert-NotNull $updatedPolicy - Assert-AreEqual $Name $updatedPolicy.Name - Assert-AreEqual "Disabled" $updatedPolicy.RequestBodyCheck - Assert-AreEqual $customRule2.Name $updatedPolicy.CustomRules[0].Name - Assert-AreEqual $customRule2.Action $updatedPolicy.CustomRules[0].Action - Assert-AreEqual $customRule2.Priority $updatedPolicy.CustomRules[0].Priority - Assert-AreEqual $managedRule1.RuleGroupOverrides[0].ManagedRuleOverrides[0].Action $updatedPolicy.ManagedRules[0].RuleGroupOverrides[0].ManagedRuleOverrides[0].Action - - $removed = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName } "does not exist." -} - -<# -.SYNOPSIS -WAF managed rule set definitions retrieval -#> -function Test-ManagedRuleSetDefinition -{ - $definitions = Get-AzFrontDoorWafManagedRuleSetDefinition -} - -<# -.SYNOPSIS -Policy Action test -#> -function Test-PolicyAction -{ - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $managedSet = New-AzFrontDoorWafManagedRuleObject -Type Microsoft_DefaultRuleSet -Version 2.0 -RuleGroupOverride $ruleGroupOverride -Action Block # Should use v2.0 but it's not enabled for all subscriptions - New-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -ManagedRule $managedSet -EnabledState Enabled -Mode Prevention -Sku Premium_AzureFrontDoor - $retrievedPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName - - Assert-NotNull $retrievedPolicy - Assert-AreEqual $Name $retrievedPolicy.Name - Assert-AreEqual "Enabled" $retrievedPolicy.RequestBodyCheck - Assert-AreEqual "Block" $retrievedPolicy.ManagedRules[0].RuleSetAction - - $removed = Remove-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -PassThru - Assert-True { $removed } - Assert-ThrowsContains { Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName } "does not exist." -} - -function Test-CustomBlockResponseBody -{ - $Name = getAssetName - $resourceGroup = TestSetup-CreateResourceGroup - $resourceGroupName = $resourceGroup.ResourceGroupName - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" - $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 - - # Create exclusion objects - $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ExcludeInRule" - $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ExcludeInGroup" - $exclusionSet = New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ExcludeInSet" - - $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action Log -Exclusion $exclusionRule - $override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride -Exclusion $exclusionGroup - $managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "1.0" -RuleGroupOverride $override1 -Exclusion $exclusionSet - $managedRule2 = New-AzFrontDoorWafManagedRuleObject -Type BotProtection -Version "preview-0.1" - - New-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -Sku Premium_AzureFrontDoor -Customrule $customRule1 -ManagedRule $managedRule1,$managedRule2 -EnabledState Enabled -Mode Prevention -RequestBodyCheck Disabled -CustomBlockResponseBody "WAF Demo1

WAF Custom Response Page

Please contact us with the below reference ID: {{azure-ref}}

" - - $afdWafPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName - Assert-AreEqual $afdWafPolicy.CustomBlockResponseBody "WAF Demo1

WAF Custom Response Page

Please contact us with the below reference ID: {{azure-ref}}

" - - $afdWafPolicy.CustomBlockResponseBody = "WAF Demo2

WAF Custom Response Page

Please contact us with the below reference ID: {{azure-ref}}

" - $afdWafPolicy | Update-AzFrontDoorWafPolicy - - $retrievedPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName - - Assert-AreEqual $retrievedPolicy.CustomBlockResponseBody "WAF Demo2

WAF Custom Response Page

Please contact us with the below reference ID: {{azure-ref}}

" -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrud.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrud.json deleted file mode 100644 index ee15d97adb54..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrud.json +++ /dev/null @@ -1,2614 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "36c648fa-e0ea-4ab7-8d48-c7452e1270aa" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "bbd97fd5-790c-4d80-8976-39298a818fde" - ], - "x-ms-correlation-request-id": [ - "bbd97fd5-790c-4d80-8976-39298a818fde" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035152Z:bbd97fd5-790c-4d80-8976-39298a818fde" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8DD0D6E422614A97A0A21CD75AD47FFE Ref B: MAA201060513037 Ref C: 2024-05-21T03:51:51Z" - ], - "Date": [ - "Tue, 21 May 2024 03:51:51 GMT" - ], - "Content-Length": [ - "19433" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzMTg3MT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "23aac5d2-07b2-4fa8-9997-746c4e17ca12" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "a61013a0-9566-4f13-a053-32c4c30cf206" - ], - "x-ms-correlation-request-id": [ - "a61013a0-9566-4f13-a053-32c4c30cf206" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035155Z:a61013a0-9566-4f13-a053-32c4c30cf206" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 7EDC6333B2F94E0DB3F923BE15F98C04 Ref B: MAA201060513011 Ref C: 2024-05-21T03:51:52Z" - ], - "Date": [ - "Tue, 21 May 2024 03:51:55 GMT" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871\",\r\n \"name\": \"ps1871\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6de1f7dd-6f3b-4331-ba9a-dbdc9fe98ecc" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-request-id": [ - "b7cc9153-33da-42c4-a326-40d1901bdb32" - ], - "x-ms-correlation-request-id": [ - "b7cc9153-33da-42c4-a326-40d1901bdb32" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035156Z:b7cc9153-33da-42c4-a326-40d1901bdb32" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B3B3725BD36F44788B49E87C9E48004A Ref B: MAA201060514021 Ref C: 2024-05-21T03:51:56Z" - ], - "Date": [ - "Tue, 21 May 2024 03:51:56 GMT" - ], - "Content-Length": [ - "12" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2d4114fa-ce8d-4fd2-b002-a596d692ce50" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "db69aa32-2db8-4de8-8be2-f2a9433446aa" - ], - "x-ms-client-request-id": [ - "2d4114fa-ce8d-4fd2-b002-a596d692ce50" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "55f7fb2b-6d61-4f7e-8639-3f5e69ebf8b1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035217Z:55f7fb2b-6d61-4f7e-8639-3f5e69ebf8b1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A33067D421D54FDA8667B4026D3DE781 Ref B: MAA201060516029 Ref C: 2024-05-21T03:52:16Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:16 GMT" - ], - "Content-Length": [ - "3961" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdoors/ps512\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps512\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"445bb74f-e666-4d0a-acb5-3192c31accbe\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps512.azurefd.net\",\r\n \"friendlyName\": \"ps512\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "de71dd7f-ef8e-4970-b76b-e944769cd1cf" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "47993354-5f38-456c-a419-116431de29cc" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T035235Z:47993354-5f38-456c-a419-116431de29cc" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5027F8737E7545ED8A59BAAB03C8A886 Ref B: MAA201060514053 Ref C: 2024-05-21T03:52:34Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:35 GMT" - ], - "Content-Length": [ - "3959" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdoors/ps512\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps512\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"445bb74f-e666-4d0a-acb5-3192c31accbe\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps512.azurefd.net\",\r\n \"friendlyName\": \"ps512\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczUxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6de1f7dd-6f3b-4331-ba9a-dbdc9fe98ecc" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3038" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps512\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n }\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "74bb0ee6-1c06-4e74-aba4-d4eda6435c73" - ], - "x-ms-client-request-id": [ - "6de1f7dd-6f3b-4331-ba9a-dbdc9fe98ecc" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/c46bca87-9cda-4e2e-91d5-97f055db80a5?api-version=2021-06-01&t=638518603224060457&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9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te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Pvn6YUu0avvaiL9LwxDs0MFP6DKwbI6LblrRMcz4rocd-zd7jk0Dzx93rg8g9fXzR7kPnFdgV0h0WzyX7FS5gKUexJ8i7nC35u6cTju6kpalYz0Z_6FnAm_cgFJQ6uyilUgY6NJI1Hop_p6_yw-hDH6S8d_vzcKup5maln8HSQtEQvVqZxxZF0T1drCKBTraEbwnZBsxS0Bqa0D0crbAg9jUaaOuNGD780MJAAEFmgYl7ZDhnZzdPiLlcNIIQElEaO2ya0UGnC_brD6KRaQH-95XlTTf4gvbcX1-IY0xGutONkjmlXMp2I9NZxAY1PXNxJcGljUEvI_rVQ3TX7p3XQ&h=jy2vbcM7wzBkX40JRVw_OcSU8rEQPUpcV59UCF8Y1UI" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "fbe9c740-a910-480d-b68b-229f9b0f0684" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035202Z:fbe9c740-a910-480d-b68b-229f9b0f0684" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F4AD098D3F1A419D8E1FAB6D3BF92A71 Ref B: MAA201060514021 Ref C: 2024-05-21T03:51:56Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:02 GMT" - ], - "Content-Length": [ - "3954" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdoors/ps512\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps512\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Creating\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"445bb74f-e666-4d0a-acb5-3192c31accbe\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps512.azurefd.net\",\r\n \"friendlyName\": \"ps512\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczUxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2d4114fa-ce8d-4fd2-b002-a596d692ce50" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3036" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps512\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n }\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/8f154eb8-8325-4942-a6e4-4938940438f8/frontdoorresults/ps512?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b6256237-363a-4006-8ec1-d050a859068a" - ], - "x-ms-client-request-id": [ - "2d4114fa-ce8d-4fd2-b002-a596d692ce50" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/8f154eb8-8325-4942-a6e4-4938940438f8?api-version=2021-06-01&t=638518603414106418&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2j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pREMTmsNpgKMcm37DIb5Txts2pYtRtbGbtE49Wefjr6wIZfRv90_NO1CGcq_B9R85TSFbPeIBIPFJyXRbM6yr4uubW6TcZNayYrAU_IyGhppgkah-YQ-pSzfszzawt3xjt1in2uuwXkKtXPqUV_Oqe5ELQxTz8I5n4D2SKclxtySKnvv1icsr_OZeFQPRissBItIag_VkD6dxTV9xhh23Septi_Q4GB4biYE5n3SMpt6u63Z45UIBTgEK9DUFLj6H56HShIUta4dbPAFt499A&h=krtdGQkz7G4VWNGKp0L4tupuuwqqbCxPIDYClWtAsK8" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "7705ea1c-281f-4466-8cca-6ae675f3712c" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035221Z:7705ea1c-281f-4466-8cca-6ae675f3712c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 3EE07B829207472EACED35A154D548B6 Ref B: MAA201060516029 Ref C: 2024-05-21T03:52:17Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:20 GMT" - ], - "Content-Length": [ - "3947" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdoors/ps512\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps512\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"445bb74f-e666-4d0a-acb5-3192c31accbe\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps512.azurefd.net\",\r\n \"friendlyName\": \"ps512\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/c46bca87-9cda-4e2e-91d5-97f055db80a5?api-version=2021-06-01&t=638518603224060457&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_L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jZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UHZuNllVdTBhdnZhaUw5THd4RHMwTUZQNkRLd2JJNkxibHJSTWN6NHJvY2QtemQ3amswRHp4OTNyZzhnOWZYelI3a1BuRmRnVjBoMFd6eVg3RlM1Z0tVZXhKOGk3bkMzNXU2Y1RqdTZrcGFsWXowWl82Rm5BbV9jZ0ZKUTZ1eWlsVWdZNk5KSTFIb3BfcDZfeXctaERINlM4ZF92emNLdXA1bWFsbjhIU1F0RVF2VnFaeHhaRjBUMWRyQ0tCVHJhRWJ3blpCc3hTMEJxYTBEMGNyYkFnOWpVYWFPdU5HRDc4ME1KQUFFRm1nWWw3WkRoblp6ZFBpTGxjTklJUUVsRWFPMnlhMFVHbkNfYnJENktSYVFILTk1WGxUVGY0Z3ZiY1gxLUlZMHhHdXRPTmtqbWxYTXAySTlOWnhBWTFQWE54SmNHbGpVRXZJX3JWUTNUWDdwM1hRJmg9ankydmJjTTd3ekJrWDQwSlJWd19PY1NVOHJFUVBVcGNWNTlVQ0Y4WTFVSQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6de1f7dd-6f3b-4331-ba9a-dbdc9fe98ecc" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b54d9a57-af5c-4dfe-97b4-d0e4ed6d491b" - ], - "x-ms-client-request-id": [ - "6de1f7dd-6f3b-4331-ba9a-dbdc9fe98ecc" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "07e85490-3431-4c4e-82c4-b0305ec7cab2" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035213Z:07e85490-3431-4c4e-82c4-b0305ec7cab2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E28AD2EA384D4F0E84F091F564326C80 Ref B: MAA201060514021 Ref C: 2024-05-21T03:52:12Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:13 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczUxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6de1f7dd-6f3b-4331-ba9a-dbdc9fe98ecc" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d4f82dc2-f264-4473-86a9-b078428c924b" - ], - "x-ms-client-request-id": [ - "6de1f7dd-6f3b-4331-ba9a-dbdc9fe98ecc" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "1efda6e2-114d-48b9-848f-1429035261cb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035214Z:1efda6e2-114d-48b9-848f-1429035261cb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: DE97542469D04A7F881359CD9D2F095E Ref B: MAA201060514021 Ref C: 2024-05-21T03:52:13Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:14 GMT" - ], - "Content-Length": [ - "3949" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdoors/ps512\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps512\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"445bb74f-e666-4d0a-acb5-3192c31accbe\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps512.azurefd.net\",\r\n \"friendlyName\": \"ps512\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczUxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b97ae2a5-418a-4205-bf22-524c801649b1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "fe4b88c4-8685-4091-9b00-5fc9bca4890f" - ], - "x-ms-client-request-id": [ - "b97ae2a5-418a-4205-bf22-524c801649b1" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "72591fd2-1ed2-485d-8d3a-e691869d7343" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035215Z:72591fd2-1ed2-485d-8d3a-e691869d7343" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 3996F3BBED1E4B1EB01BEE64E8596B01 Ref B: MAA201060513033 Ref C: 2024-05-21T03:52:14Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:15 GMT" - ], - "Content-Length": [ - "3949" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdoors/ps512\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps512\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"445bb74f-e666-4d0a-acb5-3192c31accbe\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps512.azurefd.net\",\r\n \"friendlyName\": \"ps512\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczUxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2d4114fa-ce8d-4fd2-b002-a596d692ce50" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d637aa73-3b90-48b2-8329-530989f52090" - ], - "x-ms-client-request-id": [ - "2d4114fa-ce8d-4fd2-b002-a596d692ce50" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "39f51f42-e6a0-4dea-95cf-2ce26856178f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035233Z:39f51f42-e6a0-4dea-95cf-2ce26856178f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9EFB57D92B8B4601A3C7EBECD27A1A4A Ref B: MAA201060516029 Ref C: 2024-05-21T03:52:32Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:33 GMT" - ], - "Content-Length": [ - "3947" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdoors/ps512\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps512\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"445bb74f-e666-4d0a-acb5-3192c31accbe\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/Frontdoors/ps512/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps512.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps512.azurefd.net\",\r\n \"friendlyName\": \"ps512\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczUxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a5767359-1c92-4151-9eff-0f1045e08a4d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1a503697-057a-4796-a55d-718d9e54f9ad" - ], - "x-ms-client-request-id": [ - "a5767359-1c92-4151-9eff-0f1045e08a4d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "f8fc934a-7547-465f-ab1a-0b2fae5c9ea6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035550Z:f8fc934a-7547-465f-ab1a-0b2fae5c9ea6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 408B5B2CCEC74D9E97E76A58B25A99FF Ref B: MAA201060514023 Ref C: 2024-05-21T03:55:48Z" - ], - "Date": [ - "Tue, 21 May 2024 03:55:50 GMT" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/8f154eb8-8325-4942-a6e4-4938940438f8?api-version=2021-06-01&t=638518603414106418&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOC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enphd3QzeGp0MWluMnV1d1hrS3RYUHFVVl9PcWU1RUxReFR6OEk1bjREMlNLY2x4dHlTS252djFpY3NyX09aZUZRUFJpc3NCSXRJYWdfVmtENmR4VFY5eGhoMjNTZXB0aV9RNEdCNGJpWUU1bjNTTXB0NnU2M1o0NVVJQlRnRUs5RFVGTGo2SDU2SFNoSVV0YTRkYlBBRnQ0OTlBJmg9a3J0ZEdRa3o3RzRWV05HS3AwTDR0dXB1dXdxcWJDeFBJRFlDbFd0QXNLOA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2d4114fa-ce8d-4fd2-b002-a596d692ce50" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e4c36992-4d62-4b84-88d4-8012d8de83aa" - ], - "x-ms-client-request-id": [ - "2d4114fa-ce8d-4fd2-b002-a596d692ce50" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "48bd5b12-af57-47fb-b8cd-69d6a1ab0972" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035232Z:48bd5b12-af57-47fb-b8cd-69d6a1ab0972" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E84173B691204A5B8E5787A1CB90E4A9 Ref B: MAA201060516029 Ref C: 2024-05-21T03:52:31Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:31 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1871/providers/Microsoft.Network/frontDoors/ps512?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczUxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2/frontdoorresults/ps512?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c93ea29f-6a87-48f1-a339-cf4c76bcb53d" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4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GEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=hosowi0laJp_ftHeLwMc_psyzUVgbBMIOeqHV-IyNOeD0oMib632Syd9nH-a74WTMcj6pHgEOcsj-0YV_bD4QYZm8Zc7EWOkni3mYCTaCF0N-Gc-D02H58EP6O824tV6tWNisZG-L7PZQ87V4JMp-_t63MapTIJJqPUOzydVsV2ZTefa8w5taMZR2YrcFmZuTwA29Ar4i5X3R3iXKTQRegN2RBd4xtGr8jqAkDd43qOgxLaheFBKusRdUFhA5Wj9XzediFMAenEkoOBtamJO8YvyqLJLrtRdXcqAlfPt31Ms7JyyYV5DcCqryr0WljrJLkIiAP4IegxM1cPKkrGa-w&h=D-ZnxWVVmn8xVSphJcEz-2L4IYrNSycF80QBhzdjBk0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "886f6d5a-ad72-42de-a756-60b0cfcf5959" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035239Z:886f6d5a-ad72-42de-a756-60b0cfcf5959" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 85BF62FF20EC4ACA8193F92D06B62625 Ref B: MAA201060514053 Ref C: 2024-05-21T03:52:35Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:38 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYI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tUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "fe55beae-2ac6-4b82-8244-12a169e462d1" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "fa706201-0291-44c2-a5ec-e60819a88df3" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035250Z:fa706201-0291-44c2-a5ec-e60819a88df3" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D0F7E34083AB4E21A1C3FF4E90D2EC2B Ref B: MAA201060514053 Ref C: 2024-05-21T03:52:49Z" - ], - "Date": [ - "Tue, 21 May 2024 03:52:49 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3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Y1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a6034dcc-74a4-4404-afea-ac7caddd846b" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "f674ee56-7bda-43bd-9ec4-3a1ac03f09af" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035301Z:f674ee56-7bda-43bd-9ec4-3a1ac03f09af" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 52937B31A14446F390745CE18355DEE7 Ref B: MAA201060514053 Ref C: 2024-05-21T03:53:00Z" - ], - "Date": [ - "Tue, 21 May 2024 03:53:00 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version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ion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d2335be9-9641-4728-8b50-6ebb708800c6" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "22be12e8-515b-4245-baff-1d51d8acebfd" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035312Z:22be12e8-515b-4245-baff-1d51d8acebfd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B57A31FABB8141BCA87939487FDE84CF Ref B: MAA201060514053 Ref C: 2024-05-21T03:53:11Z" - ], - "Date": [ - "Tue, 21 May 2024 03:53:12 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0E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RTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9aG9zb3dpMGxhSnBfZnRIZUx3TWNfcHN5elVWZ2JCTUlPZXFIVi1JeU5PZUQwb01pYjYzMlN5ZDluSC1hNzRXVE1jajZwSGdFT2Nzai0wWVZfYkQ0UVlabThaYzdFV09rbmkzbVlDVGFDRjBOLUdjLUQwMkg1OEVQNk84MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9cc9d8e2-d536-4489-8123-c22064a4eb25" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "59a886af-a82a-4de6-9c6f-9d6fa14efffe" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035323Z:59a886af-a82a-4de6-9c6f-9d6fa14efffe" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2DDACF7265544D5CA0E3E8F659375886 Ref B: MAA201060514053 Ref C: 2024-05-21T03:53:22Z" - ], - "Date": [ - "Tue, 21 May 2024 03:53:23 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADgg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cW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9aG9zb3dpMGxhSnBfZnRIZUx3TWNfcHN5elVWZ2JCTUlPZXFIVi1JeU5PZUQwb01pYjYzMlN5ZDluSC1hNzRXVE1jajZwSGdFT2Nzai0wWVZfYkQ0UVlabThaYzdFV09rbmkzbVlDVGFDRjBOLUdjLUQwMkg1OEVQNk84MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "54832ce8-6c38-4c20-9a77-9e6c04579c2c" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "f20e22a9-682f-4849-bb9c-55a14f9a95ab" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035334Z:f20e22a9-682f-4849-bb9c-55a14f9a95ab" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2DC9CB514C2D43AD886A445EF8EA4F27 Ref B: MAA201060514053 Ref C: 2024-05-21T03:53:33Z" - ], - "Date": [ - "Tue, 21 May 2024 03:53:34 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUj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UQwb01pYjYzMlN5ZDluSC1hNzRXVE1jajZwSGdFT2Nzai0wWVZfYkQ0UVlabThaYzdFV09rbmkzbVlDVGFDRjBOLUdjLUQwMkg1OEVQNk84MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9acec843-c58c-4f62-9e6e-ab981b4603ee" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "ddca93f5-73eb-4148-a924-fcd57f6f99a8" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035345Z:ddca93f5-73eb-4148-a924-fcd57f6f99a8" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E51BF74AD3DA4C8DAB1CC0DA7757FA10 Ref B: MAA201060514053 Ref C: 2024-05-21T03:53:44Z" - ], - "Date": [ - "Tue, 21 May 2024 03:53:45 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvh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eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b94c710e-0e18-41c8-84d3-4a9b0ee969e2" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "6915b9d9-961d-473a-bb18-a0dbc0386957" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035356Z:6915b9d9-961d-473a-bb18-a0dbc0386957" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 10152BCD2442428094E5918C2CA150BC Ref B: MAA201060514053 Ref C: 2024-05-21T03:53:55Z" - ], - "Date": [ - "Tue, 21 May 2024 03:53:56 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQC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NxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "86a3181d-a1b8-463f-9235-50fdf19b0a59" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "27aa2c3f-4cd2-43db-b2a8-21dda40055c8" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035407Z:27aa2c3f-4cd2-43db-b2a8-21dda40055c8" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0BE01B1071B54D38AF28CC086FC125C3 Ref B: MAA201060514053 Ref C: 2024-05-21T03:54:06Z" - ], - "Date": [ - "Tue, 21 May 2024 03:54:07 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0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x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c92b087d-5c2d-450d-b7aa-030e85ece36a" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "36b97b53-bc02-4fe8-879a-f8a064d9b7bb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035418Z:36b97b53-bc02-4fe8-879a-f8a064d9b7bb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E15EC364B0114709BC5A3BD271144FFC Ref B: MAA201060514053 Ref C: 2024-05-21T03:54:17Z" - ], - "Date": [ - "Tue, 21 May 2024 03:54:18 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPy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zclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9aG9zb3dpMGxhSnBfZnRIZUx3TWNfcHN5elVWZ2JCTUlPZXFIVi1JeU5PZUQwb01pYjYzMlN5ZDluSC1hNzRXVE1jajZwSGdFT2Nzai0wWVZfYkQ0UVlabThaYzdFV09rbmkzbVlDVGFDRjBOLUdjLUQwMkg1OEVQNk84MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9733489f-cb87-4c94-af30-b38dc2676e60" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "492f5cdc-c3b9-4cbe-80bb-e7dc767c7bef" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035429Z:492f5cdc-c3b9-4cbe-80bb-e7dc767c7bef" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E6A370FB423D4B9B9666653E585DD661 Ref B: MAA201060514053 Ref C: 2024-05-21T03:54:28Z" - ], - "Date": [ - "Tue, 21 May 2024 03:54:29 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25p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mdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9aG9zb3dpMGxhSnBfZnRIZUx3TWNfcHN5elVWZ2JCTUlPZXFIVi1JeU5PZUQwb01pYjYzMlN5ZDluSC1hNzRXVE1jajZwSGdFT2Nzai0wWVZfYkQ0UVlabThaYzdFV09rbmkzbVlDVGFDRjBOLUdjLUQwMkg1OEVQNk84MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "17d7ac9a-00a9-4b96-a048-5e2323699797" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-correlation-request-id": [ - "6230dc24-292a-411f-b505-d85398a1c583" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035440Z:6230dc24-292a-411f-b505-d85398a1c583" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9F6C97BB4C034E3196B6A3E1A5304649 Ref B: MAA201060514053 Ref C: 2024-05-21T03:54:39Z" - ], - "Date": [ - "Tue, 21 May 2024 03:54:40 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf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nM9aG9zb3dpMGxhSnBfZnRIZUx3TWNfcHN5elVWZ2JCTUlPZXFIVi1JeU5PZUQwb01pYjYzMlN5ZDluSC1hNzRXVE1jajZwSGdFT2Nzai0wWVZfYkQ0UVlabThaYzdFV09rbmkzbVlDVGFDRjBOLUdjLUQwMkg1OEVQNk84MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b1bcc583-9bd6-4669-afe1-ea56442f90b7" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "3286609c-3ed7-442a-8f87-22ab033cbcc5" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035451Z:3286609c-3ed7-442a-8f87-22ab033cbcc5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 00AF79A007EB4882BF819E47D4F3441A Ref B: MAA201060514053 Ref C: 2024-05-21T03:54:50Z" - ], - "Date": [ - "Tue, 21 May 2024 03:54:50 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljL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MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "55394dcf-ecf8-4ae6-b5c2-1b8c9157f177" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "4d7d1490-346c-432e-bf97-59b19e59d0e9" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035502Z:4d7d1490-346c-432e-bf97-59b19e59d0e9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2A551742E5EF4F56984F46E2E6EB2EB7 Ref B: MAA201060514053 Ref C: 2024-05-21T03:55:01Z" - ], - "Date": [ - "Tue, 21 May 2024 03:55:01 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHB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S3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9cf46486-67ba-4cc6-bbb9-434fca5b85e5" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d9c16ed8-b052-48b9-973b-1960716ebfb7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035513Z:d9c16ed8-b052-48b9-973b-1960716ebfb7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 44EB972DC6464EA6A19F07718D2E051F Ref B: MAA201060514053 Ref C: 2024-05-21T03:55:12Z" - ], - "Date": [ - "Tue, 21 May 2024 03:55:12 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQl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kw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "772b5b04-3b74-4bea-90c9-7e636b67e9e7" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "8c8d9acf-433c-431a-81de-37f5829d3ea9" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035524Z:8c8d9acf-433c-431a-81de-37f5829d3ea9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D7B65B8E359342AE8F5D139A7DFE523B Ref B: MAA201060514053 Ref C: 2024-05-21T03:55:23Z" - ], - "Date": [ - "Tue, 21 May 2024 03:55:24 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMP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VHODNXa1JVSWxLZEVTSHJVamR1SUVTeENSZGtSWTJudGZfX1MwOWg1XzRsN2YzclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9aG9zb3dpMGxhSnBfZnRIZUx3TWNfcHN5elVWZ2JCTUlPZXFIVi1JeU5PZUQwb01pYjYzMlN5ZDluSC1hNzRXVE1jajZwSGdFT2Nzai0wWVZfYkQ0UVlabThaYzdFV09rbmkzbVlDVGFDRjBOLUdjLUQwMkg1OEVQNk84MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "afd87d75-dc74-44f5-b919-c22ddfd1d12a" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "aa26093b-e879-4a52-9ac4-296600a6866c" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035535Z:aa26093b-e879-4a52-9ac4-296600a6866c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 62E040E94B864D779B2537B51A47E5BE Ref B: MAA201060514053 Ref C: 2024-05-21T03:55:34Z" - ], - "Date": [ - "Tue, 21 May 2024 03:55:35 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2?api-version=2021-06-01&t=638518603591537645&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMD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ZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9aG9zb3dpMGxhSnBfZnRIZUx3TWNfcHN5elVWZ2JCTUlPZXFIVi1JeU5PZUQwb01pYjYzMlN5ZDluSC1hNzRXVE1jajZwSGdFT2Nzai0wWVZfYkQ0UVlabThaYzdFV09rbmkzbVlDVGFDRjBOLUdjLUQwMkg1OEVQNk84MjR0VjZ0V05pc1pHLUw3UFpRODdWNEpNcC1fdDYzTWFwVElKSnFQVU96eWRWc1YyWlRlZmE4dzV0YU1aUjJZcmNGbVp1VHdBMjlBcjRpNVgzUjNpWEtUUVJlZ04yUkJkNHh0R3I4anFBa0RkNDNxT2d4TGFoZUZCS3VzUmRVRmhBNVdqOVh6ZWRpRk1BZW5Fa29PQnRhbUpPOFl2eXFMSkxydFJkWGNxQWxmUHQzMU1zN0p5eVlWNURjQ3FyeXIwV2xqckpMa0lpQVA0SWVneE0xY1BLa3JHYS13Jmg9RC1abnhXVlZtbjh4VlNwaEpjRXotMkw0SVlyTlN5Y0Y4MFFCaHpkakJrMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f50365a1-0cfc-4353-905f-d8914faaa29e" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "f984ad00-4e83-414a-a54d-ffe08af693bf" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035546Z:f984ad00-4e83-414a-a54d-ffe08af693bf" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5F5F44B1B94744A39BF26E5386147BB0 Ref B: MAA201060514053 Ref C: 2024-05-21T03:55:45Z" - ], - "Date": [ - "Tue, 21 May 2024 03:55:46 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871/providers/Microsoft.Network/frontdooroperationresults/b262f84e-c6e0-4632-a0ac-59dc3237d2a2/frontdoorresults/ps512?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzMTg3MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnRkb29yb3BlcmF0aW9ucmVzdWx0cy9iMjYyZjg0ZS1jNmUwLTQ2MzItYTBhYy01OWRjMzIzN2QyYTIvZnJvbnRkb29ycmVzdWx0cy9wczUxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1c00747e-73c8-4963-9833-d66352aa987a" - ], - "x-ms-client-request-id": [ - "4f01cff9-86e5-4562-8bbb-68325c930aa4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "a0cbc45e-6945-43cf-bde0-047e004a53bb" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T035547Z:a0cbc45e-6945-43cf-bde0-047e004a53bb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6F96E2844EAF4D28BB762909A3D5B6D1 Ref B: MAA201060514053 Ref C: 2024-05-21T03:55:46Z" - ], - "Date": [ - "Tue, 21 May 2024 03:55:47 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1871?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzMTg3MT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "db22f87c-2cec-45e9-a156-0890559b7677" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518605553590608&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYB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aAyEioBUM5X6GPjTz00H8_dUAd9bPgwah9Cds7wUyymA&h=gaAdxBVwLIr67MDropRXOCzWGhw7w9ccnyb9T_Sqisw" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "0edaab54-47cf-4ed0-90f8-8a58d0032c28" - ], - "x-ms-correlation-request-id": [ - "0edaab54-47cf-4ed0-90f8-8a58d0032c28" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035555Z:0edaab54-47cf-4ed0-90f8-8a58d0032c28" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B1F0F4138C8141BEBB4D054398B239BB Ref B: MAA201060513031 Ref C: 2024-05-21T03:55:50Z" - ], - "Date": [ - "Tue, 21 May 2024 03:55:54 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518605553590608&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNv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2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9aU5fZTZTU0lVajQxRml4TWt2UHM0VlBERzhWTnkzQVE0Z0VqNVE0NXJ1TFVKVFl6REpJWHhzRXhlVzU3bFl4TFhubDkxWWlHcVFXaGx3aF8teVBlbmFPVUFjRHI1Z25MOEI5OXkwb3JXUFZtQ2luNlp3Q0R6dXBBd3RNWHpvN05mdFowNl9YTzJLRkRrbUpRLU81NmhiR0laMUVMV2tSR3RyWlNHNHNULXpFLU42RmxweWYzdExuSWUyUHNmZnZDNXh5RFhLNGRCNEoxbXoyaW5IR2dzSjhiVGYzcjh2RGZqM25rdVMtb3lkVkVrU09mVjZzNi1OVzdBdkhPcHkyYU5sb2hqOUlWU3pXeDhOT0tMUDZaVlBwWWtHc0JSMkRwR1hXQUpkb3dwRmFBeUVpb0JVTTVYNkdQalR6MDBIOF9kVUFkOWJQZ3dhaDlDZHM3d1V5eW1BJmg9Z2FBZHhCVndMSXI2N01Ecm9wUlhPQ3pXR2h3N3c5Y2NueWI5VF9TcWlzdw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518605712240987&c=MIIHpTCCBo2g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CN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=IQzFB8TdGac5c4wfa1uoASPGcdVoNqnW04KGqHLsQxLU6gFKSrhjZXn5CuMYbg3XZLZqO8PyxEi9VoQlFs9KXqNH6OWqHCJHtrtbM2TfvHKzbrSGkWeoEAOzKZbJllPb4iFaSuAl5plf5KcAu-ziNFNs4EGqptSNn86IYbdH_-mRJNYxQWnZnNbHgADwGR8RBpW7wCDjBvmCTvl_80_BZUiGIt8y4ZsXtyTKrXgg87n8AAfPfPAW-32FrsAQYMhozESWy-7G1zZn027NBinY5MzZUhX15mvpg3dMMpmrj57QiHCIr8zWFA0h228apPSqnpDr2uoaIpXuHMeZdlPMcw&h=ruWgg3kehWjjud69vVkAUZ_71OulZKKiFRwKI1GhdEo" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "321b3bab-0dae-47e3-80be-ffc6b4705540" - ], - "x-ms-correlation-request-id": [ - "321b3bab-0dae-47e3-80be-ffc6b4705540" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035611Z:321b3bab-0dae-47e3-80be-ffc6b4705540" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 661D641161C542A99719180BED25149D Ref B: MAA201060513031 Ref C: 2024-05-21T03:56:10Z" - ], - "Date": [ - "Tue, 21 May 2024 03:56:10 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518605712240987&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClq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NBdS16aU5GTnM0RUdxcHRTTm44NklZYmRIXy1tUkpOWXhRV25abk5iSGdBRHdHUjhSQnBXN3dDRGpCdm1DVHZsXzgwX0JaVWlHSXQ4eTRac1h0eVRLclhnZzg3bjhBQWZQZlBBVy0zMkZyc0FRWU1ob3pFU1d5LTdHMXpabjAyN05CaW5ZNU16WlVoWDE1bXZwZzNkTU1wbXJqNTdRaUhDSXI4eldGQTBoMjI4YXBQU3FucERyMnVvYUlwWHVITWVaZGxQTWN3Jmg9cnVXZ2cza2VoV2pqdWQ2OXZWa0FVWl83MU91bFpLS2lGUndLSTFHaGRFbw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518605871807763&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_Lg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2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=QspYWtgWpllo4-rAGOAt2zziHQcW-lsrGMckIcr0rggFHW4gjlFZwk8Drh_VLHemClOK7BbPxtUzFzOQDlGWY-CuasOcrUCltA31o7nG7FQTvj3vUZZbpVHjZoOL2GqZMhCNPYpZ4M94OjkA0H_5xcQI7ESCgbUYaC-A0Z86F3eI7kOoSsBYZZW24hGNGiIv5-21KuPpg7k5LYsTgtWMglY9XFMPUTT8fyNuL9SkJ8NwF91mx_zeIAPxiCQSNtl1vtzULE17u4ufZwt0UNbnuAFPauTNQhYDPQlHBmO79KPOR4HKYahZFlePyjN5qypUAnk7b13VUOdeZswzTa4fCA&h=iDvfZiSYK5iKTQ3qdG08Y7RbPCQ2cA9c0aXvPtpqGJs" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "c228dd86-cf32-400b-9b45-c5144cdf7b7f" - ], - "x-ms-correlation-request-id": [ - "c228dd86-cf32-400b-9b45-c5144cdf7b7f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035627Z:c228dd86-cf32-400b-9b45-c5144cdf7b7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: DE2DA329406944C2BB98CBBD2F0EA778 Ref B: MAA201060513031 Ref C: 2024-05-21T03:56:26Z" - ], - "Date": [ - "Tue, 21 May 2024 03:56:26 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb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h2UHRwcUdKcw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518606031326954&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEA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GItYdhp3XpJS9mBqO0wBFZ4xDAsKV8mffhZP-KCafr7AovdYR_xaQsvaX0HM1M4jD4WT7z5Y69BC5A9skpYze-H8NWUraIvm9QnbQ5K2HcT_1WpYfVtJSX1p5T56UYcm3UxSWWAzPTAfg&h=Qz28wiLumTWNs079uBzm0ZNVX7FrwdgXOlC0p3vgN4I" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "d8ab4e47-fe6a-4c8a-a8ec-5d0a161f3919" - ], - "x-ms-correlation-request-id": [ - "d8ab4e47-fe6a-4c8a-a8ec-5d0a161f3919" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035643Z:d8ab4e47-fe6a-4c8a-a8ec-5d0a161f3919" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 91164DD697B04B4BB263ACF3EE2DCECB Ref B: MAA201060513031 Ref C: 2024-05-21T03:56:42Z" - ], - "Date": [ - "Tue, 21 May 2024 03:56:42 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518606031326954&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI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3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9YVFyei10bkxuS082SldacVlRSmZVVi1SeFpDbVdxSGhqNjVfX3F6YzhaWWhUOXU5dVdRTzRBOGNLQU5GdEtZekZYVDBmSm02a1Zqd18wYWc0TUVqV3Mzak1ITnFpbzBoOEVjdVhEcEZ3V0NnUGk0TXR3YVdFZF9kdWVLV0Q5SlladWwyZHQ4SVhvXzRybDRsM3p4WVBKOTh1NlRnZ3h3cnl3bjVhSmNmNG1FdGM1OUtTMi1jZTRmblZnaWh5S2FYN0k5aHViSFJsR0l0WWRocDNYcEpTOW1CcU8wd0JGWjR4REFzS1Y4bWZmaFpQLUtDYWZyN0FvdmRZUl94YVFzdmFYMEhNMU00akQ0V1Q3ejVZNjlCQzVBOXNrcFl6ZS1IOE5XVXJhSXZtOVFuYlE1SzJIY1RfMVdwWWZWdEpTWDFwNVQ1NlVZY20zVXhTV1dBelBUQWZnJmg9UXoyOHdpTHVtVFdOczA3OXVCem0wWk5WWDdGcndkZ1hPbEMwcDN2Z040SQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUk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ADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=UMyidTAiE9yrOmC_5afjQjEef2fsKEZoKw9_oKCjhYKzYpthjNEhmgSFJYassuaC6viH4SPuy_650Mgs02NgdLgiAezbzR8-T5fqYOnPmTW1ypoG9Zln7SUip2LyIvMOPehoyHAaXQp-mZ57KxGb8z5-eokpmIOVyZdTuMWGdE0JQJPJ4EAHQFmBgRUVaAKQ9COb6YLozI3AnAoysixN8Jw2V_9lrLvFvk0-ibEEpdjxXOrFWb4BdITuk41pq6qTbaZDNCgrS0h7QB24FAZrZhKagiAmjrgAoVre5WpAi_gqd4o77wsgM96NwDIX8sSwfuwpJf8A9Mle7uIG9k3xFA&h=uKcnLHZ3NOCfzU3rcPWOc9T88W3aK2z8FWd5wVNXj4k" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "37d1c195-ce30-429b-beb1-95754ff07d31" - ], - "x-ms-correlation-request-id": [ - "37d1c195-ce30-429b-beb1-95754ff07d31" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035659Z:37d1c195-ce30-429b-beb1-95754ff07d31" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 4BBBB8C2EF454631826FCA144E7B2A7A Ref B: MAA201060513031 Ref C: 2024-05-21T03:56:58Z" - ], - "Date": [ - "Tue, 21 May 2024 03:56:58 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518606192264497&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCw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U0ZKWWFzc3VhQzZ2aUg0U1B1eV82NTBNZ3MwMk5nZExnaUFlemJ6UjgtVDVmcVlPblBtVFcxeXBvRzlabG43U1VpcDJMeUl2TU9QZWhveUhBYVhRcC1tWjU3S3hHYjh6NS1lb2twbUlPVnlaZFR1TVdHZEUwSlFKUEo0RUFIUUZtQmdSVVZhQUtROUNPYjZZTG96STNBbkFveXNpeE44SncyVl85bHJMdkZ2azAtaWJFRXBkanhYT3JGV2I0QmRJVHVrNDFwcTZxVGJhWkROQ2dyUzBoN1FCMjRGQVpyWmhLYWdpQW1qcmdBb1ZyZTVXcEFpX2dxZDRvNzd3c2dNOTZOd0RJWDhzU3dmdXdwSmY4QTlNbGU3dUlHOWszeEZBJmg9dUtjbkxIWjNOT0NmelUzcmNQV09jOVQ4OFczYUsyejhGV2Q1d1ZOWGo0aw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "28b743fd-20cc-4b0c-94de-1b491ad3edda" - ], - "x-ms-correlation-request-id": [ - "28b743fd-20cc-4b0c-94de-1b491ad3edda" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035715Z:28b743fd-20cc-4b0c-94de-1b491ad3edda" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5E6615FAD84646538E7E62E45D0FDC40 Ref B: MAA201060513031 Ref C: 2024-05-21T03:57:14Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:14 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE4NzEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518606192264497&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAW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b1ZyZTVXcEFpX2dxZDRvNzd3c2dNOTZOd0RJWDhzU3dmdXdwSmY4QTlNbGU3dUlHOWszeEZBJmg9dUtjbkxIWjNOT0NmelUzcmNQV09jOVQ4OFczYUsyejhGV2Q1d1ZOWGo0aw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "34b8760e-3937-4397-a642-7c0d9fd1703e" - ], - "x-ms-correlation-request-id": [ - "34b8760e-3937-4397-a642-7c0d9fd1703e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035716Z:34b8760e-3937-4397-a642-7c0d9fd1703e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 35A448831B0547BBB0A6066025C06FFC Ref B: MAA201060513031 Ref C: 2024-05-21T03:57:15Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:15 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": { - "Test-FrontDoorCrud": [ - "ps512", - "ps1871" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudDefaults.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudDefaults.json deleted file mode 100644 index 41b9ae8a9218..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudDefaults.json +++ /dev/null @@ -1,2923 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "19b5f606-3746-495a-b3e8-cff0f4328135" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "94913abb-d4ad-45ff-b7a8-aa7c31121b14" - ], - "x-ms-correlation-request-id": [ - "94913abb-d4ad-45ff-b7a8-aa7c31121b14" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033629Z:94913abb-d4ad-45ff-b7a8-aa7c31121b14" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 08035FAE61284F65B80D5207212FCBAF Ref B: MAA201060515029 Ref C: 2024-05-21T03:36:28Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:29 GMT" - ], - "Content-Length": [ - "19433" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzOTExMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "cbb82689-40bc-4f6a-acfc-556d51355337" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "8e12a84a-c441-48a3-9851-e6d6def8f69f" - ], - "x-ms-correlation-request-id": [ - "8e12a84a-c441-48a3-9851-e6d6def8f69f" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T033635Z:8e12a84a-c441-48a3-9851-e6d6def8f69f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0FF1F799E13D4C64AA462BEBCBB44D5B Ref B: MAA201060516039 Ref C: 2024-05-21T03:36:30Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:35 GMT" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110\",\r\n \"name\": \"ps9110\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTExMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "88bb56cf-8de0-483d-a9b3-8aa949156469" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "dee4ca9f-7276-43a6-b4b3-0c09da7cac31" - ], - "x-ms-correlation-request-id": [ - "dee4ca9f-7276-43a6-b4b3-0c09da7cac31" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033636Z:dee4ca9f-7276-43a6-b4b3-0c09da7cac31" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F8489B111D9742CB9BAF76ACDC5772E4 Ref B: MAA201060516017 Ref C: 2024-05-21T03:36:35Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:35 GMT" - ], - "Content-Length": [ - "12" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTExMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f4dd4de8-a946-43b1-a616-47112843ba0a" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d071fff0-df45-4ba3-8a96-ed0fe8eacd08" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033657Z:d071fff0-df45-4ba3-8a96-ed0fe8eacd08" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0299099412E64D24B5E3352F23E01D14 Ref B: MAA201060516011 Ref C: 2024-05-21T03:36:56Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:56 GMT" - ], - "Content-Length": [ - "3974" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdoors/ps1061\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1061\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"04e921ed-02ec-48eb-9460-0f81e22dc855\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1061.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1061.azurefd.net\",\r\n \"friendlyName\": \"ps1061\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTExMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczEwNjE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "88bb56cf-8de0-483d-a9b3-8aa949156469" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3043" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps1061\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/BackendPools/backendPool1\"\r\n }\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps1061.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c1381e95-f9ac-4fb2-86ff-37ed9391962c" - ], - "x-ms-client-request-id": [ - "88bb56cf-8de0-483d-a9b3-8aa949156469" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/370b04de-71c2-4bf0-9cb9-deb0ac22c752?api-version=2021-06-01&t=638518594019971114&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTV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I_FAh6H3Kd71kIaALqkYh-Gysg&h=PHV_q_2F2NgQ8m0-5Urig8FF-EdIVq4qmWXHwwCCMbs" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "bc2b3997-df1f-4681-92e7-3f23f54692ec" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033642Z:bc2b3997-df1f-4681-92e7-3f23f54692ec" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 7AAFFBAB741A4889B2ADD2E0B2C71414 Ref B: MAA201060516017 Ref C: 2024-05-21T03:36:36Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:41 GMT" - ], - "Content-Length": [ - "3967" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdoors/ps1061\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1061\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Creating\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"04e921ed-02ec-48eb-9460-0f81e22dc855\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"hostName\": \"ps1061.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1061.azurefd.net\",\r\n \"friendlyName\": \"ps1061\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/370b04de-71c2-4bf0-9cb9-deb0ac22c752?api-version=2021-06-01&t=638518594019971114&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XK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STM1TzRSN3pWbEtYdWFrT1hxS201VXAwbllESUJKMGVhbkJxdFR2LWFfZ2hYb0RqRGx3b0pOVzRqMFFQTkN6NDNHcDhBN1JmUXJXVE9WWWZtWXZSdUNpVldWTTEtd0l6bEJCaWNjbF9HcWFzbHZlVF8tTjZ3RzNIWlZ2eEZ1M2tSVVBBZ1ZWZjMySzNzNHh3LW0xQ0VOUWtublVSbC1wcEVPdmlBR3FxdXJrSF9ZTUNxSkI3cTY4eEpNeV9QYUJOQzRzNkd2YkN0Tmdwa25kNWIyVmVScEZ0bEo4SXBpTklfRkFoNkgzS2Q3MWtJYUFMcWtZaC1HeXNnJmg9UEhWX3FfMkYyTmdROG0wLTVVcmlnOEZGLUVkSVZxNHFtV1hId3dDQ01icw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "88bb56cf-8de0-483d-a9b3-8aa949156469" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9ecf0914-0248-4ba9-901d-464f13325143" - ], - "x-ms-client-request-id": [ - "88bb56cf-8de0-483d-a9b3-8aa949156469" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "d6d88f8c-0cdc-46cf-bf12-6ec66772177e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033653Z:d6d88f8c-0cdc-46cf-bf12-6ec66772177e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: ABC0DB8C7D714B3887068D385E721820 Ref B: MAA201060516017 Ref C: 2024-05-21T03:36:52Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:52 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTExMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczEwNjE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "88bb56cf-8de0-483d-a9b3-8aa949156469" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "de9b47ce-5d36-4986-b30c-cb98116f19ec" - ], - "x-ms-client-request-id": [ - "88bb56cf-8de0-483d-a9b3-8aa949156469" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "864c3d1f-634e-469d-9e81-2758a5bd2566" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033654Z:864c3d1f-634e-469d-9e81-2758a5bd2566" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 207E4BDC6C1148E89EC786CC48823519 Ref B: MAA201060516017 Ref C: 2024-05-21T03:36:53Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:54 GMT" - ], - "Content-Length": [ - "3962" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdoors/ps1061\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1061\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"04e921ed-02ec-48eb-9460-0f81e22dc855\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1061.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1061.azurefd.net\",\r\n \"friendlyName\": \"ps1061\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTExMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczEwNjE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "826d5dab-b853-4179-ada6-67115d84f413" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "bd9a6a72-7c7d-4356-9846-e493be42227e" - ], - "x-ms-client-request-id": [ - "826d5dab-b853-4179-ada6-67115d84f413" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "3a48dedd-df15-4c82-8ad2-649a4f8d3c87" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033656Z:3a48dedd-df15-4c82-8ad2-649a4f8d3c87" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: C7D5F57DBE33491EAC98A25A2F5523F7 Ref B: MAA201060515045 Ref C: 2024-05-21T03:36:54Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:55 GMT" - ], - "Content-Length": [ - "3962" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdoors/ps1061\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1061\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"04e921ed-02ec-48eb-9460-0f81e22dc855\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/Frontdoors/ps1061/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1061.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1061.azurefd.net\",\r\n \"friendlyName\": \"ps1061\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTExMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczEwNjE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5729dedb-89af-458a-8e47-3290f514f94f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "dea99f36-7011-4f18-9ddd-e26c0f783d79" - ], - "x-ms-client-request-id": [ - "5729dedb-89af-458a-8e47-3290f514f94f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "2df49caf-44cd-4c90-a42f-e19156535b74" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034152Z:2df49caf-44cd-4c90-a42f-e19156535b74" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 3D013A9383174EDF9E7BD8A3D3080410 Ref B: MAA201060514011 Ref C: 2024-05-21T03:41:50Z" - ], - "Date": [ - "Tue, 21 May 2024 03:41:52 GMT" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9110/providers/Microsoft.Network/frontDoors/ps1061?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTExMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczEwNjE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264/frontdoorresults/ps1061?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "3da69463-7dca-4a66-a451-ebc3403d851b" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJ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lADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=LlkEpNhNvcHXh6gwnmgGuNay4LJsGyq0K0ZYXW6zyBnghmnCPzdOWhkCdu9x5A21icYr2Zh1nRQQSwVXCs-nAWlxrSrZpM_5ymQe8l7uHkPMS16EYEZrNtkoZI9NttqWaidfdPPll2icJwnXnkdgaOLVh_bpt5QsmfVcxm4g8DYchv_QuX9UCa_QDSn8LGX8v_U7aJzT086njd2PyNfRsjOSBvH7dKodERkwlfC6_10ZQEg7Wr5klyLVTLRToitP8TfgI9lMnRHVqP5DgLJ5IRpFe2ZA52w-DMsdgdJv4ubmmxioiunFBfG-yvD4LyvPZUzbUP0ASL_3l79y1TjnkA&h=KKQtee5HD3gq5FVX6Wo763e1XS9pHoX86knY6o0kEsk" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "300e648c-faef-4015-b998-2619c5445adb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033700Z:300e648c-faef-4015-b998-2619c5445adb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 7FC4E76E953D489993949D567DEB71B3 Ref B: MAA201060516011 Ref C: 2024-05-21T03:36:57Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:59 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du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nOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "6ec8497a-bff5-40ae-aaa4-31a0be56a3e5" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "eca74e5a-3290-49a3-a8fd-12d8f3c1ff4f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033711Z:eca74e5a-3290-49a3-a8fd-12d8f3c1ff4f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 43A82A964C7E4975BD9ECE89907F33F3 Ref B: MAA201060516011 Ref C: 2024-05-21T03:37:10Z" - ], - "Date": [ - "Tue, 21 May 2024 03:37:10 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQ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GdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b12e935b-ab76-4b35-93af-ccac3c579131" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "1992460c-4d7d-4888-9ba5-76298649b969" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033722Z:1992460c-4d7d-4888-9ba5-76298649b969" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: DDB7003BB0E24669A790206923FCA651 Ref B: MAA201060516011 Ref C: 2024-05-21T03:37:21Z" - ], - "Date": [ - "Tue, 21 May 2024 03:37:21 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/front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49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "57c90795-7f3b-4ce5-a815-b7fe58650d6f" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "21024dc9-fc03-44a4-999b-22c91858a476" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033733Z:21024dc9-fc03-44a4-999b-22c91858a476" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D41824E77C724242A653C2DD90D64C9F Ref B: MAA201060516011 Ref C: 2024-05-21T03:37:32Z" - ], - "Date": [ - "Tue, 21 May 2024 03:37:32 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMR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pMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9TGxrRXBOaE52Y0hYaDZnd25tZ0d1TmF5NExKc0d5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "3af97b3f-e63c-48c1-ba19-44ae6eeed2cb" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "120fd768-2fa4-489c-a811-6e1fcc901f28" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T033744Z:120fd768-2fa4-489c-a811-6e1fcc901f28" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F30F13A021964FE8B633CE78EF8F4F94 Ref B: MAA201060516011 Ref C: 2024-05-21T03:37:43Z" - ], - "Date": [ - "Tue, 21 May 2024 03:37:43 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASI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1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9TGxrRXBOaE52Y0hYaDZnd25tZ0d1TmF5NExKc0d5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5b09eb6b-3cd1-4d8a-9d5e-a13c9f738155" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "c782f327-1ca5-4659-9722-bcf521f4e895" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033756Z:c782f327-1ca5-4659-9722-bcf521f4e895" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: FFBC1949E4C844D88D7BD71BA5676BA3 Ref B: MAA201060516011 Ref C: 2024-05-21T03:37:55Z" - ], - "Date": [ - "Tue, 21 May 2024 03:37:55 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS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LMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8c890493-725b-4670-a2b0-4141f16b9c5e" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "f4540679-926b-47c6-9c8a-c980f65d7495" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033807Z:f4540679-926b-47c6-9c8a-c980f65d7495" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 389CDCCDD76B41A2824E2F3870DCC815 Ref B: MAA201060516011 Ref C: 2024-05-21T03:38:06Z" - ], - "Date": [ - "Tue, 21 May 2024 03:38:06 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVt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Y2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2552c990-b3ae-453c-bd10-01a79d61ddcd" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "bd7b5430-0c9c-4234-9853-ab63ec7cf7bd" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T033818Z:bd7b5430-0c9c-4234-9853-ab63ec7cf7bd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8D8AEC9967FB4CCE95F296B108499BFB Ref B: MAA201060516011 Ref C: 2024-05-21T03:38:17Z" - ], - "Date": [ - "Tue, 21 May 2024 03:38:17 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBgg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JtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f0bb5644-1078-499f-9586-e0dca84b7765" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "8bea206f-a2b5-4563-97b5-afd66da947f7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033829Z:8bea206f-a2b5-4563-97b5-afd66da947f7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B9CB3B1A88744E7FB63640144699547B Ref B: MAA201060516011 Ref C: 2024-05-21T03:38:28Z" - ], - "Date": [ - "Tue, 21 May 2024 03:38:28 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperation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f-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cf6076cf-7cb1-4c92-96d6-433f6b8081c1" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "9a4f54dc-34f2-4fc5-9698-f64e3acb1261" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033840Z:9a4f54dc-34f2-4fc5-9698-f64e3acb1261" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 48A1F6D5DB3542C298DEEB1B52CC5D07 Ref B: MAA201060516011 Ref C: 2024-05-21T03:38:39Z" - ], - "Date": [ - "Tue, 21 May 2024 03:38:40 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyL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2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9TGxrRXBOaE52Y0hYaDZnd25tZ0d1TmF5NExKc0d5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4047173d-5711-44e3-b251-26a6cc440179" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "8f8dab27-bc68-4e4a-a75a-12e777609222" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T033851Z:8f8dab27-bc68-4e4a-a75a-12e777609222" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: ABE48E098D20416D86371585B32298FA Ref B: MAA201060516011 Ref C: 2024-05-21T03:38:50Z" - ], - "Date": [ - "Tue, 21 May 2024 03:38:51 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCAS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W1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9TGxrRXBOaE52Y0hYaDZnd25tZ0d1TmF5NExKc0d5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "bed345e8-bf95-4169-a6ce-95e0448679c4" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "f80f2d5d-51c3-41b1-864e-a2f5fec403dd" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033902Z:f80f2d5d-51c3-41b1-864e-a2f5fec403dd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0DC36FC9D483451AAC468ADE8C2FB610 Ref B: MAA201060516011 Ref C: 2024-05-21T03:39:01Z" - ], - "Date": [ - "Tue, 21 May 2024 03:39:02 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXlt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5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2f161dba-d04b-4505-8fbd-319996e29870" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d1b808f3-4947-41f8-8562-4498378e3288" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033913Z:d1b808f3-4947-41f8-8562-4498378e3288" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8E381D13E696451DABF7569EC624FCDD Ref B: MAA201060516011 Ref C: 2024-05-21T03:39:12Z" - ], - "Date": [ - "Tue, 21 May 2024 03:39:13 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1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2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9dc7e51d-84f7-4336-9d28-71f7664bb70d" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "91a8b171-5777-47b5-9a2c-7826b8c69a3c" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033924Z:91a8b171-5777-47b5-9a2c-7826b8c69a3c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 550B59676B56469586CE355D57DBD495 Ref B: MAA201060516011 Ref C: 2024-05-21T03:39:23Z" - ], - "Date": [ - "Tue, 21 May 2024 03:39:24 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQ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kZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c3c751b7-65b4-4ff5-bf26-ca3b703bcf7c" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "e1e29c16-1036-4984-87fa-93ca3b392035" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033935Z:e1e29c16-1036-4984-87fa-93ca3b392035" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: C7672C24ADA3426B83A9DA0AFBD5A9AA Ref B: MAA201060516011 Ref C: 2024-05-21T03:39:34Z" - ], - "Date": [ - "Tue, 21 May 2024 03:39:35 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationres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-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "71463944-04a3-4b10-b312-5d22d33c4abc" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "34318794-10b8-473e-9fe8-dc4538e020b7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033946Z:34318794-10b8-473e-9fe8-dc4538e020b7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6D9D5F49BACC4987A05AB66B86A328AD Ref B: MAA201060516011 Ref C: 2024-05-21T03:39:45Z" - ], - "Date": [ - "Tue, 21 May 2024 03:39:46 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwF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3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9TGxrRXBOaE52Y0hYaDZnd25tZ0d1TmF5NExKc0d5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "0905a021-04c5-482b-8856-16547d7340fe" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "97bf44c6-6e06-44c4-a62b-32f0ef0b6b47" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033958Z:97bf44c6-6e06-44c4-a62b-32f0ef0b6b47" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F6D5F95A178645B8A38B769ABFD1F07E Ref B: MAA201060516011 Ref C: 2024-05-21T03:39:56Z" - ], - "Date": [ - "Tue, 21 May 2024 03:39:58 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwD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UXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9TGxrRXBOaE52Y0hYaDZnd25tZ0d1TmF5NExKc0d5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4585ec50-ecc6-4bfb-83ac-428d31da526e" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "b942b38d-68de-4064-8997-647ee0fe100f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034009Z:b942b38d-68de-4064-8997-647ee0fe100f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 79B3AB202BBD4948BB0004DB29307C47 Ref B: MAA201060516011 Ref C: 2024-05-21T03:40:08Z" - ], - "Date": [ - "Tue, 21 May 2024 03:40:09 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjU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lCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2bc7a887-2a78-4486-aaf6-0d639a922fb4" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "963c15c0-063b-4992-9378-5878e7f30d56" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034020Z:963c15c0-063b-4992-9378-5878e7f30d56" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8A7B451268214145A3A288FA72251C48 Ref B: MAA201060516011 Ref C: 2024-05-21T03:40:19Z" - ], - "Date": [ - "Tue, 21 May 2024 03:40:20 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCB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2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "82630c55-691d-4c72-a68c-8cd0c2bb9a29" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "67b83e6a-dc12-497a-92fe-da5d3922b2dc" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T034031Z:67b83e6a-dc12-497a-92fe-da5d3922b2dc" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 710C50650853418BB13F367F3BDEB4CB Ref B: MAA201060516011 Ref C: 2024-05-21T03:40:30Z" - ], - "Date": [ - "Tue, 21 May 2024 03:40:31 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHI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ENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5f1894f0-7836-465a-9f9c-493d401d17d7" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "eed749f5-d833-4f1a-8d8e-e87f3cd91983" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034042Z:eed749f5-d833-4f1a-8d8e-e87f3cd91983" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 292D638C26864A14A334400DB7513C9F Ref B: MAA201060516011 Ref C: 2024-05-21T03:40:41Z" - ], - "Date": [ - "Tue, 21 May 2024 03:40:42 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-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-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "dd1a124e-230f-448e-822a-de2b80ea04d6" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "abfbfa78-3aac-4b68-b3e2-cd9f3cc3f333" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034053Z:abfbfa78-3aac-4b68-b3e2-cd9f3cc3f333" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: AD82348AE2FB4AB9AD089385B7BA310A Ref B: MAA201060516011 Ref C: 2024-05-21T03:40:52Z" - ], - "Date": [ - "Tue, 21 May 2024 03:40:53 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYD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V2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9TGxrRXBOaE52Y0hYaDZnd25tZ0d1TmF5NExKc0d5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "eddce83b-80ef-4c80-ac6a-bbee4bf9754b" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "2465394e-7b1d-4e55-abc2-996d35ef6df8" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034104Z:2465394e-7b1d-4e55-abc2-996d35ef6df8" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B262C5C682894B7482654A4355FFDD06 Ref B: MAA201060516011 Ref C: 2024-05-21T03:41:03Z" - ], - "Date": [ - "Tue, 21 May 2024 03:41:04 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZ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hYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9TGxrRXBOaE52Y0hYaDZnd25tZ0d1TmF5NExKc0d5cTBLMFpZWFc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c3ce4390-14a4-487d-9758-ec4c2de93fad" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "e4df5f06-f83b-42ae-bef9-d797e9b0c08e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034115Z:e4df5f06-f83b-42ae-bef9-d797e9b0c08e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 70B3C0DC22DB43829A8415DA44A30866 Ref B: MAA201060516011 Ref C: 2024-05-21T03:41:14Z" - ], - "Date": [ - "Tue, 21 May 2024 03:41:15 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32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Fc2enlCbmdobW5DUHpkT1doa0NkdTl4NUEyMWljWXIyWmgxblJRUVN3VlhDcy1uQVdseHJTclpwTV81eW1RZThsN3VIa1BNUzE2RVlFWnJOdGtvWkk5TnR0cVdhaWRmZFBQbGwyaWNKd25YbmtkZ2FPTFZoX2JwdDVRc21mVmN4bTRnOERZY2h2X1F1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "fd9fd8fe-869b-4db6-9cd7-702cad5a9539" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "45c61345-5dc6-49df-b710-19a966fc5593" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034126Z:45c61345-5dc6-49df-b710-19a966fc5593" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: AC64E139916341F3B9D5013ECBAB4356 Ref B: MAA201060516011 Ref C: 2024-05-21T03:41:25Z" - ], - "Date": [ - "Tue, 21 May 2024 03:41:26 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAw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1WDlVQ2FfUURTbjhMR1g4dl9VN2FKelQwODZuamQyUHlOZlJzak9TQnZIN2RLb2RFUmt3bGZDNl8xMFpRRWc3V3I1a2x5TFZUTFJUb2l0UDhUZmdJOWxNblJIVnFQNURnTEo1SVJwRmUyWkE1MnctRE1zZGdkSnY0dWJtbXhpb2l1bkZCZkcteXZENEx5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ac5131e0-9ad7-4889-8a82-e230e68f172c" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "a9a76d08-fe61-418d-b18a-851947259f83" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034137Z:a9a76d08-fe61-418d-b18a-851947259f83" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6C18674B571B47C59D20764C85035FEA Ref B: MAA201060516011 Ref C: 2024-05-21T03:41:36Z" - ], - "Date": [ - "Tue, 21 May 2024 03:41:37 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264?api-version=2021-06-01&t=638518594205385476&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGY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5dlBaVXpiVVAwQVNMXzNsNzl5MVRqbmtBJmg9S0tRdGVlNUhEM2dxNUZWWDZXbzc2M2UxWFM5cEhvWDg2a25ZNm8wa0Vzaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "0aed4dc6-f056-415e-b913-30d876c01b5f" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d3b8541f-b7b4-49fb-b73b-4d204ec09874" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034148Z:d3b8541f-b7b4-49fb-b73b-4d204ec09874" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5F3E9FE42CDE422F8BE075C1AB68A166 Ref B: MAA201060516011 Ref C: 2024-05-21T03:41:47Z" - ], - "Date": [ - "Tue, 21 May 2024 03:41:48 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110/providers/Microsoft.Network/frontdooroperationresults/fab16a61-27c8-474b-85dc-4d9cf82f7264/frontdoorresults/ps1061?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzOTExMC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnRkb29yb3BlcmF0aW9ucmVzdWx0cy9mYWIxNmE2MS0yN2M4LTQ3NGItODVkYy00ZDljZjgyZjcyNjQvZnJvbnRkb29ycmVzdWx0cy9wczEwNjE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4cf65db1-3c64-4b48-a303-c8797ea01dd1" - ], - "x-ms-client-request-id": [ - "563f1c08-1d26-49ec-accf-f79e18e510de" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "6823cc36-f67a-4eb1-9dde-ac743f153a0f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034149Z:6823cc36-f67a-4eb1-9dde-ac743f153a0f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 035FEF8C4E1E4ED6853CD936C998D61F Ref B: MAA201060516011 Ref C: 2024-05-21T03:41:48Z" - ], - "Date": [ - "Tue, 21 May 2024 03:41:49 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9110?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzOTExMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ea78334c-0021-42f4-ae21-5732f7d0d125" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597157489169&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvM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qE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=kXFfnxPLG_gYJ9s8K2lg8SR6QMyZOY9HYTiohA2j08SZrKugAVzHwu8uRsdJi8AtWZzz4BXkcs7JDE0rwtjnajNWA3FkzFnsX5khbaSB7WUWPepIRly871KwAGbK6jgCBoG2EqnQOMi8WxD06IgkEp1rgXfp4M_0qzU_pWI3YPh5SJAk37SyD87lzK4hjLY3i36r-OU4K9ULQcrA-3nYgfd7RwxuAaBcHM2DBEyhmj8-2zSbGyIiHyNdxjH8y7Gue36BXtc5q6BQw321nrEOZ8iWF6KpDzdKOYZPtS_A6JivM8GRnoXIrwb6QHpxBewtWSvTDYugYS9m1gbTEmxGNA&h=p8P3APMDKwS0WJiBbodRA9d5TUDozCjUQRIVC9jE1Ic" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "d928d584-d371-42a3-b22d-742b835a8c5b" - ], - "x-ms-correlation-request-id": [ - "d928d584-d371-42a3-b22d-742b835a8c5b" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034155Z:d928d584-d371-42a3-b22d-742b835a8c5b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E73640F6DA4C4A91AA067B7B1BA49DCC Ref B: MAA201060513049 Ref C: 2024-05-21T03:41:53Z" - ], - "Date": [ - "Tue, 21 May 2024 03:41:55 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6I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"RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597317304113&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcG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YC16x-dNUfLFWEGclJ74KvUoP1uRrEUl4H9-jAxBqeS36Ws3zp4Do9_R4VAW9QJ0J4uWAg4VXThi0VrUVy-9B7MGrqJEEW1UnYQ_zmmwRXB89gLfNYayR3-huvHacg&h=4uZjSkbJPa_PkRYUsoQ8UdFQtS1_rpP27JYIzn7DKik" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "b347a5a6-7267-4538-8488-2de70586bee9" - ], - "x-ms-correlation-request-id": [ - "b347a5a6-7267-4538-8488-2de70586bee9" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034211Z:b347a5a6-7267-4538-8488-2de70586bee9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D5406637439E4BC9B46EC5B861FE5D46 Ref B: MAA201060513049 Ref C: 2024-05-21T03:42:10Z" - ], - "Date": [ - "Tue, 21 May 2024 03:42:11 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597317304113&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDE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S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9WlZWWC1UdmE3dEYxQTRrVU5maFpqMk96UVVfNG9WVlJ0dlNSVzl2WkszTFJfT2djdkxGQXM4Mm4yUTJfbUZwcm5IQU5NcDFkek5IVFNHMGpvcjdiaHFhZ2owV2h5YkxRdV9jR0ZrRmsxc3pHNG40UGdENnVUZm9ST1pHZ3E1UmI2YzhLS0ppTnlKMzliWVlXWS1PaG9YOHdqYmpvaUNOWUNJcVlSLTJ6OTJXWklZRUE3S1RxV0lrT2t6Q3lqU2xqaEtDNEVYajhfdFYzc3V4R0puZzdremNYWUMxNngtZE5VZkxGV0VHY2xKNzRLdlVvUDF1UnJFVWw0SDktakF4QnFlUzM2V3MzenA0RG85X1I0VkFXOVFKMEo0dVdBZzRWWFRoaTBWclVWeS05QjdNR3JxSkVFVzFVbllRX3ptbXdSWEI4OWdMZk5ZYXlSMy1odXZIYWNnJmg9NHVaalNrYkpQYV9Qa1JZVXNvUThVZEZRdFMxX3JwUDI3SllJem43REtpaw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwi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ADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=RP0HdLmu1AtCZOR0zqL7W2jrpUmK1dRR7eO7jrrpEkIIITxLsLiujWhGR_HONU-YV3l7amviU30ZyrtcoeVOx9Q2iYBNZP5_zCPScwAi3TNptaNvSAbwemAmlv52QYRIUVDb8o8zX-r2oa157poipH28GYD5YSmsmE1V4wxYNxhvu_43kB7qZciWL6MaQ51G8de5ktz9XDe_BxvRpBC445_UQW0QiEOq9s2mfCgTHU4iwf0LqM2PVxBSEtpbxC4kHZfB1jML15xRfumuE3FWyHHXsri-Q4xKtFUD98kfJln2Pjy3czKrjktsCS8gfQqhQr2cFDn_NeT9kJUR9Q2oqw&h=mcebnvlVQcrQgziM510QaCfj0obaDNw3iuc9IpKREUE" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "dc3f0ace-7b4f-4400-a52e-5e2d54e373fa" - ], - "x-ms-correlation-request-id": [ - "dc3f0ace-7b4f-4400-a52e-5e2d54e373fa" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034227Z:dc3f0ace-7b4f-4400-a52e-5e2d54e373fa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D46DB11177514D3BA729CF9545737A3E Ref B: MAA201060513049 Ref C: 2024-05-21T03:42:26Z" - ], - "Date": [ - "Tue, 21 May 2024 03:42:27 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597476514233&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI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5aUDVfekNQU2N3QWkzVE5wdGFOdlNBYndlbUFtbHY1MlFZUklVVkRiOG84elgtcjJvYTE1N3BvaXBIMjhHWUQ1WVNtc21FMVY0d3hZTnhodnVfNDNrQjdxWmNpV0w2TWFRNTFHOGRlNWt0ejlYRGVfQnh2UnBCQzQ0NV9VUVcwUWlFT3E5czJtZkNnVEhVNGl3ZjBMcU0yUFZ4QlNFdHBieEM0a0haZkIxak1MMTV4UmZ1bXVFM0ZXeUhIWHNyaS1RNHhLdEZVRDk4a2ZKbG4yUGp5M2N6S3Jqa3RzQ1M4Z2ZRcWhRcjJjRkRuX05lVDlrSlVSOVEyb3F3Jmg9bWNlYm52bFZRY3JRZ3ppTTUxMFFhQ2ZqMG9iYUROdzNpdWM5SXBLUkVVRQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597635165331&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0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ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=HqI6zYA8h7x1QcfNQcm19eknNGXYBQb8Grro5_5VToDMYLLeG9iNDdDgyti8pY8uRKTculBklZBihAhKFlY_D4GW1AjWq8la938JUCZENjxR2Nn6HEoDTBy8vZXuLdopTP3RnYzsP6I7JK1PjVc-G6jwIp3XmXQ1Dh1rrYLKgYm9Rzbk_tQE7BtUX27DwC9f8ZIG_t6h2TNGvK1LBe6cWjRYRpCVV0cP8TKA288K60sKEaxm-_oz36GX4uAHuuia4lJsep_203WhCm4UwuyaTVmQiY6Bu-lq1wnrEfBvhXyGMoLQK3oY6P2jo0GjaNVmVhcYI8H2c4MuxxpSLq3g3A&h=wFp0ksUAzwjGnQ9es5orM9oOMvIj2GN5d15-xJpjLCE" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "c237cdc1-dfc2-4613-97e2-bb547780cf4f" - ], - "x-ms-correlation-request-id": [ - "c237cdc1-dfc2-4613-97e2-bb547780cf4f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034243Z:c237cdc1-dfc2-4613-97e2-bb547780cf4f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1EA676BB12AC4BC18A02901C39260266 Ref B: MAA201060513049 Ref C: 2024-05-21T03:42:42Z" - ], - "Date": [ - "Tue, 21 May 2024 03:42:43 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597635165331&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBz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WaGNZSThIMmM0TXV4eHBTTHEzZzNBJmg9d0ZwMGtzVUF6d2pHblE5ZXM1b3JNOW9PTXZJajJHTjVkMTUteEpwakxDRQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597790323419&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu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GsBC0MZ_tBugOsthb4A8LV43pqVJ4qicUrHMomNw7EIETCKR3C0WdiDoJ5Glpba017MjoaGJwQIquW63fH17FumRlr57zDbsITavMB6SoMoy-4EKQrgLgbTmQBDlc1poVCK2FS9fgdAQM2YQAWro1cp5gcqa1kpz5-60KMiznaDRg9Zg3wpqT6gDMsHXJlpqTJ21Zawgh44xeo1RimyErQqp_PQ&h=Lf9sNU011Qw0LKJywpE5PvfmtBlfRgc4vigi4xAigI4" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "4a285d1e-eaa3-46ed-b41a-77d1c4815bdf" - ], - "x-ms-correlation-request-id": [ - "4a285d1e-eaa3-46ed-b41a-77d1c4815bdf" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034259Z:4a285d1e-eaa3-46ed-b41a-77d1c4815bdf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 59A00CA5CC1C4D50A91D7DEE7DF7778B Ref B: MAA201060513049 Ref C: 2024-05-21T03:42:58Z" - ], - "Date": [ - "Tue, 21 May 2024 03:42:58 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597790323419&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGR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HpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9VDBoWXF1TldKcWZWemFXZFRRME9pbVViMEFpSzZYaHZkSHJ6eEZkQVJGdUMxRjBCMkF5cXVJY3JkaFVtOWNBX2tva2NlVmxFTmVqNG5ibld2eWpNY2pxVXdzdXpIb1V5Znh4SS1oUG01UHBKbXNFSFkyYTZscnNCeDAxR3NCQzBNWl90QnVnT3N0aGI0QThMVjQzcHFWSjRxaWNVckhNb21OdzdFSUVUQ0tSM0MwV2RpRG9KNUdscGJhMDE3TWpvYUdKd1FJcXVXNjNmSDE3RnVtUmxyNTd6RGJzSVRhdk1CNlNvTW95LTRFS1FyZ0xnYlRtUUJEbGMxcG9WQ0syRlM5ZmdkQVFNMllRQVdybzFjcDVnY3FhMWtwejUtNjBLTWl6bmFEUmc5Wmczd3BxVDZnRE1zSFhKbHBxVEoyMVphd2doNDR4ZW8xUmlteUVyUXFwX1BRJmg9TGY5c05VMDExUXcwTEtKeXdwRTVQdmZtdEJsZlJnYzR2aWdpNHhBaWdJNA==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "198b58ea-a1d3-4c54-bfb4-c07ac41426a1" - ], - "x-ms-correlation-request-id": [ - "198b58ea-a1d3-4c54-bfb4-c07ac41426a1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034314Z:198b58ea-a1d3-4c54-bfb4-c07ac41426a1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2258B0A258034169A162E0F19F278EAD Ref B: MAA201060513049 Ref C: 2024-05-21T03:43:14Z" - ], - "Date": [ - "Tue, 21 May 2024 03:43:14 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkxMTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518597790323419&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDP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KcWZWemFXZFRRME9pbVViMEFpSzZYaHZkSHJ6eEZkQVJGdUMxRjBCMkF5cXVJY3JkaFVtOWNBX2tva2NlVmxFTmVqNG5ibld2eWpNY2pxVXdzdXpIb1V5Znh4SS1oUG01UHBKbXNFSFkyYTZscnNCeDAxR3NCQzBNWl90QnVnT3N0aGI0QThMVjQzcHFWSjRxaWNVckhNb21OdzdFSUVUQ0tSM0MwV2RpRG9KNUdscGJhMDE3TWpvYUdKd1FJcXVXNjNmSDE3RnVtUmxyNTd6RGJzSVRhdk1CNlNvTW95LTRFS1FyZ0xnYlRtUUJEbGMxcG9WQ0syRlM5ZmdkQVFNMllRQVdybzFjcDVnY3FhMWtwejUtNjBLTWl6bmFEUmc5Wmczd3BxVDZnRE1zSFhKbHBxVEoyMVphd2doNDR4ZW8xUmlteUVyUXFwX1BRJmg9TGY5c05VMDExUXcwTEtKeXdwRTVQdmZtdEJsZlJnYzR2aWdpNHhBaWdJNA==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "82a720f6-1b3a-47e4-8d87-bf49e1b1594f" - ], - "x-ms-correlation-request-id": [ - "82a720f6-1b3a-47e4-8d87-bf49e1b1594f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034315Z:82a720f6-1b3a-47e4-8d87-bf49e1b1594f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: ACF6AF5292B1433C9B57DBCEC1C1BB28 Ref B: MAA201060513049 Ref C: 2024-05-21T03:43:15Z" - ], - "Date": [ - "Tue, 21 May 2024 03:43:15 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": { - "Test-FrontDoorCrudDefaults": [ - "ps1061", - "ps9110" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudPrivateLink.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudPrivateLink.json deleted file mode 100644 index 93555ce0079c..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudPrivateLink.json +++ /dev/null @@ -1,3121 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16c042ce-f0a0-49ec-b4b2-b16a6bfd45d2" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "454f1584-4caa-4f3b-bef3-ab47eee9c847" - ], - "x-ms-correlation-request-id": [ - "454f1584-4caa-4f3b-bef3-ab47eee9c847" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032332Z:454f1584-4caa-4f3b-bef3-ab47eee9c847" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E8ECF20A4ECD46F6B2CAC864B3514E49 Ref B: MAA201060513049 Ref C: 2024-05-21T03:23:31Z" - ], - "Date": [ - "Tue, 21 May 2024 03:23:32 GMT" - ], - "Content-Length": [ - "19433" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzNTU4P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "26a58b4c-838a-4767-98a9-9b3d69fb90df" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "9e4409c4-5873-409e-bedc-8d19b48e436d" - ], - "x-ms-correlation-request-id": [ - "9e4409c4-5873-409e-bedc-8d19b48e436d" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032337Z:9e4409c4-5873-409e-bedc-8d19b48e436d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2DC30CC00C184192AE3890FBD09976ED Ref B: MAA201060513017 Ref C: 2024-05-21T03:23:33Z" - ], - "Date": [ - "Tue, 21 May 2024 03:23:36 GMT" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558\",\r\n \"name\": \"ps558\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTU4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "7b835cdd-9e37-48e8-926e-f1eb4e8c24dd" - ], - "x-ms-correlation-request-id": [ - "7b835cdd-9e37-48e8-926e-f1eb4e8c24dd" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032337Z:7b835cdd-9e37-48e8-926e-f1eb4e8c24dd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A797D80B698A410D9C258AE1072D9612 Ref B: MAA201060514017 Ref C: 2024-05-21T03:23:37Z" - ], - "Date": [ - "Tue, 21 May 2024 03:23:37 GMT" - ], - "Content-Length": [ - "12" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTU4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "85e9f458-0b0e-4cdc-8897-9a02c673242e" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "8e713d80-2227-49ea-90f6-cdbdf6144e86" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032540Z:8e713d80-2227-49ea-90f6-cdbdf6144e86" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 171CAAB483B94E9E9EC0D23CD7943600 Ref B: MAA201060513053 Ref C: 2024-05-21T03:25:39Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:39 GMT" - ], - "Content-Length": [ - "4567" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdoors/ps9736\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps9736\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"f775030e-303c-44fe-a53b-679c136a8cdf\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"20.81.102.49\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"20.81.102.49\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": \"pls-service1.854b143c-1d50-4008-b778-694fbcfd4154.eastus.azure.privatelinkservice\",\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": \"please approve connection\"\r\n },\r\n {\r\n \"address\": \"plstestcli.blob.core.windows.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"plstestcli.blob.core.windows.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Storage/storageAccounts/plstestcli/privateLinkResources/blob\",\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": \"please approve connection request\"\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps9736.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps9736.azurefd.net\",\r\n \"friendlyName\": \"ps9736\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTU4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL3BzOTczNj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3875" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps9736\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/BackendPools/backendPool1\"\r\n }\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"20.81.102.49\",\r\n \"privateLinkAlias\": \"pls-service1.854b143c-1d50-4008-b778-694fbcfd4154.eastus.azure.privatelinkservice\",\r\n \"privateLinkApprovalMessage\": \"please approve connection\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"20.81.102.49\"\r\n },\r\n {\r\n \"address\": \"plstestcli.blob.core.windows.net\",\r\n \"privateLinkResourceId\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Storage/storageAccounts/plstestcli/privateLinkResources/blob\",\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateLinkApprovalMessage\": \"please approve connection request\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"plstestcli.blob.core.windows.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps9736.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "65be627e-2d4b-490a-a2d5-9babb48b73b4" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMt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Buiz16zGGOo06ZNbchE0rVpLfq7KMMeAviMu5QXMJlfjsLHlzVUj5X_mJs_tcfXQpMjmCNttXeJiQbjafaMuPo1i1GWD19rJ1DSP0LlhqhNBEWf2AwdJb9P3-cK5xKSL6kiX_MtL37tvZ-cYR6TOHHfCg&h=61SazRjZkesps6Pw6Pss1Q30blCvQE4J9VyjocDMsq8" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "e7d5bc4e-bfc1-4f71-8448-49a62fe95572" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032344Z:e7d5bc4e-bfc1-4f71-8448-49a62fe95572" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9999B283676E46E6AF4B8A2F5B4F61FA Ref B: MAA201060514017 Ref C: 2024-05-21T03:23:38Z" - ], - "Date": [ - "Tue, 21 May 2024 03:23:43 GMT" - ], - "Content-Length": [ - "4560" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdoors/ps9736\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps9736\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Creating\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"f775030e-303c-44fe-a53b-679c136a8cdf\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"20.81.102.49\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"20.81.102.49\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": \"pls-service1.854b143c-1d50-4008-b778-694fbcfd4154.eastus.azure.privatelinkservice\",\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": \"please approve connection\"\r\n },\r\n {\r\n \"address\": \"plstestcli.blob.core.windows.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"plstestcli.blob.core.windows.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Storage/storageAccounts/plstestcli/privateLinkResources/blob\",\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": \"please approve connection request\"\r\n }\r\n ],\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"hostName\": \"ps9736.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps9736.azurefd.net\",\r\n \"friendlyName\": \"ps9736\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQ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VN4Q1Jka1JZMm50Zl9fUzA5aDVfNGw3ZjNyVDBqcEhYdy1fOGRVckFibjQzak1pUW1CMkxYekxveUlXYUxhZ1QxOEZfd2JVQW1STVUxbTFXRUpFNjZuZ3Q4bXg0MDctU1JLejZyS2FQVUNEMnotd0llU09jYVhYWTdLYlJWVXRiUFM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1TR3c3Vnd2YTMySW5hb3ZVaTc2V3J2U3dSeVFORVVuZmVWRmFWLWV4cS0wdjA0eVY3UVJUZXpNMU5XWURENW02MHVNbFpDN09QNXpYcEcxb2Rjay1zSDlxdGNRMFdOMzRBdWZSWDFtbHk5aHdaSENPd1JTRGRlTUNnYWZhc1JrdS1kRFdUQl9MREFqRDYwaWVWUmxydkpkVFFFN05HLXhxZDZmaDFwZUw0TDB0LXc2UEp4Tzl3U3BXdWNxbFRCdWl6MTZ6R0dPbzA2Wk5iY2hFMHJWcExmcTdLTU1lQXZpTXU1UVhNSmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "fdd59f9b-c403-4b26-a931-a54f45fda1e2" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "5610a0cd-9737-4be2-9a42-68cb9f62b34e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032355Z:5610a0cd-9737-4be2-9a42-68cb9f62b34e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E35B9588DA5748E3925E59CE17C0E9DC Ref B: MAA201060514017 Ref C: 2024-05-21T03:23:54Z" - ], - "Date": [ - "Tue, 21 May 2024 03:23:54 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4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FM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1TR3c3Vnd2YTMySW5hb3ZVaTc2V3J2U3dSeVFORVVuZmVWRmFWLWV4cS0wdjA0eVY3UVJUZXpNMU5XWURENW02MHVNbFpDN09QNXpYcEcxb2Rjay1zSDlxdGNRMFdOMzRBdWZSWDFtbHk5aHdaSENPd1JTRGRlTUNnYWZhc1JrdS1kRFdUQl9MREFqRDYwaWVWUmxydkpkVFFFN05HLXhxZDZmaDFwZUw0TDB0LXc2UEp4Tzl3U3BXdWNxbFRCdWl6MTZ6R0dPbzA2Wk5iY2hFMHJWcExmcTdLTU1lQXZpTXU1UVhNSmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d45a11a1-6ce0-40a9-ab69-102523d05241" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "56cc655b-1a32-44b1-aa86-9cab8b24d693" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T032406Z:56cc655b-1a32-44b1-aa86-9cab8b24d693" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B46DED184E4746A2BE71181601553BFD Ref B: MAA201060514017 Ref C: 2024-05-21T03:24:05Z" - ], - "Date": [ - "Tue, 21 May 2024 03:24:06 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDs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WRFaGs0bVdlTk1FeVdzbTVSTEEmcz1TR3c3Vnd2YTMySW5hb3ZVaTc2V3J2U3dSeVFORVVuZmVWRmFWLWV4cS0wdjA0eVY3UVJUZXpNMU5XWURENW02MHVNbFpDN09QNXpYcEcxb2Rjay1zSDlxdGNRMFdOMzRBdWZSWDFtbHk5aHdaSENPd1JTRGRlTUNnYWZhc1JrdS1kRFdUQl9MREFqRDYwaWVWUmxydkpkVFFFN05HLXhxZDZmaDFwZUw0TDB0LXc2UEp4Tzl3U3BXdWNxbFRCdWl6MTZ6R0dPbzA2Wk5iY2hFMHJWcExmcTdLTU1lQXZpTXU1UVhNSmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e4e2f4fc-df5b-4ac2-952c-b2f93e313b47" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "ed0cc472-76bc-4e0f-9aa8-b806cd6f2fd5" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032418Z:ed0cc472-76bc-4e0f-9aa8-b806cd6f2fd5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 17FCF2AF29AA40039E0C81713EE0749E Ref B: MAA201060514017 Ref C: 2024-05-21T03:24:17Z" - ], - "Date": [ - "Tue, 21 May 2024 03:24:17 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3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WZSWDFtbHk5aHdaSENPd1JTRGRlTUNnYWZhc1JrdS1kRFdUQl9MREFqRDYwaWVWUmxydkpkVFFFN05HLXhxZDZmaDFwZUw0TDB0LXc2UEp4Tzl3U3BXdWNxbFRCdWl6MTZ6R0dPbzA2Wk5iY2hFMHJWcExmcTdLTU1lQXZpTXU1UVhNSmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8cc5b4e0-b8d8-4de3-971c-d3229f5c4353" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "249ae5e0-79d8-419a-939f-efbf71a005e1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032429Z:249ae5e0-79d8-419a-939f-efbf71a005e1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 14DB2844437947259C624B2E59316187 Ref B: MAA201060514017 Ref C: 2024-05-21T03:24:28Z" - ], - "Date": [ - "Tue, 21 May 2024 03:24:28 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAw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SmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1219bd12-a467-424e-8e3a-d56665b13e3f" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "165a7381-2e29-44a2-8f6d-328899881268" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032440Z:165a7381-2e29-44a2-8f6d-328899881268" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F7CDBBDE130C4A409D88D19072C59553 Ref B: MAA201060514017 Ref C: 2024-05-21T03:24:39Z" - ], - "Date": [ - "Tue, 21 May 2024 03:24:39 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ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BibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2f7e8447-667b-4fcf-93b5-6a24a949760e" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "9fe60c4e-5fbe-485b-bbb6-8b9a81630484" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032451Z:9fe60c4e-5fbe-485b-bbb6-8b9a81630484" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: EC02B61E661B41B2B80A162B6834E53E Ref B: MAA201060514017 Ref C: 2024-05-21T03:24:50Z" - ], - "Date": [ - "Tue, 21 May 2024 03:24:50 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-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IclVqZHVJRVN4Q1Jka1JZMm50Zl9fUzA5aDVfNGw3ZjNyVDBqcEhYdy1fOGRVckFibjQzak1pUW1CMkxYekxveUlXYUxhZ1QxOEZfd2JVQW1STVUxbTFXRUpFNjZuZ3Q4bXg0MDctU1JLejZyS2FQVUNEMnotd0llU09jYVhYWTdLYlJWVXRiUFM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1TR3c3Vnd2YTMySW5hb3ZVaTc2V3J2U3dSeVFORVVuZmVWRmFWLWV4cS0wdjA0eVY3UVJUZXpNMU5XWURENW02MHVNbFpDN09QNXpYcEcxb2Rjay1zSDlxdGNRMFdOMzRBdWZSWDFtbHk5aHdaSENPd1JTRGRlTUNnYWZhc1JrdS1kRFdUQl9MREFqRDYwaWVWUmxydkpkVFFFN05HLXhxZDZmaDFwZUw0TDB0LXc2UEp4Tzl3U3BXdWNxbFRCdWl6MTZ6R0dPbzA2Wk5iY2hFMHJWcExmcTdLTU1lQXZpTXU1UVhNSmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "62dc41bd-0883-4a61-90df-8480f4d47966" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "b91ec39e-431b-467c-bc62-0b45bb199a5a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032502Z:b91ec39e-431b-467c-bc62-0b45bb199a5a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 16D70C1ACAC141FDAB950AA06C8D1013 Ref B: MAA201060514017 Ref C: 2024-05-21T03:25:01Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:01 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1W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WVXRiUFM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1TR3c3Vnd2YTMySW5hb3ZVaTc2V3J2U3dSeVFORVVuZmVWRmFWLWV4cS0wdjA0eVY3UVJUZXpNMU5XWURENW02MHVNbFpDN09QNXpYcEcxb2Rjay1zSDlxdGNRMFdOMzRBdWZSWDFtbHk5aHdaSENPd1JTRGRlTUNnYWZhc1JrdS1kRFdUQl9MREFqRDYwaWVWUmxydkpkVFFFN05HLXhxZDZmaDFwZUw0TDB0LXc2UEp4Tzl3U3BXdWNxbFRCdWl6MTZ6R0dPbzA2Wk5iY2hFMHJWcExmcTdLTU1lQXZpTXU1UVhNSmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ffc88bc1-85fa-43e9-a7d7-1ee38c742b25" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "e9886657-ad12-4e56-a9a3-0676dd98c8b2" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032513Z:e9886657-ad12-4e56-a9a3-0676dd98c8b2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 91201FEE72BB4A2C8DA58A1F6462BAE3 Ref B: MAA201060514017 Ref C: 2024-05-21T03:25:12Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:12 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZ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jdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1TR3c3Vnd2YTMySW5hb3ZVaTc2V3J2U3dSeVFORVVuZmVWRmFWLWV4cS0wdjA0eVY3UVJUZXpNMU5XWURENW02MHVNbFpDN09QNXpYcEcxb2Rjay1zSDlxdGNRMFdOMzRBdWZSWDFtbHk5aHdaSENPd1JTRGRlTUNnYWZhc1JrdS1kRFdUQl9MREFqRDYwaWVWUmxydkpkVFFFN05HLXhxZDZmaDFwZUw0TDB0LXc2UEp4Tzl3U3BXdWNxbFRCdWl6MTZ6R0dPbzA2Wk5iY2hFMHJWcExmcTdLTU1lQXZpTXU1UVhNSmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a55af8f9-b8b0-4d2d-9164-a2d57d304eb9" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "f4a52256-ec85-45ea-bba6-34f2ab8f8d1d" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032524Z:f4a52256-ec85-45ea-bba6-34f2ab8f8d1d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 489BE1DAC636413EB79D8D946D407D72 Ref B: MAA201060514017 Ref C: 2024-05-21T03:25:23Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:23 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/f10ed9d1-0b8d-485c-a359-1b6b6d12a40e?api-version=2021-06-01&t=638518586242459858&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LB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lxdGNRMFdOMzRBdWZSWDFtbHk5aHdaSENPd1JTRGRlTUNnYWZhc1JrdS1kRFdUQl9MREFqRDYwaWVWUmxydkpkVFFFN05HLXhxZDZmaDFwZUw0TDB0LXc2UEp4Tzl3U3BXdWNxbFRCdWl6MTZ6R0dPbzA2Wk5iY2hFMHJWcExmcTdLTU1lQXZpTXU1UVhNSmxmanNMSGx6VlVqNVhfbUpzX3RjZlhRcE1qbUNOdHRYZUppUWJqYWZhTXVQbzFpMUdXRDE5ckoxRFNQMExsaHFoTkJFV2YyQXdkSmI5UDMtY0s1eEtTTDZraVhfTXRMMzd0dlotY1lSNlRPSEhmQ2cmaD02MVNhelJqWmtlc3BzNlB3NlBzczFRMzBibEN2UUU0SjlWeWpvY0RNc3E4", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a7848159-e3fa-48ca-9875-a806e1e0f7f0" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "7e8ad95c-3784-4585-9f89-3ef750fc44b4" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032535Z:7e8ad95c-3784-4585-9f89-3ef750fc44b4" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F5C2C5FA53FA4BD3B710D331EEDB9F06 Ref B: MAA201060514017 Ref C: 2024-05-21T03:25:34Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:35 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTU4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL3BzOTczNj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "dcd2e49d-7667-45f8-b998-f90633cb9396" - ], - "x-ms-client-request-id": [ - "93bdbaa7-39ba-46cf-983b-47bced99be5f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "0d40c0c7-077f-4985-8182-d5c3cdd5b329" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032537Z:0d40c0c7-077f-4985-8182-d5c3cdd5b329" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 3E6FF2F6B8A64B10ABBBB7A23663965A Ref B: MAA201060514017 Ref C: 2024-05-21T03:25:36Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:36 GMT" - ], - "Content-Length": [ - "4555" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdoors/ps9736\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps9736\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"f775030e-303c-44fe-a53b-679c136a8cdf\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"20.81.102.49\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"20.81.102.49\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": \"pls-service1.854b143c-1d50-4008-b778-694fbcfd4154.eastus.azure.privatelinkservice\",\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": \"please approve connection\"\r\n },\r\n {\r\n \"address\": \"plstestcli.blob.core.windows.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"plstestcli.blob.core.windows.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Storage/storageAccounts/plstestcli/privateLinkResources/blob\",\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": \"please approve connection request\"\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps9736.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps9736.azurefd.net\",\r\n \"friendlyName\": \"ps9736\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTU4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL3BzOTczNj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "3275065d-5818-401a-a8ea-c2dfba4219e2" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "bceac844-9dac-4e9f-8ec6-895919a56525" - ], - "x-ms-client-request-id": [ - "3275065d-5818-401a-a8ea-c2dfba4219e2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "f80261a6-be08-4ee0-a676-09da74821c69" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032538Z:f80261a6-be08-4ee0-a676-09da74821c69" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A4A84990D66E48CC89FC0A6EB2D599B7 Ref B: MAA201060513021 Ref C: 2024-05-21T03:25:37Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:38 GMT" - ], - "Content-Length": [ - "4555" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdoors/ps9736\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps9736\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"f775030e-303c-44fe-a53b-679c136a8cdf\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"20.81.102.49\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"20.81.102.49\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": \"pls-service1.854b143c-1d50-4008-b778-694fbcfd4154.eastus.azure.privatelinkservice\",\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": \"please approve connection\"\r\n },\r\n {\r\n \"address\": \"plstestcli.blob.core.windows.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"plstestcli.blob.core.windows.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Storage/storageAccounts/plstestcli/privateLinkResources/blob\",\r\n \"privateLinkLocation\": \"eastus\",\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": \"please approve connection request\"\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/Frontdoors/ps9736/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps9736.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps9736.azurefd.net\",\r\n \"friendlyName\": \"ps9736\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTU4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL3BzOTczNj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "82523356-037f-4f6e-8dc1-30b993d514a1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "fce70bf2-008c-4cfd-901e-b1a89616c71c" - ], - "x-ms-client-request-id": [ - "82523356-037f-4f6e-8dc1-30b993d514a1" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "e5ae4dc6-4b2b-4ab2-8d5a-e31f68585064" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032931Z:e5ae4dc6-4b2b-4ab2-8d5a-e31f68585064" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 43156698FF7441E7AB90B54107E5BF8E Ref B: MAA201060516011 Ref C: 2024-05-21T03:29:29Z" - ], - "Date": [ - "Tue, 21 May 2024 03:29:31 GMT" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps558/providers/Microsoft.Network/frontDoors/ps9736?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTU4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL3BzOTczNj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489/frontdoorresults/ps9736?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b77cee8c-ad04-485f-8735-02779ca15feb" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0Eg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Vrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=NciOgZ2Yqs0SAwphFOiQabyqbUeVBGOkb0pwX8GYlLacpUKKoadNeuErVgErOzxRncTqbsPhCt_ZnduC58MH792836W7CXiNRcxShQdku9hkCXjiAqkuZjWOmcYChdOhBZjyoDzZbOGhipsUrRITddC0DVjkBC4BLFIRHBafdfeHMkLI-ZPBOzdI3CjPcBkeSdWzIjD-XPnsMlsEaTXbx2T9NGXZyYirmSocBjgVhJSlfznT7oMk1IWAoqMySTpSFxs76d4lCBQeZcvHh9oyaVzdWwnRf2WP2Ov0_tp-g1PcgezYoVQOKvqsCkvbHQFKVvqL32otv87mjNRRRbDhNw&h=E-3NfCLhpdhQ_D-KtxVz14e7lUEuzdtwJdVM3r9pIcU" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "4e1fd2e6-73a4-4b62-8970-7a337cf7766e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032544Z:4e1fd2e6-73a4-4b62-8970-7a337cf7766e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 284E6F4F5DA3433CB104FE0EC0507A22 Ref B: MAA201060513053 Ref C: 2024-05-21T03:25:40Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:43 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtp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fRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "48158263-db08-423e-ac5c-b19c8daf3fd1" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "94481050-aa81-431a-9621-aeb84d2ae567" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032555Z:94481050-aa81-431a-9621-aeb84d2ae567" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5A627B1F0CDD4F33BF5B161491D38EAA Ref B: MAA201060513053 Ref C: 2024-05-21T03:25:54Z" - ], - "Date": [ - "Tue, 21 May 2024 03:25:54 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIy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EtkRVNIclVqZHVJRVN4Q1Jka1JZMm50Zl9fUzA5aDVfNGw3ZjNyVDBqcEhYdy1fOGRVckFibjQzak1pUW1CMkxYekxveUlXYUxhZ1QxOEZfd2JVQW1STVUxbTFXRUpFNjZuZ3Q4bXg0MDctU1JLejZyS2FQVUNEMnotd0llU09jYVhYWTdLYlJWVXRiUFM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b070920e-e3ba-4dfd-be7b-adb0d3e66ffe" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "a1c716d3-4e0a-4fed-a3c5-97a5b45f5f12" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032606Z:a1c716d3-4e0a-4fed-a3c5-97a5b45f5f12" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: CFF49B047B374CAFB2ABE759ACAE109F Ref B: MAA201060513053 Ref C: 2024-05-21T03:26:05Z" - ], - "Date": [ - "Tue, 21 May 2024 03:26:05 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMD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VhYWTdLYlJWVXRiUFM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c617bba2-5d84-42fb-88c6-a8ffc6c0d683" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "9dd9117e-6743-4bad-9ff8-ad46fdcecde7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032617Z:9dd9117e-6743-4bad-9ff8-ad46fdcecde7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 3EE88C2B311E44039FB56EE1A9060412 Ref B: MAA201060513053 Ref C: 2024-05-21T03:26:16Z" - ], - "Date": [ - "Tue, 21 May 2024 03:26:16 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJt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jdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "6b3bc21d-aa24-4493-b11c-744c7e709966" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "036c941f-63e6-4733-929e-7bdd22d37769" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032628Z:036c941f-63e6-4733-929e-7bdd22d37769" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F2C59B27872B45C0B31FF026BF868AE8 Ref B: MAA201060513053 Ref C: 2024-05-21T03:26:27Z" - ], - "Date": [ - "Tue, 21 May 2024 03:26:27 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XK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U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "dc72747f-a66e-4f90-8375-c0bd93f6b5c4" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "851db64d-a6ec-42b1-84af-f5a288d4e820" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032639Z:851db64d-a6ec-42b1-84af-f5a288d4e820" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2D3F0FB89A454741B2025700C4935BFA Ref B: MAA201060513053 Ref C: 2024-05-21T03:26:38Z" - ], - "Date": [ - "Tue, 21 May 2024 03:26:38 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGC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lXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cfc0c84c-4f1b-49d7-ac91-c0bcc03c8d8b" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "68d7c1f4-ae88-4347-9e61-98baf6681f69" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032650Z:68d7c1f4-ae88-4347-9e61-98baf6681f69" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9A751C28505345BEA264A3FC4B161CE7 Ref B: MAA201060513053 Ref C: 2024-05-21T03:26:49Z" - ], - "Date": [ - "Tue, 21 May 2024 03:26:49 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUE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R0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cb209e42-42aa-4ae5-b15c-af2d6f1e077c" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "7ae56d75-c6b1-459b-929d-a6db5728d19a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032701Z:7ae56d75-c6b1-459b-929d-a6db5728d19a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5177A28A8A35426FBDF6FB776A209D75 Ref B: MAA201060513053 Ref C: 2024-05-21T03:27:00Z" - ], - "Date": [ - "Tue, 21 May 2024 03:27:00 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEA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VN4Q1Jka1JZMm50Zl9fUzA5aDVfNGw3ZjNyVDBqcEhYdy1fOGRVckFibjQzak1pUW1CMkxYekxveUlXYUxhZ1QxOEZfd2JVQW1STVUxbTFXRUpFNjZuZ3Q4bXg0MDctU1JLejZyS2FQVUNEMnotd0llU09jYVhYWTdLYlJWVXRiUFM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "349e58bc-4c3b-4709-b95c-66ceb8ff97b1" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "14200b6a-b23b-440f-be22-4f529543447d" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032716Z:14200b6a-b23b-440f-be22-4f529543447d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2C3A0160B955496CAE5EB6C230743F16 Ref B: MAA201060513053 Ref C: 2024-05-21T03:27:15Z" - ], - "Date": [ - "Tue, 21 May 2024 03:27:15 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29w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FBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1d65a0c0-a2c7-42b2-9cad-23dc568bc01a" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "b85f8e5d-c2db-4953-a47c-6da74598158e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032727Z:b85f8e5d-c2db-4953-a47c-6da74598158e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D072E78F789249089F80FD6AFCCE70C9 Ref B: MAA201060513053 Ref C: 2024-05-21T03:27:26Z" - ], - "Date": [ - "Tue, 21 May 2024 03:27:27 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2y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zbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "40d2d1d9-f658-4191-9fcc-7b2f24ad45d0" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d917634e-5b17-4c4c-84d9-08e5f690d792" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032738Z:d917634e-5b17-4c4c-84d9-08e5f690d792" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0ED60914867E4BD0BDC2B558AA979085 Ref B: MAA201060513053 Ref C: 2024-05-21T03:27:37Z" - ], - "Date": [ - "Tue, 21 May 2024 03:27:38 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10tt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JaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "da3d8b0b-d491-4034-aeb8-c57dd9b06f38" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "96a861c5-e2e6-4688-8485-aeabcb2029c4" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032749Z:96a861c5-e2e6-4688-8485-aeabcb2029c4" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F9495FF49C884A1AAE6C07DCC165A6C9 Ref B: MAA201060513053 Ref C: 2024-05-21T03:27:48Z" - ], - "Date": [ - "Tue, 21 May 2024 03:27:49 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIh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DQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "fa9a0477-837a-48d3-a321-7b0022610ad6" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d2735d18-1648-4bfd-a7a5-b5636fc92cfb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032800Z:d2735d18-1648-4bfd-a7a5-b5636fc92cfb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: EA3AE774613442A7993DB39013363FED Ref B: MAA201060513053 Ref C: 2024-05-21T03:27:59Z" - ], - "Date": [ - "Tue, 21 May 2024 03:28:00 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEl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"RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4d90e1f4-ea7d-4386-b942-3a6b47ef1f65" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "3fa8150d-b3a9-4082-8757-c876524c42ec" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032810Z:3fa8150d-b3a9-4082-8757-c876524c42ec" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2C8E3EE76099428A8046628304CC83D5 Ref B: MAA201060513053 Ref C: 2024-05-21T03:28:10Z" - ], - "Date": [ - "Tue, 21 May 2024 03:28:10 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZ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NyVDBqcEhYdy1fOGRVckFibjQzak1pUW1CMkxYekxveUlXYUxhZ1QxOEZfd2JVQW1STVUxbTFXRUpFNjZuZ3Q4bXg0MDctU1JLejZyS2FQVUNEMnotd0llU09jYVhYWTdLYlJWVXRiUFM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2fc66c66-d705-4e36-b8d9-f2ae595e0341" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "db2b32d1-1dfc-479f-b0cb-6cd9307882d1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032821Z:db2b32d1-1dfc-479f-b0cb-6cd9307882d1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 04660CC781134ED7B73AF662D0476D42 Ref B: MAA201060513053 Ref C: 2024-05-21T03:28:21Z" - ], - "Date": [ - "Tue, 21 May 2024 03:28:21 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0a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hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4bf48b5d-c48e-4090-ba0a-67643f09e5e0" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "9c790430-4795-4372-ab6f-86833667487a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032832Z:9c790430-4795-4372-ab6f-86833667487a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B52C8F82861D49F5AE94A1ABE0E309EC Ref B: MAA201060513053 Ref C: 2024-05-21T03:28:31Z" - ], - "Date": [ - "Tue, 21 May 2024 03:28:32 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAP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oRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "41a5b70b-4dde-4c7a-8ce0-5dadbeb8e893" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "e1a52da7-d6b4-485f-a671-43e4a94f5cbe" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032843Z:e1a52da7-d6b4-485f-a671-43e4a94f5cbe" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 764F983CC5EF48858005AA52B321828D Ref B: MAA201060513053 Ref C: 2024-05-21T03:28:42Z" - ], - "Date": [ - "Tue, 21 May 2024 03:28:43 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClq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WamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2a0572f8-0fee-42cf-9b09-2bc0d48104c2" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "5f79f716-5616-4c72-83a0-e51e81d83091" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032854Z:5f79f716-5616-4c72-83a0-e51e81d83091" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1DD9774B93DE48D6B9C7822FDF28E0E2 Ref B: MAA201060513053 Ref C: 2024-05-21T03:28:53Z" - ], - "Date": [ - "Tue, 21 May 2024 03:28:54 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K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T3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4310b701-087f-4e26-b7c4-a20d02964a06" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "3bc16b51-735d-4065-97d3-0abc8a5000d3" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032905Z:3bc16b51-735d-4065-97d3-0abc8a5000d3" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9E511E5F6A6F4B54A4D4031AC54B6CB1 Ref B: MAA201060513053 Ref C: 2024-05-21T03:29:04Z" - ], - "Date": [ - "Tue, 21 May 2024 03:29:05 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0KS5jcn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e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f63c0610-4649-4329-a19e-e651fa84e3a3" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "48764c66-5fbd-40b0-8888-a5bec451c6b4" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T032917Z:48764c66-5fbd-40b0-8888-a5bec451c6b4" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9A8C7CEFFD9E4F45A3338AAC5E51C72A Ref B: MAA201060513053 Ref C: 2024-05-21T03:29:15Z" - ], - "Date": [ - "Tue, 21 May 2024 03:29:16 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489?api-version=2021-06-01&t=638518587441939744&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQ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zak1pUW1CMkxYekxveUlXYUxhZ1QxOEZfd2JVQW1STVUxbTFXRUpFNjZuZ3Q4bXg0MDctU1JLejZyS2FQVUNEMnotd0llU09jYVhYWTdLYlJWVXRiUFM0R2hTVG8zZkNSSFBHcFhTOWZ0cG0tdjd6M0pGa1hGc043amNIQlFEbjJZcUU3ZUZvUFZxbW9RdEpaWFh6QXNXTWVxU2lsRTJ3bXNxbjhUeTB5a1pucWNmanVSTlhvVEM5Q3B1RWhaWWlyQXdtZEJOODdDYjdacmhSMnM4ZmxtLXVJcWRFaGs0bVdlTk1FeVdzbTVSTEEmcz1OY2lPZ1oyWXFzMFNBd3BoRk9pUWFieXFiVWVWQkdPa2IwcHdYOEdZbExhY3BVS0tvYWROZXVFclZnRXJPenhSbmNUcWJzUGhDdF9abmR1QzU4TUg3OTI4MzZXN0NYaU5SY3hTaFFka3U5aGtDWGppQXFrdVpqV09tY1lDaGRPaEJaanlvRHpaYk9HaGlwc1VyUklUZGRDMERWamtCQzRCTEZJUkhCYWZkZmVITWtMSS1aUEJPemRJM0NqUGNCa2VTZFd6SWpELVhQbnNNbHNFYVRYYngyVDlOR1haeVlpcm1Tb2NCamdWaEpTbGZ6blQ3b01rMUlXQW9xTXlTVHBTRnhzNzZkNGxDQlFlWmN2SGg5b3lhVnpkV3duUmYyV1AyT3YwX3RwLWcxUGNnZXpZb1ZRT0t2cXNDa3ZiSFFGS1Z2cUwzMm90djg3bWpOUlJSYkRoTncmaD1FLTNOZkNMaHBkaFFfRC1LdHhWejE0ZTdsVUV1emR0d0pkVk0zcjlwSWNV", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1a14be11-ebd9-4832-9a1c-feb2e6e510c1" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "1e1c2c1c-77ea-417e-aba7-070df56006f7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032928Z:1e1c2c1c-77ea-417e-aba7-070df56006f7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 126B2EDF84644B48A57050DE38D7E6E2 Ref B: MAA201060513053 Ref C: 2024-05-21T03:29:27Z" - ], - "Date": [ - "Tue, 21 May 2024 03:29:27 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558/providers/Microsoft.Network/frontdooroperationresults/104562b6-701e-401d-9ff5-ce3c2063e489/frontdoorresults/ps9736?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzNTU4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzEwNDU2MmI2LTcwMWUtNDAxZC05ZmY1LWNlM2MyMDYzZTQ4OS9mcm9udGRvb3JyZXN1bHRzL3BzOTczNj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2639b430-4abc-4c0f-ac57-4b9ac69ff99b" - ], - "x-ms-client-request-id": [ - "e52318f2-38c6-4cad-8896-edc9dff48e5d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "2f5ff5d1-fe70-4c33-8f83-14567fd81e37" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032929Z:2f5ff5d1-fe70-4c33-8f83-14567fd81e37" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B52754D9203245959F8113C90E5D31F7 Ref B: MAA201060513053 Ref C: 2024-05-21T03:29:28Z" - ], - "Date": [ - "Tue, 21 May 2024 03:29:29 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps558?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzNTU4P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f30257b6-5a94-463b-a050-b41736512e3e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518589766009593&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMC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29NicYvd2VzlF_PeIt0kkRdc5XkWvmyJVGvm3Q1E7u7GvwqWLpMsOMfKFSB0HdPJvvsdcEfKMpM4yit5UoHad5dcMtOqhrqVRykOEe7Iauvq4BUkpCLeK1hfG3Ze3s9tBQ&h=2mb2HQM4XK1kWyPJaSF7BbY1NFZZzLOOqtPPLgTM0MA" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "2b941a20-ee39-423e-9b66-8fd51d0a333c" - ], - "x-ms-correlation-request-id": [ - "2b941a20-ee39-423e-9b66-8fd51d0a333c" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T032936Z:2b941a20-ee39-423e-9b66-8fd51d0a333c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 36F28CD077104EAA86A4B6024E4D37B2 Ref B: MAA201060515029 Ref C: 2024-05-21T03:29:32Z" - ], - "Date": [ - "Tue, 21 May 2024 03:29:36 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518589766009593&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1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Nm5ndDhteDQwNy1TUkt6NnJLYVBVQ0Qyei13SWVTT2NhWFhZN0tiUlZVdGJQUzRHaFNUbzNmQ1JIUEdwWFM5ZnRwbS12N3ozSkZrWEZzTjdqY0hCUURuMllxRTdlRm9QVnFtb1F0SlpYWHpBc1dNZXFTaWxFMndtc3FuOFR5MHlrWm5xY2ZqdVJOWG9UQzlDcHVFaFpZaXJBd21kQk44N0NiN1pyaFIyczhmbG0tdUlxZEVoazRtV2VOTUV5V3NtNVJMQSZzPVdBcWd1Mkx3QVdWX0FfMjRKMHZYcE93QUFhSzdFcVR5cmJQM05MMmpFLWJOSHB4OE5ZYlZ1VGZvMm5id3dlNVAyaEhybnhDcl9VVmJVM0NsVzRLeThyd3lia2dnUkxFTnV3SXBWMzZVSlVjdGtnSGM0dU9QLTRfWjgyN2kwN0tPYmQ3dEp0R0YzR1hrX192eUNYQmpYXy10emY2WlFOQjUwWTJHOXZISTNBVVNHc29XNWp4WDVUWFNHWVVBNEhidzJrX1ZaeEJ0SDh2RUIwamVEelBrMjlOaWNZdmQyVnpsRl9QZUl0MGtrUmRjNVhrV3ZteUpWR3ZtM1ExRTd1N0d2d3FXTHBNc09NZktGU0IwSGRQSnZ2c2RjRWZLTXBNNHlpdDVVb0hhZDVkY010T3FocnFWUnlrT0VlN0lhdXZxNEJVa3BDTGVLMWhmRzNaZTNzOXRCUSZoPTJtYjJIUU00WEsxa1d5UEphU0Y3QmJZMU5GWlp6TE9PcXRQUExnVE0wTUE=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2J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BO1C0ycDxGYIzWgirWmg9EsIQQXFo3Qvg&h=guO2QFHy-LkG7jOrTMswwSfPqzkFXj4sVvYiusv0flY" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "c588e584-42b9-42ee-a347-88a1bd08a143" - ], - "x-ms-correlation-request-id": [ - "c588e584-42b9-42ee-a347-88a1bd08a143" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T032952Z:c588e584-42b9-42ee-a347-88a1bd08a143" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1ADF878D4FBF483385FCD0115BFCE502 Ref B: MAA201060515029 Ref C: 2024-05-21T03:29:51Z" - ], - "Date": [ - "Tue, 21 May 2024 03:29:52 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518589927915941&c=MIIIFjCCBv6gAwIBAgITfATTHy5IGyiL_HqW-wAABNMfLjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTA5MDEwODU1WhcNMjUwNTA0MDEwODU1WjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgN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", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518590087343287&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIw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wCcdGBOPg_b_rikT10E8dVnRCOVpOHjGqWAzank_Ax-MrGxB_gPAqQ5W5HWB8HiEDd7RSg&h=THm1v-tEAqpI2shIVGEhG2K_Mauz9h-f0HMzVr015Mw" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "930055fb-3bff-4e6b-ad97-ea34802fa7ad" - ], - "x-ms-correlation-request-id": [ - "930055fb-3bff-4e6b-ad97-ea34802fa7ad" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033008Z:930055fb-3bff-4e6b-ad97-ea34802fa7ad" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 62CABE6528BD4939947B78DD944ADF07 Ref B: MAA201060515029 Ref C: 2024-05-21T03:30:07Z" - ], - "Date": [ - "Tue, 21 May 2024 03:30:08 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518590087343287&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5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JIUEdwWFM5ZnRwbS12N3ozSkZrWEZzTjdqY0hCUURuMllxRTdlRm9QVnFtb1F0SlpYWHpBc1dNZXFTaWxFMndtc3FuOFR5MHlrWm5xY2ZqdVJOWG9UQzlDcHVFaFpZaXJBd21kQk44N0NiN1pyaFIyczhmbG0tdUlxZEVoazRtV2VOTUV5V3NtNVJMQSZzPWc2YWljd2xqQ0ZmUllYYzRkSVpra2JXbURCdnhmN2tYSjczYlFwNXZwdHdnSElSLWMzbHdOUGtiUl9sOF9lX0hXemtOczB6NGRFb25rNGtILU93ZjBqQm5pcnhCR0c3M2Z1cVAxQVF4dEYyRFA0S0l0VGFEeTl0aFhEMW9ESWZOZ0lPcHl2T1lSV0ZfU2IyLUhTbkpJR1c3dWFwNHp2V09JNDZ2dnlHYmdQUWNiTWdiNU5mMldpYWdIRWRHRnlUVkNTSEdlOXhKYkRqdERJOF9Qa0liUXJZMVh6cktGUzR1dENXZnJncEJ4cHZfc3ZMRVhyNkdlMEN6THVtdGRkWENFR1BBb3ItOG14Wm1JeFRLd0NjZEdCT1BnX2JfcmlrVDEwRThkVm5SQ09WcE9IakdxV0F6YW5rX0F4LU1yR3hCX2dQQXFRNVc1SFdCOEhpRURkN1JTZyZoPVRIbTF2LXRFQXFwSTJzaElWR0VoRzJLX01hdXo5aC1mMEhNelZyMDE1TXc=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indl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AGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=rdRglySJ5pRS5zrrutd9V_yO-FprUNhOBoExCEcfMVck7MFhFWRC8kjbLUz4e-sIUSz0G6MoiM4HBxK9QDZmXrM8SQJEWABpuhEEs1iQGaa8PVcHrIoTcAqW5ChIGF9YnkIMAk8V5lJQ3pDprc8mwuP9evrHvfWeKTB68Q6bfAUR8E-6cdPsiNiqK9iUOvJ6pmyj8U2E6PJeaV9nWAdvqrj-oOZ89GVqprYHFzamvcEv7A_6rCgc8z1Mu3fOENtbINfg0PiLtFBJ1JA7_4yntlDIS8Tn4LJZzLE6IYCSWB-v7jmBsC3SLmV-0NUpObCjZxHueoKzDr5bWSJMyyl2OQ&h=EzKa2e1yBSS39o1edQHowg5b0P_h2xZF0CZdjiGPcjo" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "41a40c84-f32a-491a-bf22-141bfa7b8f46" - ], - "x-ms-correlation-request-id": [ - "41a40c84-f32a-491a-bf22-141bfa7b8f46" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033024Z:41a40c84-f32a-491a-bf22-141bfa7b8f46" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1265AFF90C6249858952C7B1B1BD48D1 Ref B: MAA201060515029 Ref C: 2024-05-21T03:30:23Z" - ], - "Date": [ - "Tue, 21 May 2024 03:30:24 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518590246962191&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE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lVU3owRzZNb2lNNEhCeEs5UURabVhyTThTUUpFV0FCcHVoRUVzMWlRR2FhOFBWY0hySW9UY0FxVzVDaElHRjlZbmtJTUFrOFY1bEpRM3BEcHJjOG13dVA5ZXZySHZmV2VLVEI2OFE2YmZBVVI4RS02Y2RQc2lOaXFLOWlVT3ZKNnBteWo4VTJFNlBKZWFWOW5XQWR2cXJqLW9PWjg5R1ZxcHJZSEZ6YW12Y0V2N0FfNnJDZ2M4ejFNdTNmT0VOdGJJTmZnMFBpTHRGQkoxSkE3XzR5bnRsRElTOFRuNExKWnpMRTZJWUNTV0ItdjdqbUJzQzNTTG1WLTBOVXBPYkNqWnhIdWVvS3pEcjViV1NKTXl5bDJPUSZoPUV6S2EyZTF5QlNTMzlvMWVkUUhvd2c1YjBQX2gyeFpGMENaZGppR1Bjam8=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518590406574062&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvb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aLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=CqSrqnOubYdJHtT42_q3ttGxWis0hlPy30qiNiJ0ggzsIANFe3SaYTI7oslBN7oYw4ixOwDRbEvbITmYipDZlYX6HX4BiRcHTG6NoPbtYhf7IM_x5-u39jO6BqIOPCfTRT6hbVR4kvKtTKWWHp7yw24DGYuzuxKU56VDvhhvPQCAphkYjjIiCYmgpk9ChePNpYOSw_9jbQ_vf15oOp8yZWhu3GCLfP8MJZ-R8tcCeukIIpMTgwu4At4ZLYaSgbJyw8Ac5cyJz-3DGwD6MQY9ohwH3n-jklmFFQb75pUn-WR11LCCdyi7-_yS94s4bKyqX3xpRhMDd8iANbofXp9cHA&h=wmJmFdXeKSYmZcKyXuruXXBcWFuNIOGwB9JUGoMBcSg" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "7e9dbdc6-ff79-4052-a5fa-7801f51dccf0" - ], - "x-ms-correlation-request-id": [ - "7e9dbdc6-ff79-4052-a5fa-7801f51dccf0" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033040Z:7e9dbdc6-ff79-4052-a5fa-7801f51dccf0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 379F58E09064499094F7A9379844A6C4 Ref B: MAA201060515029 Ref C: 2024-05-21T03:30:39Z" - ], - "Date": [ - "Tue, 21 May 2024 03:30:40 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518590406574062&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQ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TVFZOW9od0gzbi1qa2xtRkZRYjc1cFVuLVdSMTFMQ0NkeWk3LV95Uzk0czRiS3lxWDN4cFJoTURkOGlBTmJvZlhwOWNIQSZoPXdtSm1GZFhlS1NZbVpjS3lYdXJ1WFhCY1dGdU5JT0d3QjlKVUdvTUJjU2c=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "bbd9a802-9620-42d2-844d-50f7e199cef0" - ], - "x-ms-correlation-request-id": [ - "bbd9a802-9620-42d2-844d-50f7e199cef0" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033056Z:bbd9a802-9620-42d2-844d-50f7e199cef0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2F725E078D22469392840A7C1150373A Ref B: MAA201060515029 Ref C: 2024-05-21T03:30:55Z" - ], - "Date": [ - "Tue, 21 May 2024 03:30:56 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzU1OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01&t=638518590406574062&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqh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RzgzV2tSVUlsS2RFU0hyVWpkdUlFU3hDUmRrUlkybnRmX19TMDloNV80bDdmM3JUMGpwSFh3LV84ZFVyQWJuNDNqTWlRbUIyTFh6TG95SVdhTGFnVDE4Rl93YlVBbVJNVTFtMVdFSkU2Nm5ndDhteDQwNy1TUkt6NnJLYVBVQ0Qyei13SWVTT2NhWFhZN0tiUlZVdGJQUzRHaFNUbzNmQ1JIUEdwWFM5ZnRwbS12N3ozSkZrWEZzTjdqY0hCUURuMllxRTdlRm9QVnFtb1F0SlpYWHpBc1dNZXFTaWxFMndtc3FuOFR5MHlrWm5xY2ZqdVJOWG9UQzlDcHVFaFpZaXJBd21kQk44N0NiN1pyaFIyczhmbG0tdUlxZEVoazRtV2VOTUV5V3NtNVJMQSZzPUNxU3Jxbk91YllkSkh0VDQyX3EzdHRHeFdpczBobFB5MzBxaU5pSjBnZ3pzSUFORmUzU2FZVEk3b3NsQk43b1l3NGl4T3dEUmJFdmJJVG1ZaXBEWmxZWDZIWDRCaVJjSFRHNk5vUGJ0WWhmN0lNX3g1LXUzOWpPNkJxSU9QQ2ZUUlQ2aGJWUjRrdkt0VEtXV0hwN3l3MjRER1l1enV4S1U1NlZEdmhodlBRQ0FwaGtZampJaUNZbWdwazlDaGVQTnBZT1N3XzlqYlFfdmYxNW9PcDh5WldodTNHQ0xmUDhNSlotUjh0Y0NldWtJSXBNVGd3dTRBdDRaTFlhU2diSnl3OEFjNWN5SnotM0RHd0Q2TVFZOW9od0gzbi1qa2xtRkZRYjc1cFVuLVdSMTFMQ0NkeWk3LV95Uzk0czRiS3lxWDN4cFJoTURkOGlBTmJvZlhwOWNIQSZoPXdtSm1GZFhlS1NZbVpjS3lYdXJ1WFhCY1dGdU5JT0d3QjlKVUdvTUJjU2c=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "8f745579-6411-4cdf-8d15-13ba70a0b4a7" - ], - "x-ms-correlation-request-id": [ - "8f745579-6411-4cdf-8d15-13ba70a0b4a7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033057Z:8f745579-6411-4cdf-8d15-13ba70a0b4a7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 717AFE2798E04AA79DEC1E817DD71884 Ref B: MAA201060515029 Ref C: 2024-05-21T03:30:56Z" - ], - "Date": [ - "Tue, 21 May 2024 03:30:57 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": { - "Test-FrontDoorCrudPrivateLink": [ - "ps9736", - "ps558" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudRedirect.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudRedirect.json deleted file mode 100644 index d0b6bd803e09..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudRedirect.json +++ /dev/null @@ -1,3097 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1dba16ac-5cf4-40c1-add2-629bd9872f54" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "220e83f6-bb3e-4305-8707-bd1be8be7fc9" - ], - "x-ms-correlation-request-id": [ - "220e83f6-bb3e-4305-8707-bd1be8be7fc9" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035722Z:220e83f6-bb3e-4305-8707-bd1be8be7fc9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B735ACECFCCD495F9EDF3711E443D44C Ref B: MAA201060516051 Ref C: 2024-05-21T03:57:21Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:22 GMT" - ], - "Content-Length": [ - "19433" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzOTQxOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a4fd00d7-13d4-4ab0-a13a-877db2205e98" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "837c4335-3f39-4d8f-8405-4ec873df673a" - ], - "x-ms-correlation-request-id": [ - "837c4335-3f39-4d8f-8405-4ec873df673a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035726Z:837c4335-3f39-4d8f-8405-4ec873df673a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5629F8722A6C493BBCC7B23D4D2EE0D8 Ref B: MAA201060514035 Ref C: 2024-05-21T03:57:23Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:25 GMT" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419\",\r\n \"name\": \"ps9419\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d0a5681d-a349-4601-b090-b65d6f800b69" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "6f53abaf-6b29-473a-ab76-4135487a92e4" - ], - "x-ms-correlation-request-id": [ - "6f53abaf-6b29-473a-ab76-4135487a92e4" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035727Z:6f53abaf-6b29-473a-ab76-4135487a92e4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 217C0942260341A19195AFBBA16F20FD Ref B: MAA201060515053 Ref C: 2024-05-21T03:57:26Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:26 GMT" - ], - "Content-Length": [ - "12" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "02df0d75-1a83-48fe-96f7-8ee61d12797d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2eb0d568-6a35-420e-9c43-7b5e94f9b127" - ], - "x-ms-client-request-id": [ - "02df0d75-1a83-48fe-96f7-8ee61d12797d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "ca8d4be9-b9f7-4d50-8584-4d57ac36ba8a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035747Z:ca8d4be9-b9f7-4d50-8584-4d57ac36ba8a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2D8A0FFDC22942D3AD540750018ADDA4 Ref B: MAA201060514029 Ref C: 2024-05-21T03:57:46Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:46 GMT" - ], - "Content-Length": [ - "3857" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fde89331-1fcd-4d92-b143-39bc6984d449" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a09e283e-06c9-4374-961c-b4e0d8a95ba6" - ], - "x-ms-client-request-id": [ - "fde89331-1fcd-4d92-b143-39bc6984d449" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "f40f6a87-5b1e-4cee-a027-423b300280fa" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035803Z:f40f6a87-5b1e-4cee-a027-423b300280fa" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F3273619D4084DAF99E0DBC5EE15C21D Ref B: MAA201060514017 Ref C: 2024-05-21T03:58:02Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:02 GMT" - ], - "Content-Length": [ - "3862" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"/test\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "0014c8d0-0557-4fc7-b0c8-ad0d68234231" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "cd743911-c53a-47e9-8eb8-9de1591f6b3b" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T035820Z:cd743911-c53a-47e9-8eb8-9de1591f6b3b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 069E99EA512F407288A7F413746112EF Ref B: MAA201060514021 Ref C: 2024-05-21T03:58:18Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:19 GMT" - ], - "Content-Length": [ - "3863" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"/test\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Disabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d0a5681d-a349-4601-b090-b65d6f800b69" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2932" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps1481\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"\"\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "50e02d30-a397-4f2a-b881-5dcba977f262" - ], - "x-ms-client-request-id": [ - "d0a5681d-a349-4601-b090-b65d6f800b69" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/ac987afa-057c-4c52-b9df-8e4debfb0ba3?api-version=2021-06-01&t=638518606529227379&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe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VqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=svfR9YL0zguArTIpO_ACoRXGfsDzKIOoGEhFDywxQ4sFSBb2gkHVuzZugIZQHEVX6k7Lmk6T16bEAHDccBvIitCIDih5Dos6NHxtyvKuFZLfGA7nZO6DGxGlC3V7vJogQITIQIsiKjhBpGXAQVlPP8hiO_gzxfajXLSSXy96BS0K_mMKePtCCMGAKstpXV5KmQcrHMy_p0ENmC2ZVCmgr7Pn5H1WeWx7DACbsr7UXI2GVCuUr9bJLzhjkYyCCCuRvHlLW-FqdXvhHzo_PUBvVP5wqLWqU3hIl8QMc_Hznt6eYjsY4ScOjuBn4XB5GsODW07iN1FWdvmj9bNTnCkg1Q&h=Ddpex_5Q0zGnZelfBZd4flAET8hctm2Zr5hfScqku4M" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "3d379c04-5fdb-44a0-a4a0-54248b55e0be" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035732Z:3d379c04-5fdb-44a0-a4a0-54248b55e0be" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: FFA039F5EC86484486E647FD60A877D8 Ref B: MAA201060515053 Ref C: 2024-05-21T03:57:27Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:32 GMT" - ], - "Content-Length": [ - "3850" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Creating\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "02df0d75-1a83-48fe-96f7-8ee61d12797d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2937" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps1481\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"/test\"\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/b0082114-8cf7-4ef9-b5ef-33148acafa2a/frontdoorresults/ps1481?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "05a0375a-4543-4c90-9ede-3cba151a76e2" - ], - "x-ms-client-request-id": [ - "02df0d75-1a83-48fe-96f7-8ee61d12797d" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/b0082114-8cf7-4ef9-b5ef-33148acafa2a?api-version=2021-06-01&t=638518606695696915&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCC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ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "cb361072-aeb8-419d-81c9-e2ad717a03f2" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035749Z:cb361072-aeb8-419d-81c9-e2ad717a03f2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8514D164AC4B48648CDF666AFE3698AF Ref B: MAA201060514029 Ref C: 2024-05-21T03:57:47Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:48 GMT" - ], - "Content-Length": [ - "3850" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"/test\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fde89331-1fcd-4d92-b143-39bc6984d449" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2938" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps1481\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"/test\"\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Disabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/be2fb7b6-f11d-421a-a319-6b5882182164/frontdoorresults/ps1481?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "df48bed5-32e2-447b-86f0-226fe5459a53" - ], - "x-ms-client-request-id": [ - "fde89331-1fcd-4d92-b143-39bc6984d449" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/be2fb7b6-f11d-421a-a319-6b5882182164?api-version=2021-06-01&t=638518606863463611&c=MIIIFjCCBv6gAwIBAgITfATTHy5IGyiL_HqW-wAABNMfLjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTA5MDEwODU1WhcNMjUwNTA0MDEwODU1WjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQg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BgkqhkiG9w0BAQsFAAOCAQEALr7D041At2PpKJ3UgACMJ0qkh79M0nPPT0iTGQMpYU-AzL0Gz57s3tKO9I8G39TCHjbERLEeik9dSBOplVVB4sChvyOlrYJ0Swf5c9lzcbN-y4Cakbn-RkUEikfrHOu-N2wsRDyskW3bUkkB8emJsJRHGxbELhwG63W2GX85jgO5inCOznx9Ctkbn_OZCeQDpFG47tikBnPtT0-CBRKrplVAs9bWJYcOqxTrEKUNzGjR-hK1efFBFO_Tnd-RI85JV3q9MfULQ45lfrX9vLx-sy05QgcoT67ROnoDDClesqHjyNLAWaatl9CMMW3fRIb44P9cn4FyLvG1Pk_-7kmgIA&s=uRrPKPOqoucRT8dYvrZ-YWJLhsdjsYjxH9QYQoTCkp4pXCq59FYIyZg1dZtF12BhXIssyCCsoFXBkAt8wmDtbDr4qAuXzCJRT6ochjLTZs-u8wQUdMlzLfWOybdI0dfafcIowVVLxyiWnnjKQBTptk_cf3PwEnWVFT4ExGU-IowJn4j7NX2iTuSu_tZjGiFN_EWQOI8QihcDHPR052QSopuzP_EwTM7SJ13bmXfNU9jj1-4HmjdW2pgQJF9pXjLvzy8c9-SD2tAKFNvIUY-NxCGWrHhZz64Lj4ZUITWiDQSiccIMEoYXheiTqER-vOsHHJM9i9kYWwujhYlgVHwOBQ&h=NXcd98VppUpu-6fVvHYxAK3Uy-DR5QfBfz0chdPCxaI" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "ce0d6c58-d87b-45e4-86ab-61c0c833e1a0" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T035806Z:ce0d6c58-d87b-45e4-86ab-61c0c833e1a0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A1BF20262BB04305A3686312D902802C Ref B: MAA201060514017 Ref C: 2024-05-21T03:58:03Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:05 GMT" - ], - "Content-Length": [ - "3851" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"/test\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Disabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/ac987afa-057c-4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601-b090-b65d6f800b69" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "89fa00c9-cc80-4ac5-80ea-0b4a3794a259" - ], - "x-ms-client-request-id": [ - "d0a5681d-a349-4601-b090-b65d6f800b69" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "4aa3f45b-f62b-455b-99a1-06a34700d657" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035743Z:4aa3f45b-f62b-455b-99a1-06a34700d657" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: DDAF0C211C78465C8B944E60F4C63065 Ref B: MAA201060515053 Ref C: 2024-05-21T03:57:43Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:43 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d0a5681d-a349-4601-b090-b65d6f800b69" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "032d3546-12a0-4b1f-87cd-4a9b5d97c2fd" - ], - "x-ms-client-request-id": [ - "d0a5681d-a349-4601-b090-b65d6f800b69" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "fb18ec2c-bc26-404c-acbf-aa23c5c4c84d" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035744Z:fb18ec2c-bc26-404c-acbf-aa23c5c4c84d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F9B32900B23C456C9CBE8F0590783BC5 Ref B: MAA201060515053 Ref C: 2024-05-21T03:57:43Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:44 GMT" - ], - "Content-Length": [ - "3845" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "02baa264-5753-40c4-a6c1-8201786abbf6" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ea6aca38-a269-49da-9f7d-839ddb001d21" - ], - "x-ms-client-request-id": [ - "02baa264-5753-40c4-a6c1-8201786abbf6" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "43ca0af1-5c50-48b0-a13f-7d3aa7a546ac" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035746Z:43ca0af1-5c50-48b0-a13f-7d3aa7a546ac" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 693A3C9D1AA9483D89FF459D0F0E589E Ref B: MAA201060513053 Ref C: 2024-05-21T03:57:45Z" - ], - "Date": [ - "Tue, 21 May 2024 03:57:45 GMT" - ], - "Content-Length": [ - "3845" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "02df0d75-1a83-48fe-96f7-8ee61d12797d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a686a15a-1f91-44cf-9fa3-2e80aad0619b" - ], - "x-ms-client-request-id": [ - "02df0d75-1a83-48fe-96f7-8ee61d12797d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "27b702b1-4989-4eac-b8a2-e0da6a0bb6eb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035801Z:27b702b1-4989-4eac-b8a2-e0da6a0bb6eb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 65FE31BD9BB9445D83E0A848C206F1A0 Ref B: MAA201060514029 Ref C: 2024-05-21T03:58:00Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:01 GMT" - ], - "Content-Length": [ - "3850" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"/test\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fde89331-1fcd-4d92-b143-39bc6984d449" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "7cf1e1a0-9a17-454d-a3e0-6e0d613eea01" - ], - "x-ms-client-request-id": [ - "fde89331-1fcd-4d92-b143-39bc6984d449" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-correlation-request-id": [ - "e8a81f35-fbd9-460e-be16-f1e69527d636" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035818Z:e8a81f35-fbd9-460e-be16-f1e69527d636" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2D3475ACA78A4ECDBB4E0645608878B7 Ref B: MAA201060514017 Ref C: 2024-05-21T03:58:17Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:17 GMT" - ], - "Content-Length": [ - "3851" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdoors/ps1481\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps1481\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"contoso2\",\r\n \"customPath\": \"/test\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"6427275e-0c3f-4798-810a-c6871a5590a9\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/Frontdoors/ps1481/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps1481.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Disabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps1481.azurefd.net\",\r\n \"friendlyName\": \"ps1481\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6bbce834-a1a4-4f32-ab15-e8346cf822e2" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "3cd83d16-ac0f-45f5-a6c9-654eab8592e5" - ], - "x-ms-client-request-id": [ - "6bbce834-a1a4-4f32-ab15-e8346cf822e2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "c47cc123-2c96-4a38-bdbe-45ccc0d74032" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040209Z:c47cc123-2c96-4a38-bdbe-45ccc0d74032" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F2BCD950C3C0434D9CAAACE73F104211 Ref B: MAA201060516021 Ref C: 2024-05-21T04:02:07Z" - ], - "Date": [ - "Tue, 21 May 2024 04:02:08 GMT" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/b0082114-8cf7-4ef9-b5ef-33148acafa2a?api-version=2021-06-01&t=638518606695696915&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8K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XJOaGdTX2RPdFdFMTVER0FqMnhCUS1MaVV5aFltMGdMb0pEWmROc2x4S1diMW9LZTFWM29uWElyVFRIZDNlVl9VQi14anJfbl8tRVUzaGJfelFnX1JfbXJQVllvRTdJNlJCNEdKZG16UkhBVTBLc21oWE5hcU8tZGl5T3ZYOUZVVzdmWHFreW0zVkR0UU16bmdNazdJOUwwYXcybFgxdE5yUDcxSWFMR1NZczlsU3dCYTRySVNRNGNhV0UtMFR3VmxiX2J2XzZZQllxc01yYUtISDFXTnZ0dUFfeUp3NktYOFBBJmg9S3N6djc4TEdDWTE5VEl4TzZ4aWxmZnZwVXpfM2ktNE9BdE9GZUctLWdmbw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "02df0d75-1a83-48fe-96f7-8ee61d12797d" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5ef68221-0cbe-4dea-836a-ab1b3f4726ed" - ], - "x-ms-client-request-id": [ - "02df0d75-1a83-48fe-96f7-8ee61d12797d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "4696e4a1-ea12-469b-8b5d-c63f61d9fc4b" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035800Z:4696e4a1-ea12-469b-8b5d-c63f61d9fc4b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: C439B489F22B44A284DF159674ED36D9 Ref B: MAA201060514029 Ref C: 2024-05-21T03:57:59Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:00 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/be2fb7b6-f11d-421a-a319-6b5882182164?api-version=2021-06-01&t=638518606863463611&c=MIIIFjCCBv6gAwIBAgITfATTHy5IGyiL_HqW-wAABNMfLjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTA5MDEwODU1WhcNMjUwNTA0MDEwODU1WjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv6N2D0SQWFnZl5dGOishxbeap4PzkFQa0KK8pNkTVvVyspMK2uAP9x29gCYAbOd3cJIEBPrw6wvQ_zoXUApIL1cQAzDsLf8D7UQas7OMzEZaDhoi0VgnDjoWYw8VldCCxbxjLO2H0xRBcYbw-QGXdnQL8cOeCZrquoO8LPHuC80FkYtYWHVUwQHq_utxmgbnRr28ZjjJbuqKSxVL2gAwOfAQ_Yh_NdvHtjaCVdVaua60gY4jGRgHhqo1H8vTWYXde0pnOfIDLRaQ3pQIjfKbTg8QGycEfjqJ0-uuCo2PhgEHD1FYctcHPzR_nj-dlyUfATI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IanlOTEFXYWF0bDlDTU1XM2ZSSWI0NFA5Y240RnlMdkcxUGtfLTdrbWdJQSZzPXVSclBLUE9xb3VjUlQ4ZFl2clotWVdKTGhzZGpzWWp4SDlRWVFvVENrcDRwWENxNTlGWUl5WmcxZFp0RjEyQmhYSXNzeUNDc29GWEJrQXQ4d21EdGJEcjRxQXVYekNKUlQ2b2NoakxUWnMtdTh3UVVkTWx6TGZXT3liZEkwZGZhZmNJb3dWVkx4eWlXbm5qS1FCVHB0a19jZjNQd0VuV1ZGVDRFeEdVLUlvd0puNGo3TlgyaVR1U3VfdFpqR2lGTl9FV1FPSThRaWhjREhQUjA1MlFTb3B1elBfRXdUTTdTSjEzYm1YZk5VOWpqMS00SG1qZFcycGdRSkY5cFhqTHZ6eThjOS1TRDJ0QUtGTnZJVVktTnhDR1dySGhaejY0TGo0WlVJVFdpRFFTaWNjSU1Fb1lYaGVpVHFFUi12T3NISEpNOWk5a1lXd3VqaFlsZ1ZId09CUSZoPU5YY2Q5OFZwcFVwdS02ZlZ2SFl4QUszVXktRFI1UWZCZnowY2hkUEN4YUk=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fde89331-1fcd-4d92-b143-39bc6984d449" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "3ca48f3b-3792-448d-9e10-efa9d42104d1" - ], - "x-ms-client-request-id": [ - "fde89331-1fcd-4d92-b143-39bc6984d449" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "6b049f60-35cd-4184-a126-8532040c9abd" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035817Z:6b049f60-35cd-4184-a126-8532040c9abd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1141E79AAF61475A886E1C64E14509CF Ref B: MAA201060514017 Ref C: 2024-05-21T03:58:16Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:16 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps9419/providers/Microsoft.Network/frontDoors/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411/frontdoorresults/ps1481?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c861a757-ff70-45f7-b1e6-a5e9a6837010" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQ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OiPMMU1XeUhNNIfPzA_KvzwowzZxLcK_a5uyWpb5isT3OkI367lm2GPfkhqx6jg&h=pJjqYMmvzAE8L-LCDlnojU7R6Loa1Bgy300l7QxrrnQ" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "2c474e56-f67a-4949-b039-1b20f4e1e7b8" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035823Z:2c474e56-f67a-4949-b039-1b20f4e1e7b8" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 46CD60CECBDC4BA386E426EAD7215C33 Ref B: MAA201060514021 Ref C: 2024-05-21T03:58:20Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:22 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo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c201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1169a751-a727-40f6-99a7-1ba70fa6a822" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "a8d40ac2-eb98-41e5-9618-938675a8d229" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035834Z:a8d40ac2-eb98-41e5-9618-938675a8d229" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 59A415F522B84A56A08F76F2CB8DAC73 Ref B: MAA201060514021 Ref C: 2024-05-21T03:58:33Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:34 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttE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Lcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c4ddeef5-d85b-45ce-9350-89dd02a5239a" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "b6d43ec0-99c3-460d-9e85-5f9c6ee98e01" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035845Z:b6d43ec0-99c3-460d-9e85-5f9c6ee98e01" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 41879879054B4D688C1898FD75DF1F66 Ref B: MAA201060514021 Ref C: 2024-05-21T03:58:44Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:45 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNx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Y05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f01bd785-0c73-4825-8805-86db4f148ad7" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "7fba4334-adb0-4412-a92d-6419b0717da5" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035856Z:7fba4334-adb0-4412-a92d-6419b0717da5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8FA820CA290144569C7783A735D3562D Ref B: MAA201060514021 Ref C: 2024-05-21T03:58:55Z" - ], - "Date": [ - "Tue, 21 May 2024 03:58:55 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORl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RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "05119af0-06e4-41b0-88e3-55053c0ab902" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "961235d1-154c-4d52-81d5-49a997b7ba68" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035907Z:961235d1-154c-4d52-81d5-49a997b7ba68" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 85D59984781B419B833013D9651EE0FA Ref B: MAA201060514021 Ref C: 2024-05-21T03:59:06Z" - ], - "Date": [ - "Tue, 21 May 2024 03:59:06 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQB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BIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "301296df-41cc-4faa-b7c8-4e7f800cbca0" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "566f83e1-080d-451b-8e18-c6e95d480b93" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035918Z:566f83e1-080d-451b-8e18-c6e95d480b93" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0CB3B1BF14E74C7688149BC8CAE217B7 Ref B: MAA201060514021 Ref C: 2024-05-21T03:59:17Z" - ], - "Date": [ - "Tue, 21 May 2024 03:59:17 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDV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YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9f6464aa-d7ca-47d0-a1f9-7147b5e7392b" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "9940f642-c370-43b1-89a3-d258de1479b9" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035932Z:9940f642-c370-43b1-89a3-d258de1479b9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8CAFC62C8DD345B089BBFDE5C5B719AC Ref B: MAA201060514021 Ref C: 2024-05-21T03:59:31Z" - ], - "Date": [ - "Tue, 21 May 2024 03:59:31 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducm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kRWhrNG1XZU5NRXlXc201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "3bf9f4b3-1912-4907-9608-f53632977152" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "9f1f5ad7-efc5-4bf2-8e83-904519b945f1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035943Z:9f1f5ad7-efc5-4bf2-8e83-904519b945f1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: AFF68032EB984005BCC059D613535FC3 Ref B: MAA201060514021 Ref C: 2024-05-21T03:59:42Z" - ], - "Date": [ - "Tue, 21 May 2024 03:59:42 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA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jV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "6778e069-50e8-470a-a13c-3272fc11070a" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "9dd0256d-95af-49f8-a958-27397bbfa93f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035954Z:9dd0256d-95af-49f8-a958-27397bbfa93f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F32A8024C4F248DFB0314139C47523BA Ref B: MAA201060514021 Ref C: 2024-05-21T03:59:53Z" - ], - "Date": [ - "Tue, 21 May 2024 03:59:53 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBA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cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e951ee97-a1c7-4b1c-a343-f72aabaaa6af" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "3755a298-357e-42b7-8fe4-b059a133bfbf" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040004Z:3755a298-357e-42b7-8fe4-b059a133bfbf" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F4F6CABF6B4242E5BD99225D1D9549DB Ref B: MAA201060514021 Ref C: 2024-05-21T04:00:04Z" - ], - "Date": [ - "Tue, 21 May 2024 04:00:04 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR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- "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ec30cde7-ec4c-421f-b079-11d6a8ae7796" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "8b1a1993-3b9b-4e65-aa0d-5f3b77dbc229" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040016Z:8b1a1993-3b9b-4e65-aa0d-5f3b77dbc229" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 49DC5C6EB439412183850DA3B4393E3E Ref B: MAA201060514021 Ref C: 2024-05-21T04:00:15Z" - ], - "Date": [ - "Tue, 21 May 2024 04:00:15 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqh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ENSZGtSWTJudGZfX1MwOWg1XzRsN2YzclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8fb8d339-669d-414e-9564-820fa7cbc9bd" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "f6955b29-b066-4390-85b9-9866d2bc520a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040026Z:f6955b29-b066-4390-85b9-9866d2bc520a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5764BC0B17F64B84BE8314AD70C9E5B8 Ref B: MAA201060514021 Ref C: 2024-05-21T04:00:26Z" - ], - "Date": [ - "Tue, 21 May 2024 04:00:26 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJ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DUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c997e53d-cfa7-4ddb-9f20-f65b407825b7" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "1c77a3bb-9598-48d8-b6b0-d20d6259af29" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040038Z:1c77a3bb-9598-48d8-b6b0-d20d6259af29" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 68C223F382D74A3B8049B72D55C1D5C6 Ref B: MAA201060514021 Ref C: 2024-05-21T04:00:37Z" - ], - "Date": [ - "Tue, 21 May 2024 04:00:37 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvx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NRXlXc201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "53bd4f25-f3e1-4491-b4a2-d333e2a976b0" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "500bcba7-feed-4dfa-8d7a-67d907062895" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040048Z:500bcba7-feed-4dfa-8d7a-67d907062895" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 08C42F3BDCDD4E19BDA6A981B72E6F2E Ref B: MAA201060514021 Ref C: 2024-05-21T04:00:48Z" - ], - "Date": [ - "Tue, 21 May 2024 04:00:48 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8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ExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "98887272-d084-4f6b-b029-726dc207906d" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "1b85e0a8-97d7-4958-a635-656b808f39bb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040059Z:1b85e0a8-97d7-4958-a635-656b808f39bb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: FB93346DD02E499785481918AED5192B Ref B: MAA201060514021 Ref C: 2024-05-21T04:00:59Z" - ], - "Date": [ - "Tue, 21 May 2024 04:00:59 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYT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ZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "27cc37ba-5177-4627-9c10-e89e8b251d7a" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-correlation-request-id": [ - "5a220975-fb17-4960-85f7-90fd0388d7d9" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T040110Z:5a220975-fb17-4960-85f7-90fd0388d7d9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 05EF152A631A435C8BA0029CA674BF99 Ref B: MAA201060514021 Ref C: 2024-05-21T04:01:10Z" - ], - "Date": [ - "Tue, 21 May 2024 04:01:09 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJB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estHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "44277ded-4b54-42f9-8fec-f17a045f718f" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "2500dc49-ea7d-4a52-9be1-3f203545d293" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040121Z:2500dc49-ea7d-4a52-9be1-3f203545d293" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 41EF783AF39D4C0289FA9C3D19FA46A6 Ref B: MAA201060514021 Ref C: 2024-05-21T04:01:20Z" - ], - "Date": [ - "Tue, 21 May 2024 04:01:21 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImi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2YzclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "6e950e93-ef94-4564-a23f-5c3e3334862a" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "f04a2659-9394-4536-8759-8d6cfc52734f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040132Z:f04a2659-9394-4536-8759-8d6cfc52734f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A887749BA6B3430AAE1B007CB9E7244C Ref B: MAA201060514021 Ref C: 2024-05-21T04:01:31Z" - ], - "Date": [ - "Tue, 21 May 2024 04:01:32 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0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NON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9ZDdWZ1FBSmlBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8debb07f-9702-4b82-87f4-ea85dd41e63a" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "3bb8d17e-79cf-40f1-96dd-8a6e873b1c20" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040143Z:3bb8d17e-79cf-40f1-96dd-8a6e873b1c20" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B82BEDDB841B4D23ABDF5D959FF0A034 Ref B: MAA201060514021 Ref C: 2024-05-21T04:01:43Z" - ], - "Date": [ - "Tue, 21 May 2024 04:01:43 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5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lBZTRwSGxZQzM1aUlqM1NhdWl5cHFERENzOURWQzh6TE5WVmRjcFlUUjI4RWZRSnk1cGRCM1cwR0VSX0luci1ZQVpOZDNweUxZMmZKdWlkMDlXcDAzV0hRVUllemN2Q1E1UldHdEVwOTBPMjV2RUtXcExfQWJzNmZLcm9YdE4yYWZ3Y19TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "04c912b0-76d9-4770-a1c6-5d10f03c7825" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "7fe29e53-75ba-4a19-bbfc-8e00ab1646a6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040155Z:7fe29e53-75ba-4a19-bbfc-8e00ab1646a6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A3A00604582D491981BD18D9B08C42AC Ref B: MAA201060514021 Ref C: 2024-05-21T04:01:54Z" - ], - "Date": [ - "Tue, 21 May 2024 04:01:54 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411?api-version=2021-06-01&t=638518607035483340&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHeb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TNHdJMkxsN2lFS0hqWUhETkxOQ2U0ejNPNHFTQkgtem9TbjhHRTczMGtQOTZwdnozVE92d0RDd2xkZW1penJpc2Q2d29vbVFOQU5pZWpqakkteGtIOWlZV29uSFRPVFhkYTQtX2hUbHdrQjBQMDY1NGhsQm53cWNGY05UczI0anlJZFA0Q1R0R0lqT2lQTU1VMVhlVWhOTklmUHpBX0t2endvd3paeExjS19hNXV5V3BiNWlzVDNPa0kzNjdsbTJHUGZraHF4NmpnJmg9cEpqcVlNbXZ6QUU4TC1MQ0Rsbm9qVTdSNkxvYTFCZ3kzMDBsN1F4cnJuUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a19f41e1-58cf-466e-a1b2-2be2a675e0ec" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "bc14b1bf-d8d8-4e11-9661-1c831adc90af" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040205Z:bc14b1bf-d8d8-4e11-9661-1c831adc90af" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 781A7DABB1BB4665B743CAECCB23CDFA Ref B: MAA201060514021 Ref C: 2024-05-21T04:02:05Z" - ], - "Date": [ - "Tue, 21 May 2024 04:02:04 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419/providers/Microsoft.Network/frontdooroperationresults/a6217ee6-152a-4ebc-b68d-a732c4b1c411/frontdoorresults/ps1481?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzOTQxOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnRkb29yb3BlcmF0aW9ucmVzdWx0cy9hNjIxN2VlNi0xNTJhLTRlYmMtYjY4ZC1hNzMyYzRiMWM0MTEvZnJvbnRkb29ycmVzdWx0cy9wczE0ODE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e9046e08-6289-469d-8186-006dbbd247f1" - ], - "x-ms-client-request-id": [ - "16ae0744-72cd-4c77-aeb9-fa902860d238" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "387f0d99-c083-4ce0-823a-40b161b92130" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040206Z:387f0d99-c083-4ce0-823a-40b161b92130" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 84FCA95FD31A454A9E1AC29606330C41 Ref B: MAA201060514021 Ref C: 2024-05-21T04:02:05Z" - ], - "Date": [ - "Tue, 21 May 2024 04:02:05 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps9419?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzOTQxOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "cf758003-a992-497c-8375-303373f7a3e7" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609342284305&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFg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p96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=nMyTJ9emsgzxo5RhIwCM4cf5Cxu4i-ACsO5BAXgd0emqOhFDA3an1IjZoG_bwQH6NzXfzdqRA5oiHJli7FdplqEWpZ7JFbrZqDuhJOBoH9D9_5dUjfKVEKt8TkFUYmoVGOhCbS-Wev7yPL_Aq0BhPkzC8xmtM3ENZvgqyLmB6nfe8iu24Z1v0VCZbP-7xScHyaQcMrbpuhdqh_FvKE9shMXrY0D6Brd9sewcX911K5YBygyj8djYIODcTIwz2jslSIYyxNgmFX64ivc46n2_3VZqQU9bE7fPZqUr-iBcgTtY4zNJkaG-6XEELrSICSBo_-EqifNCY8qQg3p5TVfyjg&h=7Vi0REImWS3LGbaB7aWV4OJOr1sM_RbjcpW4ginA_Cs" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "abe72937-d0f0-45d5-a097-5267b7e5e82e" - ], - "x-ms-correlation-request-id": [ - "abe72937-d0f0-45d5-a097-5267b7e5e82e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040214Z:abe72937-d0f0-45d5-a097-5267b7e5e82e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 4B93273C531C48EEA91431630F93239F Ref B: MAA201060513023 Ref C: 2024-05-21T04:02:09Z" - ], - "Date": [ - "Tue, 21 May 2024 04:02:13 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609342284305&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQ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TVhyWTBENkJyZDlzZXdjWDkxMUs1WUJ5Z3lqOGRqWUlPRGNUSXd6MmpzbFNJWXl4TmdtRlg2NGl2YzQ2bjJfM1ZacVFVOWJFN2ZQWnFVci1pQmNnVHRZNHpOSmthRy02WEVFTHJTSUNTQm9fLUVxaWZOQ1k4cVFnM3A1VFZmeWpnJmg9N1ZpMFJFSW1XUzNMR2JhQjdhV1Y0T0pPcjFzTV9SYmpjcFc0Z2luQV9Dcw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609500683643&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUr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hR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=jO-Bh1Z9pfvjuvTe02VwsGVySiiURfncmJ4ilRczasojAdaFmzG7ScWS0OqZYiY4qkpq7uwlpQF3QPlMsGH8rpK5RthavIi-AQFHCuIZRDB9IG99MDIGkdsrJ3M1JtaCQxiv0RcSqzVXhHZGExLajh4aH8alfkjAYh_nIGedw4L04XpLa3Q9IRyBcWVCUc_wlBemCLkPsq7WLYXfnxdfJc3DQftC0Lg8XwewnFJ2V76Pl-ndIIjqwQFXhpMpLCXkUG_9ZhL-YOVo2t0F9QgoBANb8CcTgVChvPxU4Zgdc8cFMfa6L6l-BnciZ7RlAT1APyt4MZnR4J7mqW60io7gnw&h=RfnCbix_vZUFJzc1R1GWn_gadJPoJxtEL_XKeuvar7E" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "1ee7aaff-f5ae-48f9-a4b8-7bf0d0972007" - ], - "x-ms-correlation-request-id": [ - "1ee7aaff-f5ae-48f9-a4b8-7bf0d0972007" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040230Z:1ee7aaff-f5ae-48f9-a4b8-7bf0d0972007" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 82F15F6E0F7C4DC79768EE25CEB2A132 Ref B: MAA201060513023 Ref C: 2024-05-21T04:02:29Z" - ], - "Date": [ - "Tue, 21 May 2024 04:02:29 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG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3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609659442716&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQ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rKqnInllvdX0msfOB87l0wjJxH-A8sP4xHCvCUtuk3NHLn-cvQosOJhGwAZ_dw20WUQ7del0VuA&h=qpwoAM1u5oVUn5H6hHn83YZVy24NyZQh73uerU675U0" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "024ae731-79aa-45ed-b411-997e188c7605" - ], - "x-ms-correlation-request-id": [ - "024ae731-79aa-45ed-b411-997e188c7605" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040245Z:024ae731-79aa-45ed-b411-997e188c7605" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F2BB512624A4421289E724E2E02E9335 Ref B: MAA201060513023 Ref C: 2024-05-21T04:02:45Z" - ], - "Date": [ - "Tue, 21 May 2024 04:02:45 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609659442716&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6d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2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9cU40bFR4aDc5ZWJXZWdOUjZHVEdmME9ZbjZRZ2o1V01sT3RqdThFdW9LZWpZQmlBZmxQXzE4R1N4NlJqbmM5U3BRYWRzWjNQdEE1R2tMekVwOHVubmtjeVYwUVhoSVJkZGVvNlFrVzVsNjdsNkFMby02YzVZcURkNjZQUzlBX2g3VkFRTXNRRV9Hai1nZEFseWJyeUExQVpxYUNvdkhCLVhiV05HMUttbjlYdDdTcUdiNmR1aFd5R0VLRmFKeFNYTnJnSkdRLTVYUFdDa1ZjSzZCUE41Mkw5b1dORjQxNGxmTUJVNHh1em5YWGZsTXJMaVJOcnJEUnJlWk1hTzFuQkdsQzNxUi10U0JKcktxbklubGx2ZFgwbXNmT0I4N2wwd2pKeEgtQThzUDR4SEN2Q1V0dWszTkhMbi1jdlFvc09KaEd3QVpfZHcyMFdVUTdkZWwwVnVBJmg9cXB3b0FNMXU1b1ZVbjVINmhIbjgzWVpWeTI0TnlaUWg3M3VlclU2NzVVMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609818902737&c=MIIHpTCCBo2gAwIBAg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AfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=TGV9WhEy9pOTz4KwoMsGmfGu5BTJtKPO4vwm8vOqkZq3oQaWpGBZ4lZVtmUM6xFuLV3bu7ETgDorw-re8NHqkksgMjE92V-ohZcT2La4EgILJlyVcZG6yxsuhCSD4HrkYsuWpnfz3jR_MF9MPUmhDdIms9_VYKjxZ8wjN7qzV5G3rioOL1lQkR2QAJxxTvTOFn-sP3UpXazP0g_LLMHEUNtx5kT3s0RCV87AhWqVV0z1P1JWFJ2nw4p60IKdf5D5Vw6isKDzGeUwqEmBQZF0uDyn1BXQCuHTklYishxl-4F6gKevUfHrHnhesKATuLSF6uUgllLyuB0rnwLWYMJmOQ&h=Co9q76omVK7F6N9k7KsDie2b8_RfK1N7G1X_aieiT2M" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "74b6b8af-1a44-48d0-b550-9436816ef9ca" - ], - "x-ms-correlation-request-id": [ - "74b6b8af-1a44-48d0-b550-9436816ef9ca" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040301Z:74b6b8af-1a44-48d0-b550-9436816ef9ca" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 33A6CCA3889F4DD894E47865DFD7CC60 Ref B: MAA201060513023 Ref C: 2024-05-21T04:03:01Z" - ], - "Date": [ - "Tue, 21 May 2024 04:03:01 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609818902737&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebw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cG5mejNqUl9NRjlNUFVtaERkSW1zOV9WWUtqeFo4d2pON3F6VjVHM3Jpb09MMWxRa1IyUUFKeHhUdlRPRm4tc1AzVXBYYXpQMGdfTExNSEVVTnR4NWtUM3MwUkNWODdBaFdxVlYwejFQMUpXRkoybnc0cDYwSUtkZjVENVZ3NmlzS0R6R2VVd3FFbUJRWkYwdUR5bjFCWFFDdUhUa2xZaXNoeGwtNEY2Z0tldlVmSHJIbmhlc0tBVHVMU0Y2dVVnbGxMeXVCMHJud0xXWU1KbU9RJmg9Q285cTc2b21WSzdGNk45azdLc0RpZTJiOF9SZksxTjdHMVhfYWllaVQyTQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609978889747&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBA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FkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=nk9WmKN4X5YI9yCbJLpYlhsn_s8STLcM8rngJHAn3mG7THfXoEO_I8NaFeTPvr56Kn8FcrSmVPmO33Xui0ryBtYvZ5VxrXpfE0wpnS865SDhOAgZxqnIcItZH_sEVIzhb4EfMwzYdPrtLkxWOogkV3XOhk3ft2J3pEnBVD3VUbCLY8dOtcicB9yY0Hcejl5DAUMRboM7KPhqDKDwFDEJm0IWUtShxIF0n8ZDPkylOm0Zp_YscBdSfN39Rk35zM7CHXUKacU4rq5q6laP9_QAaHzAMzBm15-EQLBQb0CF8KsEkf53xyFqV8QOIoyyMgXTvcJy2Dgo02pY2vR92sj9ng&h=ALakjjFFf5mxJBWMAnz7JIjVx2oTiDf8yvTaPKO7ol0" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "d5ceace8-0327-46d8-995f-f43ce21232c0" - ], - "x-ms-correlation-request-id": [ - "d5ceace8-0327-46d8-995f-f43ce21232c0" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040317Z:d5ceace8-0327-46d8-995f-f43ce21232c0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 7D157A08DAFA450091D0F6A7E61A2CD4 Ref B: MAA201060513023 Ref C: 2024-05-21T04:03:17Z" - ], - "Date": [ - "Tue, 21 May 2024 04:03:17 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1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vVGlEZjh5dlRhUEtPN29sMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "f6a4c9f1-1369-42b0-acff-4b104b1b6cd2" - ], - "x-ms-correlation-request-id": [ - "f6a4c9f1-1369-42b0-acff-4b104b1b6cd2" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040333Z:f6a4c9f1-1369-42b0-acff-4b104b1b6cd2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8BA5E15715814376A0F8F95CDB7D973B Ref B: MAA201060513023 Ref C: 2024-05-21T04:03:33Z" - ], - "Date": [ - "Tue, 21 May 2024 04:03:33 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzk0MTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518609978889747&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwN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bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9bms5V21LTjRYNVlJOXlDYkpMcFlsaHNuX3M4U1RMY004cm5nSkhBbjNtRzdUSGZYb0VPX0k4TmFGZVRQdnI1NktuOEZjclNtVlBtTzMzWHVpMHJ5QnRZdlo1VnhyWHBmRTB3cG5TODY1U0RoT0FnWnhxbkljSXRaSF9zRVZJemhiNEVmTXd6WWRQcnRMa3hXT29na1YzWE9oazNmdDJKM3BFbkJWRDNWVWJDTFk4ZE90Y2ljQjl5WTBIY2VqbDVEQVVNUmJvTTdLUGhxREtEd0ZERUptMElXVXRTaHhJRjBuOFpEUGt5bE9tMFpwX1lzY0JkU2ZOMzlSazM1ek03Q0hYVUthY1U0cnE1cTZsYVA5X1FBYUh6QU16Qm0xNS1FUUxCUWIwQ0Y4S3NFa2Y1M3h5RnFWOFFPSW95eU1nWFR2Y0p5MkRnbzAycFkydlI5MnNqOW5nJmg9QUxha2pqRkZmNW14SkJXTUFuejdKSWpWeDJvVGlEZjh5dlRhUEtPN29sMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "62cda192-2f5e-456d-829b-727893fbdc92" - ], - "x-ms-correlation-request-id": [ - "62cda192-2f5e-456d-829b-727893fbdc92" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040334Z:62cda192-2f5e-456d-829b-727893fbdc92" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 107144DEB2004EA0B1D65FD5627630D2 Ref B: MAA201060513023 Ref C: 2024-05-21T04:03:33Z" - ], - "Date": [ - "Tue, 21 May 2024 04:03:34 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": { - "Test-FrontDoorCrudRedirect": [ - "ps1481", - "ps9419" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudWithPiping.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudWithPiping.json deleted file mode 100644 index 530f8fe3946a..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorCrudWithPiping.json +++ /dev/null @@ -1,2842 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "eb4ab86b-1eab-406e-8f8e-ee6c57751fa5" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "359b15b4-1249-4f35-b2ab-4050ee3b4478" - ], - "x-ms-correlation-request-id": [ - "359b15b4-1249-4f35-b2ab-4050ee3b4478" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041023Z:359b15b4-1249-4f35-b2ab-4050ee3b4478" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 91C6C7EA68154BF792ECACC7EBA00125 Ref B: MAA201060515047 Ref C: 2024-05-21T04:10:21Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:22 GMT" - ], - "Content-Length": [ - "19433" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzNjkwNz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0085a706-f5fd-4ffc-b9dc-3282d1a86455" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "c3ea8a8e-713f-4feb-b927-25d8877eccd9" - ], - "x-ms-correlation-request-id": [ - "c3ea8a8e-713f-4feb-b927-25d8877eccd9" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041027Z:c3ea8a8e-713f-4feb-b927-25d8877eccd9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B2E19F46EFBE482B8753F4112F5E2F4A Ref B: MAA201060516021 Ref C: 2024-05-21T04:10:23Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:27 GMT" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907\",\r\n \"name\": \"ps6907\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ed3f995a-8e0f-497c-82f9-c41edc334dc5" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "04e81d98-bd86-439d-befe-6bfe4e68cecc" - ], - "x-ms-correlation-request-id": [ - "04e81d98-bd86-439d-befe-6bfe4e68cecc" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041028Z:04e81d98-bd86-439d-befe-6bfe4e68cecc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 362C4FAB122E4B96A70C9FA4F8C87BB9 Ref B: MAA201060515051 Ref C: 2024-05-21T04:10:27Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:27 GMT" - ], - "Content-Length": [ - "12" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "bddad8aa-ada7-45df-848c-711f2c2ba0c4" - ], - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "09b6eb16-11a5-4356-8e4b-d4f315996666" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041049Z:09b6eb16-11a5-4356-8e4b-d4f315996666" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 4B5BA5973EA646118F39ED02022D2677 Ref B: MAA201060515023 Ref C: 2024-05-21T04:10:48Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:48 GMT" - ], - "Content-Length": [ - "3975" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdoors/ps5523\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps5523\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"c1b75732-8082-4312-a1c5-f123c4234036\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps5523.azurefd.net\",\r\n \"friendlyName\": \"ps5523\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "50ee7107-465a-41ea-a61e-5d6c884d0906" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "1c751b1a-3717-47ff-8fc8-3eeaeebbdbeb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041108Z:1c751b1a-3717-47ff-8fc8-3eeaeebbdbeb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2B6AB2DCF68D42FDB1CE79EDFBF33071 Ref B: MAA201060513027 Ref C: 2024-05-21T04:11:07Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:07 GMT" - ], - "Content-Length": [ - "3975" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdoors/ps5523\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps5523\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"c1b75732-8082-4312-a1c5-f123c4234036\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps5523.azurefd.net\",\r\n \"friendlyName\": \"ps5523\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ed3f995a-8e0f-497c-82f9-c41edc334dc5" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3044" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps5523\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n }\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cea7def9-bbe9-48c5-961a-4f162554c672" - ], - "x-ms-client-request-id": [ - "ed3f995a-8e0f-497c-82f9-c41edc334dc5" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/bc01a285-50fd-4fbe-9328-33d6ee1a241c?api-version=2021-06-01&t=638518614333647435&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc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UjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=pVXABy8KPAvR3gH6bYGev380X67m76-BouPlmYuZsSOlfOd6eR8wiTehTWqOfQKbR06d4PGg5_1vEFccqFr2xLZknp2L5wcCnUKBNaKTmZHJPi3gusJ3vyOVh_lGxBge24SUvdOfss7tMtzDd2OOPxndkU847fWaoSyI3weGwtoh2m1xnLO_8fiQkigvX15IwYlYtR2iJjiOwWiqVwR7BldwHE-zlw5xaPeFNI_lpugvETVCM5VDklsr6KsQ1EQrzupw0EmCnY_GWf4gDII6I4DNnX4k7inf4nfVkSY8L053LwFEOamayOoxn8BnT1_Tp6tVwYwHdQxNp4vJxFCXtQ&h=svI4yGzf-068ptH8lu2AW-2RT0M5J1XB96tEH67WTBc" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "aaf0fb43-7f44-4701-ae10-d6b1e59f2dac" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041033Z:aaf0fb43-7f44-4701-ae10-d6b1e59f2dac" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9F41C87BB5D246F293314ED8A31E82B0 Ref B: MAA201060515051 Ref C: 2024-05-21T04:10:28Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:32 GMT" - ], - "Content-Length": [ - "3968" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdoors/ps5523\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps5523\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Creating\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"c1b75732-8082-4312-a1c5-f123c4234036\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps5523.azurefd.net\",\r\n \"friendlyName\": \"ps5523\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3044" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps5523\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n }\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/45d30f28-2794-4864-9063-e11a9a83b237/frontdoorresults/ps5523?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1879ceb2-3c76-4507-9f17-868b82d1c5b0" - ], - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/45d30f28-2794-4864-9063-e11a9a83b237?api-version=2021-06-01&t=638518614528981952&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XK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r7q6tag1nytj6Mfpc-2xDdEKMbtRYoEEeIhUo0wQwR67WaYtiufOcouIU7VizS_yegeCHmWsNtqExUqRJ9pjfowR-E-uAEhlOCYga7PQac8uqeLc-F_zMcTvSPdHj44bUS66ZlRXInmcRkfz8S4AKOjyafQhBkL3KUg7j7F1oMXuxuSN4LmyVNVSPBmxdfxueTuvkz3Uhg7r34FtSnF2DRPnsZ6uxM5ZFXOBq7O7KomeOhnXxg&h=KPQUR6lhnSm0PPJVlHGBNDchOM65Gc8SZf1SPSXNvLc" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "41fc4863-fbb8-4c56-a043-f2cea6e52301" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041052Z:41fc4863-fbb8-4c56-a043-f2cea6e52301" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 307C7E33AD674BBCAF217397C40A4574 Ref B: MAA201060515023 Ref C: 2024-05-21T04:10:49Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:52 GMT" - ], - "Content-Length": [ - "3963" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdoors/ps5523\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps5523\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"c1b75732-8082-4312-a1c5-f123c4234036\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps5523.azurefd.net\",\r\n \"friendlyName\": \"ps5523\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/bc01a285-50fd-4fbe-9328-33d6ee1a241c?api-version=2021-06-01&t=638518614333647435&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_Lg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dUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9cFZYQUJ5OEtQQXZSM2dINmJZR2V2MzgwWDY3bTc2LUJvdVBsbVl1WnNTT2xmT2Q2ZVI4d2lUZWhUV3FPZlFLYlIwNmQ0UEdnNV8xdkVGY2NxRnIyeExaa25wMkw1d2NDblVLQk5hS1RtWkhKUGkzZ3VzSjN2eU9WaF9sR3hCZ2UyNFNVdmRPZnNzN3RNdHpEZDJPT1B4bmRrVTg0N2ZXYW9TeUkzd2VHd3RvaDJtMXhuTE9fOGZpUWtpZ3ZYMTVJd1lsWXRSMmlKamlPd1dpcVZ3UjdCbGR3SEUtemx3NXhhUGVGTklfbHB1Z3ZFVFZDTTVWRGtsc3I2S3NRMUVRcnp1cHcwRW1DbllfR1dmNGdESUk2STRETm5YNGs3aW5mNG5mVmtTWThMMDUzTHdGRU9hbWF5T294bjhCblQxX1RwNnRWd1l3SGRReE5wNHZKeEZDWHRRJmg9c3ZJNHlHemYtMDY4cHRIOGx1MkFXLTJSVDBNNUoxWEI5NnRFSDY3V1RCYw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ed3f995a-8e0f-497c-82f9-c41edc334dc5" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "813ea169-ddf8-460f-944c-4145918a8c56" - ], - "x-ms-client-request-id": [ - "ed3f995a-8e0f-497c-82f9-c41edc334dc5" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "33996a88-b0ac-4c10-acea-5b4516a4e8f4" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041044Z:33996a88-b0ac-4c10-acea-5b4516a4e8f4" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: C5EB85DC60534D039171F647A624A7DD Ref B: MAA201060515051 Ref C: 2024-05-21T04:10:43Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:43 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ed3f995a-8e0f-497c-82f9-c41edc334dc5" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9bdac9c4-6311-4fcf-bdc4-c39727968b61" - ], - "x-ms-client-request-id": [ - "ed3f995a-8e0f-497c-82f9-c41edc334dc5" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "c5490aca-bc7a-4997-a4f7-a9d3cdd51a36" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041045Z:c5490aca-bc7a-4997-a4f7-a9d3cdd51a36" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: C3DF0A29CB1C4C3B9168BFC667D8DA4B Ref B: MAA201060515051 Ref C: 2024-05-21T04:10:44Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:45 GMT" - ], - "Content-Length": [ - "3963" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdoors/ps5523\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps5523\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"c1b75732-8082-4312-a1c5-f123c4234036\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps5523.azurefd.net\",\r\n \"friendlyName\": \"ps5523\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "3447214b-3588-4521-8526-49a13521c6b1" - ], - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "7939ffb9-1a0d-4fc4-ba4a-0a88676de147" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041047Z:7939ffb9-1a0d-4fc4-ba4a-0a88676de147" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E5801EFEC8FA44328CFBC8E4198BD916 Ref B: MAA201060513045 Ref C: 2024-05-21T04:10:46Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:46 GMT" - ], - "Content-Length": [ - "3963" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdoors/ps5523\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps5523\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"c1b75732-8082-4312-a1c5-f123c4234036\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps5523.azurefd.net\",\r\n \"friendlyName\": \"ps5523\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "22a63594-5630-4ac4-b561-d53b4e094b84" - ], - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "19fbd62d-a6fb-4741-9110-65bf71a7d1b2" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041105Z:19fbd62d-a6fb-4741-9110-65bf71a7d1b2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1842F79336EB4CCA9EC418DDF7D52134 Ref B: MAA201060515023 Ref C: 2024-05-21T04:11:04Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:04 GMT" - ], - "Content-Length": [ - "3963" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdoors/ps5523\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps5523\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"c1b75732-8082-4312-a1c5-f123c4234036\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps5523.azurefd.net\",\r\n \"friendlyName\": \"ps5523\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d6df151b-f339-488c-ada2-e6cc7fb350e1" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "ea882250-ee0a-4f96-8867-36273a784fca" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041106Z:ea882250-ee0a-4f96-8867-36273a784fca" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: AC6E7339D438447C891AF558B561EE70 Ref B: MAA201060515021 Ref C: 2024-05-21T04:11:05Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:06 GMT" - ], - "Content-Length": [ - "3963" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdoors/ps5523\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps5523\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"c1b75732-8082-4312-a1c5-f123c4234036\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Disabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/Frontdoors/ps5523/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps5523.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps5523.azurefd.net\",\r\n \"friendlyName\": \"ps5523\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a1ffe59a-80ea-4a4e-9e63-7688be9e1e7d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "56c2e961-6cdf-4523-abbd-37b74639de32" - ], - "x-ms-client-request-id": [ - "a1ffe59a-80ea-4a4e-9e63-7688be9e1e7d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "89a82fe1-4716-4db6-9257-52d07da56de7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041601Z:89a82fe1-4716-4db6-9257-52d07da56de7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 222C8D428C394592A461E1436546A150 Ref B: MAA201060513019 Ref C: 2024-05-21T04:15:59Z" - ], - "Date": [ - "Tue, 21 May 2024 04:16:01 GMT" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/45d30f28-2794-4864-9063-e11a9a83b237?api-version=2021-06-01&t=638518614528981952&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwP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M2NlpsUlhJbm1jUmtmejhTNEFLT2p5YWZRaEJrTDNLVWc3ajdGMW9NWHV4dVNONExteVZOVlNQQm14ZGZ4dWVUdXZrejNVaGc3cjM0RnRTbkYyRFJQbnNaNnV4TTVaRlhPQnE3TzdLb21lT2huWHhnJmg9S1BRVVI2bGhuU20wUFBKVmxIR0JORGNoT002NUdjOFNaZjFTUFNYTnZMYw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "70a7e7e3-7738-4bd7-b2b3-4de2613bb7e7" - ], - "x-ms-client-request-id": [ - "5495c783-7aef-439f-9a14-885ea44d847c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "0981febd-bf6f-4fc0-b01e-7f74a3217a68" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041103Z:0981febd-bf6f-4fc0-b01e-7f74a3217a68" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 970FC9D525A8461093E9DF8542478609 Ref B: MAA201060515023 Ref C: 2024-05-21T04:11:03Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:03 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps6907/providers/Microsoft.Network/frontDoors/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094/frontdoorresults/ps5523?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8c96238f-a053-4c3e-aee8-f72099d9c013" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQ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Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=RyhQzjXC9URjCOqPCRfDyvW7-oWg37Tp204KcR4tpx5P3i9LaKms6OkfP07lPuXg_GgduKc66dEszMqflcGrKdXWrA74PNwRtXxiAxK-_J9v-VvUS1QiZmpQXHwdKga5OGaOZQBwasACt151S-UmRP5jvK-FLd_nW8Fe57-DsmJXLL-zesi34oCo5eC-ixX7nPns51yBlG5fn7ZyvRhS93QIcKc3vE9CKQz2CG3L5U97fCQoqy_gZH56mjfIXkBIeSSvT3OqB8VJTk-YgNC247MMqS1bdIPYlnGPmkXduUVAafXVYb3ZEpSN4J_p4oa1Sh2ovm9wP5lsXS-iYwBw1w&h=sKmyWCHB9VmWRwxoscLkk8jaj60LFeKdaTmp_jNuGns" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "137c8776-63f3-4b81-9088-420c1cde723d" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041112Z:137c8776-63f3-4b81-9088-420c1cde723d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 50131F559B2442299675C9A66FA12CF4 Ref B: MAA201060513027 Ref C: 2024-05-21T04:11:08Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:11 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs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RrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c07bcd41-660d-49e5-b447-d11c6e50b09a" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "23fe4de4-e9fd-4f99-b280-9de483f848bd" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041123Z:23fe4de4-e9fd-4f99-b280-9de483f848bd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: FD92530BABE640D9A484352221FA1035 Ref B: MAA201060513027 Ref C: 2024-05-21T04:11:22Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:22 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0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ET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ad0c39fd-ef25-4a6c-a063-1e71cb7bfda7" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "6bc84b58-c3ba-4f90-8973-e014dbe5a73b" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041134Z:6bc84b58-c3ba-4f90-8973-e014dbe5a73b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6DF6C97A349645E296F4C32FBC4F73D1 Ref B: MAA201060513027 Ref C: 2024-05-21T04:11:33Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:33 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFAD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JudGZfX1MwOWg1XzRsN2YzclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "bd6564ee-cf2a-4019-9846-70f86c32c4ef" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "c7619962-ea8b-4202-ba77-3c3204d957db" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041145Z:c7619962-ea8b-4202-ba77-3c3204d957db" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B87C2EB9A2E842F89125E154CC4E192F Ref B: MAA201060513027 Ref C: 2024-05-21T04:11:44Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:44 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlv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UkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5c148965-38a1-4976-a4fc-ad502c37a9dc" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "1b0153d6-ed2f-4962-9c84-5f00fbc4df96" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041156Z:1b0153d6-ed2f-4962-9c84-5f00fbc4df96" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 177A796C094A4D9F94E17E5309808F99 Ref B: MAA201060513027 Ref C: 2024-05-21T04:11:55Z" - ], - "Date": [ - "Tue, 21 May 2024 04:11:56 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2y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NG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2e518832-e470-490c-b371-f2e665f7d8a1" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "60e9690d-c4f8-4cdb-8860-632fe82f67d5" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041207Z:60e9690d-c4f8-4cdb-8860-632fe82f67d5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E3393B5A116B414ABA188B45EA9C4378 Ref B: MAA201060513027 Ref C: 2024-05-21T04:12:06Z" - ], - "Date": [ - "Tue, 21 May 2024 04:12:07 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYv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LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f86869bd-db69-4ee4-ac9a-6177d4db3391" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "f4497f46-37b0-4a60-a368-4638018ae47a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041218Z:f4497f46-37b0-4a60-a368-4638018ae47a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B1861CB31AAB43E89EF5C67F2AE5EA4E Ref B: MAA201060513027 Ref C: 2024-05-21T04:12:17Z" - ], - "Date": [ - "Tue, 21 May 2024 04:12:18 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAG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VVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d248d748-e229-4e82-a94a-00fff8c84cf2" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "b0d20bca-c84f-4150-862c-d2d05eaab59d" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041229Z:b0d20bca-c84f-4150-862c-d2d05eaab59d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5ED9C4D983C849FB9EF067708F6E1ACB Ref B: MAA201060513027 Ref C: 2024-05-21T04:12:28Z" - ], - "Date": [ - "Tue, 21 May 2024 04:12:29 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2Vyd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1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "03826dc0-0c97-4840-92f4-f9e3f1c418a1" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "0e382317-c5de-4481-a147-b9b7f4c9f5c0" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041240Z:0e382317-c5de-4481-a147-b9b7f4c9f5c0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E41C11291A9D40839DD604DDB1E2EF16 Ref B: MAA201060513027 Ref C: 2024-05-21T04:12:39Z" - ], - "Date": [ - "Tue, 21 May 2024 04:12:40 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBA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VUZWcngxaDVHODNXa1JVSWxLZEVTSHJVamR1SUVTeENSZGtSWTJudGZfX1MwOWg1XzRsN2YzclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b152eb3b-0b19-4c8e-a93a-2dd1d26e72c5" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "b9ad26e1-1220-424d-88d1-ee606d03bc63" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041251Z:b9ad26e1-1220-424d-88d1-ee606d03bc63" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: C09546C288A64C2AB7B635A35D7E6B24 Ref B: MAA201060513027 Ref C: 2024-05-21T04:12:50Z" - ], - "Date": [ - "Tue, 21 May 2024 04:12:51 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1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2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2ee59cc3-6678-40f2-9336-de88f8aad55f" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "ebed929e-1f29-482f-966e-434c376635b5" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041302Z:ebed929e-1f29-482f-966e-434c376635b5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B09C46B2BADB4E309F8B811A3435AB60 Ref B: MAA201060513027 Ref C: 2024-05-21T04:13:01Z" - ], - "Date": [ - "Tue, 21 May 2024 04:13:02 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe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VoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f699af8c-a0f9-48c1-8fcf-aaec6afd0816" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "65f8eb1e-3365-4e5b-b5d3-feb3ee9bf7ec" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T041313Z:65f8eb1e-3365-4e5b-b5d3-feb3ee9bf7ec" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9382695C121C43BDBF1A79E7E07EA056 Ref B: MAA201060513027 Ref C: 2024-05-21T04:13:12Z" - ], - "Date": [ - "Tue, 21 May 2024 04:13:13 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHa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19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2d414e62-a3a4-4222-88c9-0bddf938ee8f" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "8f994ac1-a2e0-41cf-941f-afd320a5a483" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041325Z:8f994ac1-a2e0-41cf-941f-afd320a5a483" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 3A2D5B48F09C42B6B9EF1A6B09D3F9CC Ref B: MAA201060513027 Ref C: 2024-05-21T04:13:24Z" - ], - "Date": [ - "Tue, 21 May 2024 04:13:24 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSO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G9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "7d2197f3-3fb9-4a74-ab5a-1c063c68f887" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "42f027a5-6eac-4fe6-bf63-aaa68062be58" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041336Z:42f027a5-6eac-4fe6-bf63-aaa68062be58" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 02875F99090D44418E27AAE758C03F1F Ref B: MAA201060513027 Ref C: 2024-05-21T04:13:35Z" - ], - "Date": [ - "Tue, 21 May 2024 04:13:35 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIM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M1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "601a30d7-e308-4fc0-9185-60463934b7a3" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "0da0f814-4816-421d-a2bf-e03e21840bf6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041347Z:0da0f814-4816-421d-a2bf-e03e21840bf6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6D15798A82DF4AABAAAD19391F038886 Ref B: MAA201060513027 Ref C: 2024-05-21T04:13:46Z" - ], - "Date": [ - "Tue, 21 May 2024 04:13:46 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2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269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "bc5d7bff-8c9a-4ef3-a13b-6c21ebf4c1cf" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "65ecafea-2cd1-4cb4-99ad-fd25e6ef0c8e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041358Z:65ecafea-2cd1-4cb4-99ad-fd25e6ef0c8e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6E51BCB9E6E443A388160E050C67E71B Ref B: MAA201060513027 Ref C: 2024-05-21T04:13:57Z" - ], - "Date": [ - "Tue, 21 May 2024 04:13:57 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPy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NaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "92e7643c-5897-4cdf-a861-69a13c08472d" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "7ac3bdcc-729d-493a-8f1d-800213ff67f3" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041409Z:7ac3bdcc-729d-493a-8f1d-800213ff67f3" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 69080A95B7334EC4A9881E2DF7D092F9 Ref B: MAA201060513027 Ref C: 2024-05-21T04:14:08Z" - ], - "Date": [ - "Tue, 21 May 2024 04:14:08 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2Vt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RG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8856b946-73a9-42f8-984b-2001fcc98e3e" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "8ab33663-0575-40ed-b547-a93e8b735b6b" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041420Z:8ab33663-0575-40ed-b547-a93e8b735b6b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 058E5A5D7BC54DBEA620121D6A70950E Ref B: MAA201060513027 Ref C: 2024-05-21T04:14:19Z" - ], - "Date": [ - "Tue, 21 May 2024 04:14:19 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vP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ZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c3bd3448-6f08-4f2c-af0f-8a0f4a3935d4" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "b1978213-ff34-4bd1-94d8-c7468fbc0081" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041431Z:b1978213-ff34-4bd1-94d8-c7468fbc0081" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1651A35F7B00459FB8CCC898D9A2BD17 Ref B: MAA201060513027 Ref C: 2024-05-21T04:14:30Z" - ], - "Date": [ - "Tue, 21 May 2024 04:14:30 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebw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d2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f3024261-4c77-4648-bf70-12a4c19298a7" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "4b63c102-bc8a-41e4-a331-d474987edbfb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041442Z:4b63c102-bc8a-41e4-a331-d474987edbfb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 911828D6506446CBAC407F442320C28F Ref B: MAA201060513027 Ref C: 2024-05-21T04:14:41Z" - ], - "Date": [ - "Tue, 21 May 2024 04:14:41 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZv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WSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8c446375-4ff1-4ba4-9bf0-483beb83c25e" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "c2d6e518-41ba-420e-987f-31a44d41cd5d" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041452Z:c2d6e518-41ba-420e-987f-31a44d41cd5d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: ACB1BCBC8504427E8835610F87BB5DF0 Ref B: MAA201060513027 Ref C: 2024-05-21T04:14:52Z" - ], - "Date": [ - "Tue, 21 May 2024 04:14:52 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORl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RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "caa992c5-21c6-4bad-a1e5-ae52176484ef" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "1336b009-0560-4cc8-9a18-4408d5fbe775" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041503Z:1336b009-0560-4cc8-9a18-4408d5fbe775" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: BCB876DCBAED4A25B642D2B6F96AE72A Ref B: MAA201060513027 Ref C: 2024-05-21T04:15:03Z" - ], - "Date": [ - "Tue, 21 May 2024 04:15:02 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBE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GZfX1MwOWg1XzRsN2YzclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2aa2c26b-3a55-4dcf-96c0-8387b402223d" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "02d57099-f65b-44d6-b59c-28d4f93aa6cb" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T041514Z:02d57099-f65b-44d6-b59c-28d4f93aa6cb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E8DB8F71E4194B3CA1E3796EA9BAB420 Ref B: MAA201060513027 Ref C: 2024-05-21T04:15:13Z" - ], - "Date": [ - "Tue, 21 May 2024 04:15:13 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29w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1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "028f70c0-4bdb-4e4f-be31-5ecb862226d2" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "31c01b65-9aa9-4e31-9580-cc3eb98f4722" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041525Z:31c01b65-9aa9-4e31-9580-cc3eb98f4722" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: AC44FC9FCD3648D8B094270E4E3ECCA5 Ref B: MAA201060513027 Ref C: 2024-05-21T04:15:24Z" - ], - "Date": [ - "Tue, 21 May 2024 04:15:24 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIK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sbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UnloUXpqWEM5VVJqQ09xUENSZkR5dlc3LW9XZzM3VHAyMDRLY1I0dHB4NVAzaTlMYUttczZPa2ZQMDdsUHVYZ19HZ2R1S2M2NmRFc3pNcWZsY0dyS2RYV3JBNzRQTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "6dc21dfb-9068-4b91-8d91-ca7cec215ecb" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "a60564a2-3eb5-4b7c-9a42-66ab9e3e0978" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041536Z:a60564a2-3eb5-4b7c-9a42-66ab9e3e0978" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: E3B49FDC720540B1B4949B6EC76B2279 Ref B: MAA201060513027 Ref C: 2024-05-21T04:15:35Z" - ], - "Date": [ - "Tue, 21 May 2024 04:15:35 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3f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QTndSdFh4aUF4Sy1fSjl2LVZ2VVMxUWlabXBRWEh3ZEtnYTVPR2FPWlFCd2FzQUN0MTUxUy1VbVJQNWp2Sy1GTGRfblc4RmU1Ny1Ec21KWExMLXplc2kzNG9DbzVlQy1peFg3blBuczUxeUJsRzVmbjdaeXZSaFM5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4d3b8f80-13c4-40eb-952d-96e1fdb8275e" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "a110ab54-9473-4e5b-baf2-b77175f68bd3" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041547Z:a110ab54-9473-4e5b-baf2-b77175f68bd3" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0D7A931E2EBF48A3BCABB3C2A886F8BA Ref B: MAA201060513027 Ref C: 2024-05-21T04:15:46Z" - ], - "Date": [ - "Tue, 21 May 2024 04:15:46 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094?api-version=2021-06-01&t=638518614721950510&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwE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5M1FJY0tjM3ZFOUNLUXoyQ0czTDVVOTdmQ1FvcXlfZ1pINTZtamZJWGtCSWVTU3ZUM09xQjhWSlRrLVlnTkMyNDdNTXFTMWJkSVBZbG5HUG1rWGR1VVZBYWZYVlliM1pFcFNONEpfcDRvYTFTaDJvdm05d1A1bHNYUy1pWXdCdzF3Jmg9c0tteVdDSEI5Vm1XUnd4b3NjTGtrOGphajYwTEZlS2RhVG1wX2pOdUducw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4b75a869-0184-416c-939d-3132f53dcab1" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "36cbd838-9471-4422-931d-9ec7a55586f1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041558Z:36cbd838-9471-4422-931d-9ec7a55586f1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 457060ABD7084211A376F37EB08E2B61 Ref B: MAA201060513027 Ref C: 2024-05-21T04:15:57Z" - ], - "Date": [ - "Tue, 21 May 2024 04:15:57 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps6907/providers/Microsoft.Network/frontdooroperationresults/e2544bab-2872-4098-a3e8-0fd97f252094/frontdoorresults/ps5523?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzNjkwNy9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnRkb29yb3BlcmF0aW9ucmVzdWx0cy9lMjU0NGJhYi0yODcyLTQwOTgtYTNlOC0wZmQ5N2YyNTIwOTQvZnJvbnRkb29ycmVzdWx0cy9wczU1MjM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "42270355-4801-4860-8da5-cbb9bbafa94b" - ], - "x-ms-client-request-id": [ - "40e1fca4-54f9-4a27-8990-c09269c6d968" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "48885cf2-3297-4773-b122-f3a5adb54313" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041558Z:48885cf2-3297-4773-b122-f3a5adb54313" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D0A716CAAE644859994C22E3227FBD87 Ref B: MAA201060513027 Ref C: 2024-05-21T04:15:58Z" - ], - "Date": [ - "Tue, 21 May 2024 04:15:58 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - } - ], - "Names": { - "Test-FrontDoorCrudWithPiping": [ - "ps5523", - "ps6907" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSByocLatestVersion.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSByocLatestVersion.json deleted file mode 100644 index e854c22400b4..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSByocLatestVersion.json +++ /dev/null @@ -1,998 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn/enableHttps?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24vZW5hYmxlSHR0cHM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "POST", - "RequestHeaders": { - "x-ms-client-request-id": [ - "937d8456-beb5-4760-a729-915c1b1f73a1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "378" - ] - }, - "RequestBody": "{\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\"\r\n },\r\n \"protocolType\": \"ServerNameIndication\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdooroperationresults/eed93341-1ecf-4591-89c1-5828f9269be7/frontdoorresults/frontdoorclitest?api-version=2021-06-01" - ], - "Retry-After": [ - "120" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "497dfca8-076a-4f05-8b59-091d19b65673" - ], - "x-ms-client-request-id": [ - "937d8456-beb5-4760-a729-915c1b1f73a1" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdooroperationresults/eed93341-1ecf-4591-89c1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GQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=M1uR_wCRicXwcNpiGz7qmYCJ7581K0MxKp2XT75QJETBswmanhvy5lQA18hrqSchgda5YGl5y9Xgr5NV2eh4nLVyMSVVFX8iJatQXkRn5wRtNj2thDNEMBROwFR77JZI3ciOM0H667mp7j2Rwd69w1l84k0W6CB3oDkK3_DHDuHG5U7-vzBiOUx11SJPINIbusuBiCUJTDUHyFNtXhNbdd4kqq86UfOmG86nXCvrcLMbAV6LBn8ksZYoJYyum2QXdHNrFhCH_Ds0cYXLwqL4fTke51VOGAmSBrvfurc9pB0tj8TASkDgTpLnTv_e4aPWRUROYKbCfIUNmZpPeSYXrQ&h=Q6Do2LXbyKLR4rg6DgBWMgt-EI9_aeN3WTPRcgwj5vA" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "44984dfc-feb9-4a05-be1f-4d28235e63a1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034323Z:44984dfc-feb9-4a05-be1f-4d28235e63a1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 7C7B21DE45224D799581145184A3A259 Ref B: MAA201060515031 Ref C: 2024-05-21T03:43:20Z" - ], - "Date": [ - "Tue, 21 May 2024 03:43:23 GMT" - ], - "Content-Length": [ - "771" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"ImportingUserProvidedCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "937d8456-beb5-4760-a729-915c1b1f73a1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "953577c7-9b5c-44d7-9c1b-20a1e984875f" - ], - "x-ms-client-request-id": [ - "937d8456-beb5-4760-a729-915c1b1f73a1" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "0d73334b-b73a-478e-ab47-49dc2d490364" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034324Z:0d73334b-b73a-478e-ab47-49dc2d490364" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5098E8BB59A74605BC7C7C94EA1B1CC9 Ref B: MAA201060515031 Ref C: 2024-05-21T03:43:23Z" - ], - "Date": [ - "Tue, 21 May 2024 03:43:24 GMT" - ], - "Content-Length": [ - "1093" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"ImportingUserProvidedCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "800c8f3b-9759-4c04-a347-04d8e5924a2b" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cc06f4b7-8cf9-4130-bb0c-3aaf6e5ba73d" - ], - "x-ms-client-request-id": [ - "800c8f3b-9759-4c04-a347-04d8e5924a2b" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "46c9dfc9-f74b-45e4-8443-fae442fc91d6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034326Z:46c9dfc9-f74b-45e4-8443-fae442fc91d6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 3FDCD806810D4688B2DDDE549EE297D4 Ref B: MAA201060516049 Ref C: 2024-05-21T03:43:24Z" - ], - "Date": [ - "Tue, 21 May 2024 03:43:26 GMT" - ], - "Content-Length": [ - "1093" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"ImportingUserProvidedCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "23d40542-be61-4fd4-8aca-5714180361d7" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "05c21915-8631-4a31-ad5e-aba9d0399cc4" - ], - "x-ms-client-request-id": [ - "23d40542-be61-4fd4-8aca-5714180361d7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "a049329f-a4c4-4870-aaf8-c7ebf93098d7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034428Z:a049329f-a4c4-4870-aaf8-c7ebf93098d7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 268C3DC1A14A4FD8B1CEC55F7D18DA80 Ref B: MAA201060513051 Ref C: 2024-05-21T03:44:27Z" - ], - "Date": [ - "Tue, 21 May 2024 03:44:27 GMT" - ], - "Content-Length": [ - "1081" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeployingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8ef90313-abac-4179-8dc4-f93827796250" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "232ce2bf-c33c-41e9-8a85-5212841e4a8b" - ], - "x-ms-client-request-id": [ - "8ef90313-abac-4179-8dc4-f93827796250" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "db988890-8339-4fcd-a5e9-fe29e6a42f87" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T034530Z:db988890-8339-4fcd-a5e9-fe29e6a42f87" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A7330F992EA94AF98FC4A0816DEB5E31 Ref B: MAA201060513051 Ref C: 2024-05-21T03:45:28Z" - ], - "Date": [ - "Tue, 21 May 2024 03:45:29 GMT" - ], - "Content-Length": [ - "1081" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeployingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c5833fc6-9707-4270-92b5-ec7e5edb6f65" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4bf46a28-6dc0-448c-8edd-10fc0bf10358" - ], - "x-ms-client-request-id": [ - "c5833fc6-9707-4270-92b5-ec7e5edb6f65" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "9fb886dc-6a3a-4166-837b-d5a2375638d1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034632Z:9fb886dc-6a3a-4166-837b-d5a2375638d1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 4010CF34BBDF483C962357CD6D5C8ED4 Ref B: MAA201060515031 Ref C: 2024-05-21T03:46:30Z" - ], - "Date": [ - "Tue, 21 May 2024 03:46:32 GMT" - ], - "Content-Length": [ - "1081" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeployingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c6a58b7e-9afa-41c4-b496-05ec90dafd14" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5dd86caa-22fd-413e-9929-5fa1205fe872" - ], - "x-ms-client-request-id": [ - "c6a58b7e-9afa-41c4-b496-05ec90dafd14" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "d2015cbb-3d39-4a36-90f7-4bf5d768a4b0" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034734Z:d2015cbb-3d39-4a36-90f7-4bf5d768a4b0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1D240F7485CD488D98433FDB83FA5749 Ref B: MAA201060514011 Ref C: 2024-05-21T03:47:32Z" - ], - "Date": [ - "Tue, 21 May 2024 03:47:33 GMT" - ], - "Content-Length": [ - "1081" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeployingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f4f91c97-d3f9-4be7-bda0-30470db51a17" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a31db0f6-e420-41e0-b683-1df27e45a52a" - ], - "x-ms-client-request-id": [ - "f4f91c97-d3f9-4be7-bda0-30470db51a17" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "54dcdca7-45de-4819-b038-ad125d2fbaeb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034836Z:54dcdca7-45de-4819-b038-ad125d2fbaeb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D7876FFECF1245C89150E478654704EB Ref B: MAA201060514021 Ref C: 2024-05-21T03:48:34Z" - ], - "Date": [ - "Tue, 21 May 2024 03:48:35 GMT" - ], - "Content-Length": [ - "1079" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabled\",\r\n \"customHttpsProvisioningSubstate\": \"CertificateDeployed\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5c89d231-2e2f-4f2f-9b7c-8d9f9c87d50c" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d0c4f197-f3f8-4cf3-a082-6aeea9674c12" - ], - "x-ms-client-request-id": [ - "5c89d231-2e2f-4f2f-9b7c-8d9f9c87d50c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "be71cb23-fb4d-4b8f-8b0c-f0d2e9c47d20" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034837Z:be71cb23-fb4d-4b8f-8b0c-f0d2e9c47d20" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: CE5893CB9A9A407BB6FDDF9F7C7F68FC Ref B: MAA201060515029 Ref C: 2024-05-21T03:48:36Z" - ], - "Date": [ - "Tue, 21 May 2024 03:48:37 GMT" - ], - "Content-Length": [ - "1079" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabled\",\r\n \"customHttpsProvisioningSubstate\": \"CertificateDeployed\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e80a6435-6423-4981-a95e-eb0b89543416" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f7cdcc89-8493-400f-925c-9237a8d887f2" - ], - "x-ms-client-request-id": [ - "e80a6435-6423-4981-a95e-eb0b89543416" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d8664848-8e5a-4ecf-b4a3-1e3a423ee152" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034841Z:d8664848-8e5a-4ecf-b4a3-1e3a423ee152" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 453C2111802745229AE9588D84D80C76 Ref B: MAA201060514049 Ref C: 2024-05-21T03:48:40Z" - ], - "Date": [ - "Tue, 21 May 2024 03:48:41 GMT" - ], - "Content-Length": [ - "1081" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6e75ebb7-41e0-4fbb-9f79-b4ff1fec30d9" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "90e8f4d0-3af6-4664-ad12-1324adcdc305" - ], - "x-ms-client-request-id": [ - "6e75ebb7-41e0-4fbb-9f79-b4ff1fec30d9" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "7c262259-c45b-459e-b13d-17fedfb742ec" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034943Z:7c262259-c45b-459e-b13d-17fedfb742ec" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 920B19385F1346FC9C9DCB3B41D4C6B1 Ref B: MAA201060513049 Ref C: 2024-05-21T03:49:42Z" - ], - "Date": [ - "Tue, 21 May 2024 03:49:43 GMT" - ], - "Content-Length": [ - "1081" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c30293a3-a5a5-4902-a01b-bdb1cde3f0cc" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c91815e7-c8ef-44ed-a429-7f45a190ff64" - ], - "x-ms-client-request-id": [ - "c30293a3-a5a5-4902-a01b-bdb1cde3f0cc" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "3626d186-b32d-4f04-b673-1ca4fed7b182" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035045Z:3626d186-b32d-4f04-b673-1ca4fed7b182" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 819B4C0800A0447DB6841870BFED41C7 Ref B: MAA201060515035 Ref C: 2024-05-21T03:50:44Z" - ], - "Date": [ - "Tue, 21 May 2024 03:50:44 GMT" - ], - "Content-Length": [ - "1080" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"CertificateDeleted\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0f413ec5-e977-441e-a5c4-ee1a4622fb70" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "770f45bd-3f49-463f-bd98-a277b9812fef" - ], - "x-ms-client-request-id": [ - "0f413ec5-e977-441e-a5c4-ee1a4622fb70" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "be81b3b2-efca-4c16-9258-5fc8b4de7f6e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T035147Z:be81b3b2-efca-4c16-9258-5fc8b4de7f6e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 4A4E261E2F99426AB7A0399FFABF0389 Ref B: MAA201060515029 Ref C: 2024-05-21T03:51:45Z" - ], - "Date": [ - "Tue, 21 May 2024 03:51:46 GMT" - ], - "Content-Length": [ - "625" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-latest-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabled\",\r\n \"customHttpsProvisioningSubstate\": \"None\",\r\n \"customHttpsConfiguration\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-latest-localdev-cdn-azure-cn/disableHttps?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLWxhdGVzdC1sb2NhbGRldi1jZG4tYXp1cmUtY24vZGlzYWJsZUh0dHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", - "RequestMethod": "POST", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e80a6435-6423-4981-a95e-eb0b89543416" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdooroperationresults/234753c9-064e-4bfc-8751-8e0e3a892c9c/frontdoorresults/frontdoorclitest?api-version=2021-06-01" - ], - "Retry-After": [ - "120" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1834c0f7-8a7f-4a2f-a1d9-eb7fea379ff1" - ], - "x-ms-client-request-id": [ - "e80a6435-6423-4981-a95e-eb0b89543416" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdooroperationresults/234753c9-064e-4bfc-8751-8e0e3a892c9c?api-version=2021-06-01&t=638518601202967663&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcN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kRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=tNBDodFKW5F0ChkMYZD1voV3jR7KaY9ihAWVWHnxUnNqUheHBZGkbHVuMmyGjzTt5To8C68rLBD_VIZNUd_Q96D-mXmY9pcJLoNEouWGnf2BKu7PKEBIU18MzpnY64mA6GVJgi4kRWQ-b4JCfx2HvpeoY9LRPnR1T1K_oXPA_xchZkSv7sWdY1vENZzL0McOoul1qEowxLP2_DxdufRkXePjMKjgfDeICwFG8ZjiqyHV9YzXibtMMHfXcHPfEdn8UH3e94FTcJbtMP128tz4PuQN27lyPJsbBWOv3_dC8Kpxx1vJq_-M1Ck2NkiBmfuoDkh4mXf63xIvf5U74IISbw&h=N2KrRvz0U3tjBu_ZjkdJSkiiTs8r1DPMEtmPcQ8S8Pg" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "8a6d8ecf-7599-492c-9166-63668f7ca6f2" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T034840Z:8a6d8ecf-7599-492c-9166-63668f7ca6f2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F3BBD1EA4DD14F4E825BDA788704AA80 Ref B: MAA201060514049 Ref C: 2024-05-21T03:48:38Z" - ], - "Date": [ - "Tue, 21 May 2024 03:48:39 GMT" - ], - "Content-Length": [ - "759" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-latest.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": null\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n}", - "StatusCode": 202 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSByocSpecificVersion.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSByocSpecificVersion.json deleted file mode 100644 index 3c0ea8b3e8d3..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSByocSpecificVersion.json +++ /dev/null @@ -1,791 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn/enableHttps?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbi9lbmFibGVIdHRwcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "POST", - "RequestHeaders": { - "x-ms-client-request-id": [ - "3441d50a-9b6a-434c-9c50-e910c29589aa" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "436" - ] - }, - "RequestBody": "{\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"protocolType\": \"ServerNameIndication\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdooroperationresults/a8a52e60-c7f5-4b59-bb04-c390a77e287e/frontdoorresults/frontdoorclitest?api-version=2021-06-01" - ], - "Retry-After": [ - "120" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8532eea2-c120-471c-885d-2249c8b06656" - ], - "x-ms-client-request-id": [ - "3441d50a-9b6a-434c-9c50-e910c29589aa" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdooroperationresults/a8a52e60-c7f5-4b59-bb04-c390a77e287e?api-version=2021-06-01&t=638518590658541350&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vY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o-85rDRjSf9HdzipUIgS3-W8VjURHJCLIou1ftBFdiYl9bddiVPPZhCkLlbnV38Rg1xzogjcefELp-I-bmhVbhs50DImSjNwy7wSoXlViNYJM6Mgab-GEK7iou89KXrb-HdbM68PwlmDdY2TLnuYWdqkc0fWystPoXc3AjZAt1ZgauiOrCTXxqdpmr-YkLIxoYEXXgAo1_GoekjVzU_qQCqR9qzBt834jJXXkQ&h=mqr_0B2PMqCoDJI492UmsOnO_w0ePLHiyfed-UBDc1Y" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "a793240f-3881-4d7c-8129-a1d2e6318ffc" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033105Z:a793240f-3881-4d7c-8129-a1d2e6318ffc" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 54C7B08C852B4135B48912C186011F95 Ref B: MAA201060516033 Ref C: 2024-05-21T03:31:02Z" - ], - "Date": [ - "Tue, 21 May 2024 03:31:05 GMT" - ], - "Content-Length": [ - "803" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"ImportingUserProvidedCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "3441d50a-9b6a-434c-9c50-e910c29589aa" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "0e8bfac0-2685-455a-98ca-91a88a9dfdc9" - ], - "x-ms-client-request-id": [ - "3441d50a-9b6a-434c-9c50-e910c29589aa" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "e1925af9-6883-43dc-84a6-1d8963750fa3" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033107Z:e1925af9-6883-43dc-84a6-1d8963750fa3" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5785D17DBA45410CAF882B975A835990 Ref B: MAA201060516033 Ref C: 2024-05-21T03:31:06Z" - ], - "Date": [ - "Tue, 21 May 2024 03:31:07 GMT" - ], - "Content-Length": [ - "1129" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"ImportingUserProvidedCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "04ea15a3-2cfe-493e-9621-c742e588a161" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "09bdbe88-0085-4c2c-8dd0-b58b47b4bcaf" - ], - "x-ms-client-request-id": [ - "04ea15a3-2cfe-493e-9621-c742e588a161" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "6bfa7b4d-9750-4afa-a8d0-c900dc360570" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033109Z:6bfa7b4d-9750-4afa-a8d0-c900dc360570" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: C8AA526FC524454DBEC6937188C69ED7 Ref B: MAA201060514021 Ref C: 2024-05-21T03:31:07Z" - ], - "Date": [ - "Tue, 21 May 2024 03:31:09 GMT" - ], - "Content-Length": [ - "1129" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"ImportingUserProvidedCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "423b9810-eac6-44c9-8b9c-48a66fa89a14" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f850047b-77cb-44bc-995c-4a3b1d4fab38" - ], - "x-ms-client-request-id": [ - "423b9810-eac6-44c9-8b9c-48a66fa89a14" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "562bef93-0892-4451-9119-7171f68b5633" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033211Z:562bef93-0892-4451-9119-7171f68b5633" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 883C9A4B0B474C6F8AB788AAAE9E426A Ref B: MAA201060516031 Ref C: 2024-05-21T03:32:09Z" - ], - "Date": [ - "Tue, 21 May 2024 03:32:11 GMT" - ], - "Content-Length": [ - "1117" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeployingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "34bcf38e-7157-46cb-8a84-0845cc4a6342" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "3fbde04a-c295-4e9c-92bf-8752396f18ad" - ], - "x-ms-client-request-id": [ - "34bcf38e-7157-46cb-8a84-0845cc4a6342" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "9fb96c0f-5ea3-43fb-84cf-0b54fe540df5" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033313Z:9fb96c0f-5ea3-43fb-84cf-0b54fe540df5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: BCD976174B0A4E579A372A1602FB0CDB Ref B: MAA201060514047 Ref C: 2024-05-21T03:33:11Z" - ], - "Date": [ - "Tue, 21 May 2024 03:33:12 GMT" - ], - "Content-Length": [ - "1115" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabled\",\r\n \"customHttpsProvisioningSubstate\": \"CertificateDeployed\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dabbb312-a3c3-41c1-b73e-7a4b09d9527e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "08ae1083-3ead-4ae9-bd75-56a0b4d7d1f6" - ], - "x-ms-client-request-id": [ - "dabbb312-a3c3-41c1-b73e-7a4b09d9527e" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "245af36e-5ce6-4c3c-baba-ad7c35128445" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033314Z:245af36e-5ce6-4c3c-baba-ad7c35128445" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D57E6587B219486D844BA95A58F8AA7C Ref B: MAA201060516047 Ref C: 2024-05-21T03:33:13Z" - ], - "Date": [ - "Tue, 21 May 2024 03:33:14 GMT" - ], - "Content-Length": [ - "1115" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabled\",\r\n \"customHttpsProvisioningSubstate\": \"CertificateDeployed\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4eefe045-6309-4307-aa22-94c7084fc4f1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8c7a5ec2-facd-4635-b62f-23fb25313045" - ], - "x-ms-client-request-id": [ - "4eefe045-6309-4307-aa22-94c7084fc4f1" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "1adc8ec3-cf86-4f9d-a0cd-5f94184d2893" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T033318Z:1adc8ec3-cf86-4f9d-a0cd-5f94184d2893" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A5EF1F6718FB4556A644766A63D7F974 Ref B: MAA201060516037 Ref C: 2024-05-21T03:33:17Z" - ], - "Date": [ - "Tue, 21 May 2024 03:33:18 GMT" - ], - "Content-Length": [ - "1117" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7e24419f-4107-4abd-836b-3f24a8560924" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c6d27bf9-a357-459c-974e-41340c192021" - ], - "x-ms-client-request-id": [ - "7e24419f-4107-4abd-836b-3f24a8560924" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "3a4fbd9e-7248-48d0-8164-661fe637403f" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T033421Z:3a4fbd9e-7248-48d0-8164-661fe637403f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 50570F983D7A496EB926BB4D8B9949E9 Ref B: MAA201060514009 Ref C: 2024-05-21T03:34:19Z" - ], - "Date": [ - "Tue, 21 May 2024 03:34:20 GMT" - ], - "Content-Length": [ - "1117" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "94e64b5d-e5d1-4de2-9a3a-2b9776b15224" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ff11b56c-750b-452f-a568-a0aa3fce46d9" - ], - "x-ms-client-request-id": [ - "94e64b5d-e5d1-4de2-9a3a-2b9776b15224" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "4a61affb-054b-41ad-a315-74e7e8c7b39b" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033522Z:4a61affb-054b-41ad-a315-74e7e8c7b39b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8B3D8445461A4F2ABE6EFCFB6DF11749 Ref B: MAA201060516019 Ref C: 2024-05-21T03:35:21Z" - ], - "Date": [ - "Tue, 21 May 2024 03:35:22 GMT" - ], - "Content-Length": [ - "1117" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7c05a1d7-3258-4d28-8980-ee148c87e1ca" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f151ba47-3214-4b4d-befe-dbcc23f07020" - ], - "x-ms-client-request-id": [ - "7c05a1d7-3258-4d28-8980-ee148c87e1ca" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "722158be-1cc7-4fc7-9741-7abd5b50de0f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033624Z:722158be-1cc7-4fc7-9741-7abd5b50de0f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F850F756FA8D48EC937B4E384C02E856 Ref B: MAA201060513017 Ref C: 2024-05-21T03:36:23Z" - ], - "Date": [ - "Tue, 21 May 2024 03:36:24 GMT" - ], - "Content-Length": [ - "631" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoors/frontdoorclitest/frontendendpoints/afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"name\": \"afdbyoc-specific-localdev-cdn-azure-cn\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabled\",\r\n \"customHttpsProvisioningSubstate\": \"None\",\r\n \"customHttpsConfiguration\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.Network/frontDoors/frontdoorclitest/frontendEndpoints/afdbyoc-specific-localdev-cdn-azure-cn/disableHttps?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL0NsaURldlJlc2VydmVkR3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2Zyb250RG9vcnMvZnJvbnRkb29yY2xpdGVzdC9mcm9udGVuZEVuZHBvaW50cy9hZmRieW9jLXNwZWNpZmljLWxvY2FsZGV2LWNkbi1henVyZS1jbi9kaXNhYmxlSHR0cHM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "POST", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4eefe045-6309-4307-aa22-94c7084fc4f1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdooroperationresults/e16d4bbc-159a-43b8-951c-bc0ed6e1fc5c/frontdoorresults/frontdoorclitest?api-version=2021-06-01" - ], - "Retry-After": [ - "120" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "993da24e-6074-4216-a25a-bd71405cae83" - ], - "x-ms-client-request-id": [ - "4eefe045-6309-4307-aa22-94c7084fc4f1" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdooroperationresults/e16d4bbc-159a-43b8-951c-bc0ed6e1fc5c?api-version=2021-06-01&t=638518591972447360&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yX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C9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=A3SGFgCxsWe2MWpuQmtclzNFzGGRN0iezX46-tEbj2Q4u-y9_FrSYsUKJUjd5ji8mLXdyA_dVGNuqEsa_MG9H5XaAEmZ_ENGhCbQL-shEazG0IHS9-loc4s1NpgHSZawy8Z2xnT77UXn8DgWmeuG753h0AMah2zqO-HcXhGOFaSO7ZExBdQH_WIrmqIYB5jaDY9KT_omdiJmJI_P4aT1sgKv6GazM80yeSrfvsvgZMuOTemQxeLcXY-ICJJwgRask4P8f6D-a8woe1II0dF1GF9EnmzqpzAtRNN6gvQ2gC8mF7RezlHpKWna9k5oj7k-rutOX-SFM6YMIybLgf8NWA&h=Yk6ux1BTqkp1uxob13sn4ufVNEdgL0kbtpA2ddMayik" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "3be02f17-0686-4a3f-ad5d-77d4850ed9ca" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T033317Z:3be02f17-0686-4a3f-ad5d-77d4850ed9ca" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 394E12E7D21E418DA5F2C6E6E8CF6335 Ref B: MAA201060516037 Ref C: 2024-05-21T03:33:15Z" - ], - "Date": [ - "Tue, 21 May 2024 03:33:16 GMT" - ], - "Content-Length": [ - "791" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"afdbyoc-specific.localdev.cdn.azure.cn\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"certificateSource\": \"AzureKeyVault\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int\"\r\n },\r\n \"secretName\": \"localdev-multi\",\r\n \"secretVersion\": \"6244bbfa61c241d78403a6e394cc2d30\"\r\n },\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": null,\r\n \"certificateTypeAsEnum\": \"Dedicated\"\r\n }\r\n }\r\n}", - "StatusCode": 202 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSFrontDoor.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSFrontDoor.json deleted file mode 100644 index 2137a439d8ad..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorEndpointCustomDomainHTTPSFrontDoor.json +++ /dev/null @@ -1,2031 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1d8dd266-35be-4285-b251-8467243b11cd" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "1148ba71-d927-4c05-9d55-33c0d9135e25" - ], - "x-ms-correlation-request-id": [ - "1148ba71-d927-4c05-9d55-33c0d9135e25" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231735Z:1148ba71-d927-4c05-9d55-33c0d9135e25" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:17:34 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "8844" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL3BzNTE3Nz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9a7b1dd8-88ab-40ba-bbed-7a9f60cbe7c8" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "70fa8143-98e1-4ad0-b253-d51640c9e126" - ], - "x-ms-correlation-request-id": [ - "70fa8143-98e1-4ad0-b253-d51640c9e126" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231736Z:70fa8143-98e1-4ad0-b253-d51640c9e126" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:17:35 GMT" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177\",\r\n \"name\": \"ps5177\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "cff46758-5deb-4a14-b041-40be57861dc0" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "19f74fe7-e51b-4355-a4be-ceebe47ce6b4" - ], - "x-ms-client-request-id": [ - "cff46758-5deb-4a14-b041-40be57861dc0" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "13017a0e-8cc6-44a0-9bbb-59666123de93" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231737Z:13017a0e-8cc6-44a0-9bbb-59666123de93" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:17:37 GMT" - ], - "Content-Length": [ - "28" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"test-powershell-030620190342\",\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/BackendPools/backendPool1\"\r\n }\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"test-powershell-030620190342.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n },\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dfcc68e8-509f-423f-b1df-1bb6f3634ced" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3312" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "x-ms-request-id": [ - "d3bb9a12-e61e-4c75-a7b8-ae1fef10d2be" - ], - "x-ms-client-request-id": [ - "dfcc68e8-509f-423f-b1df-1bb6f3634ced" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdooroperationresults/ce6a6223-0cbe-4fd1-8c45-545f36e80263?api-version=2019-05-01" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "de144ea0-3c9f-4a4f-8256-a66950b8b441" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231741Z:de144ea0-3c9f-4a4f-8256-a66950b8b441" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:17:41 GMT" - ], - "Content-Length": [ - "5189" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"test-powershell-030620190342\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"resourceState\": \"Creating\"\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 30,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Creating\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"test-powershell-030620190342.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null,\r\n \"resourceState\": \"Creating\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/FrontendEndpoints/frontendendpoint2\",\r\n \"name\": \"frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null,\r\n \"resourceState\": \"Creating\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"additionalLatencyMilliseconds\": 0,\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"resourceState\": \"Creating\"\r\n }\r\n }\r\n ],\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Creating\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/BackendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"test-powershell-030620190342.azurefd.net\",\r\n \"friendlyName\": \"test-powershell-030620190342\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdooroperationresults/ce6a6223-0cbe-4fd1-8c45-545f36e80263?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnRkb29yb3BlcmF0aW9ucmVzdWx0cy9jZTZhNjIyMy0wY2JlLTRmZDEtOGM0NS01NDVmMzZlODAyNjM/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "70fc85d6-7cb1-44ad-9769-f03bac86d318" - ], - "x-ms-client-request-id": [ - "980c6715-1561-43cd-bfe6-99aa957ffc71" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "d6a0a3ee-ebe3-4568-be65-b2fb54bc6e14" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231752Z:d6a0a3ee-ebe3-4568-be65-b2fb54bc6e14" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:17:51 GMT" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdooroperationresults/ce6a6223-0cbe-4fd1-8c45-545f36e80263?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnRkb29yb3BlcmF0aW9ucmVzdWx0cy9jZTZhNjIyMy0wY2JlLTRmZDEtOGM0NS01NDVmMzZlODAyNjM/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "f4984279-ba96-43bc-b2ba-deb66c9274e2" - ], - "x-ms-client-request-id": [ - "fd724ca8-23d6-46cd-9c0d-14875acb2ecd" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "b35bfa24-f116-480c-9b1d-20c4d85aebe2" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231802Z:b35bfa24-f116-480c-9b1d-20c4d85aebe2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:18:02 GMT" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "7b0cdd4a-c3cd-4a24-a219-f335c9ad7a7e" - ], - "x-ms-client-request-id": [ - "81fdad35-3ffd-4f5f-98e8-dace2c999b05" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "7e5a3135-656b-4f0d-9ebf-6c087f26a95b" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231802Z:7e5a3135-656b-4f0d-9ebf-6c087f26a95b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:18:02 GMT" - ], - "Content-Length": [ - "5183" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"test-powershell-030620190342\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Enabled\",\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 30,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"test-powershell-030620190342.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null,\r\n \"resourceState\": \"Enabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/FrontendEndpoints/frontendendpoint2\",\r\n \"name\": \"frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null,\r\n \"resourceState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"additionalLatencyMilliseconds\": 0,\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"resourceState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/BackendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"test-powershell-030620190342.azurefd.net\",\r\n \"friendlyName\": \"test-powershell-030620190342\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "129fecdc-3379-4768-a46a-1de7c859d94f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "a5ec7289-0acc-4975-ac32-df9c8bbaa86f" - ], - "x-ms-client-request-id": [ - "129fecdc-3379-4768-a46a-1de7c859d94f" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-correlation-request-id": [ - "ea3658a3-085e-43d0-be12-63f7960eccd5" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231803Z:ea3658a3-085e-43d0-be12-63f7960eccd5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:18:02 GMT" - ], - "Content-Length": [ - "5183" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"test-powershell-030620190342\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Enabled\",\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 30,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"test-powershell-030620190342.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null,\r\n \"resourceState\": \"Enabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/FrontendEndpoints/frontendendpoint2\",\r\n \"name\": \"frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null,\r\n \"resourceState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"additionalLatencyMilliseconds\": 0,\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"resourceState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/Frontdoors/test-powershell-030620190342/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/BackendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"test-powershell-030620190342.azurefd.net\",\r\n \"friendlyName\": \"test-powershell-030620190342\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyL2VuYWJsZUh0dHBzP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"protocolType\": \"ServerNameIndication\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "81d302ad-ecae-4527-9b1a-e99f5949050a" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "201" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdooroperationresults/2793d8e6-1d41-4110-9926-0e7c6b3e42ce/frontdoorresults/test-powershell-030620190342?api-version=2019-05-01" - ], - "Retry-After": [ - "120" - ], - "x-ms-request-id": [ - "606945aa-913e-497f-81ad-a9ac6f408acc" - ], - "x-ms-client-request-id": [ - "81d302ad-ecae-4527-9b1a-e99f5949050a" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdooroperationresults/2793d8e6-1d41-4110-9926-0e7c6b3e42ce?api-version=2019-05-01" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "5855a993-8e81-4e52-926b-d7769361874f" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231804Z:5855a993-8e81-4e52-926b-d7769361874f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:18:03 GMT" - ], - "Content-Length": [ - "673" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"SubmittingDomainControlValidationRequest\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a78742f6-174f-487c-91dd-6c031c1bde53" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "cc42e5ee-c25f-4d3f-95c0-6be5839dd0d0" - ], - "x-ms-client-request-id": [ - "a78742f6-174f-487c-91dd-6c031c1bde53" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-correlation-request-id": [ - "3276d155-980b-4045-be44-d5c32fc4e5d9" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T231804Z:3276d155-980b-4045-be44-d5c32fc4e5d9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:18:04 GMT" - ], - "Content-Length": [ - "982" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"SubmittingDomainControlValidationRequest\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "aa1178f0-e531-43e4-8e96-4f59689275b8" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "3002d4fd-5f97-4f2a-9d9c-d2bc7105c7f3" - ], - "x-ms-client-request-id": [ - "aa1178f0-e531-43e4-8e96-4f59689275b8" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "5d5020ce-ce30-45a6-9ecf-100a0b6c309a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T232805Z:5d5020ce-ce30-45a6-9ecf-100a0b6c309a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:28:05 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "76b4c17d-07b9-4662-88a5-4f04b913c090" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "b37f327a-9b97-4a28-8aea-277213ba8c97" - ], - "x-ms-client-request-id": [ - "76b4c17d-07b9-4662-88a5-4f04b913c090" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "1d554686-7610-4046-b23c-ba47c87f2a7a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T233806Z:1d554686-7610-4046-b23c-ba47c87f2a7a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:38:06 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93d6409c-1941-4c97-a187-a469756fd857" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "ada33376-e13b-4070-a909-123c5ab68962" - ], - "x-ms-client-request-id": [ - "93d6409c-1941-4c97-a187-a469756fd857" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "2510a496-d6b7-4e62-b275-ae97d68afa01" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T234807Z:2510a496-d6b7-4e62-b275-ae97d68afa01" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:48:07 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0aeae046-4ceb-48ce-93da-e0259e2576fc" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "62301290-db24-4ea4-86ae-49644c33c18e" - ], - "x-ms-client-request-id": [ - "0aeae046-4ceb-48ce-93da-e0259e2576fc" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "a64de833-3503-480e-bba2-035a754d4f7d" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191021T235807Z:a64de833-3503-480e-bba2-035a754d4f7d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 21 Oct 2019 23:58:07 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "095fe380-b165-4901-b952-2738ac65cfba" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "d4e7ab59-3aba-47d2-b22e-aedd22144e07" - ], - "x-ms-client-request-id": [ - "095fe380-b165-4901-b952-2738ac65cfba" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "badc2897-8abd-4626-8ea2-0e3fd234ab9c" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T000808Z:badc2897-8abd-4626-8ea2-0e3fd234ab9c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 00:08:08 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fadb03d2-e0ce-4729-b5a8-3d2fdb1ba29a" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "4a3e23be-e987-4432-ba73-4b1f8161e20f" - ], - "x-ms-client-request-id": [ - "fadb03d2-e0ce-4729-b5a8-3d2fdb1ba29a" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "ea4600c6-05c1-4c42-8ddc-6d39abd4d5b8" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T001810Z:ea4600c6-05c1-4c42-8ddc-6d39abd4d5b8" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 00:18:09 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "afa31c38-1b13-46ca-988c-8a3667b09e2b" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "9a15c7c6-754d-4051-acb6-7c2e8f00ba17" - ], - "x-ms-client-request-id": [ - "afa31c38-1b13-46ca-988c-8a3667b09e2b" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "f4c4cb48-59a0-4a95-91e9-865dbe8fc6b9" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T002810Z:f4c4cb48-59a0-4a95-91e9-865dbe8fc6b9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 00:28:10 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f868064b-b415-4c82-87d0-89fe6ae0e39c" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "d458afd9-fd46-4764-8b11-b774ded8b971" - ], - "x-ms-client-request-id": [ - "f868064b-b415-4c82-87d0-89fe6ae0e39c" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "e48ebb70-16ef-4214-b1c3-26dd97bd3a84" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T003811Z:e48ebb70-16ef-4214-b1c3-26dd97bd3a84" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 00:38:10 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4e8cf417-2413-4565-be7a-ef9c52017c61" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "1f2476be-a3ee-44a0-98d7-2e2c6bdeeef5" - ], - "x-ms-client-request-id": [ - "4e8cf417-2413-4565-be7a-ef9c52017c61" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "df5f35de-5b2b-47ac-856d-6dce8c41a1cb" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T004812Z:df5f35de-5b2b-47ac-856d-6dce8c41a1cb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 00:48:12 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "75a6b9b2-07ea-4901-9800-056189708615" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "204c38ed-53b4-45bf-9931-3a4cd791fcf4" - ], - "x-ms-client-request-id": [ - "75a6b9b2-07ea-4901-9800-056189708615" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "9a242ea3-72d2-4d06-a5d2-2030fd877f7c" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T005813Z:9a242ea3-72d2-4d06-a5d2-2030fd877f7c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 00:58:13 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b6b6fe35-4530-40c9-bfad-3d2d0b450789" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "9c4158ea-2290-43d2-857a-cd9c061c2cd3" - ], - "x-ms-client-request-id": [ - "b6b6fe35-4530-40c9-bfad-3d2d0b450789" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "a8cca8ab-8b1c-4438-b0a8-898680f3ab4a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T010814Z:a8cca8ab-8b1c-4438-b0a8-898680f3ab4a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 01:08:13 GMT" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabling\",\r\n \"customHttpsProvisioningSubstate\": \"PendingDomainControlValidationRequestApproval\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a55a4359-982e-448a-aaee-260e0af5c63d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "bb8546ba-0fd0-474e-89d1-be6ea331797a" - ], - "x-ms-client-request-id": [ - "a55a4359-982e-448a-aaee-260e0af5c63d" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "8a3d4074-27d1-44a5-86c7-b4f91bcde679" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T011815Z:8a3d4074-27d1-44a5-86c7-b4f91bcde679" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 01:18:14 GMT" - ], - "Content-Length": [ - "960" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabled\",\r\n \"customHttpsProvisioningSubstate\": \"CertificateDeployed\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2128e2bf-0c10-4e67-991a-21c188476c2d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "f79f9562-ec69-411e-aa38-328d6e3041aa" - ], - "x-ms-client-request-id": [ - "2128e2bf-0c10-4e67-991a-21c188476c2d" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "6390ef3e-7d00-467c-b484-0b977913a6bb" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T011815Z:6390ef3e-7d00-467c-b484-0b977913a6bb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 01:18:15 GMT" - ], - "Content-Length": [ - "960" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Enabled\",\r\n \"customHttpsProvisioningSubstate\": \"CertificateDeployed\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7c7c9e64-d33f-4cd9-8cc4-154a6627a6d6" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "23dcfc35-c4db-4732-ab18-19d01b8c6193" - ], - "x-ms-client-request-id": [ - "7c7c9e64-d33f-4cd9-8cc4-154a6627a6d6" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "2e617ab4-bebc-4eb7-89f1-c534c57d1ca0" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T011817Z:2e617ab4-bebc-4eb7-89f1-c534c57d1ca0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 01:18:16 GMT" - ], - "Content-Length": [ - "962" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "588db666-a1a4-4413-8e87-d10f8763cdc1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "2ef221a8-4126-48b4-91c7-f07dfe4816f7" - ], - "x-ms-client-request-id": [ - "588db666-a1a4-4413-8e87-d10f8763cdc1" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d44656ee-eb18-47a7-9411-bfbac40abb0b" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T012817Z:d44656ee-eb18-47a7-9411-bfbac40abb0b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 01:28:17 GMT" - ], - "Content-Length": [ - "611" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabled\",\r\n \"customHttpsProvisioningSubstate\": \"None\",\r\n \"customHttpsConfiguration\": null,\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyP2FwaS12ZXJzaW9uPTIwMTktMDUtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f0341506-8f5e-4c92-8e69-daa5638791d1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "2fb61490-50cb-4ea2-b03d-3741501f07eb" - ], - "x-ms-client-request-id": [ - "f0341506-8f5e-4c92-8e69-daa5638791d1" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "04dd7629-414d-4857-ac09-4bb973af5e34" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T012818Z:04dd7629-414d-4857-ac09-4bb973af5e34" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 01:28:17 GMT" - ], - "Content-Length": [ - "611" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"frontendendpoint2\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdoors/test-powershell-030620190342/frontendendpoints/frontendendpoint2\",\r\n \"type\": \"Microsoft.Network/frontdoors/frontendendpoints\",\r\n \"properties\": {\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabled\",\r\n \"customHttpsProvisioningSubstate\": \"None\",\r\n \"customHttpsConfiguration\": null,\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/ps5177/providers/Microsoft.Network/frontDoors/test-powershell-030620190342/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL3BzNTE3Ny9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy90ZXN0LXBvd2Vyc2hlbGwtMDMwNjIwMTkwMzQyL2Zyb250ZW5kRW5kcG9pbnRzL2Zyb250ZW5kZW5kcG9pbnQyL2Rpc2FibGVIdHRwcz9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "592a47c5-3150-438c-8102-e10a459a2432" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.27817.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdooroperationresults/85c9ee48-e6c0-4f1f-9cc5-2d17279cedb5/frontdoorresults/test-powershell-030620190342?api-version=2019-05-01" - ], - "Retry-After": [ - "120" - ], - "x-ms-request-id": [ - "5a88af22-09d5-454e-917a-b8caa1e29e87" - ], - "x-ms-client-request-id": [ - "592a47c5-3150-438c-8102-e10a459a2432" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/ps5177/providers/Microsoft.Network/frontdooroperationresults/85c9ee48-e6c0-4f1f-9cc5-2d17279cedb5?api-version=2019-05-01" - ], - "OData-Version": [ - "4.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "0f963451-df65-4335-bd20-6b6c4e855d26" - ], - "x-ms-routing-request-id": [ - "WESTUS:20191022T011816Z:0f963451-df65-4335-bd20-6b6c4e855d26" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 22 Oct 2019 01:18:16 GMT" - ], - "Content-Length": [ - "653" - ], - "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"hostName\": \"testa349674e19.powershell-custom.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": \"Disabling\",\r\n \"customHttpsProvisioningSubstate\": \"DeletingCertificate\",\r\n \"customHttpsConfiguration\": {\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"keyVaultCertificateSourceParameters\": {\r\n \"vault\": {\r\n \"id\": null\r\n },\r\n \"secretName\": null,\r\n \"secretVersion\": null\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n}", - "StatusCode": 202 - } - ], - "Names": { - "Test-FrontDoorEndpointCustomDomainHTTPS-FrontDoor": [ - "ps5177" - ] - }, - "Variables": { - "SubscriptionId": "47f4bc68-6fe4-43a2-be8b-dfd0e290efa2" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorRulesEngineCrud.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorRulesEngineCrud.json deleted file mode 100644 index 6b59daee0d55..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.FrontDoorTests/TestFrontDoorRulesEngineCrud.json +++ /dev/null @@ -1,3280 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ffc1e478-6aed-4235-84bc-7ea95456b28e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "66c8a1ae-89ee-4b09-adf1-c87a3b3f42d7" - ], - "x-ms-correlation-request-id": [ - "66c8a1ae-89ee-4b09-adf1-c87a3b3f42d7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040340Z:66c8a1ae-89ee-4b09-adf1-c87a3b3f42d7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8689612EE9BB496F9A3B95636619A674 Ref B: MAA201060516029 Ref C: 2024-05-21T04:03:38Z" - ], - "Date": [ - "Tue, 21 May 2024 04:03:40 GMT" - ], - "Content-Length": [ - "19433" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Mexico Central\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzMjc3NT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "05cab405-3eed-48da-add2-b8cd826446ce" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "e5fc6226-0f3f-4209-b6f7-fe891ceaffb9" - ], - "x-ms-correlation-request-id": [ - "e5fc6226-0f3f-4209-b6f7-fe891ceaffb9" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040343Z:e5fc6226-0f3f-4209-b6f7-fe891ceaffb9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: F36A91161B69456AB6A387116613AC80 Ref B: MAA201060516017 Ref C: 2024-05-21T04:03:40Z" - ], - "Date": [ - "Tue, 21 May 2024 04:03:43 GMT" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775\",\r\n \"name\": \"ps2775\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "07d685ea-dd30-4ffc-8d30-0e0f85e09192" - ], - "x-ms-correlation-request-id": [ - "07d685ea-dd30-4ffc-8d30-0e0f85e09192" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040344Z:07d685ea-dd30-4ffc-8d30-0e0f85e09192" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 3745292AACEB4641919ADF6BE92C4EB0 Ref B: MAA201060514033 Ref C: 2024-05-21T04:03:44Z" - ], - "Date": [ - "Tue, 21 May 2024 04:03:44 GMT" - ], - "Content-Length": [ - "12" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ab7b2a1b-b419-4836-8545-60b1b6491b82" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "e9ef5497-4bd6-43f2-92eb-a01ab535c2eb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040430Z:e9ef5497-4bd6-43f2-92eb-a01ab535c2eb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: CBF68EC45E1A4904A2961F18766BE31A Ref B: MAA201060515053 Ref C: 2024-05-21T04:04:29Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:30 GMT" - ], - "Content-Length": [ - "3974" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps7978\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"dc0f2bf4-fc07-4544-a46a-abd8942eba5d\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps7978.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps7978.azurefd.net\",\r\n \"friendlyName\": \"ps7978\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5Nzg/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3043" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"ps7978\",\r\n \"routingRules\": [\r\n {\r\n \"name\": \"routingrule1\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendPool1\"\r\n }\r\n },\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"name\": \"loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"name\": \"healthProbeSetting1\",\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"name\": \"backendpool1\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"name\": \"frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"ps7978.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8bc127a2-b403-4032-8b2f-0f800c687566" - ], - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/45046b0e-b341-40a9-8627-f44c3edce341?api-version=2021-06-01&t=638518610314893923&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgY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xuuLaWVFehu1eRmq22bwsGznEkgaDS5JGli-1lFNgpaWL-ffxy-lCAbhPCVckm2PilKlyDMHh2Rc1HqFaEGk47JS39eE2tcw&h=4ZwDUWqIQuDcoEP_tAV06agVAp52pDZfgObPvFvVG10" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "ce0d52e8-bcf1-49c8-a4b1-2df976633446" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040351Z:ce0d52e8-bcf1-49c8-a4b1-2df976633446" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: BFE5690DE403463FBE85A1B2618EF789 Ref B: MAA201060514033 Ref C: 2024-05-21T04:03:44Z" - ], - "Date": [ - "Tue, 21 May 2024 04:03:51 GMT" - ], - "Content-Length": [ - "3967" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps7978\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Creating\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"dc0f2bf4-fc07-4544-a46a-abd8942eba5d\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Creating\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Creating\",\r\n \"hostName\": \"ps7978.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps7978.azurefd.net\",\r\n \"friendlyName\": \"ps7978\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/45046b0e-b341-40a9-8627-f44c3edce341?api-version=2021-06-01&t=638518610314893923&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkm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Wb0xDZ1dPeTQ0b0RnbjBWNm5wMl9fcUJVS1U3RmpzZDlvQ0VQRkVaZVU3OFF0bGt0bEdFQng2NGxtWWNXTWMtT0JLREJCM0pidDJGWngwUVAtYWNCc2ZXR3lmWWFVM0VhSFZ5U1RfUVZIV096VVlEWl9UZ2RQSkp1bC1qQ1N2STRObHVPSnd0U01TZFE1MWtGSVY3UlozcFBxNGUzOW40cjd1b1doa3dFQmk1TVE1UkVMUkNEclFHeHV1TGFXVkZlaHUxZVJtcTIyYndzR3puRWtnYURTNUpHbGktMWxGTmdwYVdMLWZmeHktbENBYmhQQ1Zja20yUGlsS2x5RE1IaDJSYzFIcUZhRUdrNDdKUzM5ZUUydGN3Jmg9NFp3RFVXcUlRdURjb0VQX3RBVjA2YWdWQXA1MnBEWmZnT2JQdkZ2VkcxMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "51223499-d69a-4810-83d5-5131b1aa0f6a" - ], - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "a556ee89-1a93-428a-91a2-d5e313b7e30a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040402Z:a556ee89-1a93-428a-91a2-d5e313b7e30a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6D53BE0D4FC2402088BAA8961363526E Ref B: MAA201060514033 Ref C: 2024-05-21T04:04:01Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:01 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/45046b0e-b341-40a9-8627-f44c3edce341?api-version=2021-06-01&t=638518610314893923&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjc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U01TZFE1MWtGSVY3UlozcFBxNGUzOW40cjd1b1doa3dFQmk1TVE1UkVMUkNEclFHeHV1TGFXVkZlaHUxZVJtcTIyYndzR3puRWtnYURTNUpHbGktMWxGTmdwYVdMLWZmeHktbENBYmhQQ1Zja20yUGlsS2x5RE1IaDJSYzFIcUZhRUdrNDdKUzM5ZUUydGN3Jmg9NFp3RFVXcUlRdURjb0VQX3RBVjA2YWdWQXA1MnBEWmZnT2JQdkZ2VkcxMA==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "156d756b-a91f-4246-96e4-05d059b050fd" - ], - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "3386bbe2-1908-42cc-a454-72c18a6263dd" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040413Z:3386bbe2-1908-42cc-a454-72c18a6263dd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 08AE1645F66C4BEB93493D824133A23D Ref B: MAA201060514033 Ref C: 2024-05-21T04:04:12Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:13 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5Nzg/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "972a8bfc-3a02-4153-9443-d0c65c093c40" - ], - "x-ms-client-request-id": [ - "9453669d-062a-42d0-abc6-abfeadf10556" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "4cdf82b0-a8d0-4a3c-a098-fcf3b935f2d1" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040414Z:4cdf82b0-a8d0-4a3c-a098-fcf3b935f2d1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 50F1B1581C7D462697A9F34E68AB5982 Ref B: MAA201060514033 Ref C: 2024-05-21T04:04:13Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:14 GMT" - ], - "Content-Length": [ - "3962" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps7978\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"dc0f2bf4-fc07-4544-a46a-abd8942eba5d\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps7978.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps7978.azurefd.net\",\r\n \"friendlyName\": \"ps7978\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5Nzg/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6afb3e63-65cd-4146-ad37-d3a29d160506" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f3de49a5-9b94-4201-b91a-dabae51bd0e0" - ], - "x-ms-client-request-id": [ - "6afb3e63-65cd-4146-ad37-d3a29d160506" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "48836f4e-dfc7-4b34-a24a-465845cc5e87" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040416Z:48836f4e-dfc7-4b34-a24a-465845cc5e87" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1B584A4EED34456EA8E5B723D06EECE6 Ref B: MAA201060516029 Ref C: 2024-05-21T04:04:15Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:16 GMT" - ], - "Content-Length": [ - "3962" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"name\": \"ps7978\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/RoutingRules/routingrule1\",\r\n \"name\": \"routingrule1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/RoutingRules\",\r\n \"properties\": {\r\n \"routeConfiguration\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"MatchRequest\",\r\n \"cacheConfiguration\": null,\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendPool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"rulesEngine\": null,\r\n \"resourceState\": \"Enabled\",\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\r\n \"Http\",\r\n \"Https\"\r\n ],\r\n \"patternsToMatch\": [\r\n \"/*\"\r\n ],\r\n \"enabledState\": \"Enabled\",\r\n \"webApplicationFirewallPolicyLink\": null\r\n }\r\n }\r\n ],\r\n \"rulesEngines\": [],\r\n \"frontdoorId\": \"dc0f2bf4-fc07-4544-a46a-abd8942eba5d\",\r\n \"extendedProperties\": {},\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"name\": \"loadbalancingsetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n }\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/HealthProbeSettings/healthProbeSetting1\",\r\n \"name\": \"healthProbeSetting1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Head\"\r\n }\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/BackendPools/backendpool1\",\r\n \"name\": \"backendpool1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/BackendPools\",\r\n \"properties\": {\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\",\r\n \"enabledState\": \"Enabled\",\r\n \"privateLinkAlias\": null,\r\n \"privateLinkResourceId\": null,\r\n \"privateLinkLocation\": null,\r\n \"privateEndpointStatus\": null,\r\n \"privateLinkApprovalMessage\": null\r\n }\r\n ],\r\n \"resourceState\": \"Enabled\",\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/HealthProbeSettings/healthProbeSetting1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/Frontdoors/ps7978/FrontendEndpoints/frontendendpoint1\",\r\n \"name\": \"frontendendpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"hostName\": \"ps7978.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"webApplicationFirewallPolicyLink\": null,\r\n \"customHttpsProvisioningState\": null,\r\n \"customHttpsProvisioningSubstate\": null,\r\n \"customHttpsConfiguration\": null\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 30\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"ps7978.azurefd.net\",\r\n \"friendlyName\": \"ps7978\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5Nzg/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "29c228ab-098a-46f1-8c62-2111bea59100" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "bc4f9a70-0627-4049-b0fb-2ede2d9da811" - ], - "x-ms-client-request-id": [ - "29c228ab-098a-46f1-8c62-2111bea59100" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "a43a6b69-9763-4875-bbbc-a535700aff09" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040851Z:a43a6b69-9763-4875-bbbc-a535700aff09" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 09E980209495416EA7A3BE0CE0B86782 Ref B: MAA201060515019 Ref C: 2024-05-21T04:08:49Z" - ], - "Date": [ - "Tue, 21 May 2024 04:08:51 GMT" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/rulesEngines/engine101?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5NzgvcnVsZXNFbmdpbmVzL2VuZ2luZTEwMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "3a6964a5-4c9b-4979-af99-efd9c2d9d437" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3059" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n },\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendpool1\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [\r\n \"redirect\"\r\n ],\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cef36639-9550-45d3-a1b5-4a3596c69ed0" - ], - "x-ms-client-request-id": [ - "3a6964a5-4c9b-4979-af99-efd9c2d9d437" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "e7306b49-b03c-44d1-b732-27af0f46b966" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040418Z:e7306b49-b03c-44d1-b732-27af0f46b966" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 60FFF10245924C9A893C9FA1B80E634F Ref B: MAA201060513021 Ref C: 2024-05-21T04:04:16Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:18 GMT" - ], - "Content-Length": [ - "2242" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978/rulesengines/engine101\",\r\n \"type\": \"Microsoft.Network/frontdoors/rulesengines\",\r\n \"name\": \"engine101\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": null,\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"queryParameters\": null,\r\n \"dynamicCompression\": \"Disabled\",\r\n \"cacheDuration\": null\r\n },\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendpool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"redirect\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/rulesEngines/engine101?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5NzgvcnVsZXNFbmdpbmVzL2VuZ2luZTEwMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "eb340da5-dda3-451f-8eff-49daba47e5f1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "3267" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n },\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n },\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendpool1\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [\r\n \"redirect\"\r\n ],\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1a08149d-08ce-434d-825d-4e53d1b0b79f" - ], - "x-ms-client-request-id": [ - "eb340da5-dda3-451f-8eff-49daba47e5f1" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "f731dcac-a4d4-4f16-a563-fb548f449807" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040424Z:f731dcac-a4d4-4f16-a563-fb548f449807" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: BEFAE1FAE1B6487FA45923770A34B080 Ref B: MAA201060513053 Ref C: 2024-05-21T04:04:22Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:23 GMT" - ], - "Content-Length": [ - "2371" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978/rulesengines/engine101\",\r\n \"type\": \"Microsoft.Network/frontdoors/rulesengines\",\r\n \"name\": \"engine101\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": null,\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n },\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"queryParameters\": null,\r\n \"dynamicCompression\": \"Disabled\",\r\n \"cacheDuration\": null\r\n },\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendpool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"redirect\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/rulesEngines/engine101?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5NzgvcnVsZXNFbmdpbmVzL2VuZ2luZTEwMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2cf6685f-9307-4fc6-bd62-5b275ac08d18" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ca077d44-ae15-484c-ac13-342c0cb64849" - ], - "x-ms-client-request-id": [ - "2cf6685f-9307-4fc6-bd62-5b275ac08d18" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "5026863c-626a-47ae-8cb2-14ab154a0e39" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040420Z:5026863c-626a-47ae-8cb2-14ab154a0e39" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B1CC0C5A115B4E9EB6496E4096885F2C Ref B: MAA201060516011 Ref C: 2024-05-21T04:04:19Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:20 GMT" - ], - "Content-Length": [ - "2242" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978/rulesengines/engine101\",\r\n \"type\": \"Microsoft.Network/frontdoors/rulesengines\",\r\n \"name\": \"engine101\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": null,\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"queryParameters\": null,\r\n \"dynamicCompression\": \"Disabled\",\r\n \"cacheDuration\": null\r\n },\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendpool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"redirect\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/rulesEngines/engine101?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5NzgvcnVsZXNFbmdpbmVzL2VuZ2luZTEwMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "eb340da5-dda3-451f-8eff-49daba47e5f1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "be025410-65d8-41f1-af3b-21143a1614fb" - ], - "x-ms-client-request-id": [ - "eb340da5-dda3-451f-8eff-49daba47e5f1" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "cf598221-d0da-405e-908e-dd0bcea2ae58" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040422Z:cf598221-d0da-405e-908e-dd0bcea2ae58" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0EC926488CA44CDB9B35520152F512D7 Ref B: MAA201060513053 Ref C: 2024-05-21T04:04:20Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:21 GMT" - ], - "Content-Length": [ - "2242" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978/rulesengines/engine101\",\r\n \"type\": \"Microsoft.Network/frontdoors/rulesengines\",\r\n \"name\": \"engine101\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": null,\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"queryParameters\": null,\r\n \"dynamicCompression\": \"Disabled\",\r\n \"cacheDuration\": null\r\n },\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendpool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"redirect\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/rulesEngines/engine101?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5NzgvcnVsZXNFbmdpbmVzL2VuZ2luZTEwMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6eee43ad-9281-4fe6-a89f-890bf299162e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "450d9988-a7c4-42f0-bab5-204dfbcfdb37" - ], - "x-ms-client-request-id": [ - "6eee43ad-9281-4fe6-a89f-890bf299162e" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "68635959-7277-41b1-b3a9-3eb8e6ac93db" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040425Z:68635959-7277-41b1-b3a9-3eb8e6ac93db" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 95473F881C724ACC85B170AE6B40A222 Ref B: MAA201060513037 Ref C: 2024-05-21T04:04:24Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:25 GMT" - ], - "Content-Length": [ - "2371" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978/rulesengines/engine101\",\r\n \"type\": \"Microsoft.Network/frontdoors/rulesengines\",\r\n \"name\": \"engine101\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": null,\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n },\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"queryParameters\": null,\r\n \"dynamicCompression\": \"Disabled\",\r\n \"cacheDuration\": null\r\n },\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendpool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"redirect\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/rulesEngines/engine101?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5NzgvcnVsZXNFbmdpbmVzL2VuZ2luZTEwMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b657dd53-f49d-4f8e-a8d6-ea53225c7c3f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1774c355-ed96-414f-b9f8-ca1533e122f7" - ], - "x-ms-client-request-id": [ - "b657dd53-f49d-4f8e-a8d6-ea53225c7c3f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "53f957c9-b4f7-4ca9-9a31-bbedb340da3f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040427Z:53f957c9-b4f7-4ca9-9a31-bbedb340da3f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 561322D48886479D82C8FD5C3D43FDEC Ref B: MAA201060513019 Ref C: 2024-05-21T04:04:26Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:27 GMT" - ], - "Content-Length": [ - "2371" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdoors/ps7978/rulesengines/engine101\",\r\n \"type\": \"Microsoft.Network/frontdoors/rulesengines\",\r\n \"name\": \"engine101\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": null,\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n },\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"customForwardingPath\": null,\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"queryParameters\": null,\r\n \"dynamicCompression\": \"Disabled\",\r\n \"cacheDuration\": null\r\n },\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/BackendPools/backendpool1\"\r\n },\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"forward\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"name\": null,\r\n \"routeConfigurationOverride\": {\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\",\r\n \"customFragment\": null,\r\n \"customQueryString\": null,\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"\r\n },\r\n \"requestHeaderActions\": [],\r\n \"responseHeaderActions\": []\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineMatchValue\": [\r\n \"redirect\"\r\n ],\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"transforms\": [\r\n \"Lowercase\"\r\n ]\r\n }\r\n ],\r\n \"matchProcessingBehavior\": \"Continue\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978/rulesEngines/engine101?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5NzgvcnVsZXNFbmdpbmVzL2VuZ2luZTEwMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b657dd53-f49d-4f8e-a8d6-ea53225c7c3f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "73f8dfff-59b9-4ab1-97c1-adb8b3634e01" - ], - "x-ms-client-request-id": [ - "b657dd53-f49d-4f8e-a8d6-ea53225c7c3f" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "97be321a-8752-4b6a-ab30-3d93b0ebc956" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040428Z:97be321a-8752-4b6a-ab30-3d93b0ebc956" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 11063E561F634AF2B3B3C6C6C48A4BF7 Ref B: MAA201060513019 Ref C: 2024-05-21T04:04:27Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:28 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps2775/providers/Microsoft.Network/frontDoors/ps7978?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29ycy9wczc5Nzg/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301/frontdoorresults/ps7978?api-version=2021-06-01" - ], - "Retry-After": [ - "10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "988b4606-ad98-49ac-9784-8b7abcdc2c60" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwE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tqhOb4rWPX_EYx1k1a3lEFRiifRuNvGst5CZtiU1gefVBdMjUjIp4meY8JF_Ouh_aPfJqGF7XYsJfasHjNY6AzcuT-vwLzz0Jiy7SIZhoEO4oUC7cIxzulZhh60YozXCvowxlBuQ&h=pNWjOoezExUBEWS8QzDoiw7hp0tiubAgNcWra51-Wxs" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "ea3abf32-5120-4c2c-9027-46c2d635d3df" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040433Z:ea3abf32-5120-4c2c-9027-46c2d635d3df" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8B6ECE3C67BB4B6D8BBDBE05AD28D9AB Ref B: MAA201060515053 Ref C: 2024-05-21T04:04:30Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:33 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rU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Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "827cc05d-0b5d-4fa1-bfb8-03a74032807e" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "e6d94d3b-b2cf-4714-bb0b-ea3dd9d3b3c9" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040445Z:e6d94d3b-b2cf-4714-bb0b-ea3dd9d3b3c9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: A14FF955FA4B4EA48CEA057A7CB55B84 Ref B: MAA201060515053 Ref C: 2024-05-21T04:04:44Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:44 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8O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xeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f5a53ede-ea85-46a6-aec8-5353dcc11fdf" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "a4f6fd43-1253-4196-98a3-5ec761607c41" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040455Z:a4f6fd43-1253-4196-98a3-5ec761607c41" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 888A9D3DC5514BA7B194F1630AEE5D4B Ref B: MAA201060515053 Ref C: 2024-05-21T04:04:55Z" - ], - "Date": [ - "Tue, 21 May 2024 04:04:55 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5t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VGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2724dc86-bd74-4d5e-97a1-20dedaf2a49c" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "ce2051e6-e746-4b57-982f-dcd377ef34ff" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040506Z:ce2051e6-e746-4b57-982f-dcd377ef34ff" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8F3C1289CD794BB5A6569AA4AF38D7CE Ref B: MAA201060515053 Ref C: 2024-05-21T04:05:05Z" - ], - "Date": [ - "Tue, 21 May 2024 04:05:06 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAW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mFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "65ed50d2-e262-4ffd-83c4-d84c27fc47df" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "9f9ff699-66d8-4130-95c3-b8f80a82a664" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040517Z:9f9ff699-66d8-4130-95c3-b8f80a82a664" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 56F32EA43BDD4C778EC1F76D2FA39819 Ref B: MAA201060515053 Ref C: 2024-05-21T04:05:16Z" - ], - "Date": [ - "Tue, 21 May 2024 04:05:17 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMS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estHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b1e56f88-cff8-4145-bede-cd75d8274073" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "1b5d9828-2d40-44e1-b3db-978af2d00395" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040528Z:1b5d9828-2d40-44e1-b3db-978af2d00395" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 074008A5689E4A4A8D4C51CECBB872FB Ref B: MAA201060515053 Ref C: 2024-05-21T04:05:28Z" - ], - "Date": [ - "Tue, 21 May 2024 04:05:28 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLG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clQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "fadbbc47-b0dc-48dc-89ae-e96e48699197" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "1329f61b-97b9-4c60-b2eb-35fbb4bd7ec0" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040539Z:1329f61b-97b9-4c60-b2eb-35fbb4bd7ec0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: CFB91813F0B7421598A553A98A2A3199 Ref B: MAA201060515053 Ref C: 2024-05-21T04:05:39Z" - ], - "Date": [ - "Tue, 21 May 2024 04:05:39 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ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UzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "33cde562-647c-43e4-acee-cbd24b20aa75" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "7d024593-47f4-4b92-873c-a5f02c8fc33e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040550Z:7d024593-47f4-4b92-873c-a5f02c8fc33e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6664855CBBA848E49901AF84ABDAB07B Ref B: MAA201060515053 Ref C: 2024-05-21T04:05:49Z" - ], - "Date": [ - "Tue, 21 May 2024 04:05:50 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo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lXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "41de61e3-93f9-46e1-b9eb-9aa73b601c42" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "80cc7f07-9024-4d91-8e5d-63283b5e8b0a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040601Z:80cc7f07-9024-4d91-8e5d-63283b5e8b0a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 70493787547643428F3D187A3287A242 Ref B: MAA201060515053 Ref C: 2024-05-21T04:06:00Z" - ], - "Date": [ - "Tue, 21 May 2024 04:06:01 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wT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SUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c7eb90ca-380c-42c2-9a4e-f47890952ee1" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "d29e8aaf-2caa-404e-a4b2-fadfda480674" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040612Z:d29e8aaf-2caa-404e-a4b2-fadfda480674" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5AC6D626C8F245D5967D94E8C0EE505D Ref B: MAA201060515053 Ref C: 2024-05-21T04:06:11Z" - ], - "Date": [ - "Tue, 21 May 2024 04:06:12 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBA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1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5c6cac1e-be0e-4953-a395-70928e617f21" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "0b8f4f2e-afec-4f4b-9312-c0b370319419" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040623Z:0b8f4f2e-afec-4f4b-9312-c0b370319419" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: FCC31467CA9C4E9EB1602B256257E020 Ref B: MAA201060515053 Ref C: 2024-05-21T04:06:22Z" - ], - "Date": [ - "Tue, 21 May 2024 04:06:23 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2Vyd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VCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e4e1d0ee-b2d3-4bef-a1c2-19c38a7c9989" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "4d4e1d4a-a3b5-4af5-a2ef-c41c24fc9091" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040634Z:4d4e1d4a-a3b5-4af5-a2ef-c41c24fc9091" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8E91553540D84DDD84848C2A61D7C0DF Ref B: MAA201060515053 Ref C: 2024-05-21T04:06:33Z" - ], - "Date": [ - "Tue, 21 May 2024 04:06:34 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MI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MFlYT2Z4cFE5VUZWcngxaDVHODNXa1JVSWxLZEVTSHJVamR1SUVTeENSZGtSWTJudGZfX1MwOWg1XzRsN2YzclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "10203318-354c-4abf-a084-b9fd0b4d9d1e" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "31458abf-aa4e-4a86-8218-8681298df767" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040645Z:31458abf-aa4e-4a86-8218-8681298df767" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: EB89B3AEB1F94296B58E6ECD83257E14 Ref B: MAA201060515053 Ref C: 2024-05-21T04:06:45Z" - ], - "Date": [ - "Tue, 21 May 2024 04:06:45 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3M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NSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b19eb8c6-dedf-41d3-948d-104d06e18197" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "8db4ea70-4afc-4189-903f-754ba94552fd" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040656Z:8db4ea70-4afc-4189-903f-754ba94552fd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 726FAC36BF214E07B4EB9220AFD50078 Ref B: MAA201060515053 Ref C: 2024-05-21T04:06:56Z" - ], - "Date": [ - "Tue, 21 May 2024 04:06:56 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0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yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c212beab-150f-45c9-b191-238ede14deaa" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-correlation-request-id": [ - "2485b03c-7df7-40a4-9aa0-8b186a1c5739" - ], - "x-ms-routing-request-id": [ - "MALAYSIASOUTH:20240521T040707Z:2485b03c-7df7-40a4-9aa0-8b186a1c5739" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 0114BEA3EAC94492A76C8BC0F512883B Ref B: MAA201060515053 Ref C: 2024-05-21T04:07:07Z" - ], - "Date": [ - "Tue, 21 May 2024 04:07:07 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHa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Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ffaf2d79-2de2-4649-b6d1-e772dab50b2f" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "9203e2a0-e678-4e1b-940a-adc2c8024d96" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040719Z:9203e2a0-e678-4e1b-940a-adc2c8024d96" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 38521AAF8C774FC5B6876936B1440F35 Ref B: MAA201060515053 Ref C: 2024-05-21T04:07:18Z" - ], - "Date": [ - "Tue, 21 May 2024 04:07:19 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCc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dQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "19febe41-fc2b-4ec6-9195-1d022b2f5c6f" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-correlation-request-id": [ - "e2a679ac-30d1-49d4-b432-e6658b26f262" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040730Z:e2a679ac-30d1-49d4-b432-e6658b26f262" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B694973C43A949CC81F2143E5E39892E Ref B: MAA201060515053 Ref C: 2024-05-21T04:07:29Z" - ], - "Date": [ - "Tue, 21 May 2024 04:07:29 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYG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9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1e4b2d2e-99f5-4948-a3d9-06a167ad8ccd" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "b3299582-508e-491e-b999-819e15f7c5d5" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040741Z:b3299582-508e-491e-b999-819e15f7c5d5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1CEA1F8831A044019637632BDE07D42C Ref B: MAA201060515053 Ref C: 2024-05-21T04:07:40Z" - ], - "Date": [ - "Tue, 21 May 2024 04:07:41 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927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-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "7f696f0e-1988-4403-b007-b582f0f12cd4" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "7146ca5a-2811-4e2a-b66c-2749c8a1d6ab" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040752Z:7146ca5a-2811-4e2a-b66c-2749c8a1d6ab" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 8774F07FF62F4655B9BE76D082068AB1 Ref B: MAA201060515053 Ref C: 2024-05-21T04:07:51Z" - ], - "Date": [ - "Tue, 21 May 2024 04:07:52 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRY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WHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4071557a-319b-40b3-a870-ecd461857b17" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "54a2f204-d1c9-4721-823e-ffb0c5582702" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040803Z:54a2f204-d1c9-4721-823e-ffb0c5582702" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6B31ADAE9986455392160F9581F11761 Ref B: MAA201060515053 Ref C: 2024-05-21T04:08:02Z" - ], - "Date": [ - "Tue, 21 May 2024 04:08:03 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmN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cW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9QzA4eG1GelJHZjdBa2tkb2h6YlZVWGlYMHByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c640108d-b593-4f9d-8185-ced9792e746d" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "d55e2782-d59a-4cd9-85ed-caf59ee422ed" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040814Z:d55e2782-d59a-4cd9-85ed-caf59ee422ed" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: C6F1AC72FC1E4554A13ED036E6D71870 Ref B: MAA201060515053 Ref C: 2024-05-21T04:08:13Z" - ], - "Date": [ - "Tue, 21 May 2024 04:08:14 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjF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HByWDgwM3BYeGdXQVlYX2gyTDFKSXlxeTQ1azRRM0YzZEllMlRpbHE3Zk04ay1LX0hfbDE0OEtDRGZYUi1tLV9iWVpvMXJCYzR3dUVBTTY0UHhxbHVsTFJFSUdSSXBsR1YyZTBsSnQtZmF2WWg4bFlCQjd2T21lUjFyTlFSQm1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a8b127d0-ca69-41ec-846c-60989287d40f" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "a8cbdd93-3924-495d-b217-324001e7dadc" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040825Z:a8cbdd93-3924-495d-b217-324001e7dadc" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: BB061B7BC2A945F9A0844D4D460A95CB Ref B: MAA201060515053 Ref C: 2024-05-21T04:08:24Z" - ], - "Date": [ - "Tue, 21 May 2024 04:08:25 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcL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1ubVItSlV6VjhMV3dVdUJlVGxfVnE4dnczeU1HeXQtVi1lRjdQZ2VfUUpZU2xsWWg1MWxsdjl0cWhPYjRyV1BYX0VZeDFrMWEzbEVGUmlpZlJ1TnZHc3Q1Q1p0aVUxZ2VmVkJkTWpVaklwNG1lWThKRl9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e526feb2-8935-4571-b515-63769cfff8e9" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "5e6c16f3-a377-4a5b-a511-4b4c832fe8b6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040836Z:5e6c16f3-a377-4a5b-a511-4b4c832fe8b6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1BA6D71F4D1D4C5794416ED0C4E64D4D Ref B: MAA201060515053 Ref C: 2024-05-21T04:08:35Z" - ], - "Date": [ - "Tue, 21 May 2024 04:08:36 GMT" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301?api-version=2021-06-01&t=638518610739733407&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-h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9PdWhfYVBmSnFHRjdYWXNKZmFzSGpOWTZBemN1VC12d0x6ejBKaXk3U0laaG9FTzRvVUM3Y0l4enVsWmhoNjBZb3pYQ3Zvd3hsQnVRJmg9cE5Xak9vZXpFeFVCRVdTOFF6RG9pdzdocDB0aXViQWdOY1dyYTUxLVd4cw==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b91d3586-199a-463e-b354-c630a051b502" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "2b481212-efc0-4461-ac79-61fd67a8a912" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040847Z:2b481212-efc0-4461-ac79-61fd67a8a912" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 1A86952142DC44BAA0BBD10997755CC3 Ref B: MAA201060515053 Ref C: 2024-05-21T04:08:46Z" - ], - "Date": [ - "Tue, 21 May 2024 04:08:47 GMT" - ], - "Content-Length": [ - "61" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775/providers/Microsoft.Network/frontdooroperationresults/4848ca39-927a-4c45-b8dd-09c0930f4301/frontdoorresults/ps7978?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzMjc3NS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnRkb29yb3BlcmF0aW9ucmVzdWx0cy80ODQ4Y2EzOS05MjdhLTRjNDUtYjhkZC0wOWMwOTMwZjQzMDEvZnJvbnRkb29ycmVzdWx0cy9wczc5Nzg/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/6.0.2" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "23a6b4b2-9e46-4258-a3f6-64872eb02fd4" - ], - "x-ms-client-request-id": [ - "6930b581-f7de-4c34-b5a9-88da3e484cff" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "d3cde91b-3130-4c74-a25d-1a8efd2a2aad" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040848Z:d3cde91b-3130-4c74-a25d-1a8efd2a2aad" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: BF21062D57AB4F8894279990BAD32486 Ref B: MAA201060515053 Ref C: 2024-05-21T04:08:47Z" - ], - "Date": [ - "Tue, 21 May 2024 04:08:48 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps2775?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzMjc3NT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2bae98da-b210-46f5-8b06-b46047de14b5" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518613364973701&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLm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caXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=rMT1wgYnZq3eiIImPBmO8_Z58oxjuG5TC1bg-ETU6mUY1654cIAGmPWScEA6shBdeHVa-cuh_iyYz0I-DWEMyywKGdFDjODX3gw4gEARtpHT3DmshgHbPs2SAPDKfJHBBQUj-ils8gEb113CC_deJg_cUNnlhDxhuxXMYLhXOaGlGNx2O_glFnsJoyL0Xuow1CNYn2HTlqmFmyw6ed8SBjNST8mxUXZWiMOOu5B92fZflsuDGxJhhCHm69WEz9B96U1Z8UnNejlJm6iD5VtBhjb9xofjDTwvM1DBpfbbRGKFcfdhJRckaAX-LmNLcVjjoyi0USkU0kLwTStxJLCMhQ&h=E6k1xh7FiInD7Lmx2ysgmBmuQRBlUS8ImZDDUT3By1o" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "6632972e-0799-4979-9ea3-94a00a0cb2d6" - ], - "x-ms-correlation-request-id": [ - "6632972e-0799-4979-9ea3-94a00a0cb2d6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040856Z:6632972e-0799-4979-9ea3-94a00a0cb2d6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D08CF057DBD54F39A1503D714C04ADF0 Ref B: MAA201060513037 Ref C: 2024-05-21T04:08:52Z" - ], - "Date": [ - "Tue, 21 May 2024 04:08:56 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518613364973701&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5j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hoN0ZpSW5EN0xteDJ5c2dtQm11UVJCbFVTOEltWkREVVQzQnkxbw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518613524310623&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClq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61sF39I8o5pApXDC4iYsNP7KgZICp9cn1LUMXtKMIMRQh8EArnW6RZreWNpds2lDZlcG5nZacaNdMcT3JkJBWyAWryPlcAPCqQwjv8R7Zp1ulT7qAs7xpSmyjKuQ7bMNEBz1rUJrofbhgNqUrKSoptuahRzEVknYf21Iy8Cq0mZ-9kOHfjyY_WkA&h=-SY7hCh5BfgxRgwvYPH9Hw9tPfUNeLnm5ShGxmdSptg" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-request-id": [ - "92e67c15-dddc-487b-90ee-142e612effe2" - ], - "x-ms-correlation-request-id": [ - "92e67c15-dddc-487b-90ee-142e612effe2" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040912Z:92e67c15-dddc-487b-90ee-142e612effe2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 998E5939F8ED47DA881AE92A95AF0F7E Ref B: MAA201060513037 Ref C: 2024-05-21T04:09:11Z" - ], - "Date": [ - "Tue, 21 May 2024 04:09:12 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518613524310623&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwH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W0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9UEVNcGdxNHgxbkRKWXFCRFdEMXowQmRaRzV3cnZra1ZKUUl6LVFLRE9LS3ExTEdCa3pwVjdpUmJRZDJFcXM3TVFYUEh0Wk5rY2x6RGlnbVBRQTJORHhQd3RKMzF3Y3BBeHV5NXV2ckpwc3NZYXpFVWJmTjU4NmNRMG5fQW02cFBnT3dCS1JPOElDLVkxTG9wTHRJSE56U1JUOUFEUGQ2MXNGMzlJOG81cEFwWERDNGlZc05QN0tnWklDcDljbjFMVU1YdEtNSU1SUWg4RUFyblc2UlpyZVdOcGRzMmxEWmxjRzVuWmFjYU5kTWNUM0prSkJXeUFXcnlQbGNBUENxUXdqdjhSN1pwMXVsVDdxQXM3eHBTbXlqS3VRN2JNTkVCejFyVUpyb2ZiaGdOcVVyS1NvcHR1YWhSekVWa25ZZjIxSXk4Q3EwbVotOWtPSGZqeVlfV2tBJmg9LVNZN2hDaDVCZmd4Umd3dllQSDlIdzl0UGZVTmVMbm01U2hHeG1kU3B0Zw==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults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wYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=iXF42276Ev206tpUBxQEA93cp7vyKzLz-lUJFCfTUrvp90JGwCNn7NnR53X3eX28MmAfKHxDYmH5Sw4y4uY8fpYWcB1vlqYh5Ql4XXfUJe74ooYtoGQXkzFazop8mVsUjGjYk3EJ8SK3nZ0ocxmLpx2LYGpzgA-7Qgz5S5UzyILtmjVRCPM2lsWT-eZqwwSPFakdO-BOf72GPmI9_ykN5XuszxFAVhV4GM-6s8pDPswlbTZbm6QjgbhjefEgeDVe3tnjyN7z8sBruH5or6MTVAKDhkmbuHsTHRyzWUa9UV_V31t0sMsF3tAv5ZzKgab7GE3rcKcDO38hcruIdEqoEg&h=mwM7B0DjuRGdgKXNajiesfpRejQqRs1bG9ancsGxxhI" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-request-id": [ - "b19c3229-dfa5-4937-bc71-2b34354ad248" - ], - "x-ms-correlation-request-id": [ - "b19c3229-dfa5-4937-bc71-2b34354ad248" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040928Z:b19c3229-dfa5-4937-bc71-2b34354ad248" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 4260D7E0D2FD4C81BE52CD3B4C2EFA6A Ref B: MAA201060513037 Ref C: 2024-05-21T04:09:27Z" - ], - "Date": [ - "Tue, 21 May 2024 04:09:28 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518613683374183&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAb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THotbFVKRkNmVFVydnA5MEpHd0NObjdOblI1M1gzZVgyOE1tQWZLSHhEWW1INVN3NHk0dVk4ZnBZV2NCMXZscVloNVFsNFhYZlVKZTc0b29ZdG9HUVhrekZhem9wOG1Wc1VqR2pZazNFSjhTSzNuWjBvY3htTHB4MkxZR3B6Z0EtN1FnejVTNVV6eUlMdG1qVlJDUE0ybHNXVC1lWnF3d1NQRmFrZE8tQk9mNzJHUG1JOV95a041WHVzenhGQVZoVjRHTS02czhwRFBzd2xiVFpibTZRamdiaGplZkVnZURWZTN0bmp5Tjd6OHNCcnVINW9yNk1UVkFLRGhrbWJ1SHNUSFJ5eldVYTlVVl9WMzF0MHNNc0YzdEF2NVp6S2dhYjdHRTNyY0tjRE8zOGhjcnVJZEVxb0VnJmg9bXdNN0IwRGp1UkdkZ0tYTmFqaWVzZnBSZWpRcVJzMWJHOWFuY3NHeHhoSQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518613842835860&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0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_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=TrpHAm6Ikj-2Gd2rgvNExj0s6CaP-Wnazzfmhj-24Gq-JWSQuXv98EBmYdnZvWgs4c-sDrCBjopaR0bbDt0PuY7hFMAmyHQRx2qtn1aKxW8ScqvXTrA6GLmqQTOxvcbWh1mkOlJLUxFru_t-0H4Vk5wmJdeUf1PJCVxZ9Ji3u5D0qGWPcRce_TNLm5oIWbwGTni6TMJnKXy2E42h5kAqSjWtJhSnzzNVbvqIEk3Z3JcmE1MODUuVsLD5O2r7auqxgnrdIKYZpIzt3CN7G15FjzcxZCKq0bxOMrU01ZL4zpZ55THG1s_a9NU3IIF9k1EtBsfdFrP9nGrT5I64KX2AjA&h=Go_1HytbwCa7WmShish2q9bEN3db3SYHxyVF5CtG5_Q" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "3e5c565a-290b-43f9-ac59-4c8b866208f6" - ], - "x-ms-correlation-request-id": [ - "3e5c565a-290b-43f9-ac59-4c8b866208f6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T040944Z:3e5c565a-290b-43f9-ac59-4c8b866208f6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 60AE17F63CBA41B9A6CED6C0E0537A4E Ref B: MAA201060513037 Ref C: 2024-05-21T04:09:43Z" - ], - "Date": [ - "Tue, 21 May 2024 04:09:43 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518613842835860&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE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lacEl6dDNDTjdHMTVGanpjeFpDS3EwYnhPTXJVMDFaTDR6cFo1NVRIRzFzX2E5TlUzSUlGOWsxRXRCc2ZkRnJQOW5HclQ1STY0S1gyQWpBJmg9R29fMUh5dGJ3Q2E3V21TaGlzaDJxOWJFTjNkYjNTWUh4eVZGNUN0RzVfUQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518614001913984&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwk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c-mvNNg6sfKFu7PRVlx8lqXY4zoC6xLlditnshkDRWsnGhsLsjVObEgsnPdlmkKWlxRJyTFz2Lwkrnh0-m8ELBZpGJR9KC2prkHYezaxoGkoOBcz05QQFU35B7HcuSfHE3PFSir8QuYWta_hOMSUU4UQ63Pugzw2CpUF43JPWqLRSTSZYYDh1iyclYO_o_CK1Tg-bVH9yduE1VUk7-1TuTKI1C8fbdl_n0U35uhP3BUUnz6WPMVwZIwnLYyogfO2Vi1AQtY1PJJALHVvwfxZV7K6KUt-9VvuyAoYYpkVK39MQ&h=1Ve4wbe8qVff1MblWp7Fca2AlIKc9pRut3gXVI_2dM4" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "1e9afee0-06da-46d9-b5da-3f645b827302" - ], - "x-ms-correlation-request-id": [ - "1e9afee0-06da-46d9-b5da-3f645b827302" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041000Z:1e9afee0-06da-46d9-b5da-3f645b827302" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D8C836C500E34441B873B86B07DA2A6B Ref B: MAA201060513037 Ref C: 2024-05-21T04:09:59Z" - ], - "Date": [ - "Tue, 21 May 2024 04:09:59 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518614001913984&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzAN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TSHJVamR1SUVTeENSZGtSWTJudGZfX1MwOWg1XzRsN2YzclQwanBIWHctXzhkVXJBYm40M2pNaVFtQjJMWHpMb3lJV2FMYWdUMThGX3diVUFtUk1VMW0xV0VKRTY2bmd0OG14NDA3LVNSS3o2ckthUFVDRDJ6LXdJZVNPY2FYWFk3S2JSVlV0YlBTNEdoU1RvM2ZDUkhQR3BYUzlmdHBtLXY3ejNKRmtYRnNON2pjSEJRRG4yWXFFN2VGb1BWcW1vUXRKWlhYekFzV01lcVNpbEUyd21zcW44VHkweWtabnFjZmp1Uk5Yb1RDOUNwdUVoWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9Vi1yR0kzTl9mcnhRc2VCbFUxNE5iY0RqaGpmSHFEbm9DYjhNSHl0QzZjLW12Tk5nNnNmS0Z1N1BSVmx4OGxxWFk0em9DNnhMbGRpdG5zaGtEUldzbkdoc0xzalZPYkVnc25QZGxta0tXbHhSSnlURnoyTHdrcm5oMC1tOEVMQlpwR0pSOUtDMnBya0hZZXpheG9Ha29PQmN6MDVRUUZVMzVCN0hjdVNmSEUzUEZTaXI4UXVZV3RhX2hPTVNVVTRVUTYzUHVnencyQ3BVRjQzSlBXcUxSU1RTWllZRGgxaXljbFlPX29fQ0sxVGctYlZIOXlkdUUxVlVrNy0xVHVUS0kxQzhmYmRsX24wVTM1dWhQM0JVVW56NldQTVZ3Wkl3bkxZeW9nZk8yVmkxQVF0WTFQSkpBTEhWdndmeFpWN0s2S1V0LTlWdnV5QW9ZWXBrVkszOU1RJmg9MVZlNHdiZThxVmZmMU1ibFdwN0ZjYTJBbElLYzlwUnV0M2dYVklfMmRNNA==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "12a608e6-c20f-4751-8542-1649a5d51597" - ], - "x-ms-correlation-request-id": [ - "12a608e6-c20f-4751-8542-1649a5d51597" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041016Z:12a608e6-c20f-4751-8542-1649a5d51597" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 13EAC220DBF448B98AB2F9B816E2D799 Ref B: MAA201060513037 Ref C: 2024-05-21T04:10:15Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:15 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzI3NzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01&t=638518614001913984&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sS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oWllpckF3bWRCTjg3Q2I3WnJoUjJzOGZsbS11SXFkRWhrNG1XZU5NRXlXc201UkxBJnM9Vi1yR0kzTl9mcnhRc2VCbFUxNE5iY0RqaGpmSHFEbm9DYjhNSHl0QzZjLW12Tk5nNnNmS0Z1N1BSVmx4OGxxWFk0em9DNnhMbGRpdG5zaGtEUldzbkdoc0xzalZPYkVnc25QZGxta0tXbHhSSnlURnoyTHdrcm5oMC1tOEVMQlpwR0pSOUtDMnBya0hZZXpheG9Ha29PQmN6MDVRUUZVMzVCN0hjdVNmSEUzUEZTaXI4UXVZV3RhX2hPTVNVVTRVUTYzUHVnencyQ3BVRjQzSlBXcUxSU1RTWllZRGgxaXljbFlPX29fQ0sxVGctYlZIOXlkdUUxVlVrNy0xVHVUS0kxQzhmYmRsX24wVTM1dWhQM0JVVW56NldQTVZ3Wkl3bkxZeW9nZk8yVmkxQVF0WTFQSkpBTEhWdndmeFpWN0s2S1V0LTlWdnV5QW9ZWXBrVkszOU1RJmg9MVZlNHdiZThxVmZmMU1ibFdwN0ZjYTJBbElLYzlwUnV0M2dYVklfMmRNNA==", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/6.0.3024.21525", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22631", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.92" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "a3748923-0597-428b-bde2-c1aefc183c28" - ], - "x-ms-correlation-request-id": [ - "a3748923-0597-428b-bde2-c1aefc183c28" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20240521T041017Z:a3748923-0597-428b-bde2-c1aefc183c28" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: B86F7DD877BF4AF2B979E00ACAE8CCD0 Ref B: MAA201060513037 Ref C: 2024-05-21T04:10:16Z" - ], - "Date": [ - "Tue, 21 May 2024 04:10:16 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": { - "Test-FrontDoorRulesEngineCrud": [ - "ps7978", - "ps2775" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestCustomBlockResponseBody.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestCustomBlockResponseBody.json deleted file mode 100644 index ae4044f604e3..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestCustomBlockResponseBody.json +++ /dev/null @@ -1,574 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8b2be226-2b77-4085-853d-ceaba484de4e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.104" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "eba61dd9-11ba-45fa-b5af-bf4d443f8fcf" - ], - "x-ms-correlation-request-id": [ - "eba61dd9-11ba-45fa-b5af-bf4d443f8fcf" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004920Z:eba61dd9-11ba-45fa-b5af-bf4d443f8fcf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:20 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "25303" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-06-01-preview\",\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Spain Central\",\r\n \"Mexico Central\",\r\n \"New Zealand North\",\r\n \"Indonesia Central\",\r\n \"East US STG\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Spain Central\",\r\n \"Mexico Central\",\r\n \"New Zealand North\",\r\n \"Indonesia Central\",\r\n \"East US STG\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStatuses\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentOperationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/exportResourceTemplate\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/notifyDeploymentJobs\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-08-01\",\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1834?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzMTgzND9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8751b775-6c68-4da4-b42f-069d872aff38" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "74" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"tags\": {\r\n \"Owner\": \"jingnanxu\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-request-id": [ - "7a43d40b-b94f-4f3c-9e88-d73bd366cd1f" - ], - "x-ms-correlation-request-id": [ - "7a43d40b-b94f-4f3c-9e88-d73bd366cd1f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004921Z:7a43d40b-b94f-4f3c-9e88-d73bd366cd1f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:21 GMT" - ], - "Content-Length": [ - "194" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1834\",\r\n \"name\": \"ps1834\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"Owner\": \"jingnanxu\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1834/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTgzNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "4968fcfb-91d2-487e-ad3c-98028c49c18b" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1098" - ], - "x-ms-request-id": [ - "93199c0e-22b6-4a65-8ba8-1077429c4b6e" - ], - "x-ms-correlation-request-id": [ - "93199c0e-22b6-4a65-8ba8-1077429c4b6e" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004923Z:93199c0e-22b6-4a65-8ba8-1077429c4b6e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:22 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "12" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1834/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTgzNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "1d9bef1b-fb03-48b9-90de-30a27acbaa59" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-original-request-ids": [ - "09197e8e-b647-42af-b844-1b3b80df9fa2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-client-request-id": [ - "1d9bef1b-fb03-48b9-90de-30a27acbaa59" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "37df62a8-bc87-4565-90da-29142a3dfd1a" - ], - "x-ms-correlation-request-id": [ - "37df62a8-bc87-4565-90da-29142a3dfd1a" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004927Z:37df62a8-bc87-4565-90da-29142a3dfd1a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:27 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "2069" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1834/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps7862\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps7862\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": \"PGh0bWw+PGhlYWQ+PHRpdGxlPldBRiBEZW1vMTwvdGl0bGU+PC9oZWFkPjxib2R5Ymdjb2xvcj0iI0ZGQjI5WiI+PHA+PGgxPjxzdHJvbmc+V0FGIEN1c3RvbSBSZXNwb25zZSBQYWdlPC9zdHJvbmc+PC9oMT48L3A+PHA+UGxlYXNlIGNvbnRhY3QgdXMgd2l0aCB0aGUgYmVsb3cgcmVmZXJlbmNlIElEOiB7e2F6dXJlLXJlZn19PGJyPjwvcD48L2JvZHk+PC9odG1sPg==\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1834/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps7862?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTgzNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNzg2Mj9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "4968fcfb-91d2-487e-ad3c-98028c49c18b" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2577" - ] - }, - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"customBlockResponseBody\": \"PGh0bWw+PGhlYWQ+PHRpdGxlPldBRiBEZW1vMTwvdGl0bGU+PC9oZWFkPjxib2R5Ymdjb2xvcj0iI0ZGQjI5WiI+PHA+PGgxPjxzdHJvbmc+V0FGIEN1c3RvbSBSZXNwb25zZSBQYWdlPC9zdHJvbmc+PC9oMT48L3A+PHA+UGxlYXNlIGNvbnRhY3QgdXMgd2l0aCB0aGUgYmVsb3cgcmVmZXJlbmNlIElEOiB7e2F6dXJlLXJlZn19PGJyPjwvcD48L2JvZHk+PC9odG1sPg==\",\r\n \"requestBodyCheck\": \"Disabled\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"global\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "819dcdca-4b27-436e-beb6-26b6431ec923" - ], - "x-ms-client-request-id": [ - "4968fcfb-91d2-487e-ad3c-98028c49c18b" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/eaa04212-3dbe-48fc-8b75-fce91bbde7dc" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "42384606-5c08-4cdd-af01-73fa223e747c" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004925Z:42384606-5c08-4cdd-af01-73fa223e747c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:24 GMT" - ], - "Content-Length": [ - "2057" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1834/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps7862\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps7862\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": \"PGh0bWw+PGhlYWQ+PHRpdGxlPldBRiBEZW1vMTwvdGl0bGU+PC9oZWFkPjxib2R5Ymdjb2xvcj0iI0ZGQjI5WiI+PHA+PGgxPjxzdHJvbmc+V0FGIEN1c3RvbSBSZXNwb25zZSBQYWdlPC9zdHJvbmc+PC9oMT48L3A+PHA+UGxlYXNlIGNvbnRhY3QgdXMgd2l0aCB0aGUgYmVsb3cgcmVmZXJlbmNlIElEOiB7e2F6dXJlLXJlZn19PGJyPjwvcD48L2JvZHk+PC9odG1sPg==\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1834/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps7862?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTgzNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNzg2Mj9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "1d9bef1b-fb03-48b9-90de-30a27acbaa59" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2763" - ] - }, - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"customBlockResponseBody\": \"PGh0bWw+PGhlYWQ+PHRpdGxlPldBRiBEZW1vMjwvdGl0bGU+PC9oZWFkPjxib2R5Ymdjb2xvcj0iI0ZGQjI5WiI+PHA+PGgxPjxzdHJvbmc+V0FGIEN1c3RvbSBSZXNwb25zZSBQYWdlPC9zdHJvbmc+PC9oMT48L3A+PHA+UGxlYXNlIGNvbnRhY3QgdXMgd2l0aCB0aGUgYmVsb3cgcmVmZXJlbmNlIElEOiB7e2F6dXJlLXJlZn19PGJyPjwvcD48L2JvZHk+PC9odG1sPg==\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"groupBy\": [],\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [],\r\n \"ruleGroupOverrides\": []\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"global\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "aca0d0b6-6070-4c6d-95e7-7a6d6c7f7194" - ], - "x-ms-client-request-id": [ - "1d9bef1b-fb03-48b9-90de-30a27acbaa59" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/6219ec79-f485-47ad-b672-da5f57f8c0e0" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "623fd3a9-7183-44b5-b376-3d9f04487b15" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004929Z:623fd3a9-7183-44b5-b376-3d9f04487b15" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:28 GMT" - ], - "Content-Length": [ - "2057" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1834/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps7862\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps7862\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": \"PGh0bWw+PGhlYWQ+PHRpdGxlPldBRiBEZW1vMjwvdGl0bGU+PC9oZWFkPjxib2R5Ymdjb2xvcj0iI0ZGQjI5WiI+PHA+PGgxPjxzdHJvbmc+V0FGIEN1c3RvbSBSZXNwb25zZSBQYWdlPC9zdHJvbmc+PC9oMT48L3A+PHA+UGxlYXNlIGNvbnRhY3QgdXMgd2l0aCB0aGUgYmVsb3cgcmVmZXJlbmNlIElEOiB7e2F6dXJlLXJlZn19PGJyPjwvcD48L2JvZHk+PC9odG1sPg==\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1834/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps7862?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTgzNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNzg2Mj9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "a38391d5-35ac-4e4d-aaee-9f3da534c91c" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4756656c-70f4-4171-85d3-4da0a4bef872" - ], - "x-ms-client-request-id": [ - "a38391d5-35ac-4e4d-aaee-9f3da534c91c" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-correlation-request-id": [ - "87fdd2d2-8752-433d-8324-09be108023b4" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004926Z:87fdd2d2-8752-433d-8324-09be108023b4" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:26 GMT" - ], - "Content-Length": [ - "2057" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1834/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps7862\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps7862\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": \"PGh0bWw+PGhlYWQ+PHRpdGxlPldBRiBEZW1vMTwvdGl0bGU+PC9oZWFkPjxib2R5Ymdjb2xvcj0iI0ZGQjI5WiI+PHA+PGgxPjxzdHJvbmc+V0FGIEN1c3RvbSBSZXNwb25zZSBQYWdlPC9zdHJvbmc+PC9oMT48L3A+PHA+UGxlYXNlIGNvbnRhY3QgdXMgd2l0aCB0aGUgYmVsb3cgcmVmZXJlbmNlIElEOiB7e2F6dXJlLXJlZn19PGJyPjwvcD48L2JvZHk+PC9odG1sPg==\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1834/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps7862?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTgzNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNzg2Mj9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "e6bb2a8e-9de4-49de-8c23-754336984eab" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e4c6409a-7f09-4119-9a16-412bc7a608a7" - ], - "x-ms-client-request-id": [ - "e6bb2a8e-9de4-49de-8c23-754336984eab" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-correlation-request-id": [ - "7ccf1088-e5b5-423e-8307-d86ca53f26b0" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004929Z:7ccf1088-e5b5-423e-8307-d86ca53f26b0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:29 GMT" - ], - "Content-Length": [ - "2057" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1834/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps7862\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps7862\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": \"PGh0bWw+PGhlYWQ+PHRpdGxlPldBRiBEZW1vMjwvdGl0bGU+PC9oZWFkPjxib2R5Ymdjb2xvcj0iI0ZGQjI5WiI+PHA+PGgxPjxzdHJvbmc+V0FGIEN1c3RvbSBSZXNwb25zZSBQYWdlPC9zdHJvbmc+PC9oMT48L3A+PHA+UGxlYXNlIGNvbnRhY3QgdXMgd2l0aCB0aGUgYmVsb3cgcmVmZXJlbmNlIElEOiB7e2F6dXJlLXJlZn19PGJyPjwvcD48L2JvZHk+PC9odG1sPg==\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - } - ], - "Names": { - "Test-CustomBlockResponseBody": [ - "ps7862", - "ps1834" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestManagedRuleSetDefinitions.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestManagedRuleSetDefinitions.json deleted file mode 100644 index de365f7288d9..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestManagedRuleSetDefinitions.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsTWFuYWdlZFJ1bGVTZXRzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "a3740062-90b8-4c81-a838-44bf778e076d" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8c3695b7-ea92-4a16-8483-201f5c75189a" - ], - "x-ms-client-request-id": [ - "a3740062-90b8-4c81-a838-44bf778e076d" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/36070291-3228-4d8f-babd-5ee4adc6ec77" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-correlation-request-id": [ - "60cb87f0-e5ec-4b70-94ab-b3a522d911f9" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T005228Z:60cb87f0-e5ec-4b70-94ab-b3a522d911f9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:52:28 GMT" - ], - "Content-Length": [ - "160981" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.0\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"Microsoft_DefaultRuleSet_2.0\",\r\n \"properties\": {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"2.0\",\r\n \"ruleSetId\": \"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-WebShells\",\r\n \"description\": \"Web shell attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99005002\",\r\n \"description\": \"Web Shell Interaction Attempt (POST)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005003\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005004\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005006\",\r\n \"description\": \"Spring4Shell Interaction Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-AppSec\",\r\n \"description\": \"Path traversal evasion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99030001\",\r\n \"description\": \"Path Traversal Evasion in Headers (/.././../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030002\",\r\n \"description\": \"Path Traversal Evasion in Request Body (/.././../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99031001\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031002\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-CVEs\",\r\n \"description\": \"Rest API exploitation\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99001001\",\r\n \"description\": \"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001014\",\r\n \"description\": \"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001015\",\r\n \"description\": \"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001016\",\r\n \"description\": \"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001017\",\r\n \"description\": \"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ATTACK\",\r\n \"description\": \"Protocol attack\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"921110\",\r\n \"description\": \"HTTP Request Smuggling Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921120\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921130\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921140\",\r\n \"description\": \"HTTP Header Injection Attack via headers\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921150\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921160\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921151\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"LFI\",\r\n \"description\": \"Local file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"930100\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930110\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930120\",\r\n \"description\": \"OS File Access Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930130\",\r\n \"description\": \"Restricted File Access Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RFI\",\r\n \"description\": \"Remote file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"931100\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931110\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931120\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931130\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RCE\",\r\n \"description\": \"Remote Command Execution attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"932100\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932105\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932110\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932115\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932120\",\r\n \"description\": \"Remote Command Execution: Windows PowerShell Command Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932130\",\r\n \"description\": \"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932140\",\r\n \"description\": \"Remote Command Execution: Windows FOR/IF Command Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932150\",\r\n \"description\": \"Remote Command Execution: Direct Unix Command Execution\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932160\",\r\n \"description\": \"Remote Command Execution: Unix Shell Code Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932170\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932171\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932180\",\r\n \"description\": \"Restricted File Upload Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PHP\",\r\n \"description\": \"PHP attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"933100\",\r\n \"description\": \"PHP Injection Attack: PHP Open Tag Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933110\",\r\n \"description\": \"PHP Injection Attack: PHP Script File Upload Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933120\",\r\n \"description\": \"PHP Injection Attack: Configuration Directive Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933130\",\r\n \"description\": \"PHP Injection Attack: Variables Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933140\",\r\n \"description\": \"PHP Injection Attack: I/O Stream Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933150\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933151\",\r\n \"description\": \"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933160\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933170\",\r\n \"description\": \"PHP Injection Attack: Serialized Object Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933180\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933200\",\r\n \"description\": \"PHP Injection Attack: Wrapper scheme detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933210\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"XSS\",\r\n \"description\": \"Cross-site scripting\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"941100\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941101\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941110\",\r\n \"description\": \"XSS Filter - Category 1: Script Tag Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941120\",\r\n \"description\": \"XSS Filter - Category 2: Event Handler Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941130\",\r\n \"description\": \"XSS Filter - Category 3: Attribute Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941140\",\r\n \"description\": \"XSS Filter - Category 4: Javascript URI Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941150\",\r\n \"description\": \"XSS Filter - Category 5: Disallowed HTML Attributes\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941160\",\r\n \"description\": \"NoScript XSS InjectionChecker: HTML Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941170\",\r\n \"description\": \"NoScript XSS InjectionChecker: Attribute Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941180\",\r\n \"description\": \"Node-Validator Blacklist Keywords\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941190\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941200\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941210\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941220\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941230\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941240\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941250\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941260\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941270\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941280\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941290\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941300\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941310\",\r\n \"description\": \"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941320\",\r\n \"description\": \"Possible XSS Attack Detected - HTML Tag Handler\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941330\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941340\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941350\",\r\n \"description\": \"UTF-7 Encoding IE XSS - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941360\",\r\n \"description\": \"JSFuck / Hieroglyphy obfuscation detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941370\",\r\n \"description\": \"JavaScript global variable found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941380\",\r\n \"description\": \"AngularJS client side template injection detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"description\": \"SQL Injection Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942110\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942120\",\r\n \"description\": \"SQL Injection Attack: SQL Operator Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942140\",\r\n \"description\": \"SQL Injection Attack: Common DB Names Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942150\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942160\",\r\n \"description\": \"Detects blind sqli tests using sleep() or benchmark().\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942170\",\r\n \"description\": \"Detects SQL benchmark and sleep injection attempts including conditional queries\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942180\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 1/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942190\",\r\n \"description\": \"Detects MSSQL code execution and information gathering attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942200\",\r\n \"description\": \"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942210\",\r\n \"description\": \"Detects chained SQL injection attempts 1/2\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942220\",\r\n \"description\": \"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942230\",\r\n \"description\": \"Detects conditional SQL injection attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942240\",\r\n \"description\": \"Detects MySQL charset switch and MSSQL DoS attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942250\",\r\n \"description\": \"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942260\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942270\",\r\n \"description\": \"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942280\",\r\n \"description\": \"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942290\",\r\n \"description\": \"Finds basic MongoDB SQL injection attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942300\",\r\n \"description\": \"Detects MySQL comments, conditions and ch(a)r injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942310\",\r\n \"description\": \"Detects chained SQL injection attempts 2/2\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942320\",\r\n \"description\": \"Detects MySQL and PostgreSQL stored procedure/function injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942330\",\r\n \"description\": \"Detects classic SQL injection probings 1/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942340\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 3/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942350\",\r\n \"description\": \"Detects MySQL UDF injection and other data/structure manipulation attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942360\",\r\n \"description\": \"Detects concatenated basic SQL injection and SQLLFI attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942361\",\r\n \"description\": \"Detects basic SQL injection based on keyword alter or union\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942370\",\r\n \"description\": \"Detects classic SQL injection probings 2/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942380\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942390\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942400\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942410\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942430\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942440\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942450\",\r\n \"description\": \"SQL Hex Encoding Identified\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942470\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942480\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942500\",\r\n \"description\": \"MySQL in-line comment detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942510\",\r\n \"description\": \"SQLi bypass attempt by ticks or backticks detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"FIX\",\r\n \"description\": \"Session Fixation attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"943100\",\r\n \"description\": \"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943110\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943120\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"JAVA\",\r\n \"description\": \"Java attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"944100\",\r\n \"description\": \"Remote Command Execution: Suspicious Java class detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944110\",\r\n \"description\": \"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944120\",\r\n \"description\": \"Remote Command Execution: Java serialization (CVE-2015-5842)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944130\",\r\n \"description\": \"Suspicious Java class detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944200\",\r\n \"description\": \"Magic bytes Detected, probable java serialization in use\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944210\",\r\n \"description\": \"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944240\",\r\n \"description\": \"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944250\",\r\n \"description\": \"Remote Command Execution: Suspicious Java method detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"METHOD-ENFORCEMENT\",\r\n \"description\": \"Method Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"911100\",\r\n \"description\": \"Method is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ENFORCEMENT\",\r\n \"description\": \"Protocol Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"920100\",\r\n \"description\": \"Invalid HTTP Request Line\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920120\",\r\n \"description\": \"Attempted multipart/form-data bypass\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920121\",\r\n \"description\": \"Attempted multipart/form-data bypass\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920160\",\r\n \"description\": \"Content-Length HTTP header is not numeric.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920170\",\r\n \"description\": \"GET or HEAD Request with Body Content.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920171\",\r\n \"description\": \"GET or HEAD Request with Transfer-Encoding.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920180\",\r\n \"description\": \"POST without Content-Length or Transfer-Encoding headers.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920190\",\r\n \"description\": \"Range: Invalid Last Byte Value.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920200\",\r\n \"description\": \"Range: Too many fields (6 or more)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920201\",\r\n \"description\": \"Range: Too many fields for pdf request (63 or more)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920210\",\r\n \"description\": \"Multiple/Conflicting Connection Header Data Found.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920220\",\r\n \"description\": \"URL Encoding Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920230\",\r\n \"description\": \"Multiple URL Encoding Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920240\",\r\n \"description\": \"URL Encoding Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920260\",\r\n \"description\": \"Unicode Full/Half Width Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920270\",\r\n \"description\": \"Invalid character in request (null character)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920271\",\r\n \"description\": \"Invalid character in request (non printable characters)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920280\",\r\n \"description\": \"Request Missing a Host Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920290\",\r\n \"description\": \"Empty Host Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920300\",\r\n \"description\": \"Request Missing an Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920310\",\r\n \"description\": \"Request Has an Empty Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920311\",\r\n \"description\": \"Request Has an Empty Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920320\",\r\n \"description\": \"Missing User Agent Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920330\",\r\n \"description\": \"Empty User Agent Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920340\",\r\n \"description\": \"Request Containing Content, but Missing Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920341\",\r\n \"description\": \"Request Containing Content Requires Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920350\",\r\n \"description\": \"Host header is a numeric IP address\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920420\",\r\n \"description\": \"Request content type is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920430\",\r\n \"description\": \"HTTP protocol version is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920440\",\r\n \"description\": \"URL file extension is restricted by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920450\",\r\n \"description\": \"HTTP header is restricted by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920470\",\r\n \"description\": \"Illegal Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920480\",\r\n \"description\": \"Request content type charset is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"General\",\r\n \"description\": \"Method Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"200002\",\r\n \"description\": \"Failed to parse request body.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"200003\",\r\n \"description\": \"Multipart request body failed strict validation\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"NODEJS\",\r\n \"description\": \"Node JS Attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"934100\",\r\n \"description\": \"Node.js Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.1\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"Microsoft_DefaultRuleSet_2.1\",\r\n \"properties\": {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"2.1\",\r\n \"ruleSetId\": \"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-WebShells\",\r\n \"description\": \"Web shell attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99005002\",\r\n \"description\": \"Web Shell Interaction Attempt (POST)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005003\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005004\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005005\",\r\n \"description\": \"Web Shell Interaction Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005006\",\r\n \"description\": \"Spring4Shell Interaction Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-AppSec\",\r\n \"description\": \"Path traversal evasion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99030001\",\r\n \"description\": \"Path Traversal Evasion in Headers (/.././../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030002\",\r\n \"description\": \"Path Traversal Evasion in Request Body (/.././../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99031001\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031002\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031003\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031004\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-CVEs\",\r\n \"description\": \"Rest API exploitation\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99001001\",\r\n \"description\": \"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001002\",\r\n \"description\": \"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001003\",\r\n \"description\": \"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001004\",\r\n \"description\": \"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001005\",\r\n \"description\": \"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001006\",\r\n \"description\": \"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001007\",\r\n \"description\": \"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001008\",\r\n \"description\": \"Attempted Fortinet path traversal (CVE-2018-13379)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001009\",\r\n \"description\": \"Attempted Apache struts ognl injection (CVE-2017-5638)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001010\",\r\n \"description\": \"Attempted Apache struts ognl injection (CVE-2017-12611)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001011\",\r\n \"description\": \"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001012\",\r\n \"description\": \"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001013\",\r\n \"description\": \"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001014\",\r\n \"description\": \"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001015\",\r\n \"description\": \"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001016\",\r\n \"description\": \"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001017\",\r\n \"description\": \"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ATTACK\",\r\n \"description\": \"Protocol attack\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"921110\",\r\n \"description\": \"HTTP Request Smuggling Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921120\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921130\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921140\",\r\n \"description\": \"HTTP Header Injection Attack via headers\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921150\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921160\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921151\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921190\",\r\n \"description\": \"HTTP Splitting (CR/LF in request filename detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921200\",\r\n \"description\": \"LDAP Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"LFI\",\r\n \"description\": \"Local file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"930100\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930110\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930120\",\r\n \"description\": \"OS File Access Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930130\",\r\n \"description\": \"Restricted File Access Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RFI\",\r\n \"description\": \"Remote file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"931100\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931110\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931120\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931130\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RCE\",\r\n \"description\": \"Remote Command Execution attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"932100\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932105\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932110\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932115\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932120\",\r\n \"description\": \"Remote Command Execution: Windows PowerShell Command Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932130\",\r\n \"description\": \"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932140\",\r\n \"description\": \"Remote Command Execution: Windows FOR/IF Command Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932150\",\r\n \"description\": \"Remote Command Execution: Direct Unix Command Execution\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932160\",\r\n \"description\": \"Remote Command Execution: Unix Shell Code Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932170\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932171\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932180\",\r\n \"description\": \"Restricted File Upload Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PHP\",\r\n \"description\": \"PHP attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"933100\",\r\n \"description\": \"PHP Injection Attack: PHP Open Tag Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933110\",\r\n \"description\": \"PHP Injection Attack: PHP Script File Upload Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933120\",\r\n \"description\": \"PHP Injection Attack: Configuration Directive Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933130\",\r\n \"description\": \"PHP Injection Attack: Variables Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933140\",\r\n \"description\": \"PHP Injection Attack: I/O Stream Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933150\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933151\",\r\n \"description\": \"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933160\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933170\",\r\n \"description\": \"PHP Injection Attack: Serialized Object Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933180\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933200\",\r\n \"description\": \"PHP Injection Attack: Wrapper scheme detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933210\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"XSS\",\r\n \"description\": \"Cross-site scripting\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"941100\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941101\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941110\",\r\n \"description\": \"XSS Filter - Category 1: Script Tag Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941120\",\r\n \"description\": \"XSS Filter - Category 2: Event Handler Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941130\",\r\n \"description\": \"XSS Filter - Category 3: Attribute Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941140\",\r\n \"description\": \"XSS Filter - Category 4: Javascript URI Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941150\",\r\n \"description\": \"XSS Filter - Category 5: Disallowed HTML Attributes\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941160\",\r\n \"description\": \"NoScript XSS InjectionChecker: HTML Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941170\",\r\n \"description\": \"NoScript XSS InjectionChecker: Attribute Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941180\",\r\n \"description\": \"Node-Validator Blacklist Keywords\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941190\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941200\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941210\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941220\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941230\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941240\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941250\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941260\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941270\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941280\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941290\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941300\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941310\",\r\n \"description\": \"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941320\",\r\n \"description\": \"Possible XSS Attack Detected - HTML Tag Handler\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941330\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941340\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941350\",\r\n \"description\": \"UTF-7 Encoding IE XSS - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941360\",\r\n \"description\": \"JSFuck / Hieroglyphy obfuscation detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941370\",\r\n \"description\": \"JavaScript global variable found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941380\",\r\n \"description\": \"AngularJS client side template injection detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"description\": \"SQL Injection Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942110\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942120\",\r\n \"description\": \"SQL Injection Attack: SQL Operator Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942140\",\r\n \"description\": \"SQL Injection Attack: Common DB Names Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942150\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942160\",\r\n \"description\": \"Detects blind sqli tests using sleep() or benchmark().\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942170\",\r\n \"description\": \"Detects SQL benchmark and sleep injection attempts including conditional queries\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942180\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 1/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942190\",\r\n \"description\": \"Detects MSSQL code execution and information gathering attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942200\",\r\n \"description\": \"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942210\",\r\n \"description\": \"Detects chained SQL injection attempts 1/2\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942220\",\r\n \"description\": \"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942230\",\r\n \"description\": \"Detects conditional SQL injection attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942240\",\r\n \"description\": \"Detects MySQL charset switch and MSSQL DoS attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942250\",\r\n \"description\": \"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942260\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942270\",\r\n \"description\": \"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942280\",\r\n \"description\": \"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942290\",\r\n \"description\": \"Finds basic MongoDB SQL injection attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942300\",\r\n \"description\": \"Detects MySQL comments, conditions and ch(a)r injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942310\",\r\n \"description\": \"Detects chained SQL injection attempts 2/2\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942320\",\r\n \"description\": \"Detects MySQL and PostgreSQL stored procedure/function injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942330\",\r\n \"description\": \"Detects classic SQL injection probings 1/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942340\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 3/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942350\",\r\n \"description\": \"Detects MySQL UDF injection and other data/structure manipulation attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942360\",\r\n \"description\": \"Detects concatenated basic SQL injection and SQLLFI attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942361\",\r\n \"description\": \"Detects basic SQL injection based on keyword alter or union\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942370\",\r\n \"description\": \"Detects classic SQL injection probings 2/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942380\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942390\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942400\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942410\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942430\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942440\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942450\",\r\n \"description\": \"SQL Hex Encoding Identified\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942470\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942480\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942500\",\r\n \"description\": \"MySQL in-line comment detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942510\",\r\n \"description\": \"SQLi bypass attempt by ticks or backticks detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"FIX\",\r\n \"description\": \"Session Fixation attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"943100\",\r\n \"description\": \"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943110\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943120\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"JAVA\",\r\n \"description\": \"Java attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"944100\",\r\n \"description\": \"Remote Command Execution: Suspicious Java class detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944110\",\r\n \"description\": \"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944120\",\r\n \"description\": \"Remote Command Execution: Java serialization (CVE-2015-5842)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944130\",\r\n \"description\": \"Suspicious Java class detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944200\",\r\n \"description\": \"Magic bytes Detected, probable java serialization in use\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944210\",\r\n \"description\": \"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944240\",\r\n \"description\": \"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944250\",\r\n \"description\": \"Remote Command Execution: Suspicious Java method detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"METHOD-ENFORCEMENT\",\r\n \"description\": \"Method Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"911100\",\r\n \"description\": \"Method is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ENFORCEMENT\",\r\n \"description\": \"Protocol Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"920100\",\r\n \"description\": \"Invalid HTTP Request Line\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920120\",\r\n \"description\": \"Attempted multipart/form-data bypass\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920121\",\r\n \"description\": \"Attempted multipart/form-data bypass\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920160\",\r\n \"description\": \"Content-Length HTTP header is not numeric.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920170\",\r\n \"description\": \"GET or HEAD Request with Body Content.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920171\",\r\n \"description\": \"GET or HEAD Request with Transfer-Encoding.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920180\",\r\n \"description\": \"POST without Content-Length or Transfer-Encoding headers.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920190\",\r\n \"description\": \"Range: Invalid Last Byte Value.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920200\",\r\n \"description\": \"Range: Too many fields (6 or more)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920201\",\r\n \"description\": \"Range: Too many fields for pdf request (63 or more)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920210\",\r\n \"description\": \"Multiple/Conflicting Connection Header Data Found.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920220\",\r\n \"description\": \"URL Encoding Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920230\",\r\n \"description\": \"Multiple URL Encoding Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920240\",\r\n \"description\": \"URL Encoding Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920260\",\r\n \"description\": \"Unicode Full/Half Width Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920270\",\r\n \"description\": \"Invalid character in request (null character)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920271\",\r\n \"description\": \"Invalid character in request (non printable characters)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920280\",\r\n \"description\": \"Request Missing a Host Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920290\",\r\n \"description\": \"Empty Host Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920300\",\r\n \"description\": \"Request Missing an Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920310\",\r\n \"description\": \"Request Has an Empty Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920311\",\r\n \"description\": \"Request Has an Empty Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920320\",\r\n \"description\": \"Missing User Agent Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920330\",\r\n \"description\": \"Empty User Agent Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920340\",\r\n \"description\": \"Request Containing Content, but Missing Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920341\",\r\n \"description\": \"Request Containing Content Requires Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920350\",\r\n \"description\": \"Host header is a numeric IP address\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920420\",\r\n \"description\": \"Request content type is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920430\",\r\n \"description\": \"HTTP protocol version is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920440\",\r\n \"description\": \"URL file extension is restricted by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920450\",\r\n \"description\": \"HTTP header is restricted by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920470\",\r\n \"description\": \"Illegal Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920480\",\r\n \"description\": \"Request content type charset is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920181\",\r\n \"description\": \"Content-Length and Transfer-Encoding headers present\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920500\",\r\n \"description\": \"Attempt to access a backup or working file\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"General\",\r\n \"description\": \"Method Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"200002\",\r\n \"description\": \"Failed to parse request body.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"200003\",\r\n \"description\": \"Multipart request body failed strict validation\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"NODEJS\",\r\n \"description\": \"Node JS Attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"934100\",\r\n \"description\": \"Node.js Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.2\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"Microsoft_DefaultRuleSet_2.2\",\r\n \"properties\": {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"2.2\",\r\n \"ruleSetId\": \"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-WebShells\",\r\n \"description\": \"Web shell attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99005002\",\r\n \"description\": \"Web Shell Interaction Attempt (POST)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005003\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005004\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005005\",\r\n \"description\": \"Web Shell Interaction Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005006\",\r\n \"description\": \"Spring4Shell Interaction Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-AppSec\",\r\n \"description\": \"Path traversal evasion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99030001\",\r\n \"description\": \"Path Traversal Evasion in Headers (/.././../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030002\",\r\n \"description\": \"Path Traversal Evasion in Request Body (/.././../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030003\",\r\n \"description\": \"URL encoded file path\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030004\",\r\n \"description\": \"Missing brotli encoding from supporting browser with https referer\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030005\",\r\n \"description\": \"Missing brotli encoding from supporting browser over HTTP/2\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030006\",\r\n \"description\": \"Illegal character in requested filename\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99031001\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031002\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031003\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031004\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031005\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031006\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 3/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-CVEs\",\r\n \"description\": \"Rest API exploitation\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99001001\",\r\n \"description\": \"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001002\",\r\n \"description\": \"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001003\",\r\n \"description\": \"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001004\",\r\n \"description\": \"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001005\",\r\n \"description\": \"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001006\",\r\n \"description\": \"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001007\",\r\n \"description\": \"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001008\",\r\n \"description\": \"Attempted Fortinet path traversal (CVE-2018-13379)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001009\",\r\n \"description\": \"Attempted Apache struts ognl injection (CVE-2017-5638)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001010\",\r\n \"description\": \"Attempted Apache struts ognl injection (CVE-2017-12611)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001011\",\r\n \"description\": \"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001012\",\r\n \"description\": \"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001013\",\r\n \"description\": \"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001014\",\r\n \"description\": \"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001015\",\r\n \"description\": \"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001016\",\r\n \"description\": \"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001017\",\r\n \"description\": \"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-XSS\",\r\n \"description\": \"Cross-site scripting\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99032001\",\r\n \"description\": \"XSS Filter - Category 2: Event Handler Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99032002\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ATTACK\",\r\n \"description\": \"Protocol attack\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"921110\",\r\n \"description\": \"HTTP Request Smuggling Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921120\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921130\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921140\",\r\n \"description\": \"HTTP Header Injection Attack via headers\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921150\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921160\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921151\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921190\",\r\n \"description\": \"HTTP Splitting (CR/LF in request filename detected)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921200\",\r\n \"description\": \"LDAP Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"LFI\",\r\n \"description\": \"Local file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"930100\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930110\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930120\",\r\n \"description\": \"OS File Access Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930130\",\r\n \"description\": \"Restricted File Access Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RFI\",\r\n \"description\": \"Remote file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"931100\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931110\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931120\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931130\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RCE\",\r\n \"description\": \"Remote Command Execution attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"932100\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932105\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932110\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932115\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932120\",\r\n \"description\": \"Remote Command Execution: Windows PowerShell Command Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932130\",\r\n \"description\": \"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932140\",\r\n \"description\": \"Remote Command Execution: Windows FOR/IF Command Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932150\",\r\n \"description\": \"Remote Command Execution: Direct Unix Command Execution\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932160\",\r\n \"description\": \"Remote Command Execution: Unix Shell Code Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932170\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932171\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932180\",\r\n \"description\": \"Restricted File Upload Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PHP\",\r\n \"description\": \"PHP attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"933100\",\r\n \"description\": \"PHP Injection Attack: PHP Open Tag Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933110\",\r\n \"description\": \"PHP Injection Attack: PHP Script File Upload Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933120\",\r\n \"description\": \"PHP Injection Attack: Configuration Directive Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933130\",\r\n \"description\": \"PHP Injection Attack: Variables Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933140\",\r\n \"description\": \"PHP Injection Attack: I/O Stream Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933150\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933151\",\r\n \"description\": \"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933160\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933170\",\r\n \"description\": \"PHP Injection Attack: Serialized Object Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933180\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933200\",\r\n \"description\": \"PHP Injection Attack: Wrapper scheme detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933210\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"XSS\",\r\n \"description\": \"Cross-site scripting\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"941100\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941101\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941110\",\r\n \"description\": \"XSS Filter - Category 1: Script Tag Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941120\",\r\n \"description\": \"XSS Filter - Category 2: Event Handler Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941130\",\r\n \"description\": \"XSS Filter - Category 3: Attribute Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941140\",\r\n \"description\": \"XSS Filter - Category 4: Javascript URI Vector\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941150\",\r\n \"description\": \"XSS Filter - Category 5: Disallowed HTML Attributes\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941160\",\r\n \"description\": \"NoScript XSS InjectionChecker: HTML Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941170\",\r\n \"description\": \"NoScript XSS InjectionChecker: Attribute Injection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941180\",\r\n \"description\": \"Node-Validator Blacklist Keywords\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941190\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941200\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941210\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941220\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941230\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941240\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941250\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941260\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941270\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941280\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941290\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941300\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941310\",\r\n \"description\": \"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941320\",\r\n \"description\": \"Possible XSS Attack Detected - HTML Tag Handler\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941330\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941340\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941350\",\r\n \"description\": \"UTF-7 Encoding IE XSS - Attack Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941360\",\r\n \"description\": \"JSFuck / Hieroglyphy obfuscation detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941370\",\r\n \"description\": \"JavaScript global variable found\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941380\",\r\n \"description\": \"AngularJS client side template injection detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"description\": \"SQL Injection Attack Detected via libinjection\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942110\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942120\",\r\n \"description\": \"SQL Injection Attack: SQL Operator Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942140\",\r\n \"description\": \"SQL Injection Attack: Common DB Names Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942150\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942160\",\r\n \"description\": \"Detects blind sqli tests using sleep() or benchmark().\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942170\",\r\n \"description\": \"Detects SQL benchmark and sleep injection attempts including conditional queries\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942180\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 1/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942190\",\r\n \"description\": \"Detects MSSQL code execution and information gathering attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942200\",\r\n \"description\": \"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942210\",\r\n \"description\": \"Detects chained SQL injection attempts 1/2\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942220\",\r\n \"description\": \"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942230\",\r\n \"description\": \"Detects conditional SQL injection attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942240\",\r\n \"description\": \"Detects MySQL charset switch and MSSQL DoS attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942250\",\r\n \"description\": \"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942260\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942270\",\r\n \"description\": \"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942280\",\r\n \"description\": \"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942290\",\r\n \"description\": \"Finds basic MongoDB SQL injection attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942300\",\r\n \"description\": \"Detects MySQL comments, conditions and ch(a)r injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942310\",\r\n \"description\": \"Detects chained SQL injection attempts 2/2\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942320\",\r\n \"description\": \"Detects MySQL and PostgreSQL stored procedure/function injections\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942330\",\r\n \"description\": \"Detects classic SQL injection probings 1/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942340\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 3/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942350\",\r\n \"description\": \"Detects MySQL UDF injection and other data/structure manipulation attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942360\",\r\n \"description\": \"Detects concatenated basic SQL injection and SQLLFI attempts\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942361\",\r\n \"description\": \"Detects basic SQL injection based on keyword alter or union\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942370\",\r\n \"description\": \"Detects classic SQL injection probings 2/3\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942380\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942390\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942400\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942410\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942430\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942440\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942450\",\r\n \"description\": \"SQL Hex Encoding Identified\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942470\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942480\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942500\",\r\n \"description\": \"MySQL in-line comment detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942510\",\r\n \"description\": \"SQLi bypass attempt by ticks or backticks detected.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"FIX\",\r\n \"description\": \"Session Fixation attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"943100\",\r\n \"description\": \"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943110\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943120\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"JAVA\",\r\n \"description\": \"Java attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"944100\",\r\n \"description\": \"Remote Command Execution: Suspicious Java class detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944110\",\r\n \"description\": \"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944120\",\r\n \"description\": \"Remote Command Execution: Java serialization (CVE-2015-5842)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944130\",\r\n \"description\": \"Suspicious Java class detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944200\",\r\n \"description\": \"Magic bytes Detected, probable java serialization in use\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944210\",\r\n \"description\": \"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944240\",\r\n \"description\": \"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944250\",\r\n \"description\": \"Remote Command Execution: Suspicious Java method detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"METHOD-ENFORCEMENT\",\r\n \"description\": \"Method Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"911100\",\r\n \"description\": \"Method is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ENFORCEMENT\",\r\n \"description\": \"Protocol Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"920100\",\r\n \"description\": \"Invalid HTTP Request Line\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920120\",\r\n \"description\": \"Attempted multipart/form-data bypass\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920121\",\r\n \"description\": \"Attempted multipart/form-data bypass\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920160\",\r\n \"description\": \"Content-Length HTTP header is not numeric.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920170\",\r\n \"description\": \"GET or HEAD Request with Body Content.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920171\",\r\n \"description\": \"GET or HEAD Request with Transfer-Encoding.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920180\",\r\n \"description\": \"POST without Content-Length or Transfer-Encoding headers.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920190\",\r\n \"description\": \"Range: Invalid Last Byte Value.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920200\",\r\n \"description\": \"Range: Too many fields (6 or more)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920201\",\r\n \"description\": \"Range: Too many fields for pdf request (63 or more)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920210\",\r\n \"description\": \"Multiple/Conflicting Connection Header Data Found.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920220\",\r\n \"description\": \"URL Encoding Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920230\",\r\n \"description\": \"Multiple URL Encoding Detected\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920240\",\r\n \"description\": \"URL Encoding Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920260\",\r\n \"description\": \"Unicode Full/Half Width Abuse Attack Attempt\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920270\",\r\n \"description\": \"Invalid character in request (null character)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920271\",\r\n \"description\": \"Invalid character in request (non printable characters)\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920280\",\r\n \"description\": \"Request Missing a Host Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920290\",\r\n \"description\": \"Empty Host Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920300\",\r\n \"description\": \"Request Missing an Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920310\",\r\n \"description\": \"Request Has an Empty Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920311\",\r\n \"description\": \"Request Has an Empty Accept Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920320\",\r\n \"description\": \"Missing User Agent Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920330\",\r\n \"description\": \"Empty User Agent Header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920340\",\r\n \"description\": \"Request Containing Content, but Missing Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920341\",\r\n \"description\": \"Request Containing Content Requires Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920350\",\r\n \"description\": \"Host header is a numeric IP address\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920420\",\r\n \"description\": \"Request content type is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920430\",\r\n \"description\": \"HTTP protocol version is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920440\",\r\n \"description\": \"URL file extension is restricted by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920450\",\r\n \"description\": \"HTTP header is restricted by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920470\",\r\n \"description\": \"Illegal Content-Type header\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920480\",\r\n \"description\": \"Request content type charset is not allowed by policy\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920181\",\r\n \"description\": \"Content-Length and Transfer-Encoding headers present\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920500\",\r\n \"description\": \"Attempt to access a backup or working file\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920530\",\r\n \"description\": \"Restrict charset parameter inside content type header to occur max once\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"920620\",\r\n \"description\": \"Multiple Content-Type Request Headers\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"General\",\r\n \"description\": \"Method Enforcement\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"200002\",\r\n \"description\": \"Failed to parse request body.\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"200003\",\r\n \"description\": \"Multipart request body failed strict validation\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"NODEJS\",\r\n \"description\": \"Node JS Attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"934100\",\r\n \"description\": \"Node.js Injection Attack\",\r\n \"defaultAction\": \"AnomalyScoring\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.1\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"Microsoft_BotManagerRuleSet_1.1\",\r\n \"properties\": {\r\n \"ruleSetType\": \"Microsoft_BotManagerRuleSet\",\r\n \"ruleSetVersion\": \"1.1\",\r\n \"ruleSetId\": \"e44514af-018d-49e9-8070-c9edac0f3a0d\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"BadBots\",\r\n \"description\": \"Bad bots\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"Bot100100\",\r\n \"description\": \"Malicious bots detected by threat intelligence\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot100200\",\r\n \"description\": \"Malicious bots that have falsified their identity\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot100300\",\r\n \"description\": \"High risk bots detected by threat intelligence\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"GoodBots\",\r\n \"description\": \"Good bots\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"Bot200100\",\r\n \"description\": \"Search engine crawlers\",\r\n \"defaultAction\": \"Allow\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot200200\",\r\n \"description\": \"Verified misc bots\",\r\n \"defaultAction\": \"Allow\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot200300\",\r\n \"description\": \"Verified link checker bots\",\r\n \"defaultAction\": \"Allow\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot200400\",\r\n \"description\": \"Verified social media bots\",\r\n \"defaultAction\": \"Allow\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot200500\",\r\n \"description\": \"Verified content fetchers\",\r\n \"defaultAction\": \"Allow\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot200600\",\r\n \"description\": \"Verified feed fetchers\",\r\n \"defaultAction\": \"Allow\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot200700\",\r\n \"description\": \"Verified Advertising bots\",\r\n \"defaultAction\": \"Allow\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"UnknownBots\",\r\n \"description\": \"Unknown bots\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"Bot300100\",\r\n \"description\": \"Unspecified identity\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300200\",\r\n \"description\": \"Tools and frameworks for web crawling and attacks\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300300\",\r\n \"description\": \"General purpose HTTP clients and SDKs\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300400\",\r\n \"description\": \"Service agents\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300500\",\r\n \"description\": \"Site health monitoring services\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300600\",\r\n \"description\": \"Unknown bots detected by threat intelligence\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300700\",\r\n \"description\": \"Other bots\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.2\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"Microsoft_DefaultRuleSet_1.2\",\r\n \"properties\": {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.2\",\r\n \"ruleSetId\": \"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-WebShells\",\r\n \"description\": \"Web shell attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99005002\",\r\n \"description\": \"Web Shell Interaction Attempt (POST)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005003\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005004\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005005\",\r\n \"description\": \"Web Shell Interaction Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005006\",\r\n \"description\": \"Spring4Shell Interaction Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-AppSec\",\r\n \"description\": \"Path traversal evasion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99030001\",\r\n \"description\": \"Path Traversal Evasion in Headers (/.././../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030002\",\r\n \"description\": \"Path Traversal Evasion in Request Body (/.././../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99031001\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031002\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031003\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031004\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-CVEs\",\r\n \"description\": \"Rest API exploitation\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99001001\",\r\n \"description\": \"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001002\",\r\n \"description\": \"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001003\",\r\n \"description\": \"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001004\",\r\n \"description\": \"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001005\",\r\n \"description\": \"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001006\",\r\n \"description\": \"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001007\",\r\n \"description\": \"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001008\",\r\n \"description\": \"Attempted Fortinet path traversal (CVE-2018-13379)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001009\",\r\n \"description\": \"Attempted Apache struts ognl injection (CVE-2017-5638)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001010\",\r\n \"description\": \"Attempted Apache struts ognl injection (CVE-2017-12611)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001011\",\r\n \"description\": \"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001012\",\r\n \"description\": \"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001013\",\r\n \"description\": \"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001014\",\r\n \"description\": \"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001015\",\r\n \"description\": \"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001016\",\r\n \"description\": \"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001017\",\r\n \"description\": \"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ATTACK\",\r\n \"description\": \"Protocol attack\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"921110\",\r\n \"description\": \"HTTP Request Smuggling Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921120\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921130\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921140\",\r\n \"description\": \"HTTP Header Injection Attack via headers\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921150\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921160\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921151\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"LFI\",\r\n \"description\": \"Local file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"930100\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930110\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930120\",\r\n \"description\": \"OS File Access Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930130\",\r\n \"description\": \"Restricted File Access Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RFI\",\r\n \"description\": \"Remote file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"931100\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931110\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931120\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931130\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RCE\",\r\n \"description\": \"Remote Command Execution attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"932100\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932105\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932110\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932115\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932120\",\r\n \"description\": \"Remote Command Execution: Windows PowerShell Command Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932130\",\r\n \"description\": \"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932140\",\r\n \"description\": \"Remote Command Execution: Windows FOR/IF Command Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932150\",\r\n \"description\": \"Remote Command Execution: Direct Unix Command Execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932160\",\r\n \"description\": \"Remote Command Execution: Unix Shell Code Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932170\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932171\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932180\",\r\n \"description\": \"Restricted File Upload Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PHP\",\r\n \"description\": \"PHP attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"933100\",\r\n \"description\": \"PHP Injection Attack: PHP Open Tag Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933110\",\r\n \"description\": \"PHP Injection Attack: PHP Script File Upload Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933120\",\r\n \"description\": \"PHP Injection Attack: Configuration Directive Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933130\",\r\n \"description\": \"PHP Injection Attack: Variables Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933140\",\r\n \"description\": \"PHP Injection Attack: I/O Stream Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933150\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933151\",\r\n \"description\": \"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933160\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933170\",\r\n \"description\": \"PHP Injection Attack: Serialized Object Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933180\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"XSS\",\r\n \"description\": \"Cross-site scripting\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"941100\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941101\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941110\",\r\n \"description\": \"XSS Filter - Category 1: Script Tag Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941120\",\r\n \"description\": \"XSS Filter - Category 2: Event Handler Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941130\",\r\n \"description\": \"XSS Filter - Category 3: Attribute Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941140\",\r\n \"description\": \"XSS Filter - Category 4: Javascript URI Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941150\",\r\n \"description\": \"XSS Filter - Category 5: Disallowed HTML Attributes\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941160\",\r\n \"description\": \"NoScript XSS InjectionChecker: HTML Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941170\",\r\n \"description\": \"NoScript XSS InjectionChecker: Attribute Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941180\",\r\n \"description\": \"Node-Validator Blacklist Keywords\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941190\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941200\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941210\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941220\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941230\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941240\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941250\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941260\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941270\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941280\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941290\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941300\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941310\",\r\n \"description\": \"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941320\",\r\n \"description\": \"Possible XSS Attack Detected - HTML Tag Handler\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941330\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941340\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941350\",\r\n \"description\": \"UTF-7 Encoding IE XSS - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"description\": \"SQL Injection Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942110\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942120\",\r\n \"description\": \"SQL Injection Attack: SQL Operator Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942140\",\r\n \"description\": \"SQL Injection Attack: Common DB Names Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942150\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942160\",\r\n \"description\": \"Detects blind sqli tests using sleep() or benchmark().\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942170\",\r\n \"description\": \"Detects SQL benchmark and sleep injection attempts including conditional queries\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942180\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 1/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942190\",\r\n \"description\": \"Detects MSSQL code execution and information gathering attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942200\",\r\n \"description\": \"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942210\",\r\n \"description\": \"Detects chained SQL injection attempts 1/2\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942220\",\r\n \"description\": \"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942230\",\r\n \"description\": \"Detects conditional SQL injection attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942240\",\r\n \"description\": \"Detects MySQL charset switch and MSSQL DoS attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942250\",\r\n \"description\": \"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942260\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942270\",\r\n \"description\": \"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942280\",\r\n \"description\": \"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942290\",\r\n \"description\": \"Finds basic MongoDB SQL injection attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942300\",\r\n \"description\": \"Detects MySQL comments, conditions and ch(a)r injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942310\",\r\n \"description\": \"Detects chained SQL injection attempts 2/2\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942320\",\r\n \"description\": \"Detects MySQL and PostgreSQL stored procedure/function injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942330\",\r\n \"description\": \"Detects classic SQL injection probings 1/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942340\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 3/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942350\",\r\n \"description\": \"Detects MySQL UDF injection and other data/structure manipulation attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942360\",\r\n \"description\": \"Detects concatenated basic SQL injection and SQLLFI attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942361\",\r\n \"description\": \"Detects basic SQL injection based on keyword alter or union\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942370\",\r\n \"description\": \"Detects classic SQL injection probings 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942380\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942390\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942400\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942410\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942430\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942440\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942450\",\r\n \"description\": \"SQL Hex Encoding Identified\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942470\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942480\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"FIX\",\r\n \"description\": \"Session Fixation attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"943100\",\r\n \"description\": \"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943110\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943120\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"JAVA\",\r\n \"description\": \"Java attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"944100\",\r\n \"description\": \"Remote Command Execution: Suspicious Java class detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944110\",\r\n \"description\": \"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944120\",\r\n \"description\": \"Remote Command Execution: Java serialization (CVE-2015-5842)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944130\",\r\n \"description\": \"Suspicious Java class detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944200\",\r\n \"description\": \"Magic bytes Detected, probable java serialization in use\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944210\",\r\n \"description\": \"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944240\",\r\n \"description\": \"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944250\",\r\n \"description\": \"Remote Command Execution: Suspicious Java method detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.1\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"Microsoft_DefaultRuleSet_1.1\",\r\n \"properties\": {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.1\",\r\n \"ruleSetId\": \"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-WebShells\",\r\n \"description\": \"Web shell attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99005002\",\r\n \"description\": \"Web Shell Interaction Attempt (POST)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005003\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005004\",\r\n \"description\": \"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99005006\",\r\n \"description\": \"Spring4Shell Interaction Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-AppSec\",\r\n \"description\": \"Path traversal evasion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99030001\",\r\n \"description\": \"Path Traversal Evasion in Headers (/.././../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99030002\",\r\n \"description\": \"Path Traversal Evasion in Request Body (/.././../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99031001\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99031002\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-CVEs\",\r\n \"description\": \"Rest API exploitation\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99001001\",\r\n \"description\": \"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001014\",\r\n \"description\": \"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001015\",\r\n \"description\": \"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001016\",\r\n \"description\": \"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001017\",\r\n \"description\": \"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ATTACK\",\r\n \"description\": \"Protocol attack\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"921110\",\r\n \"description\": \"HTTP Request Smuggling Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921120\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921130\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921140\",\r\n \"description\": \"HTTP Header Injection Attack via headers\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921150\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921160\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921151\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"LFI\",\r\n \"description\": \"Local file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"930100\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930110\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930120\",\r\n \"description\": \"OS File Access Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930130\",\r\n \"description\": \"Restricted File Access Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RFI\",\r\n \"description\": \"Remote file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"931100\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931110\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931120\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931130\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RCE\",\r\n \"description\": \"Remote Command Execution attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"932100\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932105\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932110\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932115\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932120\",\r\n \"description\": \"Remote Command Execution: Windows PowerShell Command Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932130\",\r\n \"description\": \"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932140\",\r\n \"description\": \"Remote Command Execution: Windows FOR/IF Command Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932150\",\r\n \"description\": \"Remote Command Execution: Direct Unix Command Execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932160\",\r\n \"description\": \"Remote Command Execution: Unix Shell Code Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932170\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932171\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932180\",\r\n \"description\": \"Restricted File Upload Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PHP\",\r\n \"description\": \"PHP attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"933100\",\r\n \"description\": \"PHP Injection Attack: PHP Open Tag Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933110\",\r\n \"description\": \"PHP Injection Attack: PHP Script File Upload Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933120\",\r\n \"description\": \"PHP Injection Attack: Configuration Directive Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933130\",\r\n \"description\": \"PHP Injection Attack: Variables Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933140\",\r\n \"description\": \"PHP Injection Attack: I/O Stream Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933150\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933151\",\r\n \"description\": \"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933160\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933170\",\r\n \"description\": \"PHP Injection Attack: Serialized Object Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933180\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"XSS\",\r\n \"description\": \"Cross-site scripting\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"941100\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941101\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941110\",\r\n \"description\": \"XSS Filter - Category 1: Script Tag Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941120\",\r\n \"description\": \"XSS Filter - Category 2: Event Handler Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941130\",\r\n \"description\": \"XSS Filter - Category 3: Attribute Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941140\",\r\n \"description\": \"XSS Filter - Category 4: Javascript URI Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941150\",\r\n \"description\": \"XSS Filter - Category 5: Disallowed HTML Attributes\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941160\",\r\n \"description\": \"NoScript XSS InjectionChecker: HTML Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941170\",\r\n \"description\": \"NoScript XSS InjectionChecker: Attribute Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941180\",\r\n \"description\": \"Node-Validator Blacklist Keywords\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941190\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941200\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941210\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941220\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941230\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941240\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941250\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941260\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941270\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941280\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941290\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941300\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941310\",\r\n \"description\": \"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941320\",\r\n \"description\": \"Possible XSS Attack Detected - HTML Tag Handler\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941330\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941340\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941350\",\r\n \"description\": \"UTF-7 Encoding IE XSS - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"description\": \"SQL Injection Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942110\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942120\",\r\n \"description\": \"SQL Injection Attack: SQL Operator Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942140\",\r\n \"description\": \"SQL Injection Attack: Common DB Names Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942150\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942160\",\r\n \"description\": \"Detects blind sqli tests using sleep() or benchmark().\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942170\",\r\n \"description\": \"Detects SQL benchmark and sleep injection attempts including conditional queries\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942180\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 1/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942190\",\r\n \"description\": \"Detects MSSQL code execution and information gathering attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942200\",\r\n \"description\": \"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942210\",\r\n \"description\": \"Detects chained SQL injection attempts 1/2\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942220\",\r\n \"description\": \"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942230\",\r\n \"description\": \"Detects conditional SQL injection attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942240\",\r\n \"description\": \"Detects MySQL charset switch and MSSQL DoS attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942250\",\r\n \"description\": \"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942260\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942270\",\r\n \"description\": \"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942280\",\r\n \"description\": \"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942290\",\r\n \"description\": \"Finds basic MongoDB SQL injection attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942300\",\r\n \"description\": \"Detects MySQL comments, conditions and ch(a)r injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942310\",\r\n \"description\": \"Detects chained SQL injection attempts 2/2\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942320\",\r\n \"description\": \"Detects MySQL and PostgreSQL stored procedure/function injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942330\",\r\n \"description\": \"Detects classic SQL injection probings 1/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942340\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 3/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942350\",\r\n \"description\": \"Detects MySQL UDF injection and other data/structure manipulation attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942360\",\r\n \"description\": \"Detects concatenated basic SQL injection and SQLLFI attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942361\",\r\n \"description\": \"Detects basic SQL injection based on keyword alter or union\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942370\",\r\n \"description\": \"Detects classic SQL injection probings 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942380\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942390\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942400\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942410\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942430\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942440\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"942450\",\r\n \"description\": \"SQL Hex Encoding Identified\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942470\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942480\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"FIX\",\r\n \"description\": \"Session Fixation attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"943100\",\r\n \"description\": \"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943110\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943120\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"JAVA\",\r\n \"description\": \"Java attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"944100\",\r\n \"description\": \"Remote Command Execution: Suspicious Java class detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944110\",\r\n \"description\": \"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944120\",\r\n \"description\": \"Remote Command Execution: Java serialization (CVE-2015-5842)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944130\",\r\n \"description\": \"Suspicious Java class detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944200\",\r\n \"description\": \"Magic bytes Detected, probable java serialization in use\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944210\",\r\n \"description\": \"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944240\",\r\n \"description\": \"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944250\",\r\n \"description\": \"Remote Command Execution: Suspicious Java method detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.0\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"Microsoft_BotManagerRuleSet_1.0\",\r\n \"properties\": {\r\n \"ruleSetType\": \"Microsoft_BotManagerRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetId\": \"e44514af-018d-49e9-8070-c9edac0f3a0d\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"BadBots\",\r\n \"description\": \"Bad bots\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"Bot100100\",\r\n \"description\": \"Malicious bots detected by threat intelligence\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot100200\",\r\n \"description\": \"Malicious bots that have falsified their identity\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"GoodBots\",\r\n \"description\": \"Good bots\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"Bot200100\",\r\n \"description\": \"Search engine crawlers\",\r\n \"defaultAction\": \"Allow\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot200200\",\r\n \"description\": \"Unverified search engine crawlers\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"UnknownBots\",\r\n \"description\": \"Unknown bots\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"Bot300100\",\r\n \"description\": \"Unspecified identity\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300200\",\r\n \"description\": \"Tools and frameworks for web crawling and attacks\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300300\",\r\n \"description\": \"General purpose HTTP clients and SDKs\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300400\",\r\n \"description\": \"Service agents\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300500\",\r\n \"description\": \"Site health monitoring services\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300600\",\r\n \"description\": \"Unknown bots detected by threat intelligence\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"Bot300700\",\r\n \"description\": \"Other bots\",\r\n \"defaultAction\": \"Log\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"DefaultRuleSet_1.0\",\r\n \"properties\": {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetId\": \"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-WebShells\",\r\n \"description\": \"Web shell attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99005006\",\r\n \"description\": \"Spring4Shell Interaction Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"MS-ThreatIntel-CVEs\",\r\n \"description\": \"Rest API exploitation\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"99001014\",\r\n \"description\": \"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001015\",\r\n \"description\": \"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001016\",\r\n \"description\": \"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": \"99001017\",\r\n \"description\": \"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Disabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PROTOCOL-ATTACK\",\r\n \"description\": \"Protocol attack\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"921110\",\r\n \"description\": \"HTTP Request Smuggling Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921120\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921130\",\r\n \"description\": \"HTTP Response Splitting Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921140\",\r\n \"description\": \"HTTP Header Injection Attack via headers\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921150\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921160\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"921151\",\r\n \"description\": \"HTTP Header Injection Attack via payload (CR/LF detected)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"LFI\",\r\n \"description\": \"Local file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"930100\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930110\",\r\n \"description\": \"Path Traversal Attack (/../)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930120\",\r\n \"description\": \"OS File Access Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930130\",\r\n \"description\": \"Restricted File Access Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RFI\",\r\n \"description\": \"Remote file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"931100\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931110\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931120\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931130\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RCE\",\r\n \"description\": \"Remote Command Execution attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"932100\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932105\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932110\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932115\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932120\",\r\n \"description\": \"Remote Command Execution: Windows PowerShell Command Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932130\",\r\n \"description\": \"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932140\",\r\n \"description\": \"Remote Command Execution: Windows FOR/IF Command Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932150\",\r\n \"description\": \"Remote Command Execution: Direct Unix Command Execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932160\",\r\n \"description\": \"Remote Command Execution: Unix Shell Code Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932170\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932171\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932180\",\r\n \"description\": \"Restricted File Upload Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PHP\",\r\n \"description\": \"PHP attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"933100\",\r\n \"description\": \"PHP Injection Attack: PHP Open Tag Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933110\",\r\n \"description\": \"PHP Injection Attack: PHP Script File Upload Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933120\",\r\n \"description\": \"PHP Injection Attack: Configuration Directive Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933130\",\r\n \"description\": \"PHP Injection Attack: Variables Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933140\",\r\n \"description\": \"PHP Injection Attack: I/O Stream Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933150\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933151\",\r\n \"description\": \"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933160\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933170\",\r\n \"description\": \"PHP Injection Attack: Serialized Object Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933180\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"XSS\",\r\n \"description\": \"Cross-site scripting\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"941100\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941101\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941110\",\r\n \"description\": \"XSS Filter - Category 1: Script Tag Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941120\",\r\n \"description\": \"XSS Filter - Category 2: Event Handler Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941130\",\r\n \"description\": \"XSS Filter - Category 3: Attribute Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941140\",\r\n \"description\": \"XSS Filter - Category 4: Javascript URI Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941150\",\r\n \"description\": \"XSS Filter - Category 5: Disallowed HTML Attributes\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941160\",\r\n \"description\": \"NoScript XSS InjectionChecker: HTML Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941170\",\r\n \"description\": \"NoScript XSS InjectionChecker: Attribute Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941180\",\r\n \"description\": \"Node-Validator Blacklist Keywords\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941190\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941200\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941210\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941220\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941230\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941240\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941250\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941260\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941270\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941280\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941290\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941300\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941310\",\r\n \"description\": \"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941320\",\r\n \"description\": \"Possible XSS Attack Detected - HTML Tag Handler\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941330\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941340\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941350\",\r\n \"description\": \"UTF-7 Encoding IE XSS - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"description\": \"SQL Injection Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942110\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942120\",\r\n \"description\": \"SQL Injection Attack: SQL Operator Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942140\",\r\n \"description\": \"SQL Injection Attack: Common DB Names Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942150\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942160\",\r\n \"description\": \"Detects blind sqli tests using sleep() or benchmark().\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942170\",\r\n \"description\": \"Detects SQL benchmark and sleep injection attempts including conditional queries\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942180\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 1/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942190\",\r\n \"description\": \"Detects MSSQL code execution and information gathering attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942200\",\r\n \"description\": \"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942210\",\r\n \"description\": \"Detects chained SQL injection attempts 1/2\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942220\",\r\n \"description\": \"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942230\",\r\n \"description\": \"Detects conditional SQL injection attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942240\",\r\n \"description\": \"Detects MySQL charset switch and MSSQL DoS attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942250\",\r\n \"description\": \"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942260\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942270\",\r\n \"description\": \"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942280\",\r\n \"description\": \"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942290\",\r\n \"description\": \"Finds basic MongoDB SQL injection attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942300\",\r\n \"description\": \"Detects MySQL comments, conditions and ch(a)r injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942310\",\r\n \"description\": \"Detects chained SQL injection attempts 2/2\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942320\",\r\n \"description\": \"Detects MySQL and PostgreSQL stored procedure/function injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942330\",\r\n \"description\": \"Detects classic SQL injection probings 1/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942340\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 3/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942350\",\r\n \"description\": \"Detects MySQL UDF injection and other data/structure manipulation attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942360\",\r\n \"description\": \"Detects concatenated basic SQL injection and SQLLFI attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942361\",\r\n \"description\": \"Detects basic SQL injection based on keyword alter or union\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942370\",\r\n \"description\": \"Detects classic SQL injection probings 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942380\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942390\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942400\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942410\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942430\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942440\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942450\",\r\n \"description\": \"SQL Hex Encoding Identified\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942470\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942480\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"FIX\",\r\n \"description\": \"Session Fixation attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"943100\",\r\n \"description\": \"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943110\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"943120\",\r\n \"description\": \"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"JAVA\",\r\n \"description\": \"Java attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"944100\",\r\n \"description\": \"Remote Command Execution: Suspicious Java class detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944110\",\r\n \"description\": \"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944120\",\r\n \"description\": \"Remote Command Execution: Java serialization (CVE-2015-5842)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944130\",\r\n \"description\": \"Suspicious Java class detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944200\",\r\n \"description\": \"Magic bytes Detected, probable java serialization in use\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944210\",\r\n \"description\": \"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944240\",\r\n \"description\": \"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944250\",\r\n \"description\": \"Remote Command Execution: Suspicious Java method detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_preview-0.1\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"DefaultRuleSet_preview-0.1\",\r\n \"properties\": {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetId\": \"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"LFI\",\r\n \"description\": \"Local file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"930100\",\r\n \"description\": \"Path Traversal Attack (/../) using Encoded Payloads\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930110\",\r\n \"description\": \"Path Traversal Attack (/../) using Decoded Payloads\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"930130\",\r\n \"description\": \"Restricted File Access Attempt\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RFI\",\r\n \"description\": \"Remote file inclusion\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"931100\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931110\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931120\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"931130\",\r\n \"description\": \"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"RCE\",\r\n \"description\": \"Remote Command Execution attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"932100\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932105\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932106\",\r\n \"description\": \"Remote Command Execution: Unix Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932110\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932115\",\r\n \"description\": \"Remote Command Execution: Windows Command Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932130\",\r\n \"description\": \"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932140\",\r\n \"description\": \"Remote Command Execution: Windows FOR/IF Command Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932150\",\r\n \"description\": \"Remote Command Execution: Direct Unix Command Execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932170\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932171\",\r\n \"description\": \"Remote Command Execution: Shellshock (CVE-2014-6271)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"932190\",\r\n \"description\": \"Remote Command Execution: Wildcard\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"PHP\",\r\n \"description\": \"PHP attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"933100\",\r\n \"description\": \"PHP Injection Attack: Opening/Closing Tag Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933110\",\r\n \"description\": \"PHP Injection Attack: PHP Script File Upload Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933111\",\r\n \"description\": \"PHP Injection Attack: PHP Script File Upload Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933131\",\r\n \"description\": \"PHP Injection Attack: Variables Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933140\",\r\n \"description\": \"PHP Injection Attack: I/O Stream Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933160\",\r\n \"description\": \"PHP Injection Attack: High-Risk PHP Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933161\",\r\n \"description\": \"PHP Injection Attack: Low-Value PHP Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933170\",\r\n \"description\": \"PHP Injection Attack: Serialized Object Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933180\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933190\",\r\n \"description\": \"PHP Injection Attack: PHP Closing Tag Found\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933200\",\r\n \"description\": \"PHP Injection Attack: Abusing of PHP wrappers could lead to RCE\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"933210\",\r\n \"description\": \"PHP Injection Attack: Variable Function Call Found (bypass 933180)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"XSS\",\r\n \"description\": \"Cross-site scripting\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"941100\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941101\",\r\n \"description\": \"XSS Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941110\",\r\n \"description\": \"XSS Filter - Category 1: Script Tag Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941120\",\r\n \"description\": \"XSS Filter - Category 2: Event Handler Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941130\",\r\n \"description\": \"XSS Filter - Category 3: Attribute Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941140\",\r\n \"description\": \"XSS Filter - Category 4: Javascript URI Vector\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941150\",\r\n \"description\": \"XSS Filter - Category 5: Disallowed HTML Attributes\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941160\",\r\n \"description\": \"NoScript XSS InjectionChecker: HTML Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941170\",\r\n \"description\": \"NoScript XSS InjectionChecker: Attribute Injection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941180\",\r\n \"description\": \"Node-Validator Blacklist Keywords\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941190\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941200\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941210\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941220\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941230\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941240\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941250\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941260\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941270\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941280\",\r\n \"description\": \"IE XSS Filters - Attack Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941290\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941300\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941310\",\r\n \"description\": \"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941320\",\r\n \"description\": \"Possible XSS Attack Detected - HTML Tag Handler\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941330\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941340\",\r\n \"description\": \"IE XSS Filters - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941350\",\r\n \"description\": \"UTF-7 Encoding IE XSS - Attack Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"941360\",\r\n \"description\": \"JSFuck / Hieroglyphy obfuscation detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"description\": \"SQL injection\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"description\": \"SQL Injection Attack Detected via libinjection\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942110\",\r\n \"description\": \"SQL Injection Attack: Common Injection Testing Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942120\",\r\n \"description\": \"SQL Injection Attack: SQL Operator Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942140\",\r\n \"description\": \"SQL Injection Attack: Common DB Names Detected\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942160\",\r\n \"description\": \"Detects blind sqli tests using sleep() or benchmark().\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942170\",\r\n \"description\": \"Detects SQL benchmark and sleep injection attempts including conditional queries\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942180\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 1/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942190\",\r\n \"description\": \"Detects MSSQL code execution and information gathering attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942200\",\r\n \"description\": \"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942210\",\r\n \"description\": \"Detects chained SQL injection attempts 1/2\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942220\",\r\n \"description\": \"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942230\",\r\n \"description\": \"Detects conditional SQL injection attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942240\",\r\n \"description\": \"Detects MySQL charset switch and MSSQL DoS attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942250\",\r\n \"description\": \"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942251\",\r\n \"description\": \"Detects HAVING injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942260\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942270\",\r\n \"description\": \"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942280\",\r\n \"description\": \"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942290\",\r\n \"description\": \"Finds basic MongoDB SQL injection attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942300\",\r\n \"description\": \"Detects MySQL comments, conditions and ch(a)r injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942310\",\r\n \"description\": \"Detects chained SQL injection attempts 2/2\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942320\",\r\n \"description\": \"Detects MySQL and PostgreSQL stored procedure/function injections\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942330\",\r\n \"description\": \"Detects classic SQL injection probings 1/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942340\",\r\n \"description\": \"Detects basic SQL authentication bypass attempts 3/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942350\",\r\n \"description\": \"Detects MySQL UDF injection and other data/structure manipulation attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942360\",\r\n \"description\": \"Detects concatenated basic SQL injection and SQLLFI attempts\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942361\",\r\n \"description\": \"Detects basic SQL injection based on keyword alter or union\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942370\",\r\n \"description\": \"Detects classic SQL injection probings 2/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942380\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942390\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942400\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942410\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942430\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942431\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (6)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942432\",\r\n \"description\": \"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (2)\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942440\",\r\n \"description\": \"SQL Comment Sequence Detected.\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942450\",\r\n \"description\": \"SQL Hex Encoding Identified\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942470\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942480\",\r\n \"description\": \"SQL Injection Attack\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"942490\",\r\n \"description\": \"Detects classic SQL injection probings 3/3\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"FIX\",\r\n \"description\": \"Session Fixation attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"943100\",\r\n \"description\": \"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleGroupName\": \"JAVA\",\r\n \"description\": \"Java attacks\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"944100\",\r\n \"description\": \"Java: possible payload execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944110\",\r\n \"description\": \"Java: possible payload execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944120\",\r\n \"description\": \"Java: possible payload execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944200\",\r\n \"description\": \"Java: deserialization that could lead to payload execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944210\",\r\n \"description\": \"Java: base64 attack that could lead to payload execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944240\",\r\n \"description\": \"Java: possible payload execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944250\",\r\n \"description\": \"Java: possible payload execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n },\r\n {\r\n \"ruleId\": \"944300\",\r\n \"description\": \"Java: base64 attack that could lead to payload execution\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/BotProtection_preview-0.1\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\r\n \"name\": \"BotProtection_preview-0.1\",\r\n \"properties\": {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetId\": \"e44514af-018d-49e9-8070-c9edac0f3a0d\",\r\n \"ruleGroups\": [\r\n {\r\n \"ruleGroupName\": \"KnownBadBots\",\r\n \"description\": \"\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"Bot00001\",\r\n \"description\": \"Malicious Bots\",\r\n \"defaultAction\": \"Block\",\r\n \"defaultState\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyAction.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyAction.json deleted file mode 100644 index 29bfadeb915b..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyAction.json +++ /dev/null @@ -1,553 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "3a1f8fff-1bc9-492c-a11f-1941d3782c51" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.104" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "dcf1415a-7ae3-40b6-9c7d-173673c2fa2f" - ], - "x-ms-correlation-request-id": [ - "dcf1415a-7ae3-40b6-9c7d-173673c2fa2f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004709Z:dcf1415a-7ae3-40b6-9c7d-173673c2fa2f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:47:08 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "25303" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-06-01-preview\",\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Spain Central\",\r\n \"Mexico Central\",\r\n \"New Zealand North\",\r\n \"Indonesia Central\",\r\n \"East US STG\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Spain Central\",\r\n \"Mexico Central\",\r\n \"New Zealand North\",\r\n \"Indonesia Central\",\r\n \"East US STG\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStatuses\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentOperationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/exportResourceTemplate\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/notifyDeploymentJobs\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-08-01\",\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps8216?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzODIxNj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dfff090f-689a-4fa3-88b9-72550408f3bd" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "74" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"tags\": {\r\n \"Owner\": \"jingnanxu\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-request-id": [ - "afc9b0ec-6652-4d5d-8edc-aa61430e43ae" - ], - "x-ms-correlation-request-id": [ - "afc9b0ec-6652-4d5d-8edc-aa61430e43ae" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004712Z:afc9b0ec-6652-4d5d-8edc-aa61430e43ae" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:47:11 GMT" - ], - "Content-Length": [ - "194" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps8216\",\r\n \"name\": \"ps8216\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"Owner\": \"jingnanxu\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps8216/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzODIxNi9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "7c91b0b6-137e-4b10-b4c1-9ff3d84b54ef" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "e555ea7a-7f53-4e6b-ab6e-7fc182db1e6d" - ], - "x-ms-correlation-request-id": [ - "e555ea7a-7f53-4e6b-ab6e-7fc182db1e6d" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004714Z:e555ea7a-7f53-4e6b-ab6e-7fc182db1e6d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:47:14 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "12" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps8216/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzODIxNi9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "085e327d-c40c-43f3-abf0-9d446aa4abe9" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-original-request-ids": [ - "5600385c-77b0-4c33-a233-9318733addd9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-client-request-id": [ - "085e327d-c40c-43f3-abf0-9d446aa4abe9" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1098" - ], - "x-ms-request-id": [ - "33ab1e72-138d-4551-ba7c-e0f77e6e0a35" - ], - "x-ms-correlation-request-id": [ - "33ab1e72-138d-4551-ba7c-e0f77e6e0a35" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004718Z:33ab1e72-138d-4551-ba7c-e0f77e6e0a35" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:47:17 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "917" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps8216/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps8101\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps8101\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Enabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": []\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"2.0\",\r\n \"ruleSetAction\": \"Block\",\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps8216/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps8101?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzODIxNi9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzODEwMT9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "7c91b0b6-137e-4b10-b4c1-9ff3d84b54ef" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "481" - ] - }, - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Enabled\"\r\n },\r\n \"customRules\": {},\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"2.0\",\r\n \"ruleSetAction\": \"Block\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"global\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5b4d373f-3690-4485-ba1f-156f5e963124" - ], - "x-ms-client-request-id": [ - "7c91b0b6-137e-4b10-b4c1-9ff3d84b54ef" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/e1cce27e-37ca-4749-a5bd-d02848040a0b" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "c6d1f487-95ca-4544-b432-7c13dbec075b" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004717Z:c6d1f487-95ca-4544-b432-7c13dbec075b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:47:16 GMT" - ], - "Content-Length": [ - "905" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps8216/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps8101\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps8101\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Enabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": []\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"2.0\",\r\n \"ruleSetAction\": \"Block\",\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps8216/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps8101?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzODIxNi9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzODEwMT9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "b38759f0-19ca-42e6-8499-3b3894a6a974" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "8823f59e-c7ff-417d-a02f-c26d717eeae0" - ], - "x-ms-client-request-id": [ - "b38759f0-19ca-42e6-8499-3b3894a6a974" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-correlation-request-id": [ - "2dd8af5a-2762-4c4b-a0f6-a3be5a78d64b" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004718Z:2dd8af5a-2762-4c4b-a0f6-a3be5a78d64b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:47:17 GMT" - ], - "Content-Length": [ - "905" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps8216/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps8101\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps8101\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Enabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": []\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"Microsoft_DefaultRuleSet\",\r\n \"ruleSetVersion\": \"2.0\",\r\n \"ruleSetAction\": \"Block\",\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps8216/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps8101?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzODIxNi9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzODEwMT9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "5c4d44ff-a97f-4e80-acab-29bcdadc3329" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-failure-cause": [ - "gateway" - ], - "x-ms-request-id": [ - "7b88d848-afd0-4d11-ba20-758a138c4cc9" - ], - "x-ms-correlation-request-id": [ - "7b88d848-afd0-4d11-ba20-758a138c4cc9" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004721Z:7b88d848-afd0-4d11-ba20-758a138c4cc9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:47:20 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "242" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/frontdoorWebApplicationFirewallPolicies/ps8101' under resource group 'ps8216' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps8216/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps8101?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzODIxNi9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzODEwMT9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "085e327d-c40c-43f3-abf0-9d446aa4abe9" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c85d5072-27da-4223-8686-bdee3da29029" - ], - "x-ms-client-request-id": [ - "085e327d-c40c-43f3-abf0-9d446aa4abe9" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/997e1349-6492-4138-8ff6-1d41d3facb40" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "c8d8a0a2-80ae-4d96-9031-5745d68f5bf0" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004720Z:c8d8a0a2-80ae-4d96-9031-5745d68f5bf0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:47:20 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - } - ], - "Names": { - "Test-PolicyAction": [ - "ps8101", - "ps8216" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyCrud.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyCrud.json deleted file mode 100644 index fa7a520a0b78..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyCrud.json +++ /dev/null @@ -1,862 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f01e5d86-adf8-4fe2-972f-cd22a61c9921" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.104" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "87eed54c-bf63-4391-af52-2debb37fd8b7" - ], - "x-ms-correlation-request-id": [ - "87eed54c-bf63-4391-af52-2debb37fd8b7" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051848Z:87eed54c-bf63-4391-af52-2debb37fd8b7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:47 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "25092" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-06-01-preview\",\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Spain Central\",\r\n \"Mexico Central\",\r\n \"New Zealand North\",\r\n \"Indonesia Central\",\r\n \"East US STG\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Spain Central\",\r\n \"Mexico Central\",\r\n \"New Zealand North\",\r\n \"Indonesia Central\",\r\n \"East US STG\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStatuses\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentOperationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/exportResourceTemplate\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/notifyDeploymentJobs\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-08-01\",\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1468?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzMTQ2OD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ca0a5043-0a5d-4a93-bb9b-eb5d44db11a6" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "74" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"tags\": {\r\n \"Owner\": \"jingnanxu\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-request-id": [ - "c14c73c9-08c0-4489-b12c-e989a609e6a2" - ], - "x-ms-correlation-request-id": [ - "c14c73c9-08c0-4489-b12c-e989a609e6a2" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051850Z:c14c73c9-08c0-4489-b12c-e989a609e6a2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:50 GMT" - ], - "Content-Length": [ - "194" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468\",\r\n \"name\": \"ps1468\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"Owner\": \"jingnanxu\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "de29ce4e-9465-4ea8-a9d4-1a098669d0f7" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-original-request-ids": [ - "af2fd334-e521-4537-b1a2-e432581493f0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-client-request-id": [ - "de29ce4e-9465-4ea8-a9d4-1a098669d0f7" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "7153ec2f-a7a5-4889-99fd-2f66da9e0535" - ], - "x-ms-correlation-request-id": [ - "7153ec2f-a7a5-4889-99fd-2f66da9e0535" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051851Z:7153ec2f-a7a5-4889-99fd-2f66da9e0535" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:51 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "12" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "75bcca59-71fe-497b-950f-c426cb5ed818" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-original-request-ids": [ - "f15182f4-0313-4946-9019-50c4e40876f0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-client-request-id": [ - "75bcca59-71fe-497b-950f-c426cb5ed818" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "5ce8f1ea-d3af-4eee-8e8c-6b1ff454f20a" - ], - "x-ms-correlation-request-id": [ - "5ce8f1ea-d3af-4eee-8e8c-6b1ff454f20a" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051855Z:5ce8f1ea-d3af-4eee-8e8c-6b1ff454f20a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:55 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "1933" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1468/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps6974\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps6974\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"selector\": null,\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "12a81f49-a9a9-49c3-a028-4efdedefa910" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-original-request-ids": [ - "0b7753f8-066b-4231-87bf-7c30e01d6615" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-client-request-id": [ - "12a81f49-a9a9-49c3-a028-4efdedefa910" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "f983baf1-0ae2-4ea9-8201-b184a8270b60" - ], - "x-ms-correlation-request-id": [ - "f983baf1-0ae2-4ea9-8201-b184a8270b60" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051856Z:f983baf1-0ae2-4ea9-8201-b184a8270b60" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:56 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "1788" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1468/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps6974\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps6974\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "069a2b35-00e9-42c9-bf14-07400c026ded" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-original-request-ids": [ - "e5e4c5dc-e16b-4c9c-abdc-3c94193fcffd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-client-request-id": [ - "069a2b35-00e9-42c9-bf14-07400c026ded" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "a8572cd2-93e9-4f53-b7a1-e00ede036822" - ], - "x-ms-correlation-request-id": [ - "a8572cd2-93e9-4f53-b7a1-e00ede036822" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051858Z:a8572cd2-93e9-4f53-b7a1-e00ede036822" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:58 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "1789" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1468/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps6974\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps6974\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule3\",\r\n \"enabledState\": \"Disabled\",\r\n \"priority\": 3,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps6974?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNjk3ND9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "de29ce4e-9465-4ea8-a9d4-1a098669d0f7" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2617" - ] - }, - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"global\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "46cab120-f58c-457a-be6f-eda464fed2ee" - ], - "x-ms-client-request-id": [ - "de29ce4e-9465-4ea8-a9d4-1a098669d0f7" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/88a5761e-4de1-4127-a995-b61a4a2056a7" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "798" - ], - "x-ms-correlation-request-id": [ - "d0783147-26ac-42fa-9734-9965413f2581" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051853Z:d0783147-26ac-42fa-9734-9965413f2581" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:52 GMT" - ], - "Content-Length": [ - "1921" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1468/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps6974\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps6974\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"selector\": null,\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps6974?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNjk3ND9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "75bcca59-71fe-497b-950f-c426cb5ed818" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2431" - ] - }, - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [],\r\n \"ruleGroupOverrides\": []\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"Global\",\r\n \"tags\": {}\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1864bd5f-1a0a-4523-b248-9cb9394e51ab" - ], - "x-ms-client-request-id": [ - "75bcca59-71fe-497b-950f-c426cb5ed818" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/23a7b3b4-90c5-4156-8fbe-563eb2728f10" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "adc001bb-cf4e-4115-9aae-90c8a441747c" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051856Z:adc001bb-cf4e-4115-9aae-90c8a441747c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:56 GMT" - ], - "Content-Length": [ - "1776" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1468/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps6974\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps6974\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps6974?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNjk3ND9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "12a81f49-a9a9-49c3-a028-4efdedefa910" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2432" - ] - }, - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule3\",\r\n \"priority\": 3,\r\n \"enabledState\": \"Disabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [],\r\n \"ruleGroupOverrides\": []\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"Global\",\r\n \"tags\": {}\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "058a93cc-150d-4c11-95cc-a8fab7163b51" - ], - "x-ms-client-request-id": [ - "12a81f49-a9a9-49c3-a028-4efdedefa910" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/08840e1d-531b-464e-9e6a-a4addfab4448" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "4fe45a73-9b07-4cfc-bc2f-12bddb27b492" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051857Z:4fe45a73-9b07-4cfc-bc2f-12bddb27b492" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:56 GMT" - ], - "Content-Length": [ - "1777" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1468/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps6974\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps6974\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule3\",\r\n \"enabledState\": \"Disabled\",\r\n \"priority\": 3,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps6974?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNjk3ND9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "3cf91569-1dc1-43fa-b872-d13fa95af11c" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "22d9fd73-bf31-4538-8cdc-16f50a89a8ae" - ], - "x-ms-client-request-id": [ - "3cf91569-1dc1-43fa-b872-d13fa95af11c" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-correlation-request-id": [ - "356fa66a-12b8-4a22-96f1-780a4f86ad0e" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051854Z:356fa66a-12b8-4a22-96f1-780a4f86ad0e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:18:54 GMT" - ], - "Content-Length": [ - "1921" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps1468/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps6974\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps6974\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 5,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"selector\": null,\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps6974?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNjk3ND9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "4012ee9d-cc7e-4a23-99f6-b8fe28a3cbbe" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-failure-cause": [ - "gateway" - ], - "x-ms-request-id": [ - "a885161c-a6b0-44bc-98c6-4c3ab2e613d5" - ], - "x-ms-correlation-request-id": [ - "a885161c-a6b0-44bc-98c6-4c3ab2e613d5" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051901Z:a885161c-a6b0-44bc-98c6-4c3ab2e613d5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:19:00 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "242" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/frontdoorWebApplicationFirewallPolicies/ps6974' under resource group 'ps1468' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps1468/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps6974?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzMTQ2OC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzNjk3ND9hcGktdmVyc2lvbj0yMDI1LTAzLTAx", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "069a2b35-00e9-42c9-bf14-07400c026ded" - ], - "User-Agent": [ - "FxVersion/8.0.1425.11118", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "80e0bba7-a343-48a6-895f-7d54b9d75e4c" - ], - "x-ms-client-request-id": [ - "069a2b35-00e9-42c9-bf14-07400c026ded" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/50a7a234-7490-47a2-b420-42dddabcf2a9" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "fbb99cdc-6230-4259-9498-2333c000480f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250328T051900Z:fbb99cdc-6230-4259-9498-2333c000480f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 28 Mar 2025 05:19:00 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - } - ], - "Names": { - "Test-PolicyCrud": [ - "ps6974", - "ps1468" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyCrudWithPiping.json b/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyCrudWithPiping.json deleted file mode 100644 index 84f73543f395..000000000000 --- a/src/FrontDoor/FrontDoor.Test/SessionRecords/Microsoft.Azure.Commands.FrontDoor.Test.ScenarioTests.ScenarioTest.WebApplicationFireWallPolicyTests/TestPolicyCrudWithPiping.json +++ /dev/null @@ -1,772 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c34dd025-fcc6-4b8b-afd7-b3ef5a83d95c" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.104" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "08025783-0caf-46e5-8fe6-f58c27d2e60a" - ], - "x-ms-correlation-request-id": [ - "08025783-0caf-46e5-8fe6-f58c27d2e60a" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004938Z:08025783-0caf-46e5-8fe6-f58c27d2e60a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:37 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "25303" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Resources\",\r\n \"namespace\": \"Microsoft.Resources\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"3b990c8b-9607-4c2a-8b04-1d41985facca\"\r\n },\r\n {\r\n \"applicationId\": \"f77c2a8f-8a0a-4776-8e0a-bcb2549610ca\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"changes\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-06-01-preview\",\r\n \"2023-07-01-preview\",\r\n \"2023-03-01-preview\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"snapshots\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-11-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"deploymentScripts/logs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentScriptOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"South India\",\r\n \"Jio India West\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"South Central US\",\r\n \"West US 3\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-08-01\",\r\n \"2020-10-01\",\r\n \"2019-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"decompileBicep\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-11-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"templateSpecs/versions\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2022-02-01\",\r\n \"2021-05-01\",\r\n \"2021-03-01-preview\",\r\n \"2019-06-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"builtInTemplateSpecs/versions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deploymentStacks\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationResults\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStackOperationStatus\",\r\n \"locations\": [\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"France Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Indonesia Central\",\r\n \"Israel Central\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Jio India West\",\r\n \"South India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"Mexico Central\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"New Zealand North\",\r\n \"Poland Central\",\r\n \"Qatar Central\",\r\n \"Spain Central\",\r\n \"Sweden Central\",\r\n \"UAE North\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"West US\",\r\n \"West US 3\",\r\n \"South Central US\",\r\n \"South Africa North\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2024-03-01\",\r\n \"2022-08-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"moboBrokers\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"locations/moboOperationStatuses\",\r\n \"locations\": [\r\n \"Australia Central\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Jio India West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Norway East\",\r\n \"South Africa North\",\r\n \"South Central US\",\r\n \"South India\",\r\n \"Southeast Asia\",\r\n \"Sweden Central\",\r\n \"Switzerland North\",\r\n \"UAE North\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West India\",\r\n \"West US 2\",\r\n \"West US 3\",\r\n \"West US\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tenants\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-01-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"notifyResourceJobs\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"tags\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-10-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"checkPolicyCompliance\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkresourcename\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"calculateTemplateHash\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/providers\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Spain Central\",\r\n \"Mexico Central\",\r\n \"New Zealand North\",\r\n \"Indonesia Central\",\r\n \"East US STG\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01-preview\",\r\n \"2023-07-01\",\r\n \"2023-03-01-preview\",\r\n \"2022-12-01\",\r\n \"2022-11-01-preview\",\r\n \"2022-09-01\",\r\n \"2022-06-01\",\r\n \"2022-05-01\",\r\n \"2022-03-01-preview\",\r\n \"2022-01-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-09-01\",\r\n \"2020-08-01\",\r\n \"2020-07-01\",\r\n \"2020-06-01\",\r\n \"2020-05-01\",\r\n \"2020-01-01\",\r\n \"2019-11-01\",\r\n \"2019-10-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-07-01\",\r\n \"2019-06-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourceGroups\",\r\n \"locations\": [\r\n \"Central US\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West US 2\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Australia Southeast\",\r\n \"Australia East\",\r\n \"West India\",\r\n \"South India\",\r\n \"Central India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Australia Central\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Jio India West\",\r\n \"West US 3\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Israel Central\",\r\n \"Poland Central\",\r\n \"Italy North\",\r\n \"Spain Central\",\r\n \"Mexico Central\",\r\n \"New Zealand North\",\r\n \"Indonesia Central\",\r\n \"East US STG\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/resourcegroups/resources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagnames\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"subscriptions/tagNames/tagValues\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deployments\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"deployments/operations\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentStatuses\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deploymentOperationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/exportResourceTemplate\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/notifyDeploymentJobs\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Switzerland North\",\r\n \"France Central\",\r\n \"Germany West Central\",\r\n \"Central India\",\r\n \"Italy North\",\r\n \"Japan East\",\r\n \"Korea Central\",\r\n \"UK South\",\r\n \"Mexico Central\",\r\n \"Norway East\",\r\n \"Qatar Central\",\r\n \"Sweden Central\",\r\n \"Spain Central\",\r\n \"UAE North\",\r\n \"South Africa North\",\r\n \"Poland Central\",\r\n \"East Asia\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"East US 2\",\r\n \"South India\",\r\n \"Japan West\",\r\n \"Korea South\",\r\n \"UK West\",\r\n \"New Zealand North\",\r\n \"North Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2023-07-01\",\r\n \"2022-09-01\",\r\n \"2021-04-01\",\r\n \"2021-01-01\",\r\n \"2020-10-01\",\r\n \"2020-06-01\",\r\n \"2019-09-01\",\r\n \"2019-08-01\",\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"validateResources\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2022-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"links\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ],\r\n \"capabilities\": \"SupportsExtension\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"bulkDelete\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2019-05-01\",\r\n \"2019-04-01\",\r\n \"2019-03-01\",\r\n \"2018-11-01\",\r\n \"2018-09-01\",\r\n \"2018-08-01\",\r\n \"2018-07-01\",\r\n \"2018-05-01\",\r\n \"2018-02-01\",\r\n \"2018-01-01\",\r\n \"2017-08-01\",\r\n \"2017-06-01\",\r\n \"2017-05-10\",\r\n \"2017-05-01\",\r\n \"2017-03-01\",\r\n \"2016-09-01\",\r\n \"2016-07-01\",\r\n \"2016-06-01\",\r\n \"2016-02-01\",\r\n \"2015-11-01\",\r\n \"2015-01-01\",\r\n \"2014-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"dataBoundaries\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2024-08-01\",\r\n \"2024-02-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps5884?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlZ3JvdXBzL3BzNTg4ND9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "847cdc51-c528-43cb-9361-409da969c537" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "74" - ] - }, - "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"tags\": {\r\n \"Owner\": \"jingnanxu\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-request-id": [ - "3b24ab54-bd34-421e-a404-0f66f0e9c140" - ], - "x-ms-correlation-request-id": [ - "3b24ab54-bd34-421e-a404-0f66f0e9c140" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004939Z:3b24ab54-bd34-421e-a404-0f66f0e9c140" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:39 GMT" - ], - "Content-Length": [ - "194" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884\",\r\n \"name\": \"ps5884\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"Owner\": \"jingnanxu\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "fc4ba3ad-e05b-4abe-9946-9820320f9627" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "a7034916-a642-47f9-92cf-752c2fca0cd2" - ], - "x-ms-correlation-request-id": [ - "a7034916-a642-47f9-92cf-752c2fca0cd2" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004940Z:a7034916-a642-47f9-92cf-752c2fca0cd2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:40 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "12" - ] - }, - "ResponseBody": "{\r\n \"value\": []\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "def8156b-9b73-461b-b5fa-41182a6758b9" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-original-request-ids": [ - "8f5187c8-c383-49ad-87b3-300223be6f13" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-client-request-id": [ - "def8156b-9b73-461b-b5fa-41182a6758b9" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "4c78ad9a-3d73-4c23-93c4-b73259743c0f" - ], - "x-ms-correlation-request-id": [ - "4c78ad9a-3d73-4c23-93c4-b73259743c0f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004944Z:4c78ad9a-3d73-4c23-93c4-b73259743c0f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:44 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "1496" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps5884/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps336\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps336\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Classic_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": null,\r\n \"captchaExpirationInMinutes\": null,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvZnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzP2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "145b66da-021c-4f06-9512-e17ebba654e4" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-original-request-ids": [ - "9c2be2a2-1fc3-4b5a-aaba-ef3c56ed6606" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-client-request-id": [ - "145b66da-021c-4f06-9512-e17ebba654e4" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-request-id": [ - "c4c576e7-9c22-45ab-870a-a59ca38d9012" - ], - "x-ms-correlation-request-id": [ - "c4c576e7-9c22-45ab-870a-a59ca38d9012" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004947Z:c4c576e7-9c22-45ab-870a-a59ca38d9012" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:46 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "1494" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps5884/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps336\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps336\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Classic_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": null,\r\n \"captchaExpirationInMinutes\": null,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps336?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzMzM2P2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "fc4ba3ad-e05b-4abe-9946-9820320f9627" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "1462" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"global\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "0273b95f-52e9-4cbb-b7a3-92581d773428" - ], - "x-ms-client-request-id": [ - "fc4ba3ad-e05b-4abe-9946-9820320f9627" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/bc5e3654-5ebe-4b07-9198-e2b0b15592fc" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "798" - ], - "x-ms-correlation-request-id": [ - "a8ab7de7-37ef-4a3d-89ba-0ae39e8cc533" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004942Z:a8ab7de7-37ef-4a3d-89ba-0ae39e8cc533" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:42 GMT" - ], - "Content-Length": [ - "1484" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps5884/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps336\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps336\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Classic_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": null,\r\n \"captchaExpirationInMinutes\": null,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps336?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzMzM2P2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "def8156b-9b73-461b-b5fa-41182a6758b9" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "1681" - ] - }, - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Classic_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": []\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [],\r\n \"ruleGroupOverrides\": []\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"global\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1b7aef56-138c-443c-9723-dbecb525bbc2" - ], - "x-ms-client-request-id": [ - "def8156b-9b73-461b-b5fa-41182a6758b9" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/e3348509-80d9-4e95-b6a9-a8014d346c0c" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "885e38d6-8e83-4878-9ff8-1d4ffe2f42b1" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004945Z:885e38d6-8e83-4878-9ff8-1d4ffe2f42b1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:44 GMT" - ], - "Content-Length": [ - "1482" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps5884/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps336\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps336\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Classic_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": null,\r\n \"captchaExpirationInMinutes\": null,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps336?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzMzM2P2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "def8156b-9b73-461b-b5fa-41182a6758b9" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e692b9eb-8ce2-4469-b290-90251913c45d" - ], - "x-ms-client-request-id": [ - "def8156b-9b73-461b-b5fa-41182a6758b9" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-correlation-request-id": [ - "67038bb2-aab3-458c-9e4f-bf0d2bc1a90f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004943Z:67038bb2-aab3-458c-9e4f-bf0d2bc1a90f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:42 GMT" - ], - "Content-Length": [ - "1484" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps5884/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps336\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps336\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Classic_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": null,\r\n \"captchaExpirationInMinutes\": null,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Block\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps336?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzMzM2P2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "145b66da-021c-4f06-9512-e17ebba654e4" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5130f8ad-673a-478a-bf19-69fa093cf614" - ], - "x-ms-client-request-id": [ - "145b66da-021c-4f06-9512-e17ebba654e4" - ], - "Server": [ - "Kestrel" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" - ], - "x-ms-correlation-request-id": [ - "a107456f-92d1-45c8-be68-23133404da6d" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004946Z:a107456f-92d1-45c8-be68-23133404da6d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:46 GMT" - ], - "Content-Length": [ - "1482" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/ps5884/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/ps336\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"name\": \"ps336\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Classic_AzureFrontDoor\"\r\n },\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": null,\r\n \"customBlockResponseStatusCode\": null,\r\n \"customBlockResponseBody\": null,\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": null,\r\n \"captchaExpirationInMinutes\": null,\r\n \"logScrubbing\": null\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"WINDOWS\"\r\n ],\r\n \"transforms\": [\r\n \"Uppercase\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Log\",\r\n \"groupBy\": []\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"ruleSetAction\": null,\r\n \"ruleGroupOverrides\": [],\r\n \"exclusions\": []\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": [],\r\n \"securityPolicyLinks\": [],\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps336?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzMzM2P2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "c0a3eeb5-e957-47c5-a84e-795c3c2301b3" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-failure-cause": [ - "gateway" - ], - "x-ms-request-id": [ - "94f6010d-6c70-40cb-aabe-f332addb27ff" - ], - "x-ms-correlation-request-id": [ - "94f6010d-6c70-40cb-aabe-f332addb27ff" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004949Z:94f6010d-6c70-40cb-aabe-f332addb27ff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:49 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "241" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/frontdoorWebApplicationFirewallPolicies/ps336' under resource group 'ps5884' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/ps5884/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/ps336?api-version=2025-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjdjYWZjYTgtYjlhNC00MjY0LWIzOTktNDVkMGM5Y2NhMWFiL3Jlc291cmNlR3JvdXBzL3BzNTg4NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvRnJvbnREb29yV2ViQXBwbGljYXRpb25GaXJld2FsbFBvbGljaWVzL3BzMzM2P2FwaS12ZXJzaW9uPTIwMjUtMDMtMDE=", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Language": [ - "en-US" - ], - "x-ms-client-request-id": [ - "145b66da-021c-4f06-9512-e17ebba654e4" - ], - "User-Agent": [ - "FxVersion/8.0.1525.16413", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.26100", - "Microsoft.Azure.Management.FrontDoor.FrontDoor/1.12.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b4b2289c-03e7-4ca5-81ce-6d9b463ee6a3" - ], - "x-ms-client-request-id": [ - "145b66da-021c-4f06-9512-e17ebba654e4" - ], - "Server": [ - "Kestrel" - ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/brazilus/95c7b8dc-d2e6-4180-9a70-f3caf15034ac" - ], - "x-ms-throttling-version": [ - "v2" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "799" - ], - "x-ms-correlation-request-id": [ - "7e060d7b-cdb0-45da-b0c7-24ceba4ba702" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20250428T004948Z:7e060d7b-cdb0-45da-b0c7-24ceba4ba702" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 28 Apr 2025 00:49:48 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - } - ], - "Names": { - "Test-PolicyCrudWithPiping": [ - "ps336", - "ps5884" - ] - }, - "Variables": { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab" - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 5d4bdb850ebe..9be8fd8bdcc4 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -17,19 +17,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AuthenticationAssemblyLoadC EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{31599FB7-7929-4E92-834F-A23C603A9116}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{4A3D22CE-940D-4656-A344-7603474FB7A8}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FrontDoor.Test", "FrontDoor.Test\FrontDoor.Test.csproj", "{4C8972CB-B1DD-4E1A-8766-F039AF530062}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FrontDoor", "FrontDoor\FrontDoor.csproj", "{2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestFx\TestFx.csproj", "{CEE04FC4-EA9E-49F5-8E65-1BF927763971}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FrontDoor.Management.Sdk", "FrontDoor.Management.Sdk\FrontDoor.Management.Sdk.csproj", "{F7A742DC-C643-4E1E-A58A-783B39CE58F4}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{8883511F-26AD-43E9-BA54-EAB5AF4E17C6}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{C5FECCF5-C720-4803-BB18-C8DD39983A40}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -113,18 +107,6 @@ Global {31599FB7-7929-4E92-834F-A23C603A9116}.Release|x64.Build.0 = Release|Any CPU {31599FB7-7929-4E92-834F-A23C603A9116}.Release|x86.ActiveCfg = Release|Any CPU {31599FB7-7929-4E92-834F-A23C603A9116}.Release|x86.Build.0 = Release|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|x64.ActiveCfg = Debug|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|x64.Build.0 = Debug|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|x86.ActiveCfg = Debug|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Debug|x86.Build.0 = Debug|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|Any CPU.Build.0 = Release|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|x64.ActiveCfg = Release|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|x64.Build.0 = Release|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|x86.ActiveCfg = Release|Any CPU - {4C8972CB-B1DD-4E1A-8766-F039AF530062}.Release|x86.Build.0 = Release|Any CPU {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|Any CPU.Build.0 = Debug|Any CPU {2C629B31-196A-4BE6-B8DA-AC80FCCE16BB}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -149,30 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|x64.ActiveCfg = Debug|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|x64.Build.0 = Debug|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|x86.ActiveCfg = Debug|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Debug|x86.Build.0 = Debug|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|Any CPU.Build.0 = Release|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x64.ActiveCfg = Release|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x64.Build.0 = Release|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.ActiveCfg = Release|Any CPU - {F7A742DC-C643-4E1E-A58A-783B39CE58F4}.Release|x86.Build.0 = Release|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|x64.ActiveCfg = Debug|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|x64.Build.0 = Debug|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|x86.ActiveCfg = Debug|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Debug|x86.Build.0 = Debug|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|Any CPU.Build.0 = Release|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|x64.ActiveCfg = Release|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|x64.Build.0 = Release|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|x86.ActiveCfg = Release|Any CPU - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6}.Release|x86.Build.0 = Release|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|x64.ActiveCfg = Debug|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|x64.Build.0 = Debug|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|x86.ActiveCfg = Debug|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|x86.Build.0 = Debug|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|Any CPU.Build.0 = Release|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|x64.ActiveCfg = Release|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|x64.Build.0 = Release|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|x86.ActiveCfg = Release|Any CPU + {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -184,9 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {4C8972CB-B1DD-4E1A-8766-F039AF530062} = {4A3D22CE-940D-4656-A344-7603474FB7A8} - {CEE04FC4-EA9E-49F5-8E65-1BF927763971} = {4A3D22CE-940D-4656-A344-7603474FB7A8} - {8883511F-26AD-43E9-BA54-EAB5AF4E17C6} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {C5FECCF5-C720-4803-BB18-C8DD39983A40} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index dfbb2e19ac34..3409cc173178 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/8/21 +# Generated on: 2025/8/27 # @{ @@ -104,37 +104,10 @@ FunctionsToExport = 'Disable-AzFrontDoorCustomDomainHttps', 'New-AzFrontDoorWafRuleGroupOverrideObject', 'Remove-AzFrontDoor', 'Remove-AzFrontDoorContent', 'Remove-AzFrontDoorRulesEngine', 'Remove-AzFrontDoorWafPolicy', 'Set-AzFrontDoor', - 'Update-AzFrontDoorWafPolicy' + 'Set-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'Disable-AzFrontDoorCustomDomainHttps', - 'Enable-AzFrontDoorCustomDomainHttps', 'Get-AzFrontDoor', - 'Get-AzFrontDoorFrontendEndpoint', 'Get-AzFrontDoorRulesEngine', - 'Get-AzFrontDoorWafManagedRuleSetDefinition', - 'Get-AzFrontDoorWafPolicy', 'New-AzFrontDoor', - 'New-AzFrontDoorBackendObject', 'New-AzFrontDoorBackendPoolObject', - 'New-AzFrontDoorBackendPoolsSettingObject', - 'New-AzFrontDoorFrontendEndpointObject', - 'New-AzFrontDoorHeaderActionObject', - 'New-AzFrontDoorHealthProbeSettingObject', - 'New-AzFrontDoorLoadBalancingSettingObject', - 'New-AzFrontDoorRoutingRuleObject', 'New-AzFrontDoorRulesEngine', - 'New-AzFrontDoorRulesEngineActionObject', - 'New-AzFrontDoorRulesEngineMatchConditionObject', - 'New-AzFrontDoorRulesEngineRuleObject', - 'New-AzFrontDoorWafCustomRuleGroupByVariableObject', - 'New-AzFrontDoorWafCustomRuleObject', - 'New-AzFrontDoorWafLogScrubbingRuleObject', - 'New-AzFrontDoorWafLogScrubbingSettingObject', - 'New-AzFrontDoorWafManagedRuleExclusionObject', - 'New-AzFrontDoorWafManagedRuleObject', - 'New-AzFrontDoorWafManagedRuleOverrideObject', - 'New-AzFrontDoorWafMatchConditionObject', - 'New-AzFrontDoorWafPolicy', - 'New-AzFrontDoorWafRuleGroupOverrideObject', 'Remove-AzFrontDoor', - 'Remove-AzFrontDoorContent', 'Remove-AzFrontDoorRulesEngine', - 'Remove-AzFrontDoorWafPolicy', 'Set-AzFrontDoor', - 'Set-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy' +CmdletsToExport = @() # Variables to export from this module # VariablesToExport = @() diff --git a/src/FrontDoor/FrontDoor/Cmdlets/DisableFrontDoorCustomDomainHttps.cs b/src/FrontDoor/FrontDoor/Cmdlets/DisableFrontDoorCustomDomainHttps.cs deleted file mode 100644 index 544591c5cbab..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/DisableFrontDoorCustomDomainHttps.cs +++ /dev/null @@ -1,108 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Enable-AzCustomDomainHttps cmdlet. - /// - [Cmdlet("Disable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorCustomDomainHttps", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(PSFrontendEndpoint))] - public class DisableFrontDoorCustomDomainHttps : AzureFrontDoorCmdletBase - { - /// - /// The resource group to which the Front Door belongs. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group to which the Front Door belongs.")] - [ValidateNotNullOrEmpty] - [ResourceGroupCompleter] - public string ResourceGroupName { get; set; } - - /// - /// The name of the Front Door to update. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The name of the Front Door.")] - [ValidateNotNullOrEmpty] - [ResourceNameCompleter("Microsoft.Network/frontdoors", nameof(ResourceGroupName))] - public string FrontDoorName { get; set; } - - /// - /// Gets or sets the frontend endpoint name. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "Frontend endpoint name.")] - [ValidateNotNullOrEmpty] - public string FrontendEndpointName { get; set; } - - /// - /// Resource Id of the Front Door endpoint to disable https - /// - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the Front Door endpoint to disable https")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - /// - ///The Frontend Endpoint object to disable HTTPS. - /// - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The Frontend endpoint object to update.")] - [ValidateNotNullOrEmpty] - public PSFrontendEndpoint InputObject { get; set; } - - public override void ExecuteCmdlet() - { - try - { - if (ParameterSetName == ResourceIdParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - if (!ResourceIdentifierExtensions.IsFrontendEndpointResourceType(identifier)) - { - throw new PSArgumentException(string.Format(Resources.Error_InvalidResourceId, ResourceId)); - } - ResourceGroupName = identifier.ResourceGroupName; - FrontendEndpointName = identifier.ResourceName; - FrontDoorName = ResourceIdentifierExtensions.GetFrontDoorName(identifier); - } - else if (ParameterSetName == ObjectParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(InputObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - FrontendEndpointName = identifier.ResourceName; - FrontDoorName = ResourceIdentifierExtensions.GetFrontDoorName(identifier); - } - - if (ShouldProcess(Resources.FrontDoorTarget, string.Format(Resources.DisableCustomDomainHttpsWarning, FrontendEndpointName))) - { - FrontDoorManagementClient.FrontendEndpoints.BeginDisableHttps(ResourceGroupName, FrontDoorName, FrontendEndpointName); - - var frontDoorEndPoint = FrontDoorManagementClient.FrontendEndpoints.Get(ResourceGroupName, FrontDoorName, FrontendEndpointName); - WriteObject(frontDoorEndPoint.ToPSFrontendEndpoints()); - } - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - throw new PSArgumentException(string.Format( - Resources.Error_ErrorResponseFromServer, - e.Response.Content)); - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/EnableFrontDoorCustomDomainHttps.cs b/src/FrontDoor/FrontDoor/Cmdlets/EnableFrontDoorCustomDomainHttps.cs deleted file mode 100644 index 0401fe994846..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/EnableFrontDoorCustomDomainHttps.cs +++ /dev/null @@ -1,170 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Enable-AzCustomDomainHttps cmdlet. - /// - [Cmdlet("Enable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorCustomDomainHttps", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(PSFrontendEndpoint))] - public class EnableFrontDoorCustomDomainHttps : AzureFrontDoorCmdletBase - { - /// - /// The resource group to which the Front Door belongs. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group to which the Front Door belongs.")] - [Parameter(Mandatory = true, ParameterSetName = FieldsWithVaultParameterSet, HelpMessage = "The resource group to which the Front Door belongs.")] - [ValidateNotNullOrEmpty] - [ResourceGroupCompleter] - public string ResourceGroupName { get; set; } - - /// - /// The name of the Front Door to update. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The name of the Front Door.")] - [Parameter(Mandatory = true, ParameterSetName = FieldsWithVaultParameterSet, HelpMessage = "The name of the Front Door.")] - [ValidateNotNullOrEmpty] - [ResourceNameCompleter("Microsoft.Network/frontdoors", nameof(ResourceGroupName))] - public string FrontDoorName { get; set; } - - /// - /// Gets or sets the frontend endpoint name. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "Frontend endpoint name.")] - [Parameter(Mandatory = true, ParameterSetName = FieldsWithVaultParameterSet, HelpMessage = "Frontend endpoint name.")] - [ValidateNotNullOrEmpty] - public string FrontendEndpointName { get; set; } - - /// - /// Resource Id of the Front Door endpoint to enable https - /// - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the Front Door endpoint to enable https")] - [Parameter(Mandatory = true, ParameterSetName = ResourceIdWithVaultParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the Front Door endpoint to enable https")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - /// - ///The Frontend Endpoint object to enable HTTPS. - /// - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The Frontend endpoint object to update.")] - [Parameter(Mandatory = true, ParameterSetName = ObjectWithVaultParameterSet, ValueFromPipeline = true, HelpMessage = "The Frontend endpoint object to update.")] - [ValidateNotNullOrEmpty] - public PSFrontendEndpoint InputObject { get; set; } - - /// - /// The Key Vault id containing the SSL certificate - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsWithVaultParameterSet, HelpMessage = "The Key Vault id containing the SSL certificate")] - [Parameter(Mandatory = true, ParameterSetName = ResourceIdWithVaultParameterSet, HelpMessage = "The Key Vault id containing the SSL certificate")] - [Parameter(Mandatory = true, ParameterSetName = ObjectWithVaultParameterSet, HelpMessage = "The Key Vault id containing the SSL certificate")] - public string VaultId { get; set; } - - /// - /// The name of the Key Vault secret representing the full certificate PFX - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsWithVaultParameterSet, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] - [Parameter(Mandatory = true, ParameterSetName = ResourceIdWithVaultParameterSet, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] - [Parameter(Mandatory = true, ParameterSetName = ObjectWithVaultParameterSet, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] - public string SecretName { get; set; } - - /// - /// The version of the Key Vault secret representing the full certificate PFX. - /// If not specified, the 'Latest' version will always been used and the deployed certificate will be automatically rotated to the latest version when a newer version of the certificate is available. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithVaultParameterSet, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX. If not specified, the 'Latest' version will always been used and the deployed certificate will be automatically rotated to the latest version when a newer version of the certificate is available.")] - [Parameter(Mandatory = false, ParameterSetName = ResourceIdWithVaultParameterSet, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX. If not specified, the 'Latest' version will always been used and the deployed certificate will be automatically rotated to the latest version when a newer version of the certificate is available.")] - [Parameter(Mandatory = false, ParameterSetName = ObjectWithVaultParameterSet, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX. If not specified, the 'Latest' version will always been used and the deployed certificate will be automatically rotated to the latest version when a newer version of the certificate is available.")] - public string SecretVersion { get; set; } - - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [Parameter(Mandatory = false, HelpMessage = "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] - [PSArgumentCompleter("1.0", "1.2")] - public string MinimumTlsVersion { get; set; } - - public override void ExecuteCmdlet() - { - try - { - if (ParameterSetName == ResourceIdParameterSet || ParameterSetName == ResourceIdWithVaultParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - if (!ResourceIdentifierExtensions.IsFrontendEndpointResourceType(identifier)) - { - throw new PSArgumentException(string.Format(Resources.Error_InvalidResourceId, ResourceId)); - } - ResourceGroupName = identifier.ResourceGroupName; - FrontendEndpointName = identifier.ResourceName; - FrontDoorName = ResourceIdentifierExtensions.GetFrontDoorName(identifier); - } - else if (ParameterSetName == ObjectParameterSet || ParameterSetName == ObjectWithVaultParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(InputObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - FrontendEndpointName = identifier.ResourceName; - FrontDoorName = ResourceIdentifierExtensions.GetFrontDoorName(identifier); - } - - var customHttpsConfiguration = new Management.FrontDoor.Models.CustomHttpsConfiguration(); - - if (ParameterSetName == FieldsParameterSet || ParameterSetName == ResourceIdParameterSet || ParameterSetName == ObjectParameterSet) - { - customHttpsConfiguration.CertificateSource = PSCertificateSource.FrontDoor.ToString(); - customHttpsConfiguration.CertificateType = PSCertificateType.Dedicated.ToString(); - } - else if (ParameterSetName == FieldsWithVaultParameterSet || ParameterSetName == ResourceIdWithVaultParameterSet || ParameterSetName == ObjectWithVaultParameterSet) - { - customHttpsConfiguration.CertificateSource = PSCertificateSource.AzureKeyVault.ToString(); - customHttpsConfiguration.Vault = new Management.FrontDoor.Models.KeyVaultCertificateSourceParametersVault(VaultId); - customHttpsConfiguration.SecretName = SecretName; - customHttpsConfiguration.SecretVersion = SecretVersion; - } - - if (this.IsParameterBound(c => c.MinimumTlsVersion)) - { - customHttpsConfiguration.MinimumTlsVersion = MinimumTlsVersion; - } - else - { - customHttpsConfiguration.MinimumTlsVersion = "1.2"; - } - - if (ShouldProcess(Resources.FrontDoorTarget, string.Format(Resources.EnableCustomDomainHttpsWarning, FrontendEndpointName))) - { - FrontDoorManagementClient.FrontendEndpoints.BeginEnableHttps(ResourceGroupName, FrontDoorName, FrontendEndpointName, customHttpsConfiguration); - - var frontDoorEndPoint = FrontDoorManagementClient.FrontendEndpoints.Get(ResourceGroupName, FrontDoorName, FrontendEndpointName); - WriteObject(frontDoorEndPoint.ToPSFrontendEndpoints()); - } - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - throw new PSArgumentException(string.Format( - Resources.Error_ErrorResponseFromServer, - e.Response.Content)); - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoor.cs b/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoor.cs deleted file mode 100644 index 560f7523cd3b..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoor.cs +++ /dev/null @@ -1,94 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using System.Linq; -using System.Management.Automation; -using System.Net; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Get-AzFrontDoor cmdlet. - /// - [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor"), OutputType(typeof(PSFrontDoor))] - public class GetFrontDoor : AzureFrontDoorCmdletBase - { - /// - /// The resource group name of the Front Door. - /// - [Parameter(Mandatory = false, HelpMessage = "The resource group name.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// The Front Door name. - /// - [Parameter(Mandatory = false, HelpMessage = "Front Door name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - public override void ExecuteCmdlet() - { - if (Name == null && ResourceGroupName == null) - { - // List by subscription. - var frontDoors = FrontDoorManagementClient.FrontDoors.List().Select(p => p.ToPSFrontDoor()); - WriteObject(frontDoors, true); - } - else if (Name == null && ResourceGroupName != null) - { - // List by Resource Group name. - var frontDoors = - FrontDoorManagementClient.FrontDoors.ListByResourceGroup(ResourceGroupName).Select(p => p.ToPSFrontDoor()); - WriteObject(frontDoors.ToArray(), true); - } - else if (Name != null && ResourceGroupName == null) - { - // Let's return all front Doors that match that name, or a single profile if there's just one. - var frontDoors = FrontDoorManagementClient.FrontDoors.List().Select(p => p.ToPSFrontDoor()).Where(p => p.Name == Name); - if (frontDoors.Count() == 1) - { - WriteObject(frontDoors.First()); - } - else - { - WriteObject(frontDoors, true); - } - } - else - { - try - { - // Get by both Profile Name and Resource Group Name. - var frontDoor = FrontDoorManagementClient.FrontDoors.Get(ResourceGroupName, Name); - WriteObject(frontDoor.ToPSFrontDoor()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - if (e.Response.StatusCode.Equals(HttpStatusCode.NotFound)) - { - throw new PSArgumentException(string.Format(Resources.Error_FrontDoorNotFound, - Name, - ResourceGroupName)); - } - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorFrontendEndpoint.cs b/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorFrontendEndpoint.cs deleted file mode 100644 index b5c61b2ef472..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorFrontendEndpoint.cs +++ /dev/null @@ -1,103 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Get-FrontDoorFrontendEndpoint cmdlet. - /// - [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorFrontendEndpoint", DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(PSFrontendEndpoint))] - public class GetFrontDoorFrontendEndpoint : AzureFrontDoorCmdletBase - { - /// - /// The resource group name of the Front Door. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group name.")] - [ValidateNotNullOrEmpty] - [ResourceGroupCompleter] - public string ResourceGroupName { get; set; } - - /// - /// The Front Door name. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "Front Door name.")] - [ValidateNotNullOrEmpty] - [ResourceNameCompleter("Microsoft.Network/frontdoors", nameof(ResourceGroupName))] - public string FrontDoorName { get; set; } - - /// - /// Gets or sets the frontend endpoint name. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsParameterSet, HelpMessage = "Frontend endpoint name.")] - [Parameter(Mandatory = false, ParameterSetName = ObjectParameterSet, HelpMessage = "Frontend endpoint name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - ///The Front Door object. - /// - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The FrontDoor object.")] - [ValidateNotNullOrEmpty] - public PSFrontDoor FrontDoorObject { get; set; } - - /// - /// Resource Id of the Front Door - /// - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the Front Door frontend endpoint")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - public override void ExecuteCmdlet() - { - if (ParameterSetName == ObjectParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(FrontDoorObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - FrontDoorName = identifier.ResourceName; - } - else if (ParameterSetName == ResourceIdParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - if (!ResourceIdentifierExtensions.IsFrontendEndpointResourceType(identifier)) - { - throw new PSArgumentException(string.Format(Resources.Error_InvalidResourceId, ResourceId)); - } - ResourceGroupName = identifier.ResourceGroupName; - Name = identifier.ResourceName; - FrontDoorName = ResourceIdentifierExtensions.GetFrontDoorName(identifier); - } - - if (Name == null) - { - var FrontendEndpoints = FrontDoorManagementClient.FrontendEndpoints.ListByFrontDoor(ResourceGroupName, FrontDoorName).Select(p => p.ToPSFrontendEndpoints()); - WriteObject(FrontendEndpoints, true); - } - else - { - var FrontendEndpoint = FrontDoorManagementClient.FrontendEndpoints.Get(ResourceGroupName, FrontDoorName, Name); - WriteObject(FrontendEndpoint.ToPSFrontendEndpoints()); - } - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorRulesEngine.cs b/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorRulesEngine.cs deleted file mode 100644 index 77efa2aadf34..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorRulesEngine.cs +++ /dev/null @@ -1,94 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor" + "RulesEngine"), OutputType(typeof(PSRulesEngine))] - public class GetFrontDoorRulesEngine : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = true, HelpMessage = "The resource group name that the Front Door will be created in.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Front Door name.")] - [ValidateNotNullOrEmpty] - public string FrontDoorName { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "Rules engine name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - public override void ExecuteCmdlet() - { - if (this.IsParameterBound(c => c.Name)) - { - // Retrieve specified Rules Engine - try - { - var rulesEngine = FrontDoorManagementClient.RulesEngines.Get(ResourceGroupName, FrontDoorName, Name); - WriteObject(rulesEngine.ToPSRulesEngine()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - if (e.Response.StatusCode.Equals(HttpStatusCode.NotFound)) - { - throw new PSArgumentException(string.Format(Resources.Error_RulesEngineNotFound, - Name, - FrontDoorName)); - } - } - } - else - { - // Retrieve all Rules Engines for specified FrontDoor - try - { - List allRulesEngines = new List(); - string nextPageLink; - do - { - var pageResult = FrontDoorManagementClient.RulesEngines.ListByFrontDoor(ResourceGroupName, FrontDoorName); - foreach (var rulesEngine in pageResult) - { - allRulesEngines.Add(rulesEngine.ToPSRulesEngine()); - } - nextPageLink = pageResult.NextPageLink; - } - while (!string.IsNullOrEmpty(nextPageLink)); - - WriteObject(allRulesEngines); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - if (e.Response.StatusCode.Equals(HttpStatusCode.NotFound)) - { - throw new PSArgumentException(string.Format(Resources.Error_RulesEngineNotFound, - Name, - FrontDoorName)); - } - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorWafManagedRuleSetDefinition.cs b/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorWafManagedRuleSetDefinition.cs deleted file mode 100644 index 828122d6cae6..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorWafManagedRuleSetDefinition.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Management.FrontDoor.Models; -using Microsoft.Rest.Azure; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Get-AzFrontDoorWafManagedRuleSetDefinition cmdlet. - /// - [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafManagedRuleSetDefinition"), OutputType(typeof(PSManagedRuleSetDefinition))] - public class GetFrontDoorWafManagedRuleSetDefinition : AzureFrontDoorCmdletBase - { - public override void ExecuteCmdlet() - { - AzureOperationResponse> managedSets = FrontDoorManagementClient.ManagedRuleSets.ListWithHttpMessagesAsync().GetAwaiter().GetResult(); - List managedRuleSetDefinitions = managedSets.Body?.Select(managedRuleSetDefinition => managedRuleSetDefinition.ToPSManagedRuleSetDefinition()).ToList(); - string nextLink = managedSets.Body.NextPageLink; - while (nextLink != null) - { - var nextLinkSets = FrontDoorManagementClient.ManagedRuleSets.ListNextWithHttpMessagesAsync(nextLink).GetAwaiter().GetResult(); - managedRuleSetDefinitions.AddRange(nextLinkSets.Body?.Select(managedRuleSetDefinition => managedRuleSetDefinition.ToPSManagedRuleSetDefinition())); - nextLink = nextLinkSets.Body.NextPageLink; - } - - WriteObject(managedRuleSetDefinitions.ToArray(), true); - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorWafPolicy.cs b/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorWafPolicy.cs deleted file mode 100644 index ed111af3aeca..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/GetFrontDoorWafPolicy.cs +++ /dev/null @@ -1,74 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using System.Linq; -using System.Management.Automation; -using System.Net; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Get-AzFrontDoorFireWallPolicy cmdlet. - /// - [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafPolicy"), OutputType(typeof(PSPolicy))] - public class GetFrontDoorWafPolicy : AzureFrontDoorCmdletBase - { - /// - /// The resource group name. - /// - [Parameter(Mandatory = true, HelpMessage = "The resource group name.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// The FireWallPolicy name. - /// - [Parameter(Mandatory = false, HelpMessage = "FireWallPolicy name.")] - public string Name { get; set; } - - public override void ExecuteCmdlet() - { - if (Name == null) - { - // List by Resource Group name. - var Policies = FrontDoorManagementClient.Policies.List(ResourceGroupName).Select(p => p.ToPSPolicy()); - WriteObject(Policies.ToArray(), true); - } - else - { - try - { - // Get by both Profile Name and Resource Group Name. - var policy = FrontDoorManagementClient.Policies.Get(ResourceGroupName, Name); - WriteObject(policy.ToPSPolicy()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - if (e.Response.StatusCode.Equals(HttpStatusCode.NotFound)) - { - throw new PSArgumentException(string.Format( - Resources.Error_WebApplicationFirewallPolicyNotFound, - Name, - ResourceGroupName)); - } - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoor.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoor.cs deleted file mode 100644 index 55add546080c..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoor.cs +++ /dev/null @@ -1,168 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Collections; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoor cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor", DefaultParameterSetName = FieldsWithBackendPoolsSettingParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSFrontDoor))] - public class NewFrontDoor : AzureFrontDoorCmdletBase - { - /// - /// The resource group name of the Front Door. - /// - [Parameter(Mandatory = true, HelpMessage = "The resource group name that the Front Door will be created in.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// The Front Door name. - /// - [Parameter(Mandatory = true, HelpMessage = "Front Door name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// Routing rules associated with this Front Door - /// - [Parameter(Mandatory = true, HelpMessage = "Routing rules associated with this Front Door")] - public PSRoutingRule[] RoutingRule { get; set; } - - /// - /// Backendpools available to routing rule. - /// - [Parameter(Mandatory = true, HelpMessage = "Backendpools available to routing rule.")] - public PSBackendPool[] BackendPool { get; set; } - - /// - /// Frontend endpoints available to routing rule. - /// - [Parameter(Mandatory = true, HelpMessage = "Frontend endpoints available to routing rule.")] - public PSFrontendEndpoint[] FrontendEndpoint { get; set; } - - /// - /// Load balancing settings associated with this Front Door instance. - /// - [Parameter(Mandatory = true, HelpMessage = "Load balancing settings associated with this Front Door instance.")] - public PSLoadBalancingSetting[] LoadBalancingSetting { get; set; } - - /// - /// Health probe settings associated with this Front Door instance. - /// - [Parameter(Mandatory = true, HelpMessage = "Health probe settings associated with this Front Door instance.")] - public PSHealthProbeSetting[] HealthProbeSetting { get; set; } - - /// - /// The tags to associate with the Front Door. - /// - [Parameter(Mandatory = false, HelpMessage = "The tags associate with the Front Door.")] - public Hashtable Tag { get; set; } - - /// - /// Enabled state of the Front Door load balancer. - /// - [Parameter(Mandatory = false, HelpMessage = "Enabled state of the Front Door load balancer. Default value is Enabled")] - public PSEnabledState EnabledState { get; set; } - - /// - /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - /// - [Parameter(ParameterSetName = FieldsWithCertificateNameCheckParameterSet, - Mandatory = false, HelpMessage = "Whether to disable certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.")] - public SwitchParameter DisableCertificateNameCheck { get; set; } - - /// - /// Settings for all backendPools - /// - [Parameter(ParameterSetName = FieldsWithBackendPoolsSettingParameterSet, - Mandatory = false, HelpMessage = "Settings for all backendPools")] - public PSBackendPoolsSetting BackendPoolsSetting { get; set; } - - public override void ExecuteCmdlet() - { - var existingProfile = FrontDoorManagementClient.FrontDoors.ListByResourceGroup(ResourceGroupName) - .Where(p => p.Name.ToLower() == Name.ToLower()); - - if (existingProfile.Count() != 0) - { - throw new PSArgumentException(string.Format(Resources.Error_CreateExistingFrontDoor, - Name, - ResourceGroupName)); - } - - Management.FrontDoor.Models.BackendPoolsSettings backendPoolsSettings; - switch (ParameterSetName) - { - case FieldsWithCertificateNameCheckParameterSet: - { - backendPoolsSettings = new Management.FrontDoor.Models.BackendPoolsSettings( - DisableCertificateNameCheck ? PSEnforceCertificateNameCheck.Disabled.ToString() : PSEnforceCertificateNameCheck.Enabled.ToString()); - break; - } - default: - { - backendPoolsSettings = BackendPoolsSetting?.ToSdkBackendPoolsSettings(); - break; - } - } - - var updateParameters = new Management.FrontDoor.Models.FrontDoorModel( - id: null, - name: Name, - type: null, - location: "global", - tags: Tag.ToDictionaryTags(), - friendlyName: Name, - routingRules: RoutingRule?.Select(x => x.ToSdkRoutingRule()).ToList(), - loadBalancingSettings: LoadBalancingSetting?.Select(x => x.ToSdkLoadBalancingSetting()).ToList(), - healthProbeSettings: HealthProbeSetting?.Select(x => x.ToSdkHealthProbeSetting()).ToList(), - backendPools: BackendPool?.Select(x => x.ToSdkBackendPool()).ToList(), - frontendEndpoints: FrontendEndpoint?.Select(x => x.ToSdkFrontendEndpoints()).ToList(), - enabledState: !this.IsParameterBound(c => c.EnabledState) ? "Enabled" : EnabledState.ToString(), - backendPoolsSettings: backendPoolsSettings - ); - - updateParameters.ToPSFrontDoor().ValidateFrontDoor(ResourceGroupName, this.DefaultContext.Subscription.Id); - - if (ShouldProcess(Resources.FrontDoorTarget, string.Format(Resources.CreateFrontDoor, Name))) - { - try - { - var frontDoor = FrontDoorManagementClient.FrontDoors.CreateOrUpdate( - ResourceGroupName, - Name, - updateParameters - ); - WriteObject(frontDoor.ToPSFrontDoor()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - throw new PSArgumentException(string.Format(Resources.Error_ErrorResponseFromServer, - e.Response.Content)); - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendObject.cs deleted file mode 100644 index fb7e214f6a1f..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendObject.cs +++ /dev/null @@ -1,116 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorRoutingRuleObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorBackendObject"), OutputType(typeof(PSBackend))] - public class NewFrontDoorBackendObject : AzureFrontDoorCmdletBase - { - - /// - /// Location of the backend (IP address or FQDN). - /// - [Parameter(Mandatory = true, HelpMessage = "Location of the backend (IP address or FQDN)")] - public string Address { get; set; } - - /// - /// The HTTP TCP port number. - /// - [Parameter(Mandatory = false, HelpMessage = "The HTTP TCP port number. Must be between 1 and 65535. Default value is 80")] - [ValidateRange(1, 65535)] - public int HttpPort { get; set; } - - /// - /// The HTTPs TCP port number. - /// - [Parameter(Mandatory = false, HelpMessage = "The HTTPS TCP port number. Must be between 1 and 65535. Default value is 443")] - [ValidateRange(1, 65535)] - public int HttpsPort { get; set; } - - /// - /// Priority to use for load balancing. - /// - [Parameter(Mandatory = false, HelpMessage = "Priority to use for load balancing. Must be between 1 and 5. Default value is 1")] - [ValidateRange(1, 5)] - public int Priority { get; set; } - - /// - /// Weight of this endpoint for load balancing purposes. - /// - [Parameter(Mandatory = false, HelpMessage = "Weight of this endpoint for load balancing purposes. Must be between 1 and 1000. Default value is 50")] - [ValidateRange(1, 1000)] - public int Weight { get; set; } - - /// - /// Whether to enable use of this backend. - /// - [Parameter(Mandatory = false, HelpMessage = "Whether to enable use of this backend. Default value is Enabled")] - public PSEnabledState EnabledState { get; set; } - - /// - /// The value to use as the host header sent to the backend. - /// - [Parameter(Mandatory = false, HelpMessage = "The value to use as the host header sent to the backend. Default value is the backend address.")] - public string BackendHostHeader { get; set; } - - /// - /// The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - /// - [Parameter(Mandatory = false, HelpMessage = "The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private'")] - public string PrivateLinkAlias { get; set; } - - /// - /// The Resource ID of the Private Link. Populating this optional field indicates that this backend is 'Private' - /// - [Parameter(Mandatory = false, HelpMessage = "The Resource ID of the Private Link. Populating this optional field indicates that this backend is 'Private'")] - public string PrivateLinkResourceId { get; set; } - - /// - /// The Location of Private Link resource. Location is required when PrivateLinkResourceId is set - /// - [Parameter(Mandatory = false, HelpMessage = "The Location of Private Link resource. Location is required when PrivateLinkResourceId is set")] - public string PrivateLinkLocation { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "A custom message to be included in the approval request to connect to the Private Link")] - public string PrivateLinkApprovalMessage { get; set; } - - public override void ExecuteCmdlet() - { - var Backend = new PSBackend - { - Address = Address, - HttpPort = !this.IsParameterBound(c => c.HttpPort) ? 80 : HttpPort, - HttpsPort = !this.IsParameterBound(c => c.HttpsPort) ? 443 : HttpsPort, - EnabledState = !this.IsParameterBound(c => c.EnabledState) ? PSEnabledState.Enabled : EnabledState, - Priority = !this.IsParameterBound(c => c.Priority) ? 1 : Priority, - Weight = !this.IsParameterBound(c => c.Weight) ? 50 : Weight, - BackendHostHeader = !this.IsParameterBound(c => c.BackendHostHeader) ? Address : BackendHostHeader, - PrivateLinkAlias = PrivateLinkAlias, - PrivateLinkResourceId = PrivateLinkResourceId, - PrivateLinkLocation = PrivateLinkLocation, - PrivateLinkApprovalMessage = PrivateLinkApprovalMessage - }; - WriteObject(Backend); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendPoolObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendPoolObject.cs deleted file mode 100644 index 70e74fb74673..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendPoolObject.cs +++ /dev/null @@ -1,88 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorBackendPoolObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorBackendPoolObject"), OutputType(typeof(PSBackendPool))] - public class NewFrontDoorBackendPoolObject : AzureFrontDoorCmdletBase - { - /// - /// The resource group name that the RoutingRule will be created in. - /// - [Parameter(Mandatory = true, HelpMessage = "The resource group name that the RoutingRule will be created in.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// Gets or sets the RoutingRule name. - /// - [Parameter(Mandatory = true, HelpMessage = "BackendPool name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// Front Door name. - /// - [Parameter(Mandatory = true, HelpMessage = "The name of the Front Door to which this routing rule belongs.")] - [ValidateNotNullOrEmpty] - public string FrontDoorName { get; set; } - - /// - /// The set of backends for this pool. - /// - [Parameter(Mandatory = true, HelpMessage = "The set of backends for this pool.")] - [ValidateNotNullOrEmpty] - public PSBackend[] Backend { get; set; } - - /// - /// The name of the load balancing settings for this backend pool - /// - [Parameter(Mandatory = true, HelpMessage = "The name of the load balancing settings for this backend pool")] - [ValidateNotNullOrEmpty] - public string LoadBalancingSettingsName { get; set; } - - /// - /// The name of the health probe settings for this backend pool - /// - [Parameter(Mandatory = true, HelpMessage = "The name of the health probe settings for this backend pool")] - [ValidateNotNullOrEmpty] - public string HealthProbeSettingsName { get; set; } - - public override void ExecuteCmdlet() - { - string subid = DefaultContext.Subscription.Id; - string LoadBalancingSettingsId = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/LoadBalancingSettings/{3}", - subid, ResourceGroupName, FrontDoorName, LoadBalancingSettingsName); - string HealthProbeSettingsId = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/HealthProbeSettings/{3}", - subid, ResourceGroupName, FrontDoorName, HealthProbeSettingsName); - var backendPool = new PSBackendPool - { - Name = Name, - Backends = Backend.ToList(), - LoadBalancingSettingRef = LoadBalancingSettingsId, - HealthProbeSettingRef = HealthProbeSettingsId, - }; - WriteObject(backendPool); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendPoolsSettingObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendPoolsSettingObject.cs deleted file mode 100644 index a82f3abc8fbf..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorBackendPoolsSettingObject.cs +++ /dev/null @@ -1,50 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorBackendPoolsSettingsObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorBackendPoolsSettingObject"), OutputType(typeof(PSBackendPoolsSetting))] - public class NewFrontDoorBackendPoolsSettingObject : AzureFrontDoorCmdletBase - { - /// - /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - /// - [Parameter(Mandatory = false, HelpMessage = "Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.")] - public PSEnabledState EnforceCertificateNameCheck { get; set; } - - /// - /// Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - /// - [Parameter(Mandatory = false, HelpMessage = "Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.")] - public int SendRecvTimeoutInSeconds { get; set; } - - public override void ExecuteCmdlet() - { - var backendPoolsSetting = new PSBackendPoolsSetting - { - EnforceCertificateNameCheck = !this.IsParameterBound(c => c.EnforceCertificateNameCheck) ? PSEnabledState.Enabled : EnforceCertificateNameCheck, - SendRecvTimeoutInSeconds = !this.IsParameterBound(c => c.SendRecvTimeoutInSeconds) ? 30 : SendRecvTimeoutInSeconds - }; - WriteObject(backendPoolsSetting); - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorFrontendEndpointObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorFrontendEndpointObject.cs deleted file mode 100644 index 1128525b7452..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorFrontendEndpointObject.cs +++ /dev/null @@ -1,127 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorFrontendEndpointObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorFrontendEndpointObject"), OutputType(typeof(PSFrontendEndpoint))] - public class NewFrontDoorFrontendEndpointObject : AzureFrontDoorCmdletBase - { - /// - /// Gets or sets the frontend endpoint name. - /// - [Parameter(Mandatory = true, HelpMessage = "Frontend endpoint name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// The host name of the frontendEndpoint. Must be a domain name. - /// - [Parameter(Mandatory = true, HelpMessage = "The host name of the frontendEndpoint.")] - public string HostName { get; set; } - - /// - /// Whether to allow session affinity on this host. Valid options are ‘Enabled’ or ‘Disabled’. - /// - [Parameter(Mandatory = false, HelpMessage = "Whether to allow session affinity on this host. Default value is Disabled")] - public PSEnabledState SessionAffinityEnabledState { get; set; } - - /// - /// The TTL to use in seconds for session affinity, if applicable. - /// - [Parameter(Mandatory = false, HelpMessage = "The TTL to use in seconds for session affinity, if applicable. Default value is 0")] - public int SessionAffinityTtlInSeconds { get; set; } - - /// - /// The resource id of Web Application Firewall policy for each host (if applicable). - /// - [Parameter(Mandatory = false, HelpMessage = "The resource id of Web Application Firewall policy for each host (if applicable)")] - public string WebApplicationFirewallPolicyLink { get; set; } - - /// - /// The source of the SSL certificate. - /// - [Parameter(Mandatory = false, HelpMessage = "The source of the SSL certificate")] - [PSArgumentCompleter("AzureKeyVault", "FrontDoor")] - public string CertificateSource { get; set; } - - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [Parameter(Mandatory = false, HelpMessage = "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] - [PSArgumentCompleter("1.0", "1.2")] - public string MinimumTlsVersion { get; set; } - - /// - /// Defines the TLS extension protocol that is used for secure delivery. - /// - [Parameter(Mandatory = false, HelpMessage = "The TLS extension protocol that is used for secure delivery")] - [PSArgumentCompleter("ServerNameIndication")] - public string ProtocolType { get; set; } - - /// - /// Defines the TLS extension protocol that is used for secure delivery. - /// - [Parameter(Mandatory = false, HelpMessage = "The Key Vault containing the SSL certificate")] - public string Vault { get; set; } - - /// - /// The name of the Key Vault secret representing the full certificate PFX. - /// - [Parameter(Mandatory = false, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] - public string SecretName { get; set; } - - /// - /// The version of the Key Vault secret representing the full certificate PFX. - /// - [Parameter(Mandatory = false, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX")] - public string SecretVersion { get; set; } - - /// - /// The type of the certificate used for secure connections to a frontendEndpoint. - /// - [Parameter(Mandatory = false, HelpMessage = "The type of the certificate used for secure connections to a frontendEndpoint")] - [PSArgumentCompleter("Dedicated")] - public string CertificateType { get; set; } - - public override void ExecuteCmdlet() - { - var FrontendEndpoint = new PSFrontendEndpoint - { - Name = Name, - HostName = HostName, - SessionAffinityEnabledState = !this.IsParameterBound(c => c.SessionAffinityEnabledState) ? PSEnabledState.Disabled : SessionAffinityEnabledState, - SessionAffinityTtlSeconds = !this.IsParameterBound(c => c.SessionAffinityTtlInSeconds) ? 0 : SessionAffinityTtlInSeconds, - WebApplicationFirewallPolicyLink = WebApplicationFirewallPolicyLink, - CertificateSource = CertificateSource, - CertificateType = CertificateType, - Vault = Vault, - SecretName = SecretName, - SecretVersion = SecretVersion, - ProtocolType = this.IsParameterBound(c => c.ProtocolType) ? ProtocolType : "ServerNameIndication", - MinimumTlsVersion = MinimumTlsVersion - }; - WriteObject(FrontendEndpoint); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorHeaderActionObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorHeaderActionObject.cs deleted file mode 100644 index 074123f524d1..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorHeaderActionObject.cs +++ /dev/null @@ -1,46 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor" + "HeaderActionObject"), OutputType(typeof(PSHeaderAction))] - public class NewFrontDoorHeaderActionObject : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = true, HelpMessage = "The name of the header this action will apply to.")] - public string HeaderName { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Which type of manipulation to apply to the header. Possible values include 'Append', 'Delete', or 'Overwrite'")] - public PSHeaderActionType HeaderActionType { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "The value to update the given header name with. This value is not used if the actionType is Delete.")] - public string Value { get; set; } - - public override void ExecuteCmdlet() - { - var headerAction = new PSHeaderAction - { - HeaderName = HeaderName, - HeaderActionType = HeaderActionType, - Value = this.IsParameterBound(c => c.Value) ? Value : "" - }; - - WriteObject(headerAction); - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorHealthProbeSettingObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorHealthProbeSettingObject.cs deleted file mode 100644 index 619f08d4c64b..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorHealthProbeSettingObject.cs +++ /dev/null @@ -1,82 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorHealthProbeSettingObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorHealthProbeSettingObject"), OutputType(typeof(PSHealthProbeSetting))] - public class NewFrontDoorHealthProbeSettingObject : AzureFrontDoorCmdletBase - { - /// - /// Gets or sets the health probe setting name. - /// - [Parameter(Mandatory = true, HelpMessage = "Health probe setting name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// The path to use for the health probe. Default is / - /// - [Parameter(Mandatory = false, HelpMessage = "The path to use for the health probe. Default value is /")] - public string Path { get; set; } - - /// - /// Protocol scheme to use for this probe - /// - [Parameter(Mandatory = false, HelpMessage = "Protocol scheme to use for this probe. Default value is HTTP")] - public PSProtocol Protocol { get; set; } - - /// - /// The number of seconds between health probes. - /// - [Parameter(Mandatory = false, HelpMessage = "The number of seconds between health probes. Default value is 30")] - public int IntervalInSeconds { get; set; } - - /// - /// Configures which HTTP method to use to probe the backends defined under backendPools. - /// - [Parameter(Mandatory = false, HelpMessage = "Configures which HTTP method to use to probe the backends defined under backendPools.")] - [PSArgumentCompleter("HEAD", "GET")] - public string HealthProbeMethod { get; set; } - - /// - /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - /// - [Parameter(Mandatory = false, HelpMessage = "Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.")] - [PSArgumentCompleter("Enabled", "Disabled")] - public PSEnabledState EnabledState { get; set; } - - public override void ExecuteCmdlet() - { - var HealthProbeSetting = new PSHealthProbeSetting - { - Name = Name, - Path = !this.IsParameterBound(c => c.Path) ? "/" : Path, - Protocol = !this.IsParameterBound(c => c.Protocol) ? PSProtocol.Http : Protocol, - IntervalInSeconds = !this.IsParameterBound(c => c.IntervalInSeconds) ? 30 : IntervalInSeconds, - HealthProbeMethod = !this.IsParameterBound(c => c.HealthProbeMethod) ? "HEAD" : HealthProbeMethod, - EnabledState = !this.IsParameterBound(c => c.EnabledState) ? PSEnabledState.Enabled : EnabledState - }; - WriteObject(HealthProbeSetting); - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorLoadBalancingSettingObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorLoadBalancingSettingObject.cs deleted file mode 100644 index 0eb2a7378162..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorLoadBalancingSettingObject.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorLoadBalancingSettingObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorLoadBalancingSettingObject"), OutputType(typeof(PSLoadBalancingSetting))] - public class NewFrontDoorLoadBalancingSettingObject : AzureFrontDoorCmdletBase - { - /// - /// Gets or sets the health probe setting name. - /// - [Parameter(Mandatory = true, HelpMessage = "health probe setting name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// The number of samples to consider for load balancing decisions - /// - [Parameter(Mandatory = false, HelpMessage = "The number of samples to consider for load balancing decisions.Default value is 4")] - public int SampleSize { get; set; } - - /// - /// The number of samples within the sample period that must succeed - /// - [Parameter(Mandatory = false, HelpMessage = "The number of samples within the sample period that must succeed. Default value is 2")] - public int SuccessfulSamplesRequired { get; set; } - - /// - /// The additional latency in milliseconds for probes to fall into the lowest latency bucket - /// - [Parameter(Mandatory = false, HelpMessage = "The additional latency in milliseconds for probes to fall into the lowest latency bucket. Default value is 0")] - public int AdditionalLatencyInMilliseconds { get; set; } - - - - public override void ExecuteCmdlet() - { - var LoadBalancingSetting = new PSLoadBalancingSetting - { - Name = Name, - SampleSize = !this.IsParameterBound(c => c.SampleSize) ? 4 : SampleSize, - AdditionalLatencyMilliseconds = !this.IsParameterBound(c => c.AdditionalLatencyInMilliseconds) ? 0 : AdditionalLatencyInMilliseconds, - SuccessfulSamplesRequired = !this.IsParameterBound(c => c.SuccessfulSamplesRequired) ? 2 : SuccessfulSamplesRequired - }; - WriteObject(LoadBalancingSetting); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRoutingRuleObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRoutingRuleObject.cs deleted file mode 100644 index 303317bdbb73..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRoutingRuleObject.cs +++ /dev/null @@ -1,205 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorRoutingRuleObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorRoutingRuleObject", DefaultParameterSetName = FieldsWithForwardingParameterSet), OutputType(typeof(PSRoutingRule))] - public class NewFrontDoorRoutingRuleObject : AzureFrontDoorCmdletBase - { - /// - /// The resource group name that the RoutingRule will be created in. - /// - [Parameter(Mandatory = true, HelpMessage = "The resource group name that the RoutingRule will be created in.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// Front Door name. - /// - [Parameter(Mandatory = true, HelpMessage = "The name of the Front Door to which this routing rule belongs.")] - [ValidateNotNullOrEmpty] - public string FrontDoorName { get; set; } - - /// - /// RoutingRule name. - /// - [Parameter(Mandatory = true, HelpMessage = "RoutingRule name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// The name of Frontend endpoints associated with this rule - /// - [Parameter(Mandatory = true, HelpMessage = "The names of Frontend endpoints associated with this rule ")] - [ValidateNotNullOrEmpty] - public string[] FrontendEndpointName { get; set; } - - /// - /// The name of BackendPool which this rule routes to - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsWithForwardingParameterSet, HelpMessage = "The name of the BackendPool which this rule routes to")] - [ValidateNotNullOrEmpty] - public string BackendPoolName { get; set; } - - /// - /// The Protocol schemes to match for this rule - /// - [Parameter(Mandatory = false, HelpMessage = "Protocol schemes to match for this rule. Default value is Http, Https")] - public PSProtocol[] AcceptedProtocol { get; set; } - - /// - /// The route patterns of the rule. - /// - [Parameter(Mandatory = false, HelpMessage = "The route patterns of the rule, Must not have any * except possibly after the final / at the end of the path. Default value is /*")] - public string[] PatternToMatch { get; set; } - - /// - /// The custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, HelpMessage = "The custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] - public string CustomForwardingPath { get; set; } - - /// - /// The protocol this rule will use when forwarding traffic to backends. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, HelpMessage = "The protocol this rule will use when forwarding traffic to backends. Default value is MatchRequest")] - [PSArgumentCompleter("HttpOnly", "HttpsOnly", "MatchRequest")] - public string ForwardingProtocol { get; set; } - - /// - /// Whether to enable caching for this route. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, HelpMessage = "Whether to enable caching for this route. Default value is false")] - public bool EnableCaching { get; set; } - - /// - /// The treatment of URL query terms when forming the cache key. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, HelpMessage = "The treatment of URL query terms when forming the cache key. Default value is StripAll")] - [PSArgumentCompleter("StripNone", "StripAll")] - public string QueryParameterStripDirective { get; set; } - - /// - /// Whether to use dynamic compression for cached content - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, HelpMessage = "Whether to enable dynamic compression for cached content. Default value is Enabled")] - public PSEnabledState DynamicCompression { get; set; } - - /// - /// The redirect type the rule will use when redirecting traffic. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, HelpMessage = "The redirect type the rule will use when redirecting traffic. Default Value is Moved")] - [PSArgumentCompleter("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - public string RedirectType { get; set; } - - /// - /// The protocol of the destination to where the traffic is redirected - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, HelpMessage = "The protocol of the destination to where the traffic is redirected. Default value is MatchRequest")] - [PSArgumentCompleter("HttpOnly", "HttpsOnly", "MatchRequest")] - public string RedirectProtocol { get; set; } - - /// - /// Host to redirect. Leave empty to use the incoming host as the destination host. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, HelpMessage = "Host to redirect. Leave empty to use the incoming host as the destination host.")] - public string CustomHost { get; set; } - - /// - /// The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, HelpMessage = "The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] - public string CustomPath { get; set; } - - /// - /// Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, HelpMessage = "Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] - public string CustomFragment { get; set; } - - /// - /// The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in {key}={value} format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. - /// - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, HelpMessage = "The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] - public string CustomQueryString { get; set; } - - /// - /// Whether to enable use of this rule. - /// - [Parameter(Mandatory = false, HelpMessage = "Whether to enable use of this rule. Default value is Enabled")] - public PSEnabledState EnabledState { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "A reference to a specific Rules Engine Configuration to apply to this route.")] - public string RulesEngineName { get; set; } - - public override void ExecuteCmdlet() - { - string subid = DefaultContext.Subscription.Id; - List FrontendEndpointIds = FrontendEndpointName?.Select(x => string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/FrontendEndpoints/{3}", - subid, ResourceGroupName, FrontDoorName, x)).ToList(); - string BackendPoolId = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/BackendPools/{3}", - subid, ResourceGroupName, FrontDoorName, BackendPoolName); - string RulesEngineId = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/RulesEngines/{3}", - subid, ResourceGroupName, FrontDoorName, RulesEngineName); - - var RoutingRule = new PSRoutingRule - { - Name = Name, - EnabledState = !this.IsParameterBound(c => c.EnabledState) ? PSEnabledState.Enabled : EnabledState, - FrontendEndpointIds = FrontendEndpointIds, - AcceptedProtocols = !this.IsParameterBound(c => c.AcceptedProtocol) ? new List { PSProtocol.Http, PSProtocol.Https } : AcceptedProtocol?.ToList(), - PatternsToMatch = !this.IsParameterBound(c => c.PatternToMatch) ? new List { "/*" } : PatternToMatch?.ToList(), - RulesEngineId = this.IsParameterBound(c => c.RulesEngineName) ? RulesEngineId : "" - }; - - if (ParameterSetName == FieldsWithForwardingParameterSet) - { - RoutingRule.RouteConfiguration = new PSForwardingConfiguration - { - CustomForwardingPath = CustomForwardingPath, - ForwardingProtocol = !this.IsParameterBound(c => c.ForwardingProtocol) ? PSForwardingProtocol.MatchRequest.ToString() : ForwardingProtocol, - QueryParameterStripDirective = !this.IsParameterBound(c => c.QueryParameterStripDirective) ? PSQueryParameterStripDirective.StripAll.ToString() : QueryParameterStripDirective, - DynamicCompression = !this.IsParameterBound(c => c.DynamicCompression) ? PSEnabledState.Enabled : DynamicCompression, - BackendPoolId = BackendPoolId, - EnableCaching = !this.IsParameterBound(c => c.EnableCaching) ? false : EnableCaching - }; - } - else if (ParameterSetName == FieldsWithRedirectParameterSet) - { - RoutingRule.RouteConfiguration = new PSRedirectConfiguration - { - RedirectProtocol = !this.IsParameterBound(c => c.RedirectProtocol) ? PSRedirectProtocol.MatchRequest.ToString() : RedirectProtocol, - RedirectType = !this.IsParameterBound(c => c.RedirectType) ? PSRedirectType.Moved.ToString() : RedirectType, - CustomHost = !this.IsParameterBound(c => c.CustomHost) ? "" : CustomHost, - CustomFragment = CustomFragment, - CustomPath = !this.IsParameterBound(c => c.CustomPath) ? "" : CustomPath, - CustomQueryString = CustomQueryString - }; - } - WriteObject(RoutingRule); - } - - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngine.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngine.cs deleted file mode 100644 index d7cdb5b3f1e1..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngine.cs +++ /dev/null @@ -1,67 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor" + "RulesEngine", SupportsShouldProcess = true), OutputType(typeof(PSRulesEngine))] - public class NewFrontDoorRulesEngine : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = true, HelpMessage = "The resource group name that the Front Door will be created in.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Front Door name.")] - [ValidateNotNullOrEmpty] - public string FrontDoorName { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Rules engine name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "A list of rules that define a particular Rules Engine Configuration.")] - public PSRulesEngineRule[] Rule { get; set; } - - public override void ExecuteCmdlet() - { - var updateParameter = new Management.FrontDoor.Models.RulesEngine( - name: Name, - rules: Rule?.Select(x => x.ToSdkRulesEngineRule()).ToList() - ); - - try - { - var rulesEngine = FrontDoorManagementClient.RulesEngines.CreateOrUpdate( - resourceGroupName: ResourceGroupName, - frontDoorName: FrontDoorName, - rulesEngineName: Name, - rulesEngineParameters: updateParameter - ); - WriteObject(rulesEngine.ToPSRulesEngine()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - throw new PSArgumentException(string.Format(Resources.Error_ErrorResponseFromServer, - e.Response.Content)); - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineActionObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineActionObject.cs deleted file mode 100644 index 50ea5ca4c6f8..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineActionObject.cs +++ /dev/null @@ -1,131 +0,0 @@ -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Collections.Generic; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor" + "RulesEngineActionObject", DefaultParameterSetName = FieldsWithRegularActionParameterSet), OutputType(typeof(PSRulesEngineAction))] - public class NewFrontDoorRulesEngineActionObject : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = false, HelpMessage = "A list of header actions to apply from the request from AFD to the origin.")] - public List RequestHeaderAction { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "A list of header actions to apply from the response from AFD to the client.")] - public List ResponseHeaderAction { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, - HelpMessage = "The custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] - public string CustomForwardingPath { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, - HelpMessage = "The protocol this rule will use when forwarding traffic to backends. Default value is MatchRequest")] - [PSArgumentCompleter("HttpOnly", "HttpsOnly", "MatchRequest")] - public string ForwardingProtocol { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = FieldsWithForwardingParameterSet, - HelpMessage = "The resource group name that the RoutingRule will be created in.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = FieldsWithForwardingParameterSet, - HelpMessage = "The name of the Front Door to which this routing rule belongs.")] - [ValidateNotNullOrEmpty] - public string FrontDoorName { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = FieldsWithForwardingParameterSet, - HelpMessage = "The name of the BackendPool which this rule routes to")] - [ValidateNotNullOrEmpty] - public string BackendPoolName { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, - HelpMessage = "Whether to enable caching for this route. Default value is false")] - public bool EnableCaching { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, - HelpMessage = "The treatment of URL query terms when forming the cache key. Default value is StripAll")] - [PSArgumentCompleter("StripNone", "StripAll")] - public string QueryParameterStripDirective { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithForwardingParameterSet, - HelpMessage = "Whether to enable dynamic compression for cached content. Default value is Enabled")] - public PSEnabledState DynamicCompression { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, - HelpMessage = "The redirect type the rule will use when redirecting traffic. Default Value is Moved")] - [PSArgumentCompleter("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - public string RedirectType { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, - HelpMessage = "The protocol of the destination to where the traffic is redirected. Default value is MatchRequest")] - [PSArgumentCompleter("HttpOnly", "HttpsOnly", "MatchRequest")] - public string RedirectProtocol { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, - HelpMessage = "Host to redirect. Leave empty to use the incoming host as the destination host.")] - public string CustomHost { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, - HelpMessage = "The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] - public string CustomPath { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, - HelpMessage = "Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] - public string CustomFragment { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = FieldsWithRedirectParameterSet, - HelpMessage = @"The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; - leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & - will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] - public string CustomQueryString { get; set; } - - public override void ExecuteCmdlet() - { - var action = new PSRulesEngineAction - { - RequestHeaderActions = this.IsParameterBound(c => c.RequestHeaderAction) ? RequestHeaderAction : new List(), - ResponseHeaderActions = this.IsParameterBound(c => c.ResponseHeaderAction) ? ResponseHeaderAction : new List(), - }; - - if (ParameterSetName == FieldsWithForwardingParameterSet) - { - string BackendPoolId = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/BackendPools/{3}", - DefaultContext.Subscription.Id, ResourceGroupName, FrontDoorName, BackendPoolName); - - action.RouteConfigurationOverride = new PSForwardingConfiguration - { - CustomForwardingPath = CustomForwardingPath, - ForwardingProtocol = !this.IsParameterBound(c => c.ForwardingProtocol) ? PSForwardingProtocol.MatchRequest.ToString() : ForwardingProtocol, - QueryParameterStripDirective = !this.IsParameterBound(c => c.QueryParameterStripDirective) ? PSQueryParameterStripDirective.StripAll.ToString() : QueryParameterStripDirective, - DynamicCompression = !this.IsParameterBound(c => c.DynamicCompression) ? PSEnabledState.Enabled : DynamicCompression, - BackendPoolId = BackendPoolId, - EnableCaching = !this.IsParameterBound(c => c.EnableCaching) ? false : EnableCaching - }; - } - else if (ParameterSetName == FieldsWithRedirectParameterSet) - { - action.RouteConfigurationOverride = new PSRedirectConfiguration - { - RedirectProtocol = !this.IsParameterBound(c => c.RedirectProtocol) ? PSRedirectProtocol.MatchRequest.ToString() : RedirectProtocol, - RedirectType = !this.IsParameterBound(c => c.RedirectType) ? PSRedirectType.Moved.ToString() : RedirectType, - CustomHost = !this.IsParameterBound(c => c.CustomHost) ? "" : CustomHost, - CustomFragment = CustomFragment, - CustomPath = !this.IsParameterBound(c => c.CustomPath) ? "" : CustomPath, - CustomQueryString = CustomQueryString - }; - } - - // At least one of the 3 possible actions much be present - if (action.RequestHeaderActions.Count == 0 && action.ResponseHeaderActions.Count == 0 - && action.RouteConfigurationOverride == null) - { - throw new PSArgumentException( - "Rules engine action must contain at least one of the following actions: RequestHeaderActions, ResponseHeaderActions, or RouteConfigurationOverride "); - } - - WriteObject(action); - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineMatchConditionObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineMatchConditionObject.cs deleted file mode 100644 index 5bd79f2a2e6b..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineMatchConditionObject.cs +++ /dev/null @@ -1,65 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor" + "RulesEngineMatchConditionObject"), OutputType(typeof(PSRulesEngineMatchCondition))] - public class NewFrontDoorRulesEngineMatchConditionObject : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = true, - HelpMessage = "Match Variable. Possible values are IsMobile, RemoteAddr, RequestMethod, QueryString, PostArg, RequestUri, RequestPath, RequestFileName, RequestfilenameExtension, RequestHeader, RequestBody, RequestScheme")] - public PSRulesEngineMatchVariable MatchVariable { get; set; } - - [Parameter(Mandatory = true, - HelpMessage = "Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.")] - public string[] MatchValue { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "Name of selector in RequestHeader or RequestBody to be matched")] - public string Selector { get; set; } - - [Parameter(Mandatory = false, - HelpMessage = "Describes operator to apply to the match condition. Possible values are Any, IPMatch, GeoMatch, Equal, Contains, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, BeginsWith, EndsWith.")] - public PSRulesEngineOperator Operator { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "Describes if this is negate condition or not")] - public bool NegateCondition { get; set; } - - [Parameter(Mandatory = false, - HelpMessage = "List of what transforms are applied before matching. Possible individual transform values are Lowercase, Uppercase, Trim, UrlDecode, UrlEncode, RemoveNulls.")] - [PSArgumentCompleter("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - public PSTransform[] Transform { get; set; } - public override void ExecuteCmdlet() - { - var matchCondition = new PSRulesEngineMatchCondition - { - RulesEngineMatchVariable = MatchVariable, - RulesEngineMatchValue = MatchValue.ToList(), - Selector = this.IsParameterBound(c => c.Selector) ? Selector : null, - RulesEngineOperator = this.IsParameterBound(c => c.Operator) ? Operator : PSRulesEngineOperator.Any, - NegateCondition = this.IsParameterBound(c => c.NegateCondition) ? NegateCondition : false, - Transforms = this.IsParameterBound(c => c.Transform) ? Transform.ToList() : new List() - }; - - WriteObject(matchCondition); - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineRuleObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineRuleObject.cs deleted file mode 100644 index 8a07fef9972b..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorRulesEngineRuleObject.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor" + "RulesEngineRuleObject"), OutputType(typeof(PSRulesEngineRule))] - public class NewFrontDoorRulesEngineRuleObject : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = true, HelpMessage = "A name to refer to this specific rule.")] - public string Name { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "A priority assigned to this rule. Cannot be negative.")] - [ValidateRange(0, int.MaxValue)] - public int Priority { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Actions to perform on the request and response if all of the match conditions are met.")] - public PSRulesEngineAction Action { get; set; } - - [Parameter(Mandatory = false, - HelpMessage = "If this rule is a match should the rules engine continue running the remaining rules or stop. Possible values are Continue and Stop. If not present, defaults to Continue.")] - public PSMatchProcessingBehavior MatchProcessingBehavior { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.")] - public PSRulesEngineMatchCondition[] MatchCondition { get; set; } - - public override void ExecuteCmdlet() - { - // Validations - // Priority >= 0 - - var rule = new PSRulesEngineRule - { - Name = Name, - Priority = Priority, - Action = Action, - }; - - if (this.IsParameterBound(c => c.MatchProcessingBehavior)) - { - rule.MatchProcessingBehavior = MatchProcessingBehavior; - } - - if (this.IsParameterBound(c => c.MatchCondition)) - { - rule.MatchConditions = MatchCondition.ToList(); - } - - WriteObject(rule); - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafCustomRuleGroupByVariableObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafCustomRuleGroupByVariableObject.cs deleted file mode 100644 index 0a6a8314b470..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafCustomRuleGroupByVariableObject.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-FrontDoorWafCustomRuleGroupByVariableObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafCustomRuleGroupByVariableObject"), OutputType(typeof(PSFrontDoorWafCustomRuleGroupByVariable))] - public class NewFrontDoorWafCustomRuleGroupByVariableObject : AzureFrontDoorCmdletBase - { - - /// - /// Describes the supported variable for group by - /// - [Parameter(Mandatory = true, HelpMessage = "Describes the supported variable for group by")] - [PSArgumentCompleter("SocketAddr", "GeoLocation")] - public string VariableName { get; set; } - - public override void ExecuteCmdlet() - { - var FrontDoorWafCustomRuleGroupByVariable = new PSFrontDoorWafCustomRuleGroupByVariable - { - VariableName = VariableName, - }; - WriteObject(FrontDoorWafCustomRuleGroupByVariable); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafCustomRuleObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafCustomRuleObject.cs deleted file mode 100644 index 97d419e89afa..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafCustomRuleObject.cs +++ /dev/null @@ -1,108 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorWafCustomRuleObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafCustomRuleObject"), OutputType(typeof(PSCustomRule))] - public class NewFrontDoorWafCustomRuleObject : AzureFrontDoorCmdletBase - { - /// - /// Name of the rule. - /// - [Parameter(Mandatory = true, HelpMessage = "Name of the rule")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// Type of the rule. Possible values include: 'MatchRule', 'RateLimitRule' - /// - [Parameter(Mandatory = true, HelpMessage = "Type of the rule. Possible values include: 'MatchRule', 'RateLimitRule'")] - [PSArgumentCompleter("RateLimitRule", "MatchRule")] - public string RuleType { get; set; } - - /// - /// List of match conditions. - /// - [Parameter(Mandatory = true, HelpMessage = "List of match conditions.")] - [ValidateNotNullOrEmpty] - public PSMatchCondition[] MatchCondition { get; set; } - - /// - /// Type of Actions. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' - /// - [Parameter(Mandatory = true, HelpMessage = "Type of Actions. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'.")] - [PSArgumentCompleter("Allow", "Block", "Log", "Redirect")] - public string Action { get; set; } - - /// - /// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher - /// - [Parameter(Mandatory = true, HelpMessage = "Describes priority of the rule.")] - public int Priority { get; set; } - - /// - /// Defines rate limit duration. Default - 1 minute - /// - [Parameter(Mandatory = false, HelpMessage = "Rate limit duration. Default - 1 minute")] - public int RateLimitDurationInMinutes { get; set; } - - /// - /// Defines rate limit threshold. Default - no limit - /// - [Parameter(Mandatory = false, HelpMessage = "Rate limit threshold")] - public int? RateLimitThreshold { get; set; } - - /// - /// Enabled State. Possible values include: 'Enabled', 'Disabled' - /// - [Parameter(Mandatory = false, HelpMessage = "Enabled State. Possible values include: 'Enabled', 'Disabled'.")] - [PSArgumentCompleter("Enabled", "Disabled")] - public string EnabledState { get; set; } - - /// - /// Gets or sets describes the list of variables to group the rate limit - /// - [Parameter(Mandatory = false, HelpMessage = "Gets or sets describes the list of variables to group the rate limit")] - public PSFrontDoorWafCustomRuleGroupByVariable[] CustomRule { get; set; } - - public override void ExecuteCmdlet() - { - var customRule = new PSCustomRule - { - Name = Name, - MatchConditions = MatchCondition.ToList(), - Priority = Priority, - RuleType = RuleType, - RateLimitDurationInMinutes = !this.IsParameterBound(c => c.RateLimitDurationInMinutes) ? 1 : RateLimitDurationInMinutes, - RateLimitThreshold = RateLimitThreshold, - Action = Action, - EnabledState = !this.IsParameterBound(c => c.EnabledState) ? "Enabled" : EnabledState, - CustomRule = CustomRule - }; - WriteObject(customRule); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafLogScrubbingRuleObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafLogScrubbingRuleObject.cs deleted file mode 100644 index 0a4c2e288d79..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafLogScrubbingRuleObject.cs +++ /dev/null @@ -1,75 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.FrontDoor.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Data; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-FrontDoorWafLogScrubbingRuleObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafLogScrubbingRuleObject"), OutputType(typeof(PSFrontDoorWafLogScrubbingRule))] - public class NewFrontDoorWafLogScrubbingRuleObject : AzureFrontDoorCmdletBase - { - - /// - /// Gets or sets the variable to be scrubbed from the logs. - /// - [Parameter(Mandatory = true, HelpMessage = "The variable to be scrubbed from the logs.")] - [PSArgumentCompleter("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - public string MatchVariable { get; set; } - - /// - /// Gets or sets when matchVariable is a collection, operate on the selector to - /// specify which elements in the collection this rule applies to. - /// - [Parameter(Mandatory = true, HelpMessage = "The parameter to specify which elements in the collection this rule applies to.")] - [PSArgumentCompleter("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] - public string SelectorMatchOperator { get; set; } - - /// - /// Gets or sets defines the state of a log scrubbing rule.Default value is - /// enabled. - /// - [Parameter(Mandatory = true, HelpMessage = "Defines the state of a log scrubbing rule. Default value is enabled.")] - [PSArgumentCompleter("Enabled", "Disabled")] - public string State { get; set; } - - /// - /// Gets or sets when matchVariable is a collection, operator used to specify - /// which elements in the collection this rule applies to. - /// - [Parameter(Mandatory = false, HelpMessage = "The operator used to specify which elements in the collection this rule applies to.")] - public string Selector { get; set; } - - public override void ExecuteCmdlet() - { - var PSFrontDoorWafLogScrubbingRule = new PSFrontDoorWafLogScrubbingRule - { - MatchVariable = MatchVariable, - SelectorMatchOperator = SelectorMatchOperator, - State = State, - Selector = Selector - }; - WriteObject(PSFrontDoorWafLogScrubbingRule); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafLogScrubbingSettingObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafLogScrubbingSettingObject.cs deleted file mode 100644 index d7ab3816c4a3..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafLogScrubbingSettingObject.cs +++ /dev/null @@ -1,54 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Collections.Generic; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-FrontDoorWafLogScrubbingSettingObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafLogScrubbingSettingObject"), OutputType(typeof(PSFrontDoorWafLogScrubbingSetting))] - public class NewFrontDoorWafLogScrubbingSettingObject : AzureFrontDoorCmdletBase - { - - /// - /// List of log scrubbing rules applied to the Web Application Firewall logs. - /// - [Parameter(Mandatory = true, HelpMessage = "List of log scrubbing rules applied to the Web Application Firewall logs.")] - [AllowEmptyCollection] - public PSFrontDoorWafLogScrubbingRule[] ScrubbingRule { get; set; } - - /// State of the log scrubbing config. Default value is Enabled. - [Parameter(Mandatory = true, HelpMessage = "State of the log scrubbing config. Default value is Enabled.")] - [PSArgumentCompleter("Enabled", "Disabled")] - public string State { get; set; } - - public override void ExecuteCmdlet() - { - var FrontDoorWafLogScrubbingSettingObject = new PSFrontDoorWafLogScrubbingSetting - { - ScrubbingRule = ScrubbingRule, - State = State - }; - WriteObject(FrontDoorWafLogScrubbingSettingObject); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleExclusionObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleExclusionObject.cs deleted file mode 100644 index 9fe3615ecf4f..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleExclusionObject.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorWafManagedRuleExclusionObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafManagedRuleExclusionObject"), OutputType(typeof(PSManagedRuleExclusion))] - public class NewFrontDoorWafManagedRuleExclusionObject : AzureFrontDoorCmdletBase - { - /// - /// Exclusion match variable - /// - [Parameter(Mandatory = true, HelpMessage = "Match variable")] - [PSArgumentCompleter("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - public string Variable { get; set; } - - /// - /// Exclusion operator, performed on the selector - /// In the case of EqualsAny, the selector cannot be specified (it will exclude all match variables of the specified type) - /// - [Parameter(Mandatory = true, HelpMessage = "Operator")] - [PSArgumentCompleter("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] - public string Operator { get; set; } - - /// - /// Exclusion selector - /// - [Parameter(Mandatory = false, HelpMessage = "Selector")] - public string Selector { get; set; } - - public override void ExecuteCmdlet() - { - ValidateArguments(); - - var rule = new PSManagedRuleExclusion - { - MatchVariable = Variable, - SelectorMatchOperator = Operator, - Selector = Selector - }; - WriteObject(rule); - } - - private void ValidateArguments() - { - if (Operator == PSExclusionOperatorProperty.EqualsAny.ToString() && Selector != null) - { - // Selector is required if the operator is not "EqualsAny". - throw new PSArgumentException(nameof(Selector)); - } - - if (Operator != PSExclusionOperatorProperty.EqualsAny.ToString() && string.IsNullOrEmpty(Selector)) - { - // Selector cannot be specified if the operator is "EqualsAny". - throw new PSArgumentNullException(nameof(Selector)); - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleObject.cs deleted file mode 100644 index 91a9d7feee47..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleObject.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorWafManagedRuleObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafManagedRuleObject"), OutputType(typeof(PSAzureManagedRule))] - public class NewFrontDoorWafManagedRuleObject : AzureFrontDoorCmdletBase - { - /// - /// Type of the ruleset (e.g.: DefaultRuleSet) - /// - [Parameter(Mandatory = true, HelpMessage = "Type of the ruleset")] - [PSArgumentCompleter("BotProtection", "DefaultRuleSet", "Microsoft_DefaultRuleSet")] - public string Type { get; set; } - - /// - /// Version of the ruleset (e.g.: preview-0.1) - /// - [Parameter(Mandatory = true, HelpMessage = "Version of the ruleset")] - [PSArgumentCompleter("2.0", "1.1", "1.0", "preview-0.1")] - public string Version { get; set; } - - /// - /// Rule Set Action. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' - /// - [Parameter(Mandatory = false, HelpMessage = "Rule Set Action. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'.")] - [PSArgumentCompleter("Allow", "Block", "Log", "Redirect")] - public string Action { get; set; } - - /// - /// List of azure managed provider override configuration - /// - [Parameter(Mandatory = false, HelpMessage = "List of azure managed provider override configuration")] - public PSAzureRuleGroupOverride[] RuleGroupOverride { get; set; } - - /// - /// Exclusions - /// - [Parameter(Mandatory = false, HelpMessage = "Exclusions")] - public PSManagedRuleExclusion[] Exclusion { get; set; } - - public override void ExecuteCmdlet() - { - var rule = new PSAzureManagedRule - { - RuleSetType = Type, - RuleSetVersion = Version, - RuleGroupOverrides = RuleGroupOverride?.ToList(), - Exclusions = Exclusion?.ToList(), - RuleSetAction = this.IsParameterBound(c => c.Action) ? Action : null - }; - WriteObject(rule); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleOverrideObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleOverrideObject.cs deleted file mode 100644 index 1e78309027ec..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafManagedRuleOverrideObject.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorWafManagedRuleOverrideObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafManagedRuleOverrideObject"), OutputType(typeof(PSAzureManagedRuleOverride))] - public class NewFrontDoorWafManagedRuleOverrideObject : AzureFrontDoorCmdletBase - { - /// - /// Rule ID - /// - [Parameter(Mandatory = true, HelpMessage = "Rule ID")] - public string RuleId { get; set; } - - /// - /// Override Action - /// - [Parameter(Mandatory = false, HelpMessage = "Override Action")] - [PSArgumentCompleter("Allow", "Block", "Log", "Redirect")] - public string Action { get; set; } - - /// - /// Disabled State - /// - [Parameter(Mandatory = false, HelpMessage = "Disabled state")] - public SwitchParameter Disabled { get; set; } - - /// - /// Exclusions - /// - [Parameter(Mandatory = false, HelpMessage = "Exclusions")] - public PSManagedRuleExclusion[] Exclusion { get; set; } - - public override void ExecuteCmdlet() - { - var managedRuleOverride = new PSAzureManagedRuleOverride - { - RuleId = RuleId, - Action = this.IsParameterBound(c => c.Action) ? Action : null, - EnabledState = (this.IsParameterBound(c => c.Disabled) && Disabled.IsPresent) ? PSEnabledState.Disabled : PSEnabledState.Enabled, - Exclusions = Exclusion?.ToList() - }; - WriteObject(managedRuleOverride); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafMatchConditionObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafMatchConditionObject.cs deleted file mode 100644 index 39e9346ff393..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafMatchConditionObject.cs +++ /dev/null @@ -1,104 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorWafMatchConditionObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafMatchConditionObject"), OutputType(typeof(PSMatchCondition))] - public class NewFrontDoorWafMatchConditionObject : AzureFrontDoorCmdletBase - { - - /// - /// Match Variable. - /// Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', - /// 'RequestUri', 'RequestHeader', 'RequestBody', 'SocketAddr' - /// - [Parameter(Mandatory = true, HelpMessage = "Match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs','RequestUri', 'RequestHeader', 'RequestBody', 'SocketAddr'")] - [PSArgumentCompleter("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "SocketAddr")] - public string MatchVariable { get; set; } - - /// - /// Describes operator to be matched. - /// Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', - /// 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', - /// 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith' - /// - [Parameter(Mandatory = true, HelpMessage = "Describes operator to be matched. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx'")] - [PSArgumentCompleter("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] - public string OperatorProperty { get; set; } - - /// - /// Match value. - /// - [Parameter(Mandatory = false, HelpMessage = "Match value.")] - public string[] MatchValue { get; set; } - - /// - /// Name of selector in RequestHeader or RequestBody to be matched - /// - [Parameter(Mandatory = false, HelpMessage = "Name of selector in RequestHeader or RequestBody to be matched")] - public string Selector { get; set; } - - /// - /// Describes if this is negate condition or not - /// - [Parameter(Mandatory = false, HelpMessage = "Describes if this is negate condition or not. Default value is false")] - public bool NegateCondition { get; set; } - - /// - /// Transforms value. - /// - [Parameter(Mandatory = false, HelpMessage = "Transforms to apply. Possible values include: 'Lowercase', 'Uppercase', 'Trim', 'UrlDecode', 'UrlEncode', 'RemoveNulls'.")] - [PSArgumentCompleter("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - public string[] Transform { get; set; } - - public override void ExecuteCmdlet() - { - ValidateArguments(); - - var matchCondition = new PSMatchCondition - { - MatchVariable = MatchVariable, - MatchValue = MatchValue?.ToList(), - NegateCondition = !this.IsParameterBound(c => c.NegateCondition) ? false : NegateCondition, - OperatorProperty = OperatorProperty, - Selector = Selector, - Transform = Transform?.ToList() - }; - WriteObject(matchCondition); - } - - private void ValidateArguments() - { - if (OperatorProperty == PSOperatorProperty.Any.ToString() && MatchValue != null) - { - throw new PSArgumentException(nameof(MatchValue)); - } - - if (OperatorProperty != PSOperatorProperty.Any.ToString() && (MatchValue == null || MatchValue.Length == 0)) - { - throw new PSArgumentNullException(nameof(MatchValue)); - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafPolicy.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafPolicy.cs deleted file mode 100644 index 06a3424c1175..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafPolicy.cs +++ /dev/null @@ -1,218 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System; -using System.Linq; -using System.Management.Automation; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using Microsoft.Azure.Management.FrontDoor.Models; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorWafPolicy cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafPolicy", SupportsShouldProcess = true), OutputType(typeof(PSPolicy))] - public class NewFrontDoorWafPolicy : AzureFrontDoorCmdletBase - { - /// - /// The resource group name. - /// - [Parameter(Mandatory = true, HelpMessage = "The resource group name")] - [ResourceGroupCompleter()] - public string ResourceGroupName { get; set; } - - /// - /// The Policy name. - /// - [Parameter(Mandatory = true, HelpMessage = "WebApplicationFireWallPolicy name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// Whether the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled' - /// - [Parameter(Mandatory = false, HelpMessage = "Whether the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'")] - public PSEnabledState EnabledState { get; set; } - - /// - /// Describes if it is in detection mode or prevention mode at policy level. Possible values include:'Prevention', 'Detection' - /// - [Parameter(Mandatory = false, HelpMessage = "Describes if it is in detection mode or prevention mode at policy level. Possible values include:'Prevention', 'Detection'")] - [PSArgumentCompleter("Prevention", "Detection")] - public string Mode { get; set; } - - /// - /// Custom rules inside the policy - /// - [Parameter(Mandatory = false, HelpMessage = "Custom rules inside the policy")] - [ValidateNotNullOrEmpty] - public PSCustomRule[] Customrule { get; set; } - - /// - /// Managed rules inside the policy - /// - [Parameter(Mandatory = false, HelpMessage = "Managed rules inside the policy")] - public PSManagedRule[] ManagedRule { get; set; } - - /// - /// Redirect URL used for redirect actions - /// - [Parameter(Mandatory = false, HelpMessage = "Redirect URL")] - public string RedirectUrl { get; set; } - - /// - /// Custom block response code used for block actions - /// - [Parameter(Mandatory = false, HelpMessage = "Custom Response Status Code")] - [ValidateRange(200, 499)] - public int CustomBlockResponseStatusCode { get; set; } - - /// - /// Custom block response body used for block actions - /// - [Parameter(Mandatory = false, HelpMessage = "Custom Response Body")] - public string CustomBlockResponseBody { get; set; } - - /// - /// The tags to associate with the Front Door Waf Policy. - /// - [Parameter(Mandatory = false, HelpMessage = "The tags associate with the Front Door Waf Policy.")] - public Hashtable Tag { get; set; } - - /// - /// Defines if the body should be inspected by managed rules. Possible values include: 'Enabled', 'Disabled' - /// - [Parameter(Mandatory = false, HelpMessage = "Defines if the body should be inspected by managed rules. Possible values include: 'Enabled', 'Disabled'")] - [PSArgumentCompleter("Enabled", "Disabled")] - public string RequestBodyCheck { get; set; } - - /// - /// Sets Sku. Possible values include: 'Classic_AzureFrontDoor', 'Standard_AzureFrontDoor', 'Premium_AzureFrontDoor' - /// - [Parameter(Mandatory = false, HelpMessage = "Sets Sku. Possible values include: 'Classic_AzureFrontDoor', 'Standard_AzureFrontDoor', 'Premium_AzureFrontDoor'")] - [PSArgumentCompleter("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - public string Sku { get; set; } - - /// Defines rules that scrub sensitive fields in the Web Application Firewall - [Parameter(Mandatory = false, HelpMessage = "Defines rules that scrub sensitive fields in the Web Application Firewall.")] - public PSFrontDoorWafLogScrubbingSetting LogScrubbingSetting { get; set; } - - /// 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. - [Parameter(Mandatory = false, HelpMessage = "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 - [Parameter(Mandatory = false, HelpMessage = "setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440")] - public int? CaptchaExpirationInMinutes { get; set; } - - public override void ExecuteCmdlet() - { - var existingPolicy = FrontDoorManagementClient.Policies.List(ResourceGroupName) - .Where(p => p.Name.ToLower() == Name.ToLower()); - - if (existingPolicy.Count() != 0) - { - throw new PSArgumentException(string.Format(Resources.Error_CreateExistingWebApplicationFirewallPolicy, - Name, - ResourceGroupName)); - } - - var scrubbingRule = new List(); - if (LogScrubbingSetting != null && LogScrubbingSetting.ScrubbingRule != null && LogScrubbingSetting.ScrubbingRule.Count() > 0) - { - foreach (var item in LogScrubbingSetting.ScrubbingRule) - { - scrubbingRule.Add(new Management.FrontDoor.Models.WebApplicationFirewallScrubbingRules( - matchVariable: item.MatchVariable, - selectorMatchOperator: item.SelectorMatchOperator, - selector: item.Selector, - state: item.State)); - } - } - var updateParameters = new Management.FrontDoor.Models.WebApplicationFirewallPolicy - { - Tags = Tag?.ToDictionaryTags(), - Location = "global", - CustomRules = new Management.FrontDoor.Models.CustomRuleList() - { - Rules = Customrule?.ToList().Select(x => x.ToSdkCustomRule()).ToList() - }, - ManagedRules = new Management.FrontDoor.Models.ManagedRuleSetList() - { - ManagedRuleSets = ManagedRule?.ToList().Select(x => x.ToSdkAzManagedRule()).ToList() - }, - PolicySettings = new Management.FrontDoor.Models.PolicySettings - { - EnabledState = this.IsParameterBound(c => c.EnabledState) ? EnabledState.ToString() : PSEnabledState.Enabled.ToString(), - Mode = this.IsParameterBound(c => c.Mode) ? Mode : PSMode.Prevention.ToString(), - CustomBlockResponseBody = CustomBlockResponseBody == null ? CustomBlockResponseBody : Convert.ToBase64String(Encoding.UTF8.GetBytes(CustomBlockResponseBody)), - CustomBlockResponseStatusCode = this.IsParameterBound(c => c.CustomBlockResponseStatusCode) ? CustomBlockResponseStatusCode : (int?)null, - RedirectUrl = RedirectUrl, - RequestBodyCheck = this.IsParameterBound(c => c.RequestBodyCheck) ? RequestBodyCheck : PSEnabledState.Enabled.ToString(), - }, - Sku = this.IsParameterBound(c => c.Sku) ? new Management.FrontDoor.Models.Sku(Sku) : null, - }; - - if (LogScrubbingSetting != null) - { - updateParameters.PolicySettings.LogScrubbing = new PolicySettingsLogScrubbing(); - updateParameters.PolicySettings.LogScrubbing.ScrubbingRules = scrubbingRule; - updateParameters.PolicySettings.LogScrubbing.State = LogScrubbingSetting.State; - } - - if (JavascriptChallengeExpirationInMinutes != null) - { - updateParameters.PolicySettings.JavascriptChallengeExpirationInMinutes = JavascriptChallengeExpirationInMinutes; - } - - if (CaptchaExpirationInMinutes != null) - { - updateParameters.PolicySettings.CaptchaExpirationInMinutes = CaptchaExpirationInMinutes; - } - - if (ShouldProcess(Resources.WebApplicationFirewallPolicyTarget, string.Format(Resources.CreateWebApplicationFirewallPolicy, Name))) - { - try - { - var policy = FrontDoorManagementClient.Policies.CreateOrUpdate( - ResourceGroupName, - Name, - updateParameters - ); - WriteObject(policy.ToPSPolicy()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - throw new PSArgumentException(string.Format( - Resources.Error_ErrorResponseFromServer, - e.Response.Content)); - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafRuleGroupOverrideObject.cs b/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafRuleGroupOverrideObject.cs deleted file mode 100644 index c210b976fe57..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/NewFrontDoorWafRuleGroupOverrideObject.cs +++ /dev/null @@ -1,58 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoorWafRuleGroupOverrideObject cmdlet. - /// - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafRuleGroupOverrideObject"), OutputType(typeof(PSAzureRuleGroupOverride))] - public class NewFrontDoorWafRuleGroupOverrideObject : AzureFrontDoorCmdletBase - { - /// - /// Rule Group Name - /// - [Parameter(Mandatory = true, HelpMessage = "Rule Group Name for which these overrides apply")] - public string RuleGroupName { get; set; } - - /// - /// Rule override list - /// - [Parameter(Mandatory = false, HelpMessage = "Rule override list")] - public PSAzureManagedRuleOverride[] ManagedRuleOverride { get; set; } - - /// - /// Exclusions - /// - [Parameter(Mandatory = false, HelpMessage = "Exclusions")] - public PSManagedRuleExclusion[] Exclusion { get; set; } - - public override void ExecuteCmdlet() - { - var ruleGroupOverride = new PSAzureRuleGroupOverride - { - ManagedRuleOverrides = ManagedRuleOverride?.ToList(), - RuleGroupName = RuleGroupName, - Exclusions = Exclusion?.ToList() - }; - WriteObject(ruleGroupOverride); - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoor.cs b/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoor.cs deleted file mode 100644 index ebddac72d1a3..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoor.cs +++ /dev/null @@ -1,90 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Remove-AzFrontDoor cmdlet. - /// - [Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(bool))] - public class RemoveFrontDoor : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group to which the Front Door belongs.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The name of the Front Door to delete.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The Front Door object to delete.")] - [ValidateNotNullOrEmpty] - public PSFrontDoor InputObject { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the Front Door to delete")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "Return object (if specified).")] - public SwitchParameter PassThru { get; set; } - - public override void ExecuteCmdlet() - { - if (ParameterSetName == ObjectParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(InputObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - Name = InputObject.Name; - } - else if (ParameterSetName == ResourceIdParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - ResourceGroupName = identifier.ResourceGroupName; - Name = InputObject.Name; - } - - - var existingProfile = FrontDoorManagementClient.FrontDoors.ListByResourceGroup(ResourceGroupName) - .FirstOrDefault(fd => fd.Name.ToLower() == Name.ToLower()); - - - if (existingProfile == null) - { - throw new PSArgumentException(string.Format(Resources.Error_DeleteNonExistingFrontDoor, - Name, - ResourceGroupName)); - } - - if (ShouldProcess(Resources.FrontDoorTarget, string.Format(Resources.RemoveFrontDoor, Name))) - { - FrontDoorManagementClient.FrontDoors.Delete(ResourceGroupName, Name); - if (PassThru) - { - WriteObject(true); - } - } - - - } - } - -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorContent.cs b/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorContent.cs deleted file mode 100644 index 5bba7e125641..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorContent.cs +++ /dev/null @@ -1,63 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using System.Management.Automation; -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the New-AzFrontDoor cmdlet. - /// - [Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorContent", SupportsShouldProcess = true), OutputType(typeof(bool))] - public class RemoveFrontDoorContent : AzureFrontDoorCmdletBase - { - /// - /// The resource group name of the Front Door. - /// - [Parameter(Mandatory = true, HelpMessage = "The resource group name of the Front Door")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// The Front Door name. - /// - [Parameter(Mandatory = true, HelpMessage = "Front Door name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - /// The path to the content to be purged. - /// - [Parameter(Mandatory = true, HelpMessage = "The paths to the content to be purged.")] - public string[] ContentPath { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "Return object (if specified).")] - public SwitchParameter PassThru { get; set; } - - public override void ExecuteCmdlet() - { - if (ShouldProcess(Resources.FrontDoorTarget, string.Format(Resources.PurgeFrontDoor, Name))) - { - var parameters = new Microsoft.Azure.Management.FrontDoor.Models.PurgeParameters(ContentPath); - FrontDoorManagementClient.Endpoints.PurgeContent(ResourceGroupName, Name, parameters); - if (PassThru) - { - WriteObject(true); - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorRulesEngine.cs b/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorRulesEngine.cs deleted file mode 100644 index 15d9dfbeaf83..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorRulesEngine.cs +++ /dev/null @@ -1,108 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using System.Management.Automation; -using System.Net; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - [Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor" + "RulesEngine", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(bool))] - public class RemoveFrontDoorRulesEngine : AzureFrontDoorCmdletBase - { - /// - ///The Rules Engine object to delete - /// - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The Rules Engine object to update.")] - [ValidateNotNullOrEmpty] - public PSRulesEngine InputObject { get; set; } - - /// - /// Resource Id of the Rules Engine to delete - /// - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the RulesEngine to update")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - /// - /// The resource group name of the Front Door. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group name that the Front Door will be created in.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// The Front Door name. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "Front Door name.")] - [ValidateNotNullOrEmpty] - public string FrontDoorName { get; set; } - - /// - /// The rules engine name. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "Rules engine name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "Return object (if specified).")] - public SwitchParameter PassThru { get; set; } - - public override void ExecuteCmdlet() - { - if (ParameterSetName == ObjectParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(InputObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - FrontDoorName = identifier.ParentResource.Substring(identifier.ParentResource.IndexOf("/") + 1); - Name = InputObject.Name; - } - else if (ParameterSetName == ResourceIdParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - ResourceGroupName = identifier.ResourceGroupName; - FrontDoorName = identifier.ParentResource.Substring(identifier.ParentResource.IndexOf("/") + 1); - Name = InputObject.Name; - } - - try - { - var existingRulesEngine = FrontDoorManagementClient.RulesEngines.Get(ResourceGroupName, FrontDoorName, Name); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - if (e.Response.StatusCode.Equals(HttpStatusCode.NotFound)) - { - throw new PSArgumentException(string.Format(Resources.Error_DeleteNonExistingRulesEngine, - Name, - FrontDoorName, - ResourceGroupName)); - } - } - - if (ShouldProcess(Resources.FrontDoorTarget, string.Format(Resources.RemoveRulesEngine, Name))) - { - FrontDoorManagementClient.RulesEngines.Delete(ResourceGroupName, FrontDoorName, Name); - if (PassThru) - { - WriteObject(true); - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorWafPolicy.cs b/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorWafPolicy.cs deleted file mode 100644 index 554c2b932735..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/RemoveFrontDoorWafPolicy.cs +++ /dev/null @@ -1,90 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Remove-AzFrontDoorWafPolicy cmdlet. - /// - [Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafPolicy", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(bool))] - public class RemoveFrontDoorWafPolicy : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group to which the WAF policy belongs.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The name of the WAF policy to delete.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The WAF policy object to delete.")] - [ValidateNotNullOrEmpty] - public PSPolicy InputObject { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the WAF policy to delete")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "Return object (if specified).")] - public SwitchParameter PassThru { get; set; } - - public override void ExecuteCmdlet() - { - if (ParameterSetName == ObjectParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(InputObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - Name = InputObject.Name; - } - else if (ParameterSetName == ResourceIdParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - ResourceGroupName = identifier.ResourceGroupName; - Name = InputObject.Name; - } - - - var existingPolicy = FrontDoorManagementClient.Policies.List(ResourceGroupName) - .FirstOrDefault(fd => fd.Name.ToLower() == Name.ToLower()); - - - if (existingPolicy == null) - { - throw new PSArgumentException(string.Format( - Resources.Error_DeleteNonExistingWebApplicationFirewallPolicy, - Name, - ResourceGroupName)); - } - - if (ShouldProcess(Resources.WebApplicationFirewallPolicyTarget, string.Format(Resources.RemoveWebApplicationFirewallPolicy, Name))) - { - FrontDoorManagementClient.Policies.Delete(ResourceGroupName, Name); - if (PassThru) - { - WriteObject(true); - } - } - - } - } - -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/SetFrontDoor.cs b/src/FrontDoor/FrontDoor/Cmdlets/SetFrontDoor.cs deleted file mode 100644 index 1b5948f063a3..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/SetFrontDoor.cs +++ /dev/null @@ -1,246 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System.Collections; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Set-AzFrontDoor cmdlet. - /// - [Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(PSFrontDoor))] - public class SetFrontDoor : AzureFrontDoorCmdletBase - { - /// - /// The resource group to which the Front Door belongs. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group to which the Front Door belongs.")] - [Parameter(Mandatory = true, ParameterSetName = FieldsWithCertificateNameCheckParameterSet, HelpMessage = "The resource group to which the Front Door belongs.")] - [Parameter(Mandatory = true, ParameterSetName = FieldsWithBackendPoolsSettingParameterSet, HelpMessage = "The resource group to which the Front Door belongs.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// The name of the Front Door to update. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The name of the Front Door to update.")] - [Parameter(Mandatory = true, ParameterSetName = FieldsWithCertificateNameCheckParameterSet, HelpMessage = "The name of the Front Door to update.")] - [Parameter(Mandatory = true, ParameterSetName = FieldsWithBackendPoolsSettingParameterSet, HelpMessage = "The name of the Front Door to update.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - ///The Front Door object to update. - /// - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The Front Door object to update.")] - [Parameter(Mandatory = true, ParameterSetName = ObjectWithCertificateNameCheckParameterSet, ValueFromPipeline = true, HelpMessage = "The Front Door object to update.")] - [Parameter(Mandatory = true, ParameterSetName = ObjectWithBackendPoolsSettingParameterSet, ValueFromPipeline = true, HelpMessage = "The Front Door object to update.")] - [ValidateNotNullOrEmpty] - public PSFrontDoor InputObject { get; set; } - - /// - /// Resource Id of the Front Door to update - /// - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the Front Door to update")] - [Parameter(Mandatory = true, ParameterSetName = ResourceIdWithCertificateNameCheckParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the Front Door to update")] - [Parameter(Mandatory = true, ParameterSetName = ResourceIdWithBackendPoolsSettingParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the Front Door to update")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - /// - /// Routing rules associated with this Front Door - /// - [Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door")] - public PSRoutingRule[] RoutingRule { get; set; } - - /// - /// Backendpools available to routing rule. - /// - [Parameter(Mandatory = false, HelpMessage = "Backendpools available to routing rule.")] - public PSBackendPool[] BackendPool { get; set; } - - /// - /// Frontend endpoints available to routing rule. - /// - [Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rule.")] - public PSFrontendEndpoint[] FrontendEndpoint { get; set; } - - /// - /// Load balancing settings associated with this Front Door instance. - /// - [Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] - public PSLoadBalancingSetting[] LoadBalancingSetting { get; set; } - - /// - /// Health probe settings associated with this Front Door instance. - /// - [Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] - public PSHealthProbeSetting[] HealthProbeSetting { get; set; } - - /// - /// The tags to associate with the Front Door. - /// - [Parameter(Mandatory = false, HelpMessage = "The tags associate with the Front Door.")] - public Hashtable Tag { get; set; } - - /// - /// Whether to enable use of this rule. - /// - [Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Default value is Enabled")] - [PSArgumentCompleter("Enabled", "Disabled")] - public PSEnabledState EnabledState { get; set; } - - /// - /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsWithCertificateNameCheckParameterSet, HelpMessage = "Whether to disable certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.")] - [Parameter(Mandatory = true, ParameterSetName = ObjectWithCertificateNameCheckParameterSet, HelpMessage = "Whether to disable certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.")] - [Parameter(Mandatory = true, ParameterSetName = ResourceIdWithCertificateNameCheckParameterSet, HelpMessage = "Whether to disable certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.")] - public SwitchParameter DisableCertificateNameCheck { get; set; } - - /// - /// Settings for all backendPools - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsWithBackendPoolsSettingParameterSet, HelpMessage = "Settings for all backendPools")] - [Parameter(Mandatory = true, ParameterSetName = ObjectWithBackendPoolsSettingParameterSet, HelpMessage = "Settings for all backendPools")] - [Parameter(Mandatory = true, ParameterSetName = ResourceIdWithBackendPoolsSettingParameterSet, HelpMessage = "Settings for all backendPools")] - public PSBackendPoolsSetting BackendPoolsSetting { get; set; } - - public override void ExecuteCmdlet() - { - if ((ParameterSetName == ObjectParameterSet) || (ParameterSetName == ObjectWithBackendPoolsSettingParameterSet) - || (ParameterSetName == ObjectWithCertificateNameCheckParameterSet)) - { - ResourceIdentifier identifier = new ResourceIdentifier(InputObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - Name = InputObject.Name; - } - else if ((ParameterSetName == ResourceIdParameterSet) || (ParameterSetName == ResourceIdWithBackendPoolsSettingParameterSet) - || (ParameterSetName == ResourceIdWithCertificateNameCheckParameterSet)) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - ResourceGroupName = identifier.ResourceGroupName; - Name = InputObject.Name; - } - - - var existingFrontDoor = FrontDoorManagementClient.FrontDoors.ListByResourceGroup(ResourceGroupName) - .FirstOrDefault(fd => fd.Name.ToLower() == Name.ToLower()); - - - if (existingFrontDoor == null) - { - throw new PSArgumentException(string.Format( - Resources.Error_FrontDoorNotFound, - Name, - ResourceGroupName)); - } - - PSFrontDoor updateParameters; - if (ParameterSetName == ObjectParameterSet) - { - updateParameters = InputObject; - } - else - { - updateParameters = existingFrontDoor.ToPSFrontDoor(); - } - - // update each field based on optional input. - if (this.IsParameterBound(c => c.RoutingRule)) - { - updateParameters.RoutingRules = RoutingRule.ToList(); - } - - if (this.IsParameterBound(c => c.FrontendEndpoint)) - { - updateParameters.FrontendEndpoints = FrontendEndpoint.ToList(); - } - - if (this.IsParameterBound(c => c.HealthProbeSetting)) - { - updateParameters.HealthProbeSettings = HealthProbeSetting.ToList(); - } - - if (this.IsParameterBound(c => c.LoadBalancingSetting)) - { - updateParameters.LoadBalancingSettings = LoadBalancingSetting.ToList(); - } - - if (this.IsParameterBound(c => c.BackendPool)) - { - updateParameters.BackendPools = BackendPool.ToList(); - } - - if (this.IsParameterBound(c => c.Tag)) - { - updateParameters.Tags = Tag; - } - - if (this.IsParameterBound(c => c.EnabledState)) - { - updateParameters.EnabledState = EnabledState; - } - - if ((ParameterSetName == FieldsWithCertificateNameCheckParameterSet) || (ParameterSetName == ObjectWithCertificateNameCheckParameterSet) - || (ParameterSetName == ResourceIdWithCertificateNameCheckParameterSet)) - { - updateParameters.BackendPoolsSetting.EnforceCertificateNameCheck = DisableCertificateNameCheck ? PSEnabledState.Disabled : PSEnabledState.Enabled; - // PSFrontDoor parameter EnforceCertificateNameCheck is no longer used to update Front Door, in favor of BackendPoolsSetting which - // encapsulates this property. However, for backwards compability, we set this field so that it is still displayed to users. - updateParameters.EnforceCertificateNameCheck = (PSEnforceCertificateNameCheck)updateParameters.BackendPoolsSetting.EnforceCertificateNameCheck; - } - - if ((ParameterSetName == FieldsWithBackendPoolsSettingParameterSet) || (ParameterSetName == ObjectWithBackendPoolsSettingParameterSet) - || (ParameterSetName == ResourceIdWithBackendPoolsSettingParameterSet)) - { - updateParameters.BackendPoolsSetting = BackendPoolsSetting; - // PSFrontDoor parameter EnforceCertificateNameCheck is no longer used to update Front Door, in favor of BackendPoolsSetting which - // encapsulates this property. However, for backwards compability, we set this field so that it is still displayed to users. - updateParameters.EnforceCertificateNameCheck = (PSEnforceCertificateNameCheck)updateParameters.BackendPoolsSetting.EnforceCertificateNameCheck; - } - - updateParameters.ValidateFrontDoor(ResourceGroupName, this.DefaultContext.Subscription.Id); - if (ShouldProcess(Resources.FrontDoorTarget, string.Format(Resources.FrontDoorChangeWarning, Name))) - { - try - { - var frontDoor = FrontDoorManagementClient.FrontDoors.CreateOrUpdate( - ResourceGroupName, - Name, - updateParameters.ToSdkFrontDoor() - ); - WriteObject(frontDoor.ToPSFrontDoor()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - throw new PSArgumentException(string.Format( - Resources.Error_ErrorResponseFromServer, - e.Response.Content)); - } - } - } - } - -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/SetFrontDoorRulesEngine.cs b/src/FrontDoor/FrontDoor/Cmdlets/SetFrontDoorRulesEngine.cs deleted file mode 100644 index bc8f598d69e4..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/SetFrontDoorRulesEngine.cs +++ /dev/null @@ -1,119 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.FrontDoor.Models; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using System.Linq; -using System.Management.Automation; -using System.Net; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - [Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoor" + "RulesEngine", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), - OutputType(typeof(PSRulesEngine))] - public class SetFrontDoorRulesEngine : AzureFrontDoorCmdletBase - { - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The Rules Engine object to update.")] - [ValidateNotNullOrEmpty] - public PSRulesEngine InputObject { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the RulesEngine to update")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group name that the Front Door will be created in.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "Front Door name.")] - [ValidateNotNullOrEmpty] - public string FrontDoorName { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "Rules engine name.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "A list of rules that define a particular Rules Engine Configuration.")] - public PSRulesEngineRule[] Rule { get; set; } - - public override void ExecuteCmdlet() - { - if (ParameterSetName == ObjectParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(InputObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - FrontDoorName = identifier.ParentResource.Substring(identifier.ParentResource.IndexOf("/") + 1); - Name = InputObject.Name; - } - else if (ParameterSetName == ResourceIdParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - ResourceGroupName = identifier.ResourceGroupName; - FrontDoorName = identifier.ParentResource.Substring(identifier.ParentResource.IndexOf("/") + 1); - Name = InputObject.Name; - } - - // Retrieve existing Rules Engine - try - { - var rulesEngine = FrontDoorManagementClient.RulesEngines.Get(ResourceGroupName, FrontDoorName, Name); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - if (e.Response.StatusCode.Equals(HttpStatusCode.NotFound)) - { - throw new PSArgumentException(string.Format(Resources.Error_RulesEngineNotFound, - Name, - FrontDoorName)); - } - } - - RulesEngine updateParameter; - if (ParameterSetName == ObjectParameterSet) - { - updateParameter = InputObject.ToSdkRulesEngine(); - } - else - { - updateParameter = new Management.FrontDoor.Models.RulesEngine( - rules: Rule?.Select(x => x.ToSdkRulesEngineRule()).ToList() - ); - } - - if (ShouldProcess(Resources.FrontDoorTarget, string.Format(Resources.RulesEngineChangeWarning, Name, FrontDoorName))) - { - try - { - var rulesEngine = FrontDoorManagementClient.RulesEngines.CreateOrUpdate( - resourceGroupName: ResourceGroupName, - frontDoorName: FrontDoorName, - rulesEngineName: Name, - rulesEngineParameters: updateParameter - ); - WriteObject(rulesEngine.ToPSRulesEngine()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - throw new PSArgumentException(string.Format(Resources.Error_ErrorResponseFromServer, - e.Response.Content)); - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Cmdlets/UpdateFrontDoorWafPolicy.cs b/src/FrontDoor/FrontDoor/Cmdlets/UpdateFrontDoorWafPolicy.cs deleted file mode 100644 index 14d916b73fc0..000000000000 --- a/src/FrontDoor/FrontDoor/Cmdlets/UpdateFrontDoorWafPolicy.cs +++ /dev/null @@ -1,279 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Common; -using Microsoft.Azure.Commands.FrontDoor.Helpers; -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.FrontDoor; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Text; -using SdkPolicy = Microsoft.Azure.Management.FrontDoor.Models.WebApplicationFirewallPolicy; - -namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets -{ - /// - /// Defines the Update-AzFrontDoorWafPolicy cmdlet. - /// - [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafPolicy", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(PSPolicy))] - public class UpdateFrontDoorWafPolicy : AzureFrontDoorCmdletBase - { - /// - /// The resource group to which the FireWallPolicy belongs. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group to which the FireWallPolicy belongs.")] - [ValidateNotNullOrEmpty] - public string ResourceGroupName { get; set; } - - /// - /// The name of the FireWallPolicy to update. - /// - [Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The name of the FireWallPolicy to update.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - /// - ///The FireWallPolicy object to update. - /// - [Parameter(Mandatory = true, ParameterSetName = ObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The FireWallPolicy object to update.")] - [ValidateNotNullOrEmpty] - public PSPolicy InputObject { get; set; } - - /// - /// Resource Id of the FireWallPolicy to update - /// - [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Id of the FireWallPolicy to update")] - [ValidateNotNullOrEmpty] - public string ResourceId { get; set; } - - /// - /// Whether the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled' - /// - [Parameter(Mandatory = false, HelpMessage = "Whether the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'")] - public PSEnabledState EnabledState { get; set; } - - /// - /// Describes if it is in detection mode or prevention mode at policy level. Possible values include:'Prevention', 'Detection' - /// - [Parameter(Mandatory = false, HelpMessage = "Describes if it is in detection mode or prevention mode at policy level. Possible values include:'Prevention', 'Detection'")] - [PSArgumentCompleter("Prevention", "Detection")] - public string Mode { get; set; } - - /// - /// Custom rules inside the policy - /// - [Parameter(Mandatory = false, HelpMessage = "Custom rules inside the policy")] - public PSCustomRule[] Customrule { get; set; } - - /// - /// Managed rules inside the policy - /// - [Parameter(Mandatory = false, HelpMessage = "Managed rules inside the policy")] - public PSManagedRule[] ManagedRule { get; set; } - - /// - /// Redirect URL used for redirect actions - /// - [Parameter(Mandatory = false, HelpMessage = "Redirect URL")] - public string RedirectUrl { get; set; } - - /// - /// Custom block response code used for block actions - /// - [Parameter(Mandatory = false, HelpMessage = "Custom Response Status Code")] - public int? CustomBlockResponseStatusCode { get; set; } - - /// - /// Custom block response body used for block actions - /// - [Parameter(Mandatory = false, HelpMessage = "Custom Response Body")] - public string CustomBlockResponseBody { get; set; } - - /// - /// Defines if the body should be inspected by managed rules. Possible values include: 'Enabled', 'Disabled' - /// - [Parameter(Mandatory = false, HelpMessage = "Defines if the body should be inspected by managed rules. Possible values include: 'Enabled', 'Disabled'")] - [PSArgumentCompleter("Enabled", "Disabled")] - public string RequestBodyCheck { get; set; } - - /// Defines rules that scrub sensitive fields in the Web Application Firewall - [Parameter(Mandatory = false, HelpMessage = "Defines rules that scrub sensitive fields in the Web Application Firewall.")] - [AllowEmptyCollection] - public PSFrontDoorWafLogScrubbingSetting LogScrubbingSetting { get; set; } - - /// 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. - [Parameter(Mandatory = false, HelpMessage = "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 - [Parameter(Mandatory = false, HelpMessage = "setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440")] - public int? CaptchaExpirationInMinutes { get; set; } - - public override void ExecuteCmdlet() - { - if (ParameterSetName == ObjectParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(InputObject.Id); - ResourceGroupName = identifier.ResourceGroupName; - Name = InputObject.Name; - } - else if (ParameterSetName == ResourceIdParameterSet) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - ResourceGroupName = identifier.ResourceGroupName; - Name = identifier.ResourceName; - } - - - var existingPolicy = FrontDoorManagementClient.Policies.List(ResourceGroupName) - .FirstOrDefault(x => x.Name.ToLower() == Name.ToLower()); - - - if (existingPolicy == null) - { - throw new PSArgumentException(string.Format( - Resources.Error_WebApplicationFirewallPolicyNotFound, - Name, - ResourceGroupName)); - } - - SdkPolicy updateParameters; - if (ParameterSetName == ObjectParameterSet) - { - updateParameters = InputObject.ToSdkFirewallPolicy(); - } - else - { - updateParameters = existingPolicy; - } - - if (this.IsParameterBound(c => c.EnabledState)) - { - updateParameters.PolicySettings.EnabledState = EnabledState.ToString(); - } - - if (this.IsParameterBound(c => c.Mode)) - { - updateParameters.PolicySettings.Mode = Mode; - } - - if (this.IsParameterBound(c => c.Customrule)) - { - updateParameters.CustomRules = new Management.FrontDoor.Models.CustomRuleList() - { - Rules = Customrule.ToList().Select(x => x.ToSdkCustomRule()).ToList() - }; - } - - if (this.IsParameterBound(c => c.ManagedRule)) - { - updateParameters.ManagedRules = new Management.FrontDoor.Models.ManagedRuleSetList() - { - ManagedRuleSets = ManagedRule.ToList().Select(x => x.ToSdkAzManagedRule()).ToList() - }; - } - - if (this.IsParameterBound(c => c.CustomBlockResponseBody)) - { - updateParameters.PolicySettings.CustomBlockResponseBody = CustomBlockResponseBody == null ? CustomBlockResponseBody : Convert.ToBase64String(Encoding.UTF8.GetBytes(CustomBlockResponseBody)); - } - - if (this.IsParameterBound(c => c.CustomBlockResponseStatusCode)) - { - updateParameters.PolicySettings.CustomBlockResponseStatusCode = CustomBlockResponseStatusCode; - } - - if (this.IsParameterBound(c => c.RedirectUrl)) - { - updateParameters.PolicySettings.RedirectUrl = RedirectUrl; - } - - if (this.IsParameterBound(c => c.RequestBodyCheck)) - { - updateParameters.PolicySettings.RequestBodyCheck = RequestBodyCheck; - } - - if (this.IsParameterBound(c => c.JavascriptChallengeExpirationInMinutes)) - { - if (JavascriptChallengeExpirationInMinutes != null) - { - updateParameters.PolicySettings.JavascriptChallengeExpirationInMinutes = JavascriptChallengeExpirationInMinutes; - } - } - - if (this.IsParameterBound(c => c.CaptchaExpirationInMinutes)) - { - if (CaptchaExpirationInMinutes != null) - { - updateParameters.PolicySettings.CaptchaExpirationInMinutes = CaptchaExpirationInMinutes; - } - } - - if (this.IsParameterBound(c => c.LogScrubbingSetting)) - { - var scrubbingRule = new List(); - - if (LogScrubbingSetting == null || LogScrubbingSetting.ScrubbingRule == null) - { - updateParameters.PolicySettings.LogScrubbing = null; - } - else if (LogScrubbingSetting.ScrubbingRule.Count() > 0) - { - foreach (var item in LogScrubbingSetting.ScrubbingRule) - { - scrubbingRule.Add(new Management.FrontDoor.Models.WebApplicationFirewallScrubbingRules( - matchVariable: item.MatchVariable, - selectorMatchOperator: item.SelectorMatchOperator, - selector: item.Selector, - state: item.State)); - } - updateParameters.PolicySettings.LogScrubbing = new Management.FrontDoor.Models.PolicySettingsLogScrubbing - { - ScrubbingRules = scrubbingRule, - State = LogScrubbingSetting.State, - }; - } - } - - if (ShouldProcess(Resources.WebApplicationFirewallPolicyTarget, string.Format(Resources.WebApplicationFirewallPolicyChangeWarning, Name))) - { - try - { - var policy = FrontDoorManagementClient.Policies.CreateOrUpdate( - ResourceGroupName, - Name, - updateParameters - ); - WriteObject(policy.ToPSPolicy()); - } - catch (Microsoft.Azure.Management.FrontDoor.Models.ErrorResponseException e) - { - throw new PSArgumentException(string.Format( - Resources.Error_ErrorResponseFromServer, - e.Response.Content)); - } - } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Common/AzureFrontDoorCmdletBase.cs b/src/FrontDoor/FrontDoor/Common/AzureFrontDoorCmdletBase.cs deleted file mode 100644 index f40e19fc4bfd..000000000000 --- a/src/FrontDoor/FrontDoor/Common/AzureFrontDoorCmdletBase.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.Common.Authentication; -using Microsoft.Azure.Commands.Common.Authentication.Abstractions; -using Microsoft.Azure.Commands.ResourceManager.Common; -using Microsoft.Azure.Management.FrontDoor; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Common -{ - /// - /// Base class of Azure Front Door Cmdlet. - /// - public class AzureFrontDoorCmdletBase : AzureRMCmdlet - { - private IFrontDoor _frontDoorManagementClient; - - private Dictionary> _defaultRequestHeaders; - - public const string ObjectParameterSet = "ByObjectParameterSet"; - public const string FieldsParameterSet = "ByFieldsParameterSet"; - public const string ResourceIdParameterSet = "ByResourceIdParameterSet"; - public const string FieldsWithVaultParameterSet = "ByFieldsWithVaultParameterSet"; - public const string ResourceIdWithVaultParameterSet = "ByResourceIdWithVaultParameterSet"; - public const string ObjectWithVaultParameterSet = "ByObjectWithVaultParameterSet"; - public const string FieldsWithRegularActionParameterSet = "ByFieldsWithRegularActionParameterSet"; - public const string FieldsWithForwardingParameterSet = "ByFieldsWithForwardingParameterSet"; - public const string FieldsWithRedirectParameterSet = "ByFieldsWithRedirectParameterSet"; - public const string FieldsWithBackendPoolsSettingParameterSet = "ByFieldsWithBackendPoolsSettingParameterSet"; - public const string ObjectWithBackendPoolsSettingParameterSet = "ByObjectWithBackendPoolsSettingParameterSet"; - public const string ResourceIdWithBackendPoolsSettingParameterSet = "ByResourceIdWithBackendPoolsSettingParameterSet"; - public const string FieldsWithCertificateNameCheckParameterSet = "ByFieldsWithCertificateNameCheckParameterSet"; - public const string ObjectWithCertificateNameCheckParameterSet = "ByObjectWithCertificateNameCheckParameterSet"; - public const string ResourceIdWithCertificateNameCheckParameterSet = "ByResourceIdWithCertificateNameCheckParameterSet"; - - /// - /// Gets or sets the Front Door management client. - /// - public IFrontDoor FrontDoorManagementClient - { - get - { - return _frontDoorManagementClient ?? - (_frontDoorManagementClient = - AzureSession.Instance.ClientFactory.CreateArmClient(DefaultProfile.DefaultContext, - AzureEnvironment.Endpoint.ResourceManager)); - } - set { _frontDoorManagementClient = value; } - } - - /// - /// Gets or sets the default headers send with rest requests. - /// - public Dictionary> DefaultRequestHeaders - { - get - { - return _defaultRequestHeaders ?? - (_defaultRequestHeaders = - new Dictionary> { { "UserAgent", new List { "PowerShell" } } }); - } - set { _defaultRequestHeaders = value; } - } - } -} diff --git a/src/FrontDoor/FrontDoor/Helpers/ModelExtensions.cs b/src/FrontDoor/FrontDoor/Helpers/ModelExtensions.cs deleted file mode 100644 index 656003a9eb3a..000000000000 --- a/src/FrontDoor/FrontDoor/Helpers/ModelExtensions.cs +++ /dev/null @@ -1,935 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.FrontDoor.Models; -using Microsoft.Azure.Management.FrontDoor.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Text; -using sdkAzManagedRuleExclusion = Microsoft.Azure.Management.FrontDoor.Models.ManagedRuleExclusion; -using sdkAzManagedRuleGroupOverride = Microsoft.Azure.Management.FrontDoor.Models.ManagedRuleGroupOverride; -using sdkAzManagedRuleOverride = Microsoft.Azure.Management.FrontDoor.Models.ManagedRuleOverride; -using SdkBackend = Microsoft.Azure.Management.FrontDoor.Models.Backend; -using SdkBackendPool = Microsoft.Azure.Management.FrontDoor.Models.BackendPool; -using SdkBackendPoolsSettings = Microsoft.Azure.Management.FrontDoor.Models.BackendPoolsSettings; -using SdkCacheConfiguration = Microsoft.Azure.Management.FrontDoor.Models.CacheConfiguration; -using SdkCustomRuleGroupByVariable = Microsoft.Azure.Management.FrontDoor.Models.GroupByVariable; -using SdkCustomRule = Microsoft.Azure.Management.FrontDoor.Models.CustomRule; -using SdkCustomRuleList = Microsoft.Azure.Management.FrontDoor.Models.CustomRuleList; -using SdkLogScrubbingSetting = Microsoft.Azure.Management.FrontDoor.Models.PolicySettingsLogScrubbing; -using SdkLogScrubbingRule = Microsoft.Azure.Management.FrontDoor.Models.WebApplicationFirewallScrubbingRules; -using SdkFirewallPolicy = Microsoft.Azure.Management.FrontDoor.Models.WebApplicationFirewallPolicy; -using SdkForwardingConfiguration = Microsoft.Azure.Management.FrontDoor.Models.ForwardingConfiguration; -using SdkFrontDoor = Microsoft.Azure.Management.FrontDoor.Models.FrontDoorModel; -using SdkFrontendEndpoint = Microsoft.Azure.Management.FrontDoor.Models.FrontendEndpoint; -using SdkFWPolicyLink = Microsoft.Azure.Management.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink; -using SdkHealthProbeSetting = Microsoft.Azure.Management.FrontDoor.Models.HealthProbeSettingsModel; -using SdkHttpsConfig = Microsoft.Azure.Management.FrontDoor.Models.CustomHttpsConfiguration; -using SdkLoadBalancingSetting = Microsoft.Azure.Management.FrontDoor.Models.LoadBalancingSettingsModel; -using SdkManagedRule = Microsoft.Azure.Management.FrontDoor.Models.ManagedRuleSet; -using SdkManagedRuleDefinition = Microsoft.Azure.Management.FrontDoor.Models.ManagedRuleDefinition; -using SdkManagedRuleGroupDefinition = Microsoft.Azure.Management.FrontDoor.Models.ManagedRuleGroupDefinition; -using SdkManagedRuleList = Microsoft.Azure.Management.FrontDoor.Models.ManagedRuleSetList; -using SdkManagedRuleSetDefinition = Microsoft.Azure.Management.FrontDoor.Models.ManagedRuleSetDefinition; -using sdkMatchCondition = Microsoft.Azure.Management.FrontDoor.Models.MatchCondition; -using sdkPolicySetting = Microsoft.Azure.Management.FrontDoor.Models.PolicySettings; -using SdkRedirectConfiguration = Microsoft.Azure.Management.FrontDoor.Models.RedirectConfiguration; -using SdkRefId = Microsoft.Azure.Management.FrontDoor.Models.SubResource; -using SdkRouteConfiguration = Microsoft.Azure.Management.FrontDoor.Models.RouteConfiguration; -using SdkRoutingRule = Microsoft.Azure.Management.FrontDoor.Models.RoutingRule; -using SdkRulesEngine = Microsoft.Azure.Management.FrontDoor.Models.RulesEngine; -using SdkRulesEngineRule = Microsoft.Azure.Management.FrontDoor.Models.RulesEngineRule; -using SdkVault = Microsoft.Azure.Management.FrontDoor.Models.KeyVaultCertificateSourceParametersVault; - -namespace Microsoft.Azure.Commands.FrontDoor.Helpers -{ - public static class ModelExtensions - { - public static TToEnum CastEnum(this TFromEnum fromEnum) - { - return (TToEnum)Enum.Parse(typeof(TToEnum), fromEnum.ToString()); - } - - public static SdkFrontDoor ToSdkFrontDoor(this PSFrontDoor psFrontDoor) - { - return new SdkFrontDoor( - name: psFrontDoor.Name, - location: "global", - tags: psFrontDoor.Tags.ToDictionaryTags(), - friendlyName: psFrontDoor.FriendlyName, - routingRules: psFrontDoor.RoutingRules?.Select(x => x.ToSdkRoutingRule()).ToList(), - loadBalancingSettings: psFrontDoor.LoadBalancingSettings?.Select(x => x.ToSdkLoadBalancingSetting()).ToList(), - healthProbeSettings: psFrontDoor.HealthProbeSettings?.Select(x => x.ToSdkHealthProbeSetting()).ToList(), - backendPools: psFrontDoor.BackendPools?.Select(x => x.ToSdkBackendPool()).ToList(), - frontendEndpoints: psFrontDoor.FrontendEndpoints?.Select(x => x.ToSdkFrontendEndpoints()).ToList(), - enabledState: psFrontDoor.EnabledState.ToString(), - backendPoolsSettings: psFrontDoor.BackendPoolsSetting.ToSdkBackendPoolsSettings() - // Rule Engine should not be allowed to be updated here - ); - } - public static PSFrontDoor ToPSFrontDoor(this SdkFrontDoor sdkFrontDoor) - { - return new PSFrontDoor - { - Id = sdkFrontDoor.Id, - Name = sdkFrontDoor.Name, - Type = sdkFrontDoor.Type, - Tags = sdkFrontDoor.Tags.ToHashTableTags(), - FriendlyName = sdkFrontDoor.FriendlyName, - FrontDoorId = sdkFrontDoor.FrontdoorId, - RoutingRules = sdkFrontDoor.RoutingRules?.Select(x => x.ToPSRoutingRule()).ToList(), - BackendPools = sdkFrontDoor.BackendPools?.Select(x => x.ToPSBackendPool()).ToList(), - HealthProbeSettings = sdkFrontDoor.HealthProbeSettings?.Select(x => x.ToPSHealthProbeSetting()).ToList(), - LoadBalancingSettings = sdkFrontDoor.LoadBalancingSettings?.Select(x => x.ToPSLoadBalancingSetting()).ToList(), - FrontendEndpoints = sdkFrontDoor.FrontendEndpoints?.Select(x => x.ToPSFrontendEndpoints()).ToList(), - EnabledState = sdkFrontDoor.EnabledState == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkFrontDoor.EnabledState), - ResourceState = sdkFrontDoor.ResourceState, - ProvisioningState = sdkFrontDoor.ProvisioningState, - BackendPoolsSetting = sdkFrontDoor.BackendPoolsSettings?.ToPSBackendPoolsSetting(), - // PSFrontDoor parameter EnforceCertificateNameCheck is no longer actively used, in favor of BackendPoolsSetting which - // encapsulates this property. However, for backwards compability, we set this field so that it is still displayed to users. - EnforceCertificateNameCheck = sdkFrontDoor.BackendPoolsSettings == null - ? (PSEnforceCertificateNameCheck?)null - : (PSEnforceCertificateNameCheck)Enum.Parse(typeof(PSEnforceCertificateNameCheck), sdkFrontDoor.BackendPoolsSettings.EnforceCertificateNameCheck), - RulesEngine = sdkFrontDoor.RulesEngines?.Select(x => x.ToPSRulesEngine()).ToList() - }; - } - - private static PSRouteConfiguration ToPSRouteConfiguration(this SdkRouteConfiguration sdkRouteConfiguration) - { - if (sdkRouteConfiguration is SdkForwardingConfiguration) - { - var SDKForwardingConfiguration = sdkRouteConfiguration as SdkForwardingConfiguration; - return new PSForwardingConfiguration - { - CustomForwardingPath = SDKForwardingConfiguration.CustomForwardingPath, - ForwardingProtocol = SDKForwardingConfiguration.ForwardingProtocol, - BackendPoolId = SDKForwardingConfiguration.BackendPool?.Id, - EnableCaching = SDKForwardingConfiguration.CacheConfiguration != null, - QueryParameterStripDirective = SDKForwardingConfiguration.CacheConfiguration?.QueryParameterStripDirective, - QueryParameters = SDKForwardingConfiguration.CacheConfiguration?.QueryParameters, - CacheDuration = SDKForwardingConfiguration.CacheConfiguration?.CacheDuration, - DynamicCompression = SDKForwardingConfiguration.CacheConfiguration?.DynamicCompression == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), SDKForwardingConfiguration.CacheConfiguration.DynamicCompression) - }; - } - else if (sdkRouteConfiguration is SdkRedirectConfiguration) - { - var SDKRedirectConfiguration = sdkRouteConfiguration as SdkRedirectConfiguration; - return new PSRedirectConfiguration - { - RedirectType = SDKRedirectConfiguration.RedirectType, - RedirectProtocol = SDKRedirectConfiguration.RedirectProtocol, - CustomHost = SDKRedirectConfiguration.CustomHost, - CustomPath = SDKRedirectConfiguration.CustomPath, - CustomFragment = SDKRedirectConfiguration.CustomFragment, - CustomQueryString = SDKRedirectConfiguration.CustomQueryString - }; - } - - return null; - } - - private static SdkRouteConfiguration ToSdkRouteConfiguration(this PSRouteConfiguration psRoutingConfiguration) - { - if (psRoutingConfiguration is PSForwardingConfiguration) - { - var psForwardingConfiguration = psRoutingConfiguration as PSForwardingConfiguration; - return new SdkForwardingConfiguration - { - CustomForwardingPath = psForwardingConfiguration.CustomForwardingPath, - ForwardingProtocol = psForwardingConfiguration.ForwardingProtocol, - BackendPool = new SdkRefId(psForwardingConfiguration.BackendPoolId), - CacheConfiguration = psForwardingConfiguration.EnableCaching ? new SdkCacheConfiguration(psForwardingConfiguration.QueryParameterStripDirective, - psForwardingConfiguration.QueryParameters, - psForwardingConfiguration.DynamicCompression?.ToString(), - psForwardingConfiguration.CacheDuration) : null - }; - } - else if (psRoutingConfiguration is PSRedirectConfiguration) - { - var psRedirectConfiguration = psRoutingConfiguration as PSRedirectConfiguration; - return new SdkRedirectConfiguration - { - RedirectType = psRedirectConfiguration.RedirectType, - RedirectProtocol = psRedirectConfiguration.RedirectProtocol, - CustomHost = psRedirectConfiguration.CustomHost, - CustomPath = psRedirectConfiguration.CustomPath, - CustomFragment = psRedirectConfiguration.CustomFragment, - CustomQueryString = psRedirectConfiguration.CustomQueryString - }; - } - - return null; - } - - public static PSRoutingRule ToPSRoutingRule(this SdkRoutingRule sdkRoutingRule) - { - return new PSRoutingRule - { - Name = sdkRoutingRule.Name, - Type = sdkRoutingRule.Type, - AcceptedProtocols = sdkRoutingRule.AcceptedProtocols?.Select(x => (PSProtocol)Enum.Parse(typeof(PSProtocol), x)).ToList(), - PatternsToMatch = sdkRoutingRule.PatternsToMatch?.ToList(), - FrontendEndpointIds = sdkRoutingRule.FrontendEndpoints?.Select(x => x.Id).ToList(), - RouteConfiguration = ToPSRouteConfiguration(sdkRoutingRule.RouteConfiguration), - EnabledState = sdkRoutingRule.EnabledState == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkRoutingRule.EnabledState), - RulesEngineId = sdkRoutingRule.RulesEngine?.Id - }; - } - public static SdkRoutingRule ToSdkRoutingRule(this PSRoutingRule psRoutingRule) - { - return new SdkRoutingRule - ( - frontendEndpoints: psRoutingRule.FrontendEndpointIds?.Select(x => new SdkRefId(x)).ToList(), - acceptedProtocols: psRoutingRule.AcceptedProtocols?.Select(x => x.ToString()).ToList(), - patternsToMatch: psRoutingRule.PatternsToMatch, - routeConfiguration: ToSdkRouteConfiguration(psRoutingRule.RouteConfiguration), - name: psRoutingRule.Name, - enabledState: psRoutingRule.EnabledState.ToString(), - rulesEngine: string.IsNullOrWhiteSpace(psRoutingRule.RulesEngineId) ? null : new SdkRefId(psRoutingRule.RulesEngineId) - ); - } - - public static PSRulesEngineRule ToPSRulesEngineRule(this SdkRulesEngineRule sdkRulesEngineRule) - { - return new PSRulesEngineRule - { - Name = sdkRulesEngineRule.Name, - Priority = sdkRulesEngineRule.Priority, - Action = ToPSRulesEngineAction(sdkRulesEngineRule.Action), - MatchProcessingBehavior = sdkRulesEngineRule.MatchProcessingBehavior == null - ? PSMatchProcessingBehavior.Continue - : (PSMatchProcessingBehavior)Enum.Parse(typeof(PSMatchProcessingBehavior), sdkRulesEngineRule.MatchProcessingBehavior), - MatchConditions = sdkRulesEngineRule.MatchConditions?.Select(x => ToPSRulesEngineMatchCondition(x)).ToList(), - }; - } - - public static SdkRulesEngineRule ToSdkRulesEngineRule(this PSRulesEngineRule psRulesEngineRule) - { - return new SdkRulesEngineRule - ( - name: psRulesEngineRule.Name, - priority: psRulesEngineRule.Priority, - action: ToSdkRulesEngineAction(psRulesEngineRule.Action), - matchConditions: psRulesEngineRule.MatchConditions?.Select(x => ToSdkMatchcondition(x)).ToList(), - matchProcessingBehavior: psRulesEngineRule.MatchProcessingBehavior.ToString() - ); - } - - public static PSRulesEngineAction ToPSRulesEngineAction(RulesEngineAction sdkRulesEngineAction) - { - return new PSRulesEngineAction - { - RequestHeaderActions = sdkRulesEngineAction.RequestHeaderActions? - .Select(x => ToPSHeaderAction(x)) - .ToList(), - ResponseHeaderActions = sdkRulesEngineAction.ResponseHeaderActions? - .Select(x => ToPSHeaderAction(x)) - .ToList(), - RouteConfigurationOverride = ToPSRouteConfiguration(sdkRulesEngineAction.RouteConfigurationOverride) - }; - } - - public static RulesEngineAction ToSdkRulesEngineAction(PSRulesEngineAction psRulesEngineAction) - { - return new RulesEngineAction - ( - requestHeaderActions: psRulesEngineAction.RequestHeaderActions? - .Select(x => ToSdkHeaderAction(x)) - .ToList(), - responseHeaderActions: psRulesEngineAction.ResponseHeaderActions? - .Select(x => ToSdkHeaderAction(x)) - .ToList(), - routeConfigurationOverride: ToSdkRouteConfiguration(psRulesEngineAction.RouteConfigurationOverride) - ); - } - - public static PSHeaderAction ToPSHeaderAction(HeaderAction sdkHeaderAction) - { - return new PSHeaderAction - { - HeaderName = sdkHeaderAction.HeaderName, - HeaderActionType = (PSHeaderActionType)Enum.Parse(typeof(PSHeaderActionType), sdkHeaderAction.HeaderActionType), - Value = sdkHeaderAction.Value - }; - } - - public static HeaderAction ToSdkHeaderAction(PSHeaderAction psHeaderAction) - { - return new HeaderAction - ( - headerActionType: psHeaderAction.HeaderActionType.ToString(), - headerName: psHeaderAction.HeaderName, - value: psHeaderAction.Value - ); - } - - public static PSRulesEngineMatchCondition ToPSRulesEngineMatchCondition(RulesEngineMatchCondition sdkMatchCondition) - { - return new PSRulesEngineMatchCondition - { - RulesEngineMatchVariable = (PSRulesEngineMatchVariable)Enum.Parse(typeof(PSRulesEngineMatchVariable), sdkMatchCondition.RulesEngineMatchVariable), - RulesEngineMatchValue = sdkMatchCondition.RulesEngineMatchValue.ToList(), - Selector = sdkMatchCondition.Selector, - RulesEngineOperator = (PSRulesEngineOperator)Enum.Parse(typeof(PSRulesEngineOperator), sdkMatchCondition.RulesEngineOperator), - NegateCondition = sdkMatchCondition.NegateCondition, - Transforms = sdkMatchCondition.Transforms?.Select(x => (PSTransform)Enum.Parse(typeof(PSTransform), x.ToString())).ToList() - }; - } - - public static RulesEngineMatchCondition ToSdkMatchcondition(PSRulesEngineMatchCondition psRulesEngineMatchCondition) - { - return new RulesEngineMatchCondition - ( - rulesEngineMatchVariable: psRulesEngineMatchCondition.RulesEngineMatchVariable.ToString(), - rulesEngineOperator: psRulesEngineMatchCondition.RulesEngineOperator.ToString(), - rulesEngineMatchValue: psRulesEngineMatchCondition.RulesEngineMatchValue, - selector: psRulesEngineMatchCondition.Selector, - negateCondition: psRulesEngineMatchCondition.NegateCondition, - transforms: psRulesEngineMatchCondition.Transforms?.Select(x => x.ToString()).ToList() - ); - } - - public static PSRulesEngine ToPSRulesEngine(this SdkRulesEngine sdkRulesEngine) - { - return new PSRulesEngine - { - Id = sdkRulesEngine.Id, - Name = sdkRulesEngine.Name, - RulesEngineRules = sdkRulesEngine.Rules?.Select(x => ToPSRulesEngineRule(x)).ToList() - }; - } - - public static SdkRulesEngine ToSdkRulesEngine(this PSRulesEngine psRulesEngine) - { - return new SdkRulesEngine - ( - rules: psRulesEngine.RulesEngineRules?.Select(x => ToSdkRulesEngineRule(x)).ToList() - ); - } - - public static PSBackend ToPSBackend(this SdkBackend sdkBackend) - { - return new PSBackend - { - Address = sdkBackend.Address, - HttpPort = sdkBackend.HttpPort, - HttpsPort = sdkBackend.HttpsPort, - EnabledState = sdkBackend.EnabledState == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkBackend.EnabledState), - Priority = sdkBackend.Priority, - Weight = sdkBackend.Weight, - BackendHostHeader = sdkBackend.BackendHostHeader, - PrivateLinkAlias = sdkBackend.PrivateLinkAlias, - PrivateLinkResourceId = sdkBackend.PrivateLinkResourceId, - PrivateLinkLocation = sdkBackend.PrivateLinkLocation, - PrivateEndpointStatus = sdkBackend.PrivateEndpointStatus == null ? - (PSPrivateEndpointStatus?)null : - (PSPrivateEndpointStatus)Enum.Parse(typeof(PSPrivateEndpointStatus), sdkBackend.PrivateEndpointStatus.ToString()), - PrivateLinkApprovalMessage = sdkBackend.PrivateLinkApprovalMessage - }; - } - public static SdkBackend ToSdkBackend(this PSBackend psBackend) - { - return new SdkBackend( - address: psBackend.Address, - httpPort: psBackend.HttpPort, - httpsPort: psBackend.HttpsPort, - enabledState: psBackend.EnabledState.ToString(), - priority: psBackend.Priority, - weight: psBackend.Weight, - backendHostHeader: psBackend.BackendHostHeader, - privateLinkAlias: psBackend.PrivateLinkAlias, - privateLinkResourceId: psBackend.PrivateLinkResourceId, - privateLinkLocation: psBackend.PrivateLinkLocation, - privateEndpointStatus: psBackend.PrivateEndpointStatus?.ToString(), - privateLinkApprovalMessage: psBackend.PrivateLinkApprovalMessage - ); - } - public static PSBackendPool ToPSBackendPool(this SdkBackendPool sdkBackendPool) - { - return new PSBackendPool - { - Id = sdkBackendPool.Id, - Type = sdkBackendPool.Type, - Name = sdkBackendPool.Name, - LoadBalancingSettingRef = sdkBackendPool.LoadBalancingSettings.Id, - HealthProbeSettingRef = sdkBackendPool.HealthProbeSettings.Id, - ResourceState = sdkBackendPool.ResourceState, - Backends = sdkBackendPool.Backends?.Select(x => x.ToPSBackend()).ToList() - - }; - } - - public static SdkBackendPool ToSdkBackendPool(this PSBackendPool psBackendPool) - { - return new SdkBackendPool( - backends: psBackendPool.Backends?.Select(x => x.ToSdkBackend()).ToList(), - loadBalancingSettings: new SdkRefId(psBackendPool.LoadBalancingSettingRef), - healthProbeSettings: new SdkRefId(psBackendPool.HealthProbeSettingRef), - name: psBackendPool.Name - ); - } - - public static PSBackendPoolsSetting ToPSBackendPoolsSetting(this SdkBackendPoolsSettings sdkBackendPoolsSettings) - { - return new PSBackendPoolsSetting - { - EnforceCertificateNameCheck = sdkBackendPoolsSettings.EnforceCertificateNameCheck == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkBackendPoolsSettings.EnforceCertificateNameCheck), - SendRecvTimeoutInSeconds = sdkBackendPoolsSettings.SendRecvTimeoutSeconds - }; - } - - public static SdkBackendPoolsSettings ToSdkBackendPoolsSettings(this PSBackendPoolsSetting psBackendPoolsSetting) - { - return new SdkBackendPoolsSettings( - enforceCertificateNameCheck: psBackendPoolsSetting.EnforceCertificateNameCheck?.ToString(), - sendRecvTimeoutSeconds: psBackendPoolsSetting.SendRecvTimeoutInSeconds - ); - } - - public static PSHealthProbeSetting ToPSHealthProbeSetting(this SdkHealthProbeSetting sdkHealthProbeSetting) - { - return new PSHealthProbeSetting - { - Id = sdkHealthProbeSetting.Id, - Name = sdkHealthProbeSetting.Name, - Type = sdkHealthProbeSetting.Type, - Path = sdkHealthProbeSetting.Path, - Protocol = sdkHealthProbeSetting.Protocol == null ? (PSProtocol?)null : (PSProtocol)Enum.Parse(typeof(PSProtocol), sdkHealthProbeSetting.Protocol), - IntervalInSeconds = sdkHealthProbeSetting.IntervalInSeconds, - ResourceState = sdkHealthProbeSetting.ResourceState, - HealthProbeMethod = sdkHealthProbeSetting.HealthProbeMethod, - EnabledState = string.IsNullOrEmpty(sdkHealthProbeSetting.EnabledState) ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkHealthProbeSetting.EnabledState) - }; - } - - public static SdkHealthProbeSetting ToSdkHealthProbeSetting(this PSHealthProbeSetting psHealthProbeSetting) - { - return new SdkHealthProbeSetting( - path: psHealthProbeSetting.Path, - protocol: psHealthProbeSetting.Protocol.ToString(), - intervalInSeconds: psHealthProbeSetting.IntervalInSeconds, - name: psHealthProbeSetting.Name, - healthProbeMethod: psHealthProbeSetting.HealthProbeMethod, - enabledState: psHealthProbeSetting.EnabledState.ToString() - ); - } - - public static PSLoadBalancingSetting ToPSLoadBalancingSetting(this SdkLoadBalancingSetting sdkLoadBalancingSetting) - { - return new PSLoadBalancingSetting - { - Id = sdkLoadBalancingSetting.Id, - SampleSize = sdkLoadBalancingSetting.SampleSize, - SuccessfulSamplesRequired = sdkLoadBalancingSetting.SuccessfulSamplesRequired, - AdditionalLatencyMilliseconds = sdkLoadBalancingSetting.AdditionalLatencyMilliseconds, - ResourceState = sdkLoadBalancingSetting.ResourceState, - Name = sdkLoadBalancingSetting.Name, - Type = sdkLoadBalancingSetting.Type - }; - } - - public static SdkLoadBalancingSetting ToSdkLoadBalancingSetting(this PSLoadBalancingSetting psLoadBalancingSetting) - { - return new SdkLoadBalancingSetting - ( - sampleSize: psLoadBalancingSetting.SampleSize, - successfulSamplesRequired: psLoadBalancingSetting.SuccessfulSamplesRequired, - additionalLatencyMilliseconds: psLoadBalancingSetting.AdditionalLatencyMilliseconds, - name: psLoadBalancingSetting.Name - ); - } - - public static SdkFrontendEndpoint ToSdkFrontendEndpoints(this PSFrontendEndpoint psFrontendEndpoint) - { - SdkHttpsConfig customHttpsConfiguration = null; - if ((psFrontendEndpoint.CertificateSource != null) || - !String.IsNullOrEmpty(psFrontendEndpoint.MinimumTlsVersion) || - !String.IsNullOrEmpty(psFrontendEndpoint.Vault) || - !String.IsNullOrEmpty(psFrontendEndpoint.SecretName) || - !String.IsNullOrEmpty(psFrontendEndpoint.SecretVersion) || - !String.IsNullOrEmpty(psFrontendEndpoint.CertificateType)) - { - customHttpsConfiguration = new SdkHttpsConfig(psFrontendEndpoint.CertificateSource, - psFrontendEndpoint.MinimumTlsVersion, - new SdkVault(psFrontendEndpoint.Vault), - psFrontendEndpoint.SecretName, - psFrontendEndpoint.SecretVersion, - psFrontendEndpoint.CertificateType); - } - - return new SdkFrontendEndpoint - ( - hostName: psFrontendEndpoint.HostName, - sessionAffinityEnabledState: psFrontendEndpoint.SessionAffinityEnabledState.ToString(), - sessionAffinityTtlSeconds: psFrontendEndpoint.SessionAffinityTtlSeconds, - webApplicationFirewallPolicyLink: psFrontendEndpoint.WebApplicationFirewallPolicyLink == null ? null : new SdkFWPolicyLink(psFrontendEndpoint.WebApplicationFirewallPolicyLink), - customHttpsConfiguration: customHttpsConfiguration, - name: psFrontendEndpoint.Name - ); - } - - public static PSFrontendEndpoint ToPSFrontendEndpoints(this SdkFrontendEndpoint sdkFrontendEndpoint) - { - return new PSFrontendEndpoint - { - Id = sdkFrontendEndpoint.Id, - HostName = sdkFrontendEndpoint.HostName, - SessionAffinityEnabledState = sdkFrontendEndpoint.SessionAffinityEnabledState == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkFrontendEndpoint.SessionAffinityEnabledState), - SessionAffinityTtlSeconds = sdkFrontendEndpoint.SessionAffinityTtlSeconds, - WebApplicationFirewallPolicyLink = sdkFrontendEndpoint.WebApplicationFirewallPolicyLink?.Id, - ResourceState = sdkFrontendEndpoint.ResourceState, - CustomHttpsProvisioningState = sdkFrontendEndpoint.CustomHttpsProvisioningState == null ? - (PSCustomHttpsProvisioningState?)null : (PSCustomHttpsProvisioningState)Enum.Parse(typeof(PSCustomHttpsProvisioningState), sdkFrontendEndpoint.CustomHttpsProvisioningState), - CustomHttpsProvisioningSubstate = sdkFrontendEndpoint.CustomHttpsProvisioningSubstate == null ? - (PSCustomHttpsProvisioningSubstate?)null : (PSCustomHttpsProvisioningSubstate)Enum.Parse(typeof(PSCustomHttpsProvisioningSubstate), sdkFrontendEndpoint.CustomHttpsProvisioningSubstate), - CertificateSource = sdkFrontendEndpoint.CustomHttpsConfiguration?.CertificateSource, - MinimumTlsVersion = sdkFrontendEndpoint.CustomHttpsConfiguration?.MinimumTlsVersion, - Vault = sdkFrontendEndpoint.CustomHttpsConfiguration?.Vault?.Id, - SecretName = sdkFrontendEndpoint.CustomHttpsConfiguration?.SecretName, - SecretVersion = sdkFrontendEndpoint.CustomHttpsConfiguration?.SecretVersion, - CertificateType = sdkFrontendEndpoint.CustomHttpsConfiguration?.CertificateType, - Name = sdkFrontendEndpoint.Name, - Type = sdkFrontendEndpoint.Type - }; - } - - public static PSFrontDoorWafCustomRuleGroupByVariable ToPSFrontDoorWafCustomRuleGroupByVariable(this SdkCustomRuleGroupByVariable sdkCustomRuleGroupByVariable) - { - return new PSFrontDoorWafCustomRuleGroupByVariable { VariableName = sdkCustomRuleGroupByVariable.VariableName, }; - } - - public static PSCustomRule ToPSCustomRule(this SdkCustomRule sdkRule) - { - return new PSCustomRule - { - RateLimitDurationInMinutes = sdkRule.RateLimitDurationInMinutes, - RateLimitThreshold = sdkRule.RateLimitThreshold, - Name = sdkRule.Name, - Action = sdkRule.Action, - RuleType = sdkRule.RuleType, - Priority = sdkRule.Priority, - MatchConditions = sdkRule.MatchConditions?.Select(x => x.ToPSMatchCondition()).ToList(), - EnabledState = sdkRule.EnabledState, - CustomRule = sdkRule.GroupBy?.Select(x => x.ToPSFrontDoorWafCustomRuleGroupByVariable()).ToArray(), - }; - } - - public static PSAzureRuleGroupOverride ToPSAzRuleGroupOverride(this sdkAzManagedRuleGroupOverride sdkAzOverride) - { - return new PSAzureRuleGroupOverride() - { - RuleGroupName = sdkAzOverride.RuleGroupName, - ManagedRuleOverrides = sdkAzOverride.Rules?.Select(ruleOverride => - { - return new PSAzureManagedRuleOverride() - { - Action = ruleOverride.Action, - EnabledState = ruleOverride.EnabledState == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), ruleOverride.EnabledState), - RuleId = ruleOverride.RuleId, - Exclusions = ruleOverride.Exclusions?.Select(exclusion => exclusion.ToPSAzManagedRuleExclusion()).ToList() - }; - }).ToList(), - Exclusions = sdkAzOverride.Exclusions?.Select(exclusion => exclusion.ToPSAzManagedRuleExclusion()).ToList() - }; - } - - public static PSManagedRuleExclusion ToPSAzManagedRuleExclusion(this sdkAzManagedRuleExclusion sdkAzExclusion) - { - return new PSManagedRuleExclusion() - { - MatchVariable = sdkAzExclusion.MatchVariable, - Selector = sdkAzExclusion.Selector, - SelectorMatchOperator = sdkAzExclusion.SelectorMatchOperator - }; - } - - public static PSManagedRule ToPSManagedRule(this SdkManagedRule sdkRule) - { - return new PSAzureManagedRule - { - RuleSetType = sdkRule.RuleSetType, - RuleSetVersion = sdkRule.RuleSetVersion, - RuleGroupOverrides = sdkRule.RuleGroupOverrides?.Select(ruleGroupOverride => ruleGroupOverride.ToPSAzRuleGroupOverride()).ToList(), - Exclusions = sdkRule.Exclusions?.Select(exclusion => exclusion.ToPSAzManagedRuleExclusion()).ToList(), - RuleSetAction = sdkRule.RuleSetAction - }; - } - - public static PSFrontDoorWafLogScrubbingRule ToPSFrontDoorWafLogScrubbingRule(this SdkLogScrubbingRule sdkLogScrubbingRule) - { - return new PSFrontDoorWafLogScrubbingRule - { - MatchVariable = sdkLogScrubbingRule.MatchVariable, - State = sdkLogScrubbingRule.State, - Selector = sdkLogScrubbingRule.Selector, - SelectorMatchOperator = sdkLogScrubbingRule?.SelectorMatchOperator, - }; - } - - public static PSFrontDoorWafLogScrubbingSetting ToPSFrontDoorWafLogScrubbingSetting(this SdkLogScrubbingSetting sdkLogScrubbingSetting) - { - return new PSFrontDoorWafLogScrubbingSetting - { - ScrubbingRule = sdkLogScrubbingSetting.ScrubbingRules?.Select(x => x.ToPSFrontDoorWafLogScrubbingRule()).ToArray(), - State = sdkLogScrubbingSetting.State, - }; - } - - public static PSPolicy ToPSPolicy(this SdkFirewallPolicy sdkPolicy) - { - return new PSPolicy - { - Name = sdkPolicy.Name, - Id = sdkPolicy.Id, - PolicyEnabledState = sdkPolicy.PolicySettings == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkPolicy.PolicySettings.EnabledState), - PolicyMode = sdkPolicy.PolicySettings?.Mode, - CustomRules = sdkPolicy.CustomRules?.Rules?.Select(x => x.ToPSCustomRule()).ToList(), - ManagedRules = sdkPolicy.ManagedRules?.ManagedRuleSets?.Select(x => x.ToPSManagedRule()).ToList(), - Etag = sdkPolicy.Etag, - ProvisioningState = sdkPolicy.ProvisioningState, - CustomBlockResponseBody = sdkPolicy.PolicySettings?.CustomBlockResponseBody == null ? null : Encoding.UTF8.GetString(Convert.FromBase64String(sdkPolicy.PolicySettings?.CustomBlockResponseBody)), - CustomBlockResponseStatusCode = (ushort?)sdkPolicy.PolicySettings?.CustomBlockResponseStatusCode, - RedirectUrl = sdkPolicy.PolicySettings?.RedirectUrl, - RequestBodyCheck = sdkPolicy.PolicySettings?.RequestBodyCheck == null ? (PSEnabledState?)null : (PSEnabledState)Enum.Parse(typeof(PSEnabledState), sdkPolicy.PolicySettings.RequestBodyCheck), - Sku = sdkPolicy.Sku == null ? null : sdkPolicy.Sku.Name, - JavascriptChallengeExpirationInMinutes = sdkPolicy.PolicySettings?.JavascriptChallengeExpirationInMinutes, - CaptchaExpirationInMinutes = sdkPolicy.PolicySettings?.CaptchaExpirationInMinutes, - LogScrubbing = sdkPolicy.PolicySettings.LogScrubbing?.ToPSFrontDoorWafLogScrubbingSetting() - }; - } - - public static PSManagedRuleSetDefinition ToPSManagedRuleSetDefinition(this SdkManagedRuleSetDefinition sdkManagedRuleSetDefinition) - { - return new PSManagedRuleSetDefinition - { - ProvisioningState = sdkManagedRuleSetDefinition.ProvisioningState, - RuleSetType = sdkManagedRuleSetDefinition.RuleSetType, - RuleSetVersion = sdkManagedRuleSetDefinition.RuleSetVersion, - RuleGroups = sdkManagedRuleSetDefinition.RuleGroups?.Select(ruleGroup => ruleGroup.ToPSManagedRuleGroupDefinition()).ToList() - }; - } - - public static PSManagedRuleGroupDefinition ToPSManagedRuleGroupDefinition(this SdkManagedRuleGroupDefinition sdkManagedRuleGroupDefinition) - { - return new PSManagedRuleGroupDefinition - { - RuleGroupName = sdkManagedRuleGroupDefinition.RuleGroupName, - Description = sdkManagedRuleGroupDefinition.Description, - Rules = sdkManagedRuleGroupDefinition.Rules?.Select(rule => rule.ToPSManagedRuleDefinition()).ToList() - }; - } - - public static PSManagedRuleDefinition ToPSManagedRuleDefinition(this SdkManagedRuleDefinition sdkManagedRuleDefinition) - { - return new PSManagedRuleDefinition - { - RuleId = sdkManagedRuleDefinition.RuleId, - DefaultAction = sdkManagedRuleDefinition.DefaultAction, - DefaultState = sdkManagedRuleDefinition.DefaultState, - Description = sdkManagedRuleDefinition.Description - }; - } - - public static PSMatchCondition ToPSMatchCondition(this sdkMatchCondition sdkMatchCondition) - { - return new PSMatchCondition - { - MatchVariable = sdkMatchCondition.MatchVariable, - MatchValue = sdkMatchCondition.MatchValue.ToList(), - OperatorProperty = sdkMatchCondition.OperatorProperty, - Selector = sdkMatchCondition.Selector, - NegateCondition = sdkMatchCondition.NegateCondition, - Transform = sdkMatchCondition.Transforms?.ToList() - }; - } - - public static sdkAzManagedRuleGroupOverride ToSdkAzRuleGroupOverride(this PSAzureRuleGroupOverride psAzOverride) - { - return new sdkAzManagedRuleGroupOverride() - { - RuleGroupName = psAzOverride.RuleGroupName, - Rules = psAzOverride.ManagedRuleOverrides?.Select(ruleOverride => - { - return new sdkAzManagedRuleOverride() - { - Action = ruleOverride.Action, - EnabledState = ruleOverride.EnabledState.HasValue ? ruleOverride.EnabledState.Value.ToString() : null, - RuleId = ruleOverride.RuleId, - Exclusions = ruleOverride.Exclusions?.Select(x => x.ToSdkAzManagedRuleExclusion()).ToList() - }; - }).ToList(), - Exclusions = psAzOverride.Exclusions?.Select(x => x.ToSdkAzManagedRuleExclusion()).ToList() - }; - } - - public static sdkAzManagedRuleExclusion ToSdkAzManagedRuleExclusion(this PSManagedRuleExclusion psAzManagedRuleExclusion) - { - return new sdkAzManagedRuleExclusion() - { - MatchVariable = psAzManagedRuleExclusion.MatchVariable, - Selector = psAzManagedRuleExclusion.Selector, - SelectorMatchOperator = psAzManagedRuleExclusion.SelectorMatchOperator - }; - } - - public static SdkManagedRule ToSdkAzManagedRule(this PSManagedRule psRule) - { - var psAzRule = (PSAzureManagedRule)psRule; - return new SdkManagedRule - { - RuleSetType = psAzRule.RuleSetType, - RuleSetVersion = psAzRule.RuleSetVersion, - RuleGroupOverrides = psAzRule.RuleGroupOverrides?.Select(x => x.ToSdkAzRuleGroupOverride()).ToList(), - Exclusions = psAzRule.Exclusions?.Select(x => x.ToSdkAzManagedRuleExclusion()).ToList(), - RuleSetAction = psRule.RuleSetAction - }; - } - - public static sdkMatchCondition ToSdkMatchCondition(this PSMatchCondition psMatchCondition) - { - return new sdkMatchCondition - { - MatchValue = psMatchCondition.MatchValue, - MatchVariable = psMatchCondition.MatchVariable, - NegateCondition = psMatchCondition.NegateCondition, - Selector = psMatchCondition.Selector, - OperatorProperty = psMatchCondition.OperatorProperty, - Transforms = psMatchCondition.Transform - }; - } - - public static SdkCustomRuleGroupByVariable ToSdkCustomRuleGroupByVariable(this PSFrontDoorWafCustomRuleGroupByVariable psFrontDoorWafCustomRuleGroupByVariable) - { - return new SdkCustomRuleGroupByVariable - { - VariableName = psFrontDoorWafCustomRuleGroupByVariable.VariableName, - }; - } - - public static SdkCustomRule ToSdkCustomRule(this PSCustomRule psRule) - { - return new SdkCustomRule - { - Name = psRule.Name, - RateLimitDurationInMinutes = psRule.RateLimitDurationInMinutes, - RateLimitThreshold = psRule.RateLimitThreshold, - Action = psRule.Action, - MatchConditions = psRule.MatchConditions?.Select(x => x.ToSdkMatchCondition()).ToList(), - Priority = psRule.Priority, - RuleType = psRule.RuleType, - EnabledState = psRule.EnabledState, - GroupBy = psRule.CustomRule?.Select(x => x.ToSdkCustomRuleGroupByVariable()).ToList(), - }; - } - - public static SdkLogScrubbingRule ToSdkLogScrubbingRule(this PSFrontDoorWafLogScrubbingRule psFrontDoorWafLogScrubbingRule) - { - return new SdkLogScrubbingRule - { - MatchVariable = psFrontDoorWafLogScrubbingRule.MatchVariable, - Selector = psFrontDoorWafLogScrubbingRule?.Selector, - SelectorMatchOperator = psFrontDoorWafLogScrubbingRule.SelectorMatchOperator, - State = psFrontDoorWafLogScrubbingRule.State, - }; - } - - public static SdkLogScrubbingSetting ToSdkLogScrubbingSetting(this PSFrontDoorWafLogScrubbingSetting psFrontDoorWafLogScrubbingSetting) - { - return new SdkLogScrubbingSetting - { - ScrubbingRules = psFrontDoorWafLogScrubbingSetting.ScrubbingRule?.Select(x => x.ToSdkLogScrubbingRule()).ToArray(), - State = psFrontDoorWafLogScrubbingSetting.State - }; - } - - public static SdkFirewallPolicy ToSdkFirewallPolicy(this PSPolicy psPolicy) - { - return new SdkFirewallPolicy - { - Location = "global", - PolicySettings = new sdkPolicySetting() - { - EnabledState = psPolicy.PolicyEnabledState.ToString(), - Mode = psPolicy.PolicyMode, - CustomBlockResponseBody = psPolicy.CustomBlockResponseBody == null ? psPolicy.CustomBlockResponseBody : Convert.ToBase64String(Encoding.UTF8.GetBytes(psPolicy.CustomBlockResponseBody)), - CustomBlockResponseStatusCode = psPolicy.CustomBlockResponseStatusCode, - RedirectUrl = psPolicy.RedirectUrl, - RequestBodyCheck = psPolicy.RequestBodyCheck?.ToString(), - JavascriptChallengeExpirationInMinutes = psPolicy.JavascriptChallengeExpirationInMinutes, - CaptchaExpirationInMinutes = psPolicy.CaptchaExpirationInMinutes, - LogScrubbing = psPolicy.LogScrubbing?.ToSdkLogScrubbingSetting(), - }, - CustomRules = new SdkCustomRuleList() - { - Rules = psPolicy.CustomRules?.Select(x => x.ToSdkCustomRule()).ToList() - }, - ManagedRules = new SdkManagedRuleList() - { - ManagedRuleSets = psPolicy.ManagedRules?.Select(x => x.ToSdkAzManagedRule()).ToList() - }, - Sku = new Management.FrontDoor.Models.Sku(psPolicy.Sku) - }; - } - - public static Hashtable ToHashTableTags(this IDictionary tags) - { - if (tags == null) - { - return null; - } - - var tagsInHashTable = new Hashtable(); - tags.Keys.ForEach(key => tagsInHashTable.Add(key, tags[key])); - return tagsInHashTable; - } - public static IDictionary ToDictionaryTags(this Hashtable table) - { - return table?.Cast() - .ToDictionary(kvp => (string)kvp.Key, kvp => (string)kvp.Value); - } - - public static void ValidateFrontDoor(this PSFrontDoor frontDoor, string resourceGroup, string subId) - { - //Create Resource ID for existing subresources. - HashSet routingRuleIds = new HashSet(); - foreach (var routingRule in frontDoor.RoutingRules) - { - string id = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/RoutingRules/{3}", - subId, resourceGroup, frontDoor.Name, routingRule.Name).ToLower(); - if (routingRuleIds.FirstOrDefault(x => x.Equals(id)) != null) - { - throw new PSArgumentException(string.Format( - "Routingrule name need to be identical. {0}", - routingRule.Name - )); - } - routingRuleIds.Add(id); - } - - HashSet healthProbeSettingIds = new HashSet(); - foreach (var hpSetting in frontDoor.HealthProbeSettings) - { - string id = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/HealthProbeSettings/{3}", - subId, resourceGroup, frontDoor.Name, hpSetting.Name).ToLower(); - if (healthProbeSettingIds.FirstOrDefault(x => x.Equals(id)) != null) - { - throw new PSArgumentException(string.Format( - "HealthProbeSettings name need to be identical. {0}", - hpSetting.Name - )); - } - healthProbeSettingIds.Add(id); - } - - HashSet loadBalancingSettingIds = new HashSet(); - foreach (var lbSetting in frontDoor.LoadBalancingSettings) - { - string id = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/LoadBalancingSettings/{3}", - subId, resourceGroup, frontDoor.Name, lbSetting.Name).ToLower(); - if (loadBalancingSettingIds.FirstOrDefault(x => x.Equals(id)) != null) - { - throw new PSArgumentException(string.Format( - "LoadBalancingSettings name need to be identical. {0}", - lbSetting.Name - )); - } - loadBalancingSettingIds.Add(id); - } - - HashSet frontendEndpointIds = new HashSet(); - foreach (var frontendEndpoint in frontDoor.FrontendEndpoints) - { - string id = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/FrontendEndpoints/{3}", - subId, resourceGroup, frontDoor.Name, frontendEndpoint.Name).ToLower(); - if (frontendEndpointIds.FirstOrDefault(x => x.Equals(id)) != null) - { - throw new PSArgumentException(string.Format( - "FrontendEndpoint name need to be identical. {0}", - frontendEndpoint.Name - )); - } - frontendEndpointIds.Add(id.ToLower()); - } - - HashSet backendPoolIds = new HashSet(); - foreach (var backendPool in frontDoor.BackendPools) - { - string id = string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/frontDoors/{2}/BackendPools/{3}", - subId, resourceGroup, frontDoor.Name, backendPool.Name).ToLower(); - if (backendPoolIds.FirstOrDefault(x => x.Equals(id)) != null) - { - throw new PSArgumentException(string.Format( - "BackendPool name need to be identical. {0}", - backendPool.Name - )); - } - backendPoolIds.Add(id.ToLower()); - } - - // Validate reference in each resources - foreach (var routingRule in frontDoor.RoutingRules) - { - - foreach (var id in routingRule.FrontendEndpointIds) - { - if (frontendEndpointIds.FirstOrDefault(x => x.Equals(id.ToLower())) == null) - { - throw new PSArgumentException(string.Format( - "Invalid FrontendEndpointId {0} in {1}. Target doesn't exist", - id, routingRule.Name - )); - } - } - - if (routingRule.RouteConfiguration is PSForwardingConfiguration) - { - var forwardingConfiguration = routingRule.RouteConfiguration as PSForwardingConfiguration; - if (backendPoolIds.FirstOrDefault(x => x.Equals(forwardingConfiguration.BackendPoolId.ToLower())) == null) - { - throw new PSArgumentException(string.Format( - "Invalid BackendPollId {0} in {1}. Target doesn't exist", - forwardingConfiguration.BackendPoolId, routingRule.Name - )); - } - } - } - - foreach (var backendPool in frontDoor.BackendPools) - { - if (healthProbeSettingIds.FirstOrDefault(x => x.Equals(backendPool.HealthProbeSettingRef.ToLower())) == null) - { - throw new PSArgumentException(string.Format( - "Invalid HealthProbeSetting {0} in {1}. Target doesn't exist", - backendPool.HealthProbeSettingRef, backendPool.Name - )); - } - - if (loadBalancingSettingIds.FirstOrDefault(x => x.Equals(backendPool.LoadBalancingSettingRef.ToLower())) == null) - { - throw new PSArgumentException(string.Format( - "Invalid HealthProbeSetting {0} in {1}. Target doesn't exist", - backendPool.LoadBalancingSettingRef, backendPool.Name - )); - } - } - - } - - } -} diff --git a/src/FrontDoor/FrontDoor/Helpers/ResourceIdentifierExtensions.cs b/src/FrontDoor/FrontDoor/Helpers/ResourceIdentifierExtensions.cs deleted file mode 100644 index 3581d73957c0..000000000000 --- a/src/FrontDoor/FrontDoor/Helpers/ResourceIdentifierExtensions.cs +++ /dev/null @@ -1,58 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.Management.Automation; -using Microsoft.Azure.Commands.FrontDoor.Properties; -using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; - -namespace Microsoft.Azure.Commands.FrontDoor.Helpers -{ - public static class ResourceIdentifierExtensions - { - private const string FrontDoors = "frontdoors"; - private const string FrontendEndpointResourceTypeName = "Microsoft.Network/Frontdoors/FrontendEndpoints"; - private const string FrontDoorResourceTypeName = "Microsoft.Network/frontdoors"; - - public static string GetFrontDoorName(this ResourceIdentifier resourceId) - { - return GetChildResourceName(resourceId, FrontDoors); - } - - public static bool IsFrontendEndpointResourceType(this ResourceIdentifier resourceId) - { - return string.Equals(resourceId.ResourceType, FrontendEndpointResourceTypeName, StringComparison.OrdinalIgnoreCase); - } - - public static bool IsFrontDoorResourceType(this ResourceIdentifier resourceId) - { - return string.Equals(resourceId.ResourceType, FrontDoorResourceTypeName, StringComparison.OrdinalIgnoreCase); - } - - private static string GetChildResourceName(this ResourceIdentifier resourceId, string resourceType) - { - var parentResource = resourceId.ParentResource.Split(new[] { '/' }); - - for (int idx = 0; idx < parentResource.Length; idx++) - { - if (parentResource[idx].Equals(resourceType, StringComparison.OrdinalIgnoreCase)) - { - return parentResource[idx + 1]; - } - } - - return null; - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Models/PSAction.cs b/src/FrontDoor/FrontDoor/Models/PSAction.cs deleted file mode 100644 index eb664b095135..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSAction.cs +++ /dev/null @@ -1,24 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSAction - { - Allow, - Block, - Log, - Redirect - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSAzureManagedRule.cs b/src/FrontDoor/FrontDoor/Models/PSAzureManagedRule.cs deleted file mode 100644 index a293c90ecbfd..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSAzureManagedRule.cs +++ /dev/null @@ -1,25 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSAzureManagedRule : PSManagedRule - { - public List RuleGroupOverrides { get; set; } - - public List Exclusions { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSAzureManagedRuleOverride.cs b/src/FrontDoor/FrontDoor/Models/PSAzureManagedRuleOverride.cs deleted file mode 100644 index 3a72ac94085d..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSAzureManagedRuleOverride.cs +++ /dev/null @@ -1,29 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSAzureManagedRuleOverride - { - public string RuleId { get; set; } - - public PSEnabledState? EnabledState { get; set; } - - public string Action { get; set; } - - public List Exclusions { get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Models/PSAzureRuleGroupOverride.cs b/src/FrontDoor/FrontDoor/Models/PSAzureRuleGroupOverride.cs deleted file mode 100644 index 222f38987ac5..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSAzureRuleGroupOverride.cs +++ /dev/null @@ -1,27 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSAzureRuleGroupOverride - { - public string RuleGroupName { get; set; } - - public List ManagedRuleOverrides { get; set; } - - public List Exclusions { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSBackend.cs b/src/FrontDoor/FrontDoor/Models/PSBackend.cs deleted file mode 100644 index 568ac9dddab4..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSBackend.cs +++ /dev/null @@ -1,53 +0,0 @@ -// ---------------------------------------------------------------------------------- -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSBackend - { - public string Address { get; set; } - - public int? HttpPort { get; set; } - - public int? HttpsPort { get; set; } - - public int? Priority { get; set; } - - public int? Weight { get; set; } - - public string BackendHostHeader { get; set; } - - public PSEnabledState? EnabledState { get; set; } - - public string PrivateLinkAlias { get; set; } - - public string PrivateLinkResourceId { get; set; } - - public string PrivateLinkLocation { get; set; } - - public PSPrivateEndpointStatus? PrivateEndpointStatus { get; set; } - - public string PrivateLinkApprovalMessage { get; set; } - } - - public enum PSPrivateEndpointStatus - { - Pending, - Approved, - Rejected, - Disconnected, - Timeout - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSBackendPool.cs b/src/FrontDoor/FrontDoor/Models/PSBackendPool.cs deleted file mode 100644 index 52ce8ec18331..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSBackendPool.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using System.Text.RegularExpressions; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSBackendPool: PSResource - { - public List Backends { get; set; } - - public string LoadBalancingSettingRef { get; set; } - - public string HealthProbeSettingRef { get; set; } - - public PSEnabledState EnabledState { get; set; } - - public string ResourceState { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSBackendPoolsSetting.cs b/src/FrontDoor/FrontDoor/Models/PSBackendPoolsSetting.cs deleted file mode 100644 index 6fdebba9a64d..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSBackendPoolsSetting.cs +++ /dev/null @@ -1,27 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using System.Text.RegularExpressions; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSBackendPoolsSetting : PSResource - { - public PSEnabledState? EnforceCertificateNameCheck { get; set; } - - public int? SendRecvTimeoutInSeconds { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSCertificateSource.cs b/src/FrontDoor/FrontDoor/Models/PSCertificateSource.cs deleted file mode 100644 index ffc680a32541..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSCertificateSource.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSCertificateSource - { - AzureKeyVault, - FrontDoor - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSCertificateType.cs b/src/FrontDoor/FrontDoor/Models/PSCertificateType.cs deleted file mode 100644 index 396377f56ff1..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSCertificateType.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSCertificateType - { - Shared, - Dedicated - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSCustomHttpsProvisioningState.cs b/src/FrontDoor/FrontDoor/Models/PSCustomHttpsProvisioningState.cs deleted file mode 100644 index 8babd6cd53ed..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSCustomHttpsProvisioningState.cs +++ /dev/null @@ -1,25 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSCustomHttpsProvisioningState - { - Enabled, - Enabling, - Disabled, - Disabling, - Failed - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSCustomHttpsProvisioningSubstate.cs b/src/FrontDoor/FrontDoor/Models/PSCustomHttpsProvisioningSubstate.cs deleted file mode 100644 index 6ff750664add..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSCustomHttpsProvisioningSubstate.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSCustomHttpsProvisioningSubstate - { - None, - Unknown, - SubmittingDomainControlValidationRequest, - PendingDomainControlValidationRequestApproval, - DomainControlValidationRequestApproved, - DomainControlValidationRequestRejected, - DomainControlValidationRequestTimedOut, - IssuingCertificate, - DeployingCertificate, - CertificateDeployed, - DeletingCertificate, - CertificateDeleted, - ImportingUserProvidedCertificate - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSCustomRule.cs b/src/FrontDoor/FrontDoor/Models/PSCustomRule.cs deleted file mode 100644 index ac4b2b764bca..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSCustomRule.cs +++ /dev/null @@ -1,39 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSCustomRule - { - public string RuleType { get; set; } - - public string Action { get; set; } - - public List MatchConditions { get; set; } - - public int Priority { get; set; } - - public int? RateLimitDurationInMinutes { get; set; } - - public int? RateLimitThreshold { get; set; } - - public string Name { get; set; } - - public string EnabledState { get; set; } - - public PSFrontDoorWafCustomRuleGroupByVariable[] CustomRule { get; set;} - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSCustomRuleType.cs b/src/FrontDoor/FrontDoor/Models/PSCustomRuleType.cs deleted file mode 100644 index b2495a1b0fd2..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSCustomRuleType.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSCustomRuleType - { - RateLimitRule, - MatchRule - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSEnabledState.cs b/src/FrontDoor/FrontDoor/Models/PSEnabledState.cs deleted file mode 100644 index 28c65d2b2ec3..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSEnabledState.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSEnabledState - { - Enabled, - Disabled - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSEnforceCertificateNameCheck.cs b/src/FrontDoor/FrontDoor/Models/PSEnforceCertificateNameCheck.cs deleted file mode 100644 index 84296eb6a2c4..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSEnforceCertificateNameCheck.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSEnforceCertificateNameCheck - { - Enabled, - Disabled - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSExclusionOperatorProperty.cs b/src/FrontDoor/FrontDoor/Models/PSExclusionOperatorProperty.cs deleted file mode 100644 index 3c618b1c5f85..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSExclusionOperatorProperty.cs +++ /dev/null @@ -1,25 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSExclusionOperatorProperty - { - Equals, - Contains, - StartsWith, - EndsWith, - EqualsAny - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSForwardingProtocol.cs b/src/FrontDoor/FrontDoor/Models/PSForwardingProtocol.cs deleted file mode 100644 index 0af0ace88e5a..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSForwardingProtocol.cs +++ /dev/null @@ -1,23 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSForwardingProtocol - { - HttpOnly, - HttpsOnly, - MatchRequest - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSFrontDoor.cs b/src/FrontDoor/FrontDoor/Models/PSFrontDoor.cs deleted file mode 100644 index 15c1f1ee87e0..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSFrontDoor.cs +++ /dev/null @@ -1,49 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSFrontDoor : PSTrackedResource - { - public string FriendlyName { get; set; } - - public string FrontDoorId { get; set; } - - public List RoutingRules { get; set; } - - public List BackendPools { get; set; } - - public PSBackendPoolsSetting BackendPoolsSetting { get; set; } - - public PSEnforceCertificateNameCheck? EnforceCertificateNameCheck { get; set; } - - public List HealthProbeSettings { get; set; } - - public List LoadBalancingSettings { get; set; } - - public List FrontendEndpoints { get; set; } - - public PSEnabledState? EnabledState { get; set; } - - public string ResourceState { get; set; } - - public string ProvisioningState { get; set; } - - public string Cname { get; set; } - - public List RulesEngine { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafCustomRuleGroupByVariable.cs b/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafCustomRuleGroupByVariable.cs deleted file mode 100644 index eba15562cef1..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafCustomRuleGroupByVariable.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSFrontDoorWafCustomRuleGroupByVariable - { - public string VariableName { get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafLogScrubbingRule.cs b/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafLogScrubbingRule.cs deleted file mode 100644 index 6c7cd9dd21db..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafLogScrubbingRule.cs +++ /dev/null @@ -1,28 +0,0 @@ -// ---------------------------------------------------------------------------------- -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSFrontDoorWafLogScrubbingRule - { - public string MatchVariable { get; set; } - - public string SelectorMatchOperator { get; set; } - - public string Selector { get; set; } - - public string State { get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafLogScrubbingSetting.cs b/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafLogScrubbingSetting.cs deleted file mode 100644 index 412005063b33..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSFrontDoorWafLogScrubbingSetting.cs +++ /dev/null @@ -1,26 +0,0 @@ -// ---------------------------------------------------------------------------------- -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSFrontDoorWafLogScrubbingSetting - { - public PSFrontDoorWafLogScrubbingRule[] ScrubbingRule { get; set; } - - public string State { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSFrontendEndpoint.cs b/src/FrontDoor/FrontDoor/Models/PSFrontendEndpoint.cs deleted file mode 100644 index 0a0dc34ba9bf..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSFrontendEndpoint.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSFrontendEndpoint : PSResource - { - - public string HostName { get; set; } - - public PSEnabledState? SessionAffinityEnabledState { get; set; } - - public int? SessionAffinityTtlSeconds { get; set; } - - public string WebApplicationFirewallPolicyLink { get; set; } - - public List Backends { get; set; } - - public PSCustomHttpsProvisioningState? CustomHttpsProvisioningState { get; set; } - - public PSCustomHttpsProvisioningSubstate? CustomHttpsProvisioningSubstate { get; set; } - - public string CertificateSource { get; set; } - - public string ProtocolType { get; set; } = "ServerNameIndication"; - - public string MinimumTlsVersion { get; set; } - - public string Vault { get; set; } - - public string SecretName { get; set; } - - public string SecretVersion { get; set; } - - public string CertificateType { get; set; } - - public string ResourceState { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSHealthProbeSetting.cs b/src/FrontDoor/FrontDoor/Models/PSHealthProbeSetting.cs deleted file mode 100644 index 11b3556aa3a3..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSHealthProbeSetting.cs +++ /dev/null @@ -1,35 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using System.Text.RegularExpressions; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSHealthProbeSetting: PSResource - { - public string Path { get; set; } - - public PSProtocol? Protocol { get; set; } - - public int? IntervalInSeconds { get; set; } - - public string ResourceState { get; set; } - - public string HealthProbeMethod { get; set; } - - public PSEnabledState? EnabledState { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSLoadBalancingSetting.cs b/src/FrontDoor/FrontDoor/Models/PSLoadBalancingSetting.cs deleted file mode 100644 index 6e82172c8204..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSLoadBalancingSetting.cs +++ /dev/null @@ -1,31 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using System.Text.RegularExpressions; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSLoadBalancingSetting: PSResource - { - public int? SampleSize { get; set; } - - public int? AdditionalLatencyMilliseconds { get; set; } - - public int? SuccessfulSamplesRequired { get; set; } - - public string ResourceState { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSManagedRule.cs b/src/FrontDoor/FrontDoor/Models/PSManagedRule.cs deleted file mode 100644 index 449f5d922394..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSManagedRule.cs +++ /dev/null @@ -1,25 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSManagedRule - { - public string RuleSetType { get; set; } - - public string RuleSetVersion { get; set; } - - public string RuleSetAction { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSManagedRuleDefinition.cs b/src/FrontDoor/FrontDoor/Models/PSManagedRuleDefinition.cs deleted file mode 100644 index ec4bc2766f7a..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSManagedRuleDefinition.cs +++ /dev/null @@ -1,29 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSManagedRuleDefinition - { - public string RuleId { get; set; } - - public string DefaultState { get; set; } - - public string DefaultAction { get; set; } - - public string Description { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSManagedRuleExclusion.cs b/src/FrontDoor/FrontDoor/Models/PSManagedRuleExclusion.cs deleted file mode 100644 index 74eb8af0cd6c..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSManagedRuleExclusion.cs +++ /dev/null @@ -1,27 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSManagedRuleExclusion - { - public string MatchVariable { get; set; } - - public string SelectorMatchOperator { get; set; } - - public string Selector { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSManagedRuleGroupDefinition.cs b/src/FrontDoor/FrontDoor/Models/PSManagedRuleGroupDefinition.cs deleted file mode 100644 index 73dd93b08216..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSManagedRuleGroupDefinition.cs +++ /dev/null @@ -1,27 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSManagedRuleGroupDefinition - { - public string RuleGroupName { get; set; } - - public string Description { get; set; } - - public IList Rules { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSManagedRuleSetDefinition.cs b/src/FrontDoor/FrontDoor/Models/PSManagedRuleSetDefinition.cs deleted file mode 100644 index 3de9d0a52141..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSManagedRuleSetDefinition.cs +++ /dev/null @@ -1,29 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSManagedRuleSetDefinition - { - public string ProvisioningState { get; set; } - - public string RuleSetType { get; set; } - - public string RuleSetVersion { get; set; } - - public IList RuleGroups { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSMatchCondition.cs b/src/FrontDoor/FrontDoor/Models/PSMatchCondition.cs deleted file mode 100644 index 8af2522dc6cb..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSMatchCondition.cs +++ /dev/null @@ -1,34 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Text.RegularExpressions; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSMatchCondition - { - public string MatchVariable { get; set; } - - public string OperatorProperty { get; set; } - - public List MatchValue { get; set; } - - public string Selector { get; set; } - - public bool? NegateCondition { get; set; } - - public List Transform { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSMatchVariable.cs b/src/FrontDoor/FrontDoor/Models/PSMatchVariable.cs deleted file mode 100644 index e2b7a43e06a5..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSMatchVariable.cs +++ /dev/null @@ -1,27 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSMatchVariable - { - RemoteAddr, - RequestMethod, - QueryString, - PostArgs, - RequestUri, - RequestHeader, - RequestBody - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSMode.cs b/src/FrontDoor/FrontDoor/Models/PSMode.cs deleted file mode 100644 index 90f51a5fe15f..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSMode.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSMode - { - Prevention, - Detection - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSOperatorProperty.cs b/src/FrontDoor/FrontDoor/Models/PSOperatorProperty.cs deleted file mode 100644 index bc5784967008..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSOperatorProperty.cs +++ /dev/null @@ -1,31 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSOperatorProperty - { - Any, - IPMatch, - GeoMatch, - Equal, - Contains, - LessThan, - GreaterThan, - LessThanOrEqual, - GreaterThanOrEqual, - BeginsWith, - EndsWith - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSPolicy.cs b/src/FrontDoor/FrontDoor/Models/PSPolicy.cs deleted file mode 100644 index 023d5739b39f..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSPolicy.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSPolicy : PSTrackedResource - { - public string PolicyMode { get; set; } - - public PSEnabledState? PolicyEnabledState { get; set; } - - public string RedirectUrl { get; set; } - - public ushort? CustomBlockResponseStatusCode { get; set; } - - public string CustomBlockResponseBody { get; set; } - - public PSEnabledState? RequestBodyCheck { get; set; } - - public List CustomRules { get; set; } - - public List ManagedRules { get; set; } - - public string Etag { get; set; } - - public string ProvisioningState { get; set; } - - public string Sku { get; set; } - - public int? JavascriptChallengeExpirationInMinutes { get; set; } - public int? CaptchaExpirationInMinutes { get; set; } - - public PSFrontDoorWafLogScrubbingSetting LogScrubbing { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSProtocol.cs b/src/FrontDoor/FrontDoor/Models/PSProtocol.cs deleted file mode 100644 index 32f3b45e0619..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSProtocol.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSProtocol - { - Http, - Https - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSProtocolType.cs b/src/FrontDoor/FrontDoor/Models/PSProtocolType.cs deleted file mode 100644 index 10282e2bad38..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSProtocolType.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSProtocolType - { - ServerNameIndication, - IPBased - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSQueryParameterStripDirective.cs b/src/FrontDoor/FrontDoor/Models/PSQueryParameterStripDirective.cs deleted file mode 100644 index 052b4d645772..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSQueryParameterStripDirective.cs +++ /dev/null @@ -1,22 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSQueryParameterStripDirective - { - StripNone, - StripAll - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSRedirectProtocol.cs b/src/FrontDoor/FrontDoor/Models/PSRedirectProtocol.cs deleted file mode 100644 index 1b2c5b68e184..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSRedirectProtocol.cs +++ /dev/null @@ -1,23 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSRedirectProtocol - { - HttpOnly, - HttpsOnly, - MatchRequest - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Models/PSRedirectType.cs b/src/FrontDoor/FrontDoor/Models/PSRedirectType.cs deleted file mode 100644 index 21f5af6bb73e..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSRedirectType.cs +++ /dev/null @@ -1,24 +0,0 @@ - -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public enum PSRedirectType - { - Moved, - Found, - TemporaryRedirect, - PermanentRedirect - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Models/PSResources.cs b/src/FrontDoor/FrontDoor/Models/PSResources.cs deleted file mode 100644 index 794706c372e2..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSResources.cs +++ /dev/null @@ -1,40 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Rest.Azure; -using System.Collections; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - /// - /// - public class PSResource : IResource - { - /// - /// Gets or sets the Resource Id - /// - public string Id { get; set; } - - /// - /// Gets or sets the Resource Name - /// - public string Name { get; set; } - - /// - /// Gets or sets the Resource type - /// - /// - public string Type { get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Models/PSRouteConfiguration.cs b/src/FrontDoor/FrontDoor/Models/PSRouteConfiguration.cs deleted file mode 100644 index 804d719b87f3..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSRouteConfiguration.cs +++ /dev/null @@ -1,57 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSRouteConfiguration - { - - } - - public class PSForwardingConfiguration : PSRouteConfiguration - { - public string CustomForwardingPath { get; set; } - - public string ForwardingProtocol { get; set; } - - public string BackendPoolId { get; set; } - - public string QueryParameterStripDirective { get; set; } - - public string QueryParameters { get; set; } - - public TimeSpan? CacheDuration { get; set; } - - public PSEnabledState? DynamicCompression { get; set; } - - public bool EnableCaching { get; set; } - } - - public class PSRedirectConfiguration : PSRouteConfiguration - { - public string RedirectType { get; set; } - - public string RedirectProtocol { get; set; } - - public string CustomHost { get; set; } - - public string CustomPath { get; set; } - - public string CustomFragment { get; set; } - - public string CustomQueryString { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSRoutingRule.cs b/src/FrontDoor/FrontDoor/Models/PSRoutingRule.cs deleted file mode 100644 index 9c4778482c96..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSRoutingRule.cs +++ /dev/null @@ -1,41 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - /// - /// Represents the properties of an Azure Front Door object. - /// - public class PSRoutingRule : PSResource - { - public List FrontendEndpointIds { get; set; } - - public List AcceptedProtocols { get; set; } - - public List PatternsToMatch { get; set; } - - public List HealthProbeSettings { get; set; } - - public PSRouteConfiguration RouteConfiguration { get; set; } - - public PSEnabledState? EnabledState { get; set; } - - public string ResourceState { get; set; } - - public string RulesEngineId { get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/Models/PSRulesEngine.cs b/src/FrontDoor/FrontDoor/Models/PSRulesEngine.cs deleted file mode 100644 index 611ae1faad5f..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSRulesEngine.cs +++ /dev/null @@ -1,23 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSRulesEngine : PSTrackedResource - { - public List RulesEngineRules { get; set; } - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSRulesEngineRule.cs b/src/FrontDoor/FrontDoor/Models/PSRulesEngineRule.cs deleted file mode 100644 index 3bac8488b410..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSRulesEngineRule.cs +++ /dev/null @@ -1,125 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - public class PSRulesEngineRule - { - // required - public string Name { get; set; } - - // required - public int Priority { get; set; } - - public PSMatchProcessingBehavior MatchProcessingBehavior { get; set; } - - public List MatchConditions { get; set; } - - // required - public PSRulesEngineAction Action { get; set; } - } - - public class PSRulesEngineMatchCondition - { - // required - public PSRulesEngineMatchVariable RulesEngineMatchVariable { get; set; } - - // required - public List RulesEngineMatchValue { get; set; } - - public string Selector { get; set; } - - public PSRulesEngineOperator RulesEngineOperator { get; set; } - - public bool? NegateCondition { get; set; } - - public List Transforms { get; set; } - } - - public class PSRulesEngineAction - { - public List RequestHeaderActions { get; set; } - - public List ResponseHeaderActions { get; set; } - - public PSRouteConfiguration RouteConfigurationOverride { get; set; } - } - - public class PSHeaderAction - { - //required - public string HeaderName { get; set; } - - //required - public PSHeaderActionType HeaderActionType { get; set; } - - public string Value { get; set; } - } - - public enum PSMatchProcessingBehavior - { - Continue, - Stop - } - - public enum PSRulesEngineMatchVariable - { - IsMobile, - RemoteAddr, - RequestMethod, - QueryString, - PostArgs, - RequestUri, - RequestPath, - RequestFilename, - RequestFilenameExtension, - RequestHeader, - RequestBody, - RequestScheme - } - - public enum PSRulesEngineOperator - { - Any, - IPMatch, - GeoMatch, - Equal, - Contains, - LessThan, - GreaterThan, - LessThanOrEqual, - GreaterThanOrEqual, - BeginsWith, - EndsWith - } - - public enum PSTransform - { - Lowercase, - Uppercase, - Trim, - UrlDecode, - UrlEncode, - RemoveNulls - } - - public enum PSHeaderActionType - { - Append, - Delete, - Overwrite - } -} diff --git a/src/FrontDoor/FrontDoor/Models/PSTrackedResource.cs b/src/FrontDoor/FrontDoor/Models/PSTrackedResource.cs deleted file mode 100644 index 4747ac6333ba..000000000000 --- a/src/FrontDoor/FrontDoor/Models/PSTrackedResource.cs +++ /dev/null @@ -1,29 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections; - -namespace Microsoft.Azure.Commands.FrontDoor.Models -{ - /// - /// ARM tracked resource - /// - public class PSTrackedResource : PSResource - { - /// - /// Resource tags - /// - public Hashtable Tags { get; set; } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md index 28ec3ea00275..ee4a1137f9aa 100644 --- a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md @@ -1,14 +1,14 @@ --- Module Name: Az.FrontDoor -Module Guid: {{ Update Module Guid }} -Download Help Link: {{ Update Download Link }} -Help Version: {{ Update Help Version }} -Locale: {{ Update Locale }} +Module Guid: 91832aaa-dc11-4583-8239-adb7df531604 +Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor +Help Version: 1.0.0.0 +Locale: en-US --- # Az.FrontDoor Module ## Description -{{ Fill in the Description }} +Microsoft Azure PowerShell: FrontDoor cmdlets ## Az.FrontDoor Cmdlets ### [Disable-AzFrontDoorCustomDomainHttps](Disable-AzFrontDoorCustomDomainHttps.md) @@ -129,8 +129,8 @@ Deletes Policy Update a new Front Door with a Front Door name under the specified subscription and resource group. ### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) -{{ Fill in the Synopsis }} +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) -{{ Fill in the Synopsis }} +Update a new Rules Engine Configuration with the specified name within the specified Front Door. diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md index ad798618f615..7375d35602a7 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md @@ -1,59 +1,90 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor -online version: +online version: https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine schema: 2.0.0 --- # Set-AzFrontDoorRulesEngine ## SYNOPSIS -{{ Fill in the Synopsis }} +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ## SYNTAX -### ByFieldsParameterSet (Default) +### UpdateExpanded (Default) ``` -Set-AzFrontDoorRulesEngine -ResourceGroupName -FrontDoorName -Name - [-Rule ] [-DefaultProfile ] +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### ByObjectParameterSet +### UpdateViaJsonFilePath ``` -Set-AzFrontDoorRulesEngine -InputObject [-Rule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` -### ByResourceIdParameterSet +### UpdateViaJsonString ``` -Set-AzFrontDoorRulesEngine -ResourceId [-Rule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -{{ Fill in the Description }} +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add example code here }} +{{ Add code here }} ``` -{{ Add example description here }} +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -63,11 +94,11 @@ Accept wildcard characters: False ``` ### -FrontDoorName -Front Door name. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: (All) Aliases: Required: True @@ -77,27 +108,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -The Rules Engine object to update. +### -JsonFilePath +Path of Json file supplied to the Update operation ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine -Parameter Sets: ByObjectParameterSet +Type: System.String +Parameter Sets: UpdateViaJsonFilePath Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -Rules engine name. +### -JsonString +Json string supplied to the Update operation ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: UpdateViaJsonString Aliases: Required: True @@ -107,13 +138,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -The resource group name that the Front Door will be created in. +### -Name +Name of the Rules Engine which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet -Aliases: +Parameter Sets: (All) +Aliases: RulesEngineName Required: True Position: Named @@ -122,18 +153,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the RulesEngine to update +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet +Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -141,8 +187,8 @@ Accept wildcard characters: False A list of rules that define a particular Rules Engine Configuration. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -152,6 +198,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -188,13 +250,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine - -### System.String - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine ## NOTES diff --git a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md index 674b747336a6..6edea9849fdf 100644 --- a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml +external help file: Az.FrontDoor-help.xml Module Name: Az.FrontDoor online version: https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy schema: 2.0.0 @@ -8,52 +8,83 @@ schema: 2.0.0 # Set-AzFrontDoorRulesEngine ## SYNOPSIS -{{ Fill in the Synopsis }} +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ## SYNTAX -### ByFieldsParameterSet (Default) +### UpdateExpanded (Default) ``` -Set-AzFrontDoorRulesEngine -ResourceGroupName -FrontDoorName -Name - [-Rule ] [-DefaultProfile ] +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### ByObjectParameterSet +### UpdateViaJsonFilePath ``` -Set-AzFrontDoorRulesEngine -InputObject [-Rule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` -### ByResourceIdParameterSet +### UpdateViaJsonString ``` -Set-AzFrontDoorRulesEngine -ResourceId [-Rule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -{{ Fill in the Description }} +Update a new Rules Engine Configuration with the specified name within the specified Front Door. ## EXAMPLES -### Example 1 +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add example code here }} +{{ Add code here }} ``` -{{ Add example description here }} +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: System.Management.Automation.PSObject Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential +Aliases: AzureRMContext, AzureCredential Required: False Position: Named @@ -63,11 +94,11 @@ Accept wildcard characters: False ``` ### -FrontDoorName -Front Door name. +Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: (All) Aliases: Required: True @@ -77,27 +108,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -The Rules Engine object to update. +### -JsonFilePath +Path of Json file supplied to the Update operation ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine -Parameter Sets: ByObjectParameterSet +Type: System.String +Parameter Sets: UpdateViaJsonFilePath Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -Rules engine name. +### -JsonString +Json string supplied to the Update operation ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet +Parameter Sets: UpdateViaJsonString Aliases: Required: True @@ -107,13 +138,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -The resource group name that the Front Door will be created in. +### -Name +Name of the Rules Engine which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: ByFieldsParameterSet -Aliases: +Parameter Sets: (All) +Aliases: RulesEngineName Required: True Position: Named @@ -122,18 +153,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceId -Resource Id of the RulesEngine to update +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: ByResourceIdParameterSet +Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -141,8 +187,8 @@ Accept wildcard characters: False A list of rules that define a particular Rules Engine Configuration. ```yaml -Type: Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -152,6 +198,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -188,13 +250,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine - -### System.String - ## OUTPUTS -### Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine ## NOTES From 01091db296f3e513ab72cca952c8fa410650d296 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 27 Aug 2025 16:03:14 +1000 Subject: [PATCH 07/30] regen --- .../Properties/AssemblyInfo.cs | 1 - .../custom/Update-AzFrontDoorWafPolicy.ps1 | 6 - .../docs/Update-AzFrontDoorWafPolicy.md | 5 - .../FrontDoor.Autorest/generate-info.json | 3 + src/FrontDoor/FrontDoor.sln | 30 +-- src/FrontDoor/FrontDoor/help/Az.FrontDoor.md | 4 +- .../help/Update-AzFrontDoorWafPolicy.md | 227 +++++++++++++++--- 7 files changed, 210 insertions(+), 66 deletions(-) create mode 100644 src/FrontDoor/FrontDoor.Autorest/generate-info.json diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs index 95c2780d31cd..b6db8e525a56 100644 --- a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -24,4 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 index 1d69788b17ac..538560c97557 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 @@ -146,12 +146,6 @@ param( # List of rule sets. ${ManagedRuleSet}, - # [Parameter()] - # [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - # [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] - # # Describes settings for the policy. - # ${PolicySetting}, - [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md index 4630997b25f4..e9791dd72829 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md @@ -74,11 +74,6 @@ Accept wildcard characters: False ``` ### -CustomBlockResponseBody -[Parameter()] -[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] -[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] -# Describes settings for the policy. -${PolicySetting}, If the action type is block, customer can override the response body. The body must be specified in base64 encoding. diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json new file mode 100644 index 000000000000..781f8bb58fd5 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -0,0 +1,3 @@ +{ + "generate_Id": "89fc39c9-bf80-4e15-9515-161b3e0cbc4e" +} diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 9be8fd8bdcc4..5eb5831c33ed 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "FrontDoor.Autorest\Az.FrontDoor.csproj", "{C5FECCF5-C720-4803-BB18-C8DD39983A40}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|x64.ActiveCfg = Debug|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|x64.Build.0 = Debug|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|x86.ActiveCfg = Debug|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Debug|x86.Build.0 = Debug|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|Any CPU.Build.0 = Release|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|x64.ActiveCfg = Release|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|x64.Build.0 = Release|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|x86.ActiveCfg = Release|Any CPU - {C5FECCF5-C720-4803-BB18-C8DD39983A40}.Release|x86.Build.0 = Release|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|x64.ActiveCfg = Debug|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|x64.Build.0 = Debug|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|x86.ActiveCfg = Debug|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|x86.Build.0 = Debug|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|Any CPU.Build.0 = Release|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|x64.ActiveCfg = Release|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|x64.Build.0 = Release|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|x86.ActiveCfg = Release|Any CPU + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {C5FECCF5-C720-4803-BB18-C8DD39983A40} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md index ee4a1137f9aa..a7a9eadb0cf7 100644 --- a/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Az.FrontDoor.md @@ -131,6 +131,6 @@ Update a new Front Door with a Front Door name under the specified subscription ### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) Update a new Rules Engine Configuration with the specified name within the specified Front Door. -### [Set-AzFrontDoorRulesEngine](Set-AzFrontDoorRulesEngine.md) -Update a new Rules Engine Configuration with the specified name within the specified Front Door. +### [Update-AzFrontDoorWafPolicy](Update-AzFrontDoorWafPolicy.md) +Update policy with specified rule set name within a resource group. diff --git a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md index 6edea9849fdf..a2df83431d9a 100644 --- a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md @@ -5,36 +5,33 @@ online version: https://learn.microsoft.com/powershell/module/az.frontdoor/updat schema: 2.0.0 --- -# Set-AzFrontDoorRulesEngine +# Update-AzFrontDoorWafPolicy ## SYNOPSIS -Update a new Rules Engine Configuration with the specified name within the specified Front Door. +Update policy with specified rule set name within a resource group. ## SYNTAX ### UpdateExpanded (Default) ``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] +Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-CustomRule ] [-Etag ] [-ManagedRuleSet ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-EnabledState ] + [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] + [-RequestBodyCheck ] [-JavascriptChallengeExpirationInMinutes ] [-SkuName ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### UpdateViaJsonFilePath +### UpdateViaIdentityExpanded ``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### UpdateViaJsonString -``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] +Update-AzFrontDoorWafPolicy -InputObject [-CustomRule ] [-Etag ] + [-ManagedRuleSet ] [-SkuName ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update a new Rules Engine Configuration with the specified name within the specified Front Door. +Update policy with specified rule set name within a resource group. ## EXAMPLES @@ -77,6 +74,52 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -CustomBlockResponseBody +If the action type is block, customer can override the response body. +The body must be specified in base64 encoding. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomBlockResponseStatusCode +If the action type is block, customer can override the response status code. + +```yaml +Type: System.Int32 +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomRule +List of rules + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -93,45 +136,108 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FrontDoorName -Name of the Front Door which is globally unique. +### -EnabledState +Describes if the policy is in enabled or disabled state. +Defaults to Enabled if not specified. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Update operation +### -Etag +Gets a unique read-only string that changes whenever the resource is updated. ```yaml Type: System.String -Parameter Sets: UpdateViaJsonFilePath +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: UpdateViaIdentityExpanded Aliases: Required: True Position: Named Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JavascriptChallengeExpirationInMinutes +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. + +```yaml +Type: System.Int32 +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogScrubbingSetting +Defines rules that scrub sensitive fields in the Web Application Firewall logs. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagedRuleSet +List of rule sets. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -JsonString -Json string supplied to the Update operation +### -Mode +Describes if it is in detection mode or prevention mode at policy level. ```yaml Type: System.String -Parameter Sets: UpdateViaJsonString +Parameter Sets: UpdateExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -139,12 +245,12 @@ Accept wildcard characters: False ``` ### -Name -Name of the Rules Engine which is unique within the Front Door. +The name of the Web Application Firewall Policy. ```yaml Type: System.String -Parameter Sets: (All) -Aliases: RulesEngineName +Parameter Sets: UpdateExpanded +Aliases: PolicyName Required: True Position: Named @@ -168,12 +274,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RedirectUrl +If action type is redirect, this field represents redirect URL for the client. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestBodyCheck +Describes if policy managed rules will inspect the request body content. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: True @@ -183,12 +319,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Rule -A list of rules that define a particular Rules Engine Configuration. +### -SkuName +Name of the pricing tier. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: (All) Aliases: Required: False @@ -204,7 +340,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -214,6 +350,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -250,9 +401,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +### Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy ## NOTES From 6610ed376cda50994eb9ec552f5a5d785064769a Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 27 Aug 2025 16:08:18 +1000 Subject: [PATCH 08/30] reset verb --- src/FrontDoor/FrontDoor.Autorest/README.md | 5 +- .../custom/Set-AzFrontDoorRulesEngine.ps1 | 171 ------------------ .../docs/Set-AzFrontDoorRulesEngine.md | 47 +---- .../FrontDoor.Autorest/generate-info.json | 2 +- src/FrontDoor/FrontDoor.sln | 28 +-- .../help/Set-AzFrontDoorRulesEngine.md | 47 +---- 6 files changed, 19 insertions(+), 281 deletions(-) delete mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoorRulesEngine.ps1 diff --git a/src/FrontDoor/FrontDoor.Autorest/README.md b/src/FrontDoor/FrontDoor.Autorest/README.md index 24cf99e33fa1..cbf6ed681cf2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/README.md +++ b/src/FrontDoor/FrontDoor.Autorest/README.md @@ -257,9 +257,8 @@ directive: - where: verb: Update subject: RulesEngine - hide: true - # set: - # alias: Set-AzureFrontDoorRulesEngine + set: + verb: Set # Breaking change avoid rename # New-AzFrontDoorHeaderActionObject diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoorRulesEngine.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoorRulesEngine.ps1 deleted file mode 100644 index 4f528d8bf5ae..000000000000 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoorRulesEngine.ps1 +++ /dev/null @@ -1,171 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -RULE : A list of rules that define a particular Rules Engine Configuration. - Action : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - Name : A name to refer to this specific rule. - Priority : A priority assigned to this rule. - [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms - [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine -#> -function Set-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] - # A list of rules that define a particular Rules Engine Configuration. - ${Rule}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -process { - Az.FrontDoor.internal\Update-AzFrontDoorRulesEngine @PSBoundParameters -} - -} diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md index 1934d09126ca..0891a6714916 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md @@ -12,27 +12,12 @@ Update a new Rules Engine Configuration with the specified name within the speci ## SYNTAX -### UpdateExpanded (Default) ``` Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` -### UpdateViaJsonFilePath -``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -### UpdateViaJsonString -``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - ## DESCRIPTION Update a new Rules Engine Configuration with the specified name within the specified Front Door. @@ -108,36 +93,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Update operation - -```yaml -Type: System.String -Parameter Sets: UpdateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Update operation - -```yaml -Type: System.String -Parameter Sets: UpdateViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Name Name of the Rules Engine which is unique within the Front Door. @@ -188,7 +143,7 @@ A list of rules that define a particular Rules Engine Configuration. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 781f8bb58fd5..047aae4d6b9e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "89fc39c9-bf80-4e15-9515-161b3e0cbc4e" + "generate_Id": "916e880d-9edd-40a5-ac8d-3552d3c5fec0" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 5eb5831c33ed..3eb9f5c96df8 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|x64.ActiveCfg = Debug|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|x64.Build.0 = Debug|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|x86.ActiveCfg = Debug|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Debug|x86.Build.0 = Debug|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|Any CPU.Build.0 = Release|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|x64.ActiveCfg = Release|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|x64.Build.0 = Release|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|x86.ActiveCfg = Release|Any CPU - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA}.Release|x86.Build.0 = Release|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|x64.ActiveCfg = Debug|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|x64.Build.0 = Debug|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|x86.ActiveCfg = Debug|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|x86.Build.0 = Debug|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|Any CPU.Build.0 = Release|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|x64.ActiveCfg = Release|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|x64.Build.0 = Release|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|x86.ActiveCfg = Release|Any CPU + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {5DE8B5EF-BC9A-48AF-BC9F-1E6E6A999FEA} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md index 7375d35602a7..4cb36ffcc337 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md @@ -12,27 +12,12 @@ Update a new Rules Engine Configuration with the specified name within the speci ## SYNTAX -### UpdateExpanded (Default) ``` Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName [-SubscriptionId ] [-Rule ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### UpdateViaJsonFilePath -``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### UpdateViaJsonString -``` -Set-AzFrontDoorRulesEngine -FrontDoorName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - ## DESCRIPTION Update a new Rules Engine Configuration with the specified name within the specified Front Door. @@ -108,36 +93,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Update operation - -```yaml -Type: System.String -Parameter Sets: UpdateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Update operation - -```yaml -Type: System.String -Parameter Sets: UpdateViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Name Name of the Rules Engine which is unique within the Front Door. @@ -188,7 +143,7 @@ A list of rules that define a particular Rules Engine Configuration. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False From aa192b0b8412e5467afa22f8496a3889dbcd448d Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Thu, 28 Aug 2025 10:28:11 +1000 Subject: [PATCH 09/30] generate docs --- src/Cdn/Cdn.Autorest/docs/Az.Cdn.md | 2 +- src/Cdn/Cdn.Autorest/generate-info.json | 2 +- src/Cdn/Cdn.sln | 28 ++-- src/Cdn/Cdn/Az.Cdn.psd1 | 4 +- .../Disable-AzFrontDoorCustomDomainHttps.md | 77 +++++++++- .../Enable-AzFrontDoorCustomDomainHttps.md | 140 +++++++++++++++++- .../examples/Get-AzFrontDoor.md | 105 ++++++++++++- .../Get-AzFrontDoorFrontendEndpoint.md | 70 +++++++-- .../examples/Get-AzFrontDoorRulesEngine.md | 39 ++++- ...-AzFrontDoorWafManagedRuleSetDefinition.md | 25 ++-- .../examples/Get-AzFrontDoorWafPolicy.md | 23 +-- .../examples/New-AzFrontDoor.md | 35 +++-- .../examples/New-AzFrontDoorBackendObject.md | 26 ++-- .../New-AzFrontDoorBackendPoolObject.md | 29 ++-- ...ew-AzFrontDoorBackendPoolsSettingObject.md | 25 ++-- ...New-AzFrontDoorCacheConfigurationObject.md | 22 +-- ...zFrontDoorForwardingConfigurationObject.md | 23 ++- .../New-AzFrontDoorFrontendEndpointObject.md | 37 +++-- .../New-AzFrontDoorHeaderActionObject.md | 22 +-- ...New-AzFrontDoorHealthProbeSettingObject.md | 28 ++-- ...w-AzFrontDoorLoadBalancingSettingObject.md | 26 ++-- .../New-AzFrontDoorPolicySettingsObject.md | 27 ++-- ...-AzFrontDoorRedirectConfigurationObject.md | 24 ++- .../New-AzFrontDoorRoutingRuleObject.md | 41 +++-- .../examples/New-AzFrontDoorRulesEngine.md | 22 +-- .../New-AzFrontDoorRulesEngineActionObject.md | 76 ++++++++-- ...rontDoorRulesEngineMatchConditionObject.md | 25 ++-- .../New-AzFrontDoorRulesEngineRuleObject.md | 45 ++++-- ...tDoorWafCustomRuleGroupByVariableObject.md | 23 +-- .../New-AzFrontDoorWafCustomRuleObject.md | 22 +-- ...ew-AzFrontDoorWafLogScrubbingRuleObject.md | 22 +-- ...AzFrontDoorWafLogScrubbingSettingObject.md | 23 +-- ...zFrontDoorWafManagedRuleExclusionObject.md | 22 +-- .../New-AzFrontDoorWafManagedRuleObject.md | 25 ++-- ...AzFrontDoorWafManagedRuleOverrideObject.md | 22 +-- .../New-AzFrontDoorWafMatchConditionObject.md | 23 +-- .../examples/New-AzFrontDoorWafPolicy.md | 22 +-- ...w-AzFrontDoorWafRuleGroupOverrideObject.md | 23 +-- .../examples/Remove-AzFrontDoor.md | 27 ++-- .../examples/Remove-AzFrontDoorContent.md | 22 +-- .../examples/Remove-AzFrontDoorRulesEngine.md | 22 +-- .../examples/Remove-AzFrontDoorWafPolicy.md | 21 +-- .../examples/Set-AzFrontDoor.md | 100 ++++++++++++- .../examples/Set-AzFrontDoorRulesEngine.md | 28 ++-- .../examples/Update-AzFrontDoorWafPolicy.md | 39 ++++- 45 files changed, 968 insertions(+), 566 deletions(-) diff --git a/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md b/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md index 97d526736184..e9e53ad0a73d 100644 --- a/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md +++ b/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md @@ -1,6 +1,6 @@ --- Module Name: Az.Cdn -Module Guid: 017e09b7-e5d5-439a-b393-82dab6354cb3 +Module Guid: 7068dad4-9b7e-4b63-80b8-ee7cfe94b6b4 Download Help Link: https://learn.microsoft.com/powershell/module/az.cdn Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Cdn/Cdn.Autorest/generate-info.json b/src/Cdn/Cdn.Autorest/generate-info.json index 2f710c4d09da..1b80285d057b 100644 --- a/src/Cdn/Cdn.Autorest/generate-info.json +++ b/src/Cdn/Cdn.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "6f80fcd9-da94-4863-b8a9-85b8be261c80" + "generate_Id": "2dcb443a-6b13-46fb-8941-0f93e457e185" } diff --git a/src/Cdn/Cdn.sln b/src/Cdn/Cdn.sln index 77a52f9f820c..1c68a0d074dd 100644 --- a/src/Cdn/Cdn.sln +++ b/src/Cdn/Cdn.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cdn", "Cdn\Cdn.csproj", "{E EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Cdn.Autorest", "Cdn.Autorest", "{C371EC25-5E4E-93C1-5161-3B7B810CF1FB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Cdn", "..\..\generated\Cdn\Cdn.Autorest\Az.Cdn.csproj", "{037CD4DB-9A65-41E8-AA3B-C33D419C9106}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Cdn", "..\..\generated\Cdn\Cdn.Autorest\Az.Cdn.csproj", "{C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {E79F8C9F-CFFD-41D6-AD19-641B9B95BB3C}.Release|x64.Build.0 = Release|Any CPU {E79F8C9F-CFFD-41D6-AD19-641B9B95BB3C}.Release|x86.ActiveCfg = Release|Any CPU {E79F8C9F-CFFD-41D6-AD19-641B9B95BB3C}.Release|x86.Build.0 = Release|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Debug|Any CPU.Build.0 = Debug|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Debug|x64.ActiveCfg = Debug|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Debug|x64.Build.0 = Debug|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Debug|x86.ActiveCfg = Debug|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Debug|x86.Build.0 = Debug|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Release|Any CPU.ActiveCfg = Release|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Release|Any CPU.Build.0 = Release|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Release|x64.ActiveCfg = Release|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Release|x64.Build.0 = Release|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Release|x86.ActiveCfg = Release|Any CPU - {037CD4DB-9A65-41E8-AA3B-C33D419C9106}.Release|x86.Build.0 = Release|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Debug|x64.ActiveCfg = Debug|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Debug|x64.Build.0 = Debug|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Debug|x86.ActiveCfg = Debug|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Debug|x86.Build.0 = Debug|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Release|Any CPU.Build.0 = Release|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Release|x64.ActiveCfg = Release|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Release|x64.Build.0 = Release|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Release|x86.ActiveCfg = Release|Any CPU + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {2DFD09CD-2205-40B8-ABE7-AF69A8059123} = {75AB456C-8530-402C-8785-8395E57D9F98} {ECC581D5-5B1D-40BB-A2FA-9708C6BAB72F} = {75AB456C-8530-402C-8785-8395E57D9F98} {A8650B93-78BE-44F5-9A90-3B76F0311A16} = {75AB456C-8530-402C-8785-8395E57D9F98} - {037CD4DB-9A65-41E8-AA3B-C33D419C9106} = {C371EC25-5E4E-93C1-5161-3B7B810CF1FB} + {C4CAB059-FD8D-4F3F-832B-EEF6DAEDE50D} = {C371EC25-5E4E-93C1-5161-3B7B810CF1FB} EndGlobalSection EndGlobal diff --git a/src/Cdn/Cdn/Az.Cdn.psd1 b/src/Cdn/Cdn/Az.Cdn.psd1 index 023fbab95621..307b7180ae43 100644 --- a/src/Cdn/Cdn/Az.Cdn.psd1 +++ b/src/Cdn/Cdn/Az.Cdn.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/8/13 +# Generated on: 2025/8/28 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Cdn.Autorest/bin/Az.Cdn.private.dll' diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md index 0371f56c36d2..a3245d74e974 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md @@ -1,22 +1,83 @@ -### Example 1: {{ Add title here }} +### Example 1: Disable HTTPS for a custom domain with FrontDoorName and ResourceGroupName. ```powershell -{{ Add code here }} +Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with FrontDoorName as "frontdoor1" and ResourceGroupName as "resourcegroup1". -### Example 2: {{ Add title here }} +### Example 2: Disable HTTPS for a custom domain with PSFrontendEndpoint object. ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Disable-AzFrontDoorCustomDomainHttps -InputObject $frontendEndpointObj ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Disable HTTPS for a custom domain with PSFrontendEndpoint object. +### Example 3: Disable HTTPS for a custom domain with ResourceId. +```powershell +Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +``` + +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with ResourceId as $resourceId. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md index 0371f56c36d2..d26ea5a1a871 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md @@ -1,22 +1,146 @@ -### Example 1: {{ Add title here }} +### Example 1: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using Front Door managed certificate. ```powershell -{{ Add code here }} +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using Front Door managed certificate. -### Example 2: {{ Add title here }} +### Example 2: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the specific version. ```powershell -{{ Add code here }} +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : AzureKeyVault +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.0 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the specific version. +### Example 3: Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. +```powershell +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps +``` + +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. + +### Example 4: Enable HTTPS for a custom domain with resource id using Front Door managed certificate. +```powershell +Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +``` + +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" with resource id $resourceId using Front Door managed certificate. + +### Example 5: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. +```powershell +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" +``` + +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : AzureKeyVault +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.0 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoor.md index 0371f56c36d2..a7184f047afc 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoor.md @@ -1,22 +1,111 @@ -### Example 1: {{ Add title here }} +### Example 1: Get all FrontDoors in the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid1}/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 + +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid2}/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 ``` -{{ Add description here }} +Get all FrontDoors in the current subscription. -### Example 2: {{ Add title here }} +### Example 2: Get all FrontDoors in resource group "rg1" in the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor -ResourceGroupName "rg1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 + +FriendlyName : frontdoor2 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +Get all FrontDoors in resource group "rg1" in the current subscription. + +### Example 3: Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription. +```powershell +Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1" ``` -{{ Add description here }} +```output +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` +Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md index 0371f56c36d2..ee19b3aefd08 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md @@ -1,22 +1,74 @@ -### Example 1: {{ Add title here }} +### Example 1: Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontdoor1.azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net +Name : frontdoor1-azurefd-net +Type : Microsoft.Network/frontdoors/frontendendpoints + +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". -### Example 2: {{ Add title here }} +### Example 2: Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" -Name "frontdoor1-azurefd-net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontdoor1.azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net +Name : frontdoor1-azurefd-net +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} - +Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorRulesEngine.md index 0371f56c36d2..42f15ea25f5d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorRulesEngine.md @@ -1,22 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name rulesengine3 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +rulesEngine3 {rules1} ``` -{{ Add description here }} +Get specific rules engine configuration. + +### Example 2 -### Example 2: {{ Add title here }} ```powershell -{{ Add code here }} +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +rulesEngine1 {Rule1} +rulesEngine2 {Rule1} +rulesEngine3 {rules1} +``` + +Get all rules engine configurations in a front door. + +### Example 3 + +```powershell +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistent ``` -{{ Add description here }} +```output +Get-AzFrontDoorRulesEngine : Rules Engine with name 'nonexistent' in Front Door 'frontDoorName' is not found. +At line:1 char:1 ++ Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontD ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++ CategoryInfo : CloseError: (:) [Get-AzFrontDoorRulesEngine], PSArgumentException ++ FullyQualifiedErrorId : Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine +``` +Expected output when getting a nonexistent rules engine. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafManagedRuleSetDefinition.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafManagedRuleSetDefinition.md index 0371f56c36d2..4b22f83248d6 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafManagedRuleSetDefinition.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafManagedRuleSetDefinition.md @@ -1,22 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafManagedRuleSetDefinition ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +ProvisioningState RuleSetType RuleSetVersion RuleGroups +----------------- ----------- -------------- ---------- +Succeeded DefaultRuleSet 1.0 {PROTOCOL-ATTACK, LFI, RFI, RCE...} +Succeeded Microsoft_BotManagerRuleSet 1.0 {BadBots, GoodBots, UnknownBots} +Succeeded DefaultRuleSet preview-0.1 {LFI, RFI, RCE, PHP...} +Succeeded BotProtection preview-0.1 {KnownBadBots} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Get WAF managed rule set definitions. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafPolicy.md index 0371f56c36d2..ebbe9c477f1d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorWafPolicy.md @@ -1,22 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Get a WAF policy called $policyName in $resourceGroupName -### Example 2: {{ Add title here }} +### Example 2 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Disabled +{policyName} Detection Enabled 403 https://www.bing.com/ +{policyName} Detection Enabled 404 ``` -{{ Add description here }} - +Get all WAF policy in $resourceGroupName diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoor.md index 0371f56c36d2..bcfe89c9a3cd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoor.md @@ -1,22 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a Front Door based on given parameters. ```powershell -{{ Add code here }} +New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoors ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a Front Door based on given parameters. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendObject.md index 0371f56c36d2..5edf95e44326 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendObject.md @@ -1,22 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Address : contoso1.azurewebsites.net +HttpPort : 80 +HttpsPort : 443 +Priority : 1 +Weight : 50 +BackendHostHeader : +EnabledState : Enabled ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a PSBackend object for Front Door creation \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolObject.md index 0371f56c36d2..874ec88ba3ee 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolObject.md @@ -1,22 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Backends : {Microsoft.Azure.Commands.FrontDoor.Models.PSBackend} +LoadBalancingSettingRef : /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers + /Microsoft.Network/frontDoors/frontdoor5/LoadBalancingSettings/loadBalancingSetting1 +HealthProbeSettingRef : /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers + /Microsoft.Network/frontDoors/frontdoor5/HealthProbeSettings/healthProbeSetting1 +EnabledState : Enabled +ResourceState : +Id : +Name : backendpool1 +Type : ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a PSBackendPool object for Front Door creation \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolsSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolsSettingObject.md index 0371f56c36d2..fc5f5bfead76 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolsSettingObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorBackendPoolsSettingObject.md @@ -1,22 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Create BackendPoolsSettings object using defaults ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolsSettingObject ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +EnforceCertificateNameCheck : Enabled +SendRecvTimeoutInSeconds : 30 +Id : +Name : +Type : ``` -{{ Add description here }} +Create BackendPoolsSettings object using defaults -### Example 2: {{ Add title here }} +### Example 2: Create BackendPoolsSettings object with user specified values ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +EnforceCertificateNameCheck : Enabled +SendRecvTimeoutInSeconds : 60 +Id : +Name : +Type : ``` -{{ Add description here }} - +Create BackendPoolsSettings object with user specified values \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorCacheConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorCacheConfigurationObject.md index 0371f56c36d2..83f7ccb5fef9 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorCacheConfigurationObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorCacheConfigurationObject.md @@ -1,22 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a cache configuration object ```powershell -{{ Add code here }} +New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -QueryParameterStripDirective "StripAllExcept" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CacheDuration : 0.12:00:00 +DynamicCompression : Enabled +QueryParameterStripDirective : StripAllExcept ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a cache configuration object. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorForwardingConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorForwardingConfigurationObject.md index 0371f56c36d2..dacae532641a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorForwardingConfigurationObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorForwardingConfigurationObject.md @@ -1,22 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a basic forwarding configuration object ```powershell -{{ Add code here }} +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "MatchRequest" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +BackendPoolId : /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool +CacheConfiguration : +CustomForwardingPath : +ForwardingProtocol : MatchRequest ``` -{{ Add description here }} +Create a basic forwarding configuration object that forwards requests to a backend pool using the same protocol as the incoming request. -### Example 2: {{ Add title here }} +### Example 2: Create a forwarding configuration object with cache and custom path ```powershell -{{ Add code here }} +$cacheConfig = New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "HttpsOnly" -CustomForwardingPath "/api/v2" -CacheConfiguration $cacheConfig ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +BackendPoolId : /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool +CacheConfiguration : Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration +CustomForwardingPath : /api/v2 +ForwardingProtocol : HttpsOnly ``` -{{ Add description here }} +Create a forwarding configuration object with caching enabled, custom forwarding path, and HTTPS-only forwarding protocol. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorFrontendEndpointObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorFrontendEndpointObject.md index 0371f56c36d2..ee0cd5383565 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorFrontendEndpointObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorFrontendEndpointObject.md @@ -1,22 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a PSFrontendEndpoint Object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName "frontendendpoint1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendendpoint1 +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : +CustomHttpsProvisioningSubstate : +CertificateSource : +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : +Id : +Name : frontendendpoint1 +Type : +ProtocolType : ServerNameIndication ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a PSFrontendEndpoint Object for Front Door creation \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHeaderActionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHeaderActionObject.md index 0371f56c36d2..e6689508c6ec 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHeaderActionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHeaderActionObject.md @@ -1,22 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1 :Creates PSHeaderAction object for the creation of PSRulesEngineAction object. ```powershell -{{ Add code here }} +New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HeaderName HeaderActionType Value +---------- ---------------- ----- +headername Append ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Creates PSHeaderAction object for the creation of PSRulesEngineAction object. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHealthProbeSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHealthProbeSettingObject.md index 0371f56c36d2..03e41d14daa3 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHealthProbeSettingObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorHealthProbeSettingObject.md @@ -1,22 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a PSHealthProbeSetting object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Path : / +Protocol : Http +IntervalInSeconds : 30 +ResourceState : +HealthProbeMethod : Head +EnabledState : Enabled +Id : +Name : healthProbeSetting1 +Type : ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Note: HealthProbeMethod setting is not case sensitive. +Create a PSHealthProbeSetting object for Front Door creation \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorLoadBalancingSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorLoadBalancingSettingObject.md index 0371f56c36d2..f9f278b34cc1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorLoadBalancingSettingObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorLoadBalancingSettingObject.md @@ -1,22 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a PSLoadBalancingSetting object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +SampleSize : 4 +AdditionalLatencyMilliseconds : 0 +SuccessfulSamplesRequired : 2 +ResourceState : +Id : +Name : loadbalancingsetting1 +Type : ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a PSLoadBalancingSetting object for Front Door creation \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorPolicySettingsObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorPolicySettingsObject.md index 0371f56c36d2..7c8f6b96a70c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorPolicySettingsObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorPolicySettingsObject.md @@ -1,22 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a WAF policy settings object with all parameters ```powershell -{{ Add code here }} +$logScrubbing = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @() +New-AzFrontDoorPolicySettingsObject -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Enabled" -CustomBlockResponseStatusCode 403 -CustomBlockResponseBody "PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+" -RedirectUrl "https://www.example.com/blocked" -JavascriptChallengeExpirationInMinutes 30 -LogScrubbingSetting $logScrubbing ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CustomBlockResponseBody : PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+ +CustomBlockResponseStatusCode : 403 +EnabledState : Enabled +JavascriptChallengeExpirationInMinutes : 30 +LogScrubbingSetting : Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing +Mode : Prevention +RedirectUrl : https://www.example.com/blocked +RequestBodyCheck : Enabled ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a comprehensive WAF policy settings object with prevention mode enabled, custom block response, redirect URL, and log scrubbing configuration. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRedirectConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRedirectConfigurationObject.md index 0371f56c36d2..577838cc76a4 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRedirectConfigurationObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRedirectConfigurationObject.md @@ -1,22 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a redirect configuration object with all parameters ```powershell -{{ Add code here }} +New-AzFrontDoorRedirectConfigurationObject -RedirectType "PermanentRedirect" -RedirectProtocol "HttpsOnly" -CustomHost "www.example.com" -CustomPath "/newpath" -CustomQueryString "source=frontdoor&campaign=redirect" -CustomFragment "section1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CustomFragment : section1 +CustomHost : www.example.com +CustomPath : /newpath +CustomQueryString : source=frontdoor&campaign=redirect +RedirectProtocol : HttpsOnly +RedirectType : PermanentRedirect ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a comprehensive redirect configuration object that permanently redirects requests to HTTPS protocol with custom host, path, query string, and fragment. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRoutingRuleObject.md index 0371f56c36d2..b85be736cd75 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRoutingRuleObject.md @@ -1,22 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a PSRoutingRuleObject for Front Door creation with a forwarding rule ```powershell -{{ Add code here }} +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FrontendEndpointIds : {/subscriptions/{subid}/resourceGroups/{rgname}/pro + viders/Microsoft.Network/frontDoors/{frontdoorname}/FrontendEndpoints/frontendEndpoint1} +AcceptedProtocols : {Http, Https} +PatternsToMatch : {/*} +HealthProbeSettings : +RouteConfiguration : Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration +EnabledState : Enabled +ResourceState : +Id : +Name : {routingRuleName} +Type : ``` -{{ Add description here }} +Create a PSRoutingRuleObject for Front Door creation with a forwarding rule -### Example 2: {{ Add title here }} +### Example 2: Create a PSRoutingRuleObject for Front Door creation with a redirect rule ```powershell -{{ Add code here }} +$customHost = "www.contoso.com" +$customPath = "/images/contoso.png" +$queryString = "field1=value1&field2=value2" +$destinationFragment = "section-header-2" +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath -CustomQueryString $queryString -CustomFragment $destinationFragment ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FrontendEndpointIds : {/subscriptions/{subid}/resourceGroups/{rgname}/pro + viders/Microsoft.Network/frontDoors/{frontdoorname}/FrontendEndpoints/frontendEndpoint1} +AcceptedProtocols : {Http, Https} +PatternsToMatch : {/*} +HealthProbeSettings : +RouteConfiguration : Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration +EnabledState : Enabled +ResourceState : +Id : +Name : {routingRuleName} +Type : ``` -{{ Add description here }} - +Create a PSRoutingRuleObject for Front Door creation \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngine.md index 0371f56c36d2..70ce2c52d311 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngine.md @@ -1,22 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a new rules engine configuration for specified front door. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a new rules engine configuration for specified front door. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md index 0371f56c36d2..987718e44f72 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md @@ -1,22 +1,74 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. + ```powershell -{{ Add code here }} -``` +$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" +$headerActions + +HeaderName HeaderActionType Value +---------- ---------------- ----- +X-Content-Type-Options Append nosniff + +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {X-Content-Type-Options} -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -{{ Add description here }} +Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. -### Example 2: {{ Add title here }} +### Example 2: Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. + ```powershell -{{ Add code here }} -``` +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true +$rulesEngineAction + +RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride +------------------- -------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineAction.RequestHeaderAction + +HeaderName HeaderActionType Value +---------- ---------------- ----- +headeraction1 Overwrite +headeraction2 Append -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +$rulesEngineAction.ResponseHeaderAction +$rulesEngineAction.RouteConfigurationOverride + +CustomForwardingPath : +ForwardingProtocol : HttpsOnly +BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi + ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool +QueryParameterStripDirective : StripNone +DynamicCompression : Disabled +EnableCaching : True ``` -{{ Add description here }} +Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. + +### Example 3: Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. + +```powershell +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration + +$rulesEngineAction.RouteConfigurationOverride + +RedirectType : Moved +RedirectProtocol : MatchRequest +CustomHost : www.contoso.com +CustomPath : +CustomFragment : +CustomQueryString : + +``` +Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineMatchConditionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineMatchConditionObject.md index 0371f56c36d2..e2204892aa6f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineMatchConditionObject.md @@ -1,22 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Create a new PSRulesEngineMatchCondition object. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RulesEngineMatchVariable : RequestHeader +RulesEngineMatchValue : {allowoverride} +Selector : Rules-Engine-Route-Forward +RulesEngineOperator : Equal +NegateCondition : False +Transform : {Lowercase, Uppercase} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a new PSRulesEngineMatchCondition object. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md index 0371f56c36d2..23773fc0849d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md @@ -1,22 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Create new PSRulesEngineRule object and demonstrate how to see the subfields. + ```powershell -{{ Add code here }} -``` +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name : rules1 +Priority : 0 +MatchProcessingBehavior : Stop +MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} +Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction + + +$rulesEngineRule1.Action + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineRule1.MatchCondition[0] + +RulesEngineMatchVariable : RequestHeader +RulesEngineMatchValue : {allowoverride} +Selector : Rules-Engine-Route-Forward +RulesEngineOperator : Equal +NegateCondition : False +Transforms : {Lowercase, Uppercase} ``` -{{ Add description here }} +Create new PSRulesEngineRule object and demonstrate how to see the subfields. -### Example 2: {{ Add title here }} +### Example 2: Expect output when passing in invalid priority value. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +New-AzFrontDoorRulesEngineRuleObject : Cannot validate argument on parameter 'Priority'. The -1 argument is less than the minimum allowed range of 0. Supply an argument that is greater than or equal to 0 and then try the command again. +At line:1 char:81 ++ ... ule1 = New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 ++ ~~ ++ CategoryInfo : InvalidData: (:) [New-AzFrontDoorRulesEngineRuleObject], ParameterBindingValidationException ++ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject ``` -{{ Add description here }} - +Expect output when passing in invalid priority value. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md index 0371f56c36d2..c029ce9f8872 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md @@ -1,22 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Create CustomRuleGroupByVariable object for custom rule object ```powershell -{{ Add code here }} +New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName SocketAddr ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create CustomRuleGroupByVariable object for custom rule object +Use cmdlet "New-AzFrontDoorWafCustomRuleGroupByVariableObject" to pass -CustomRule parameter \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleObject.md index 0371f56c36d2..65e5105e1faa 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafCustomRuleObject.md @@ -1,22 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Create CustomRule Object for WAF policy creation ```powershell -{{ Add code here }} +New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RuleType Action Priority RateLimitDurationInMinutes +---- -------- ------ -------- -------------------------- +Rule1 MatchRule Block 2 1 ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create a CustomRule Object \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingRuleObject.md index 0371f56c36d2..15cfe36588b0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingRuleObject.md @@ -1,22 +1,6 @@ -### Example 1: {{ Add title here }} +### Example 1: Create LogScrubbingRule object for LogScrubbingSetting ```powershell -{{ Add code here }} +New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +This object is a parameter for LogscrubbingSetting \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingSettingObject.md index 0371f56c36d2..6227679d5153 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingSettingObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafLogScrubbingSettingObject.md @@ -1,22 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Create LogScrubbingSetting object for Waf policy object ```powershell -{{ Add code here }} +$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" +New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Need to create a LogScrubbingRule object before using. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleExclusionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleExclusionObject.md index 0371f56c36d2..5b60f38cb6a8 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleExclusionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleExclusionObject.md @@ -1,22 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Create managed rule exclusion object for WAF managed rule sets, groups, or rules. ```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable SelectorMatchOperator Selector +------------- --------------------- -------- +QueryStringArgNames Equals ParameterName ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create managed rule exclusion object for WAF managed rule sets, groups, or rules. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleObject.md index 0371f56c36d2..ca797de51119 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleObject.md @@ -1,22 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Create ManagedRule Object for WAF policy creation ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log +$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 -{{ Add description here }} +$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log +$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3 -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleGroupOverrides RuleSetType RuleSetVersion +------------------ ----------- -------------- +{SQLI, XSS} DefaultRuleSet preview-0.1 ``` -{{ Add description here }} - +Create a ManagedRule Object \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleOverrideObject.md index 0371f56c36d2..1c8404141061 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleOverrideObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -1,22 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` +### Example 1: Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation. +Create a managed rule override object for rule 942250 (which is in SQLI group). -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleId EnabledState Action +------ ------------ ------ +942250 Enabled Log ``` -{{ Add description here }} - +Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafMatchConditionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafMatchConditionObject.md index 0371f56c36d2..86d457f9f50c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafMatchConditionObject.md @@ -1,22 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Create MatchCondition Object for WAF policy creation ```powershell -{{ Add code here }} +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform +------------- ---------------- ---------- -------- --------------- --------- +RequestHeader Contains {Windows} User-Agent False + ``` -{{ Add description here }} +Create MatchCondition Object for WAF policy creation + +### Example 2: Create MatchCondition Object for WAF policy creation -### Example 2: {{ Add title here }} ```powershell -{{ Add code here }} +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform +------------- ---------------- ---------- -------- --------------- --------- +RequestHeader Contains {WINDOWS} User-Agent False {Uppercase} ``` -{{ Add description here }} - +Create a MatchCondition object \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafPolicy.md index 0371f56c36d2..0470024af9cd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafPolicy.md @@ -1,22 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Create WAF policy ```powershell -{{ Add code here }} +New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState RedirectUrl +---- ---------- ------------------ ----------- +{policyName} Prevention Enabled https://www.bing.com/ ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Create WAF policy \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafRuleGroupOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafRuleGroupOverrideObject.md index 0371f56c36d2..395652b2fcdd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafRuleGroupOverrideObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorWafRuleGroupOverrideObject.md @@ -1,22 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Create RuleGroupOverride Object for WAF policy creation ```powershell -{{ Add code here }} -``` +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} +New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleGroupName ManagedRuleOverrides +------------- -------------------- +SQLI {942250, 942251} ``` -{{ Add description here }} - +Create a RuleGroupOverride Object \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoor.md index 0371f56c36d2..ae8e5b02d24b 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoor.md @@ -1,22 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Remove "frontdoor1" in resource group "rg1" under the current subscription. ```powershell -{{ Add code here }} +Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Remove "frontdoor1" in resource group "rg1" under the current subscription. + +### Example 2: Remove all FrontDoors in resource group "rg1" under the current subscription. +```powershell +Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor ``` -{{ Add description here }} +Remove all FrontDoors in resource group "rg1" under the current subscription. -### Example 2: {{ Add title here }} +### Example 3: Remove all FrontDoors under the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor | Remove-AzFrontDoor ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` +Remove all FrontDoors under the current subscription. -{{ Add description here }} +### Example 4: Remove all FrontDoors with name "frontdoor1" under the current subscription. +```powershell +Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor +``` +Remove all FrontDoors with name "frontdoor1" under the current subscription. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorContent.md index 0371f56c36d2..576e6b4bcd0e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorContent.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorContent.md @@ -1,22 +1,6 @@ -### Example 1: {{ Add title here }} +### Example 1: Remove-AzFrontDoorContent purges cached contents in a Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorContent -ResourceGroupName $ResourceGroupName -Name $FrontDoorName -ContentPath "/*" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Remove-AzFrontDoorContent purges cached contents in a Front Door diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorRulesEngine.md index 0371f56c36d2..bff45d860661 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorRulesEngine.md @@ -1,22 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Remove Rules Engine from Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $rulesEngine.Name -PassThru ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +True ``` -{{ Add description here }} +Remove rules engine configuration. -### Example 2: {{ Add title here }} +### Example 2: Remove Rules Engine from Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistentRulesEngine ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Remove-AzFrontDoorRulesEngine : Rules Engine with name 'nonexistentRulesEngine' in Front Door 'frontDoorName' in the resource group 'resourceGroupName' does not exist. +At line:1 char:1 ++ Remove-AzFrontDoorRulesEngine -ResourceGroupName resourceGroupName -Fro ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++ CategoryInfo : CloseError: (:) [Remove-AzFrontDoorRulesEngine], PSArgumentException ++ FullyQualifiedErrorId : Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine ``` -{{ Add description here }} - +Expected outcome when removing a nonexistent rules engine configuration. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorWafPolicy.md index 0371f56c36d2..65b9c814edbd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Remove-AzFrontDoorWafPolicy.md @@ -1,22 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Removes a WAF policy ```powershell -{{ Add code here }} +Remove-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Remove the WAF policy called $policyName in $resourceGroupName. -### Example 2: {{ Add title here }} +### Example 2: Removes all WAF policy ```powershell -{{ Add code here }} +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Remove all WAF policy in $resourceGroupName. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md index 0371f56c36d2..74e1c72bb538 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md @@ -1,22 +1,106 @@ -### Example 1: {{ Add title here }} +### Example 1: update an existing Front Door with FrontDoorName and ResourceGroupName. ```powershell -{{ Add code here }} +Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoors ``` -{{ Add description here }} +update an existing FrontDoor. -### Example 2: {{ Add title here }} +### Example 2: update an existing Front Door with PSFrontDoor object. ```powershell -{{ Add code here }} +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 ``` -{{ Add description here }} +update an existing FrontDoor. +### Example 3: update an existing Front Door with ResourceId +```powershell +Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +``` + +```output +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +update an existing FrontDoor. + +### Example 4: update BackendPoolSetting property EnforceCertificateNameCheck of an existing Front Door with -DisableCertificateNameCheck switch parameter +Front Door to be updated can be identified using FrontDoorName and ResourceGroupName, PSFrontDoor object, or ResourceId. (See above 3 examples for example) +The below example uses PSFrontDoor object. + +```powershell +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck +``` + +```output +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {PSBackendPoolsSetting object with EnforceCertificateNameCheck is set to Disabled} +EnforceCertificateNameCheck : Disabled +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +update an existing FrontDoor. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md index 0371f56c36d2..2ffec0af8762 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md @@ -1,22 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Get an existing rules engine configuration and add another rules engine rule to it. + ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -{{ Add description here }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1} -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` +$rulesEngineRule2 = New-AzFrontDoorRulesEngineRuleObject -Name rules2 -Priority 3 -Action $rulesEngineAction +Set-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1, $rulesEngineRule2 -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1, rules2} ``` -{{ Add description here }} - +Get an existing rules engine configuration and add another rules engine rule to it. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/examples/Update-AzFrontDoorWafPolicy.md index 0371f56c36d2..8c44c3b31be9 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Update-AzFrontDoorWafPolicy.md @@ -1,22 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Updates an existing WAF policy custom status code. ```powershell -{{ Add code here }} +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Update an existing WAF policy custom status code. -### Example 2: {{ Add title here }} +### Example 2: Update an existing WAF policy mode. ```powershell -{{ Add code here }} +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Detection Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Update an existing WAF policy mode. +### Example 3: Update an existing WAF policy enabled state and mode. +```powershell +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +``` + +```output +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Detection Disabled 403 https://www.bing.com/ +``` + +Update an existing WAF policy enabled state and mode. + +### Example 4: Update all WAF policies in $resourceGroupName +```powershell +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled +``` + +Update all WAF policies in $resourceGroupName \ No newline at end of file From 659b67dbb2c2f0c20a6614e963184093d460e2e8 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Mon, 22 Sep 2025 10:35:25 +1000 Subject: [PATCH 10/30] finish test --- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../Disable-AzFrontDoorCustomDomainHttps.md | 78 +++++++++- .../Enable-AzFrontDoorCustomDomainHttps.md | 141 +++++++++++++++++- .../docs/Get-AzFrontDoor.md | 112 ++++++++++++-- .../docs/Get-AzFrontDoorFrontendEndpoint.md | 79 ++++++++-- .../docs/Get-AzFrontDoorRulesEngine.md | 38 ++++- ...-AzFrontDoorWafManagedRuleSetDefinition.md | 24 ++- .../docs/Get-AzFrontDoorWafPolicy.md | 22 ++- .../docs/New-AzFrontDoor.md | 34 +++-- .../docs/New-AzFrontDoorBackendObject.md | 25 ++-- .../docs/New-AzFrontDoorBackendPoolObject.md | 28 ++-- ...ew-AzFrontDoorBackendPoolsSettingObject.md | 24 ++- ...New-AzFrontDoorCacheConfigurationObject.md | 21 +-- ...zFrontDoorForwardingConfigurationObject.md | 23 ++- .../New-AzFrontDoorFrontendEndpointObject.md | 36 +++-- .../docs/New-AzFrontDoorHeaderActionObject.md | 21 +-- ...New-AzFrontDoorHealthProbeSettingObject.md | 27 ++-- ...w-AzFrontDoorLoadBalancingSettingObject.md | 25 ++-- .../New-AzFrontDoorPolicySettingsObject.md | 27 ++-- ...-AzFrontDoorRedirectConfigurationObject.md | 24 ++- .../docs/New-AzFrontDoorRoutingRuleObject.md | 50 +++++-- .../docs/New-AzFrontDoorRulesEngine.md | 21 +-- .../New-AzFrontDoorRulesEngineActionObject.md | 72 +++++++-- ...rontDoorRulesEngineMatchConditionObject.md | 24 ++- .../New-AzFrontDoorRulesEngineRuleObject.md | 43 ++++-- ...tDoorWafCustomRuleGroupByVariableObject.md | 22 +-- .../New-AzFrontDoorWafCustomRuleObject.md | 21 +-- ...ew-AzFrontDoorWafLogScrubbingRuleObject.md | 21 +-- ...AzFrontDoorWafLogScrubbingSettingObject.md | 22 +-- ...zFrontDoorWafManagedRuleExclusionObject.md | 21 +-- .../New-AzFrontDoorWafManagedRuleObject.md | 24 ++- ...AzFrontDoorWafManagedRuleOverrideObject.md | 21 +-- .../New-AzFrontDoorWafMatchConditionObject.md | 21 ++- .../docs/New-AzFrontDoorWafPolicy.md | 21 +-- ...w-AzFrontDoorWafRuleGroupOverrideObject.md | 22 +-- .../docs/Remove-AzFrontDoor.md | 26 ++-- .../docs/Remove-AzFrontDoorContent.md | 21 +-- .../docs/Remove-AzFrontDoorRulesEngine.md | 21 ++- .../docs/Remove-AzFrontDoorWafPolicy.md | 20 +-- .../docs/Set-AzFrontDoor.md | 98 +++++++++++- .../docs/Set-AzFrontDoorRulesEngine.md | 26 ++-- .../docs/Update-AzFrontDoorWafPolicy.md | 40 ++++- .../FrontDoor.Autorest/generate-info.json | 2 +- ...ble-AzFrontDoorCustomDomainHttps.Tests.ps1 | 2 +- .../test/New-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- .../test/Remove-AzFrontDoor.Tests.ps1 | 2 +- .../Remove-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- .../test/Set-AzFrontDoor.Tests.ps1 | 2 +- .../Update-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- src/FrontDoor/FrontDoor.sln | 28 ++-- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- .../Disable-AzFrontDoorCustomDomainHttps.md | 78 +++++++++- .../Enable-AzFrontDoorCustomDomainHttps.md | 141 +++++++++++++++++- .../FrontDoor/help/Get-AzFrontDoor.md | 112 ++++++++++++-- .../help/Get-AzFrontDoorFrontendEndpoint.md | 79 ++++++++-- .../help/Get-AzFrontDoorRulesEngine.md | 38 ++++- ...-AzFrontDoorWafManagedRuleSetDefinition.md | 24 ++- .../help/Get-AzFrontDoorWafPolicy.md | 22 ++- .../FrontDoor/help/New-AzFrontDoor.md | 34 +++-- .../help/New-AzFrontDoorBackendObject.md | 25 ++-- .../help/New-AzFrontDoorBackendPoolObject.md | 28 ++-- ...ew-AzFrontDoorBackendPoolsSettingObject.md | 24 ++- ...New-AzFrontDoorCacheConfigurationObject.md | 21 +-- ...zFrontDoorForwardingConfigurationObject.md | 23 ++- .../New-AzFrontDoorFrontendEndpointObject.md | 36 +++-- .../help/New-AzFrontDoorHeaderActionObject.md | 21 +-- ...New-AzFrontDoorHealthProbeSettingObject.md | 27 ++-- ...w-AzFrontDoorLoadBalancingSettingObject.md | 25 ++-- .../New-AzFrontDoorPolicySettingsObject.md | 27 ++-- ...-AzFrontDoorRedirectConfigurationObject.md | 24 ++- .../help/New-AzFrontDoorRoutingRuleObject.md | 40 ++++- .../help/New-AzFrontDoorRulesEngine.md | 21 +-- .../New-AzFrontDoorRulesEngineActionObject.md | 70 +++++++-- ...rontDoorRulesEngineMatchConditionObject.md | 24 ++- .../New-AzFrontDoorRulesEngineRuleObject.md | 43 ++++-- ...tDoorWafCustomRuleGroupByVariableObject.md | 22 +-- .../New-AzFrontDoorWafCustomRuleObject.md | 21 +-- ...ew-AzFrontDoorWafLogScrubbingRuleObject.md | 21 +-- ...AzFrontDoorWafLogScrubbingSettingObject.md | 22 +-- ...zFrontDoorWafManagedRuleExclusionObject.md | 21 +-- .../New-AzFrontDoorWafManagedRuleObject.md | 24 ++- ...AzFrontDoorWafManagedRuleOverrideObject.md | 21 +-- .../New-AzFrontDoorWafMatchConditionObject.md | 20 ++- .../help/New-AzFrontDoorWafPolicy.md | 21 +-- ...w-AzFrontDoorWafRuleGroupOverrideObject.md | 22 +-- .../FrontDoor/help/Remove-AzFrontDoor.md | 26 ++-- .../help/Remove-AzFrontDoorContent.md | 21 +-- .../help/Remove-AzFrontDoorRulesEngine.md | 21 ++- .../help/Remove-AzFrontDoorWafPolicy.md | 20 +-- .../FrontDoor/help/Set-AzFrontDoor.md | 98 +++++++++++- .../help/Set-AzFrontDoorRulesEngine.md | 26 ++-- .../help/Update-AzFrontDoorWafPolicy.md | 40 ++++- 92 files changed, 1929 insertions(+), 1078 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 93797dd7680d..d07b61f60540 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: b429505a-2933-4a7b-8415-99b0406398b7 +Module Guid: b45ba7ed-deb6-4cfe-a02e-34af4e8e4233 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md index ff6e215238f0..aa1136c04ed2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md @@ -36,27 +36,89 @@ Disables a frontendEndpoint for HTTPS traffic ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Disable HTTPS for a custom domain with FrontDoorName and ResourceGroupName. ```powershell -{{ Add code here }} +Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with FrontDoorName as "frontdoor1" and ResourceGroupName as "resourcegroup1". -### Example 2: {{ Add title here }} +### Example 2: Disable HTTPS for a custom domain with PSFrontendEndpoint object. ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Disable-AzFrontDoorCustomDomainHttps -InputObject $frontendEndpointObj ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Disable HTTPS for a custom domain with PSFrontendEndpoint object. + +### Example 3: Disable HTTPS for a custom domain with ResourceId. +```powershell +Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +``` + +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with ResourceId as $resourceId. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md index 6e7186defb4a..a98e6ab2077f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md @@ -72,27 +72,152 @@ Enables a frontendEndpoint for HTTPS traffic ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using Front Door managed certificate. ```powershell -{{ Add code here }} +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using Front Door managed certificate. + +### Example 2: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the specific version. +```powershell +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" ``` -{{ Add description here }} +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : AzureKeyVault +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.0 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the specific version. + +### Example 3: Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. +```powershell +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps +``` -### Example 2: {{ Add title here }} +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. + +### Example 4: Enable HTTPS for a custom domain with resource id using Front Door managed certificate. ```powershell -{{ Add code here }} +Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" with resource id $resourceId using Front Door managed certificate. + +### Example 5: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. +```powershell +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" ``` -{{ Add description here }} +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : AzureKeyVault +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.0 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md index a105f8a6e7a5..b47a348fdd85 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md @@ -39,27 +39,117 @@ Gets a Front Door with the specified Front Door name under the specified subscri ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Get all FrontDoors in the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid1}/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 + +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid2}/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +Get all FrontDoors in the current subscription. + +### Example 2: Get all FrontDoors in resource group "rg1" in the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor -ResourceGroupName "rg1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 + +FriendlyName : frontdoor2 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +Get all FrontDoors in resource group "rg1" in the current subscription. + +### Example 3: Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription. +```powershell +Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1" ``` -{{ Add description here }} +```output +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md index 4a1b4a39fe74..e92de2f4eeed 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md @@ -41,27 +41,80 @@ Gets a Frontend endpoint with the specified name within the specified Front Door ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +HostName : frontdoor1.azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net +Name : frontdoor1-azurefd-net +Type : Microsoft.Network/frontdoors/frontendendpoints + +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". + +### Example 2: Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" -Name "frontdoor1-azurefd-net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +HostName : frontdoor1.azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net +Name : frontdoor1-azurefd-net +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorRulesEngine.md index caa8ec2f82fa..48ff2f924d40 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorRulesEngine.md @@ -40,27 +40,49 @@ Gets a Rules Engine Configuration with the specified name within the specified F ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name rulesengine3 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +rulesEngine3 {rules1} ``` -{{ Add description here }} +Get specific rules engine configuration. -### Example 2: {{ Add title here }} +### Example 2 ```powershell -{{ Add code here }} +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +rulesEngine1 {Rule1} +rulesEngine2 {Rule1} +rulesEngine3 {rules1} ``` -{{ Add description here }} +Get all rules engine configurations in a front door. + +### Example 3 +```powershell +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistent +``` + +```output +Get-AzFrontDoorRulesEngine : Rules Engine with name 'nonexistent' in Front Door 'frontDoorName' is not found. +At line:1 char:1 ++ Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontD ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++ CategoryInfo : CloseError: (:) [Get-AzFrontDoorRulesEngine], PSArgumentException ++ FullyQualifiedErrorId : Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine +``` + +Expected output when getting a nonexistent rules engine. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafManagedRuleSetDefinition.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafManagedRuleSetDefinition.md index b306b662bad9..10ce44c85c69 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafManagedRuleSetDefinition.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafManagedRuleSetDefinition.md @@ -22,27 +22,21 @@ Lists all available managed rule sets. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafManagedRuleSetDefinition ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +ProvisioningState RuleSetType RuleSetVersion RuleGroups +----------------- ----------- -------------- ---------- +Succeeded DefaultRuleSet 1.0 {PROTOCOL-ATTACK, LFI, RFI, RCE...} +Succeeded Microsoft_BotManagerRuleSet 1.0 {BadBots, GoodBots, UnknownBots} +Succeeded DefaultRuleSet preview-0.1 {LFI, RFI, RCE, PHP...} +Succeeded BotProtection preview-0.1 {KnownBadBots} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Get WAF managed rule set definitions. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafPolicy.md index 30709208d018..0ce70436c060 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorWafPolicy.md @@ -39,27 +39,33 @@ Retrieve protection policy with specified name within a resource group. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Get a WAF policy called $policyName in $resourceGroupName -### Example 2: {{ Add title here }} +### Example 2 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Disabled +{policyName} Detection Enabled 403 https://www.bing.com/ +{policyName} Detection Enabled 404 ``` -{{ Add description here }} +Get all WAF policy in $resourceGroupName ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoor.md index a0124d5ca7d4..25196beca962 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoor.md @@ -41,27 +41,31 @@ Create a new Front Door with a Front Door name under the specified subscription ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a Front Door based on given parameters. ```powershell -{{ Add code here }} +New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoors ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a Front Door based on given parameters. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendObject.md index 1b326c15dffa..ae1c8bad62a0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendObject.md @@ -24,27 +24,22 @@ Create an in-memory object for Backend. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Address : contoso1.azurewebsites.net +HttpPort : 80 +HttpsPort : 443 +Priority : 1 +Weight : 50 +BackendHostHeader : +EnabledState : Enabled ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSBackend object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolObject.md index 44e8e5c9635c..4c6c6209ddf9 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolObject.md @@ -23,27 +23,25 @@ Create an in-memory object for BackendPool. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Backends : {Microsoft.Azure.Commands.FrontDoor.Models.PSBackend} +LoadBalancingSettingRef : /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers + /Microsoft.Network/frontDoors/frontdoor5/LoadBalancingSettings/loadBalancingSetting1 +HealthProbeSettingRef : /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers + /Microsoft.Network/frontDoors/frontdoor5/HealthProbeSettings/healthProbeSetting1 +EnabledState : Enabled +ResourceState : +Id : +Name : backendpool1 +Type : ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSBackendPool object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolsSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolsSettingObject.md index 3135bbe8da88..5ff9591eb759 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolsSettingObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorBackendPoolsSettingObject.md @@ -22,27 +22,35 @@ Create an in-memory object for BackendPoolsSettings. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create BackendPoolsSettings object using defaults ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolsSettingObject ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +EnforceCertificateNameCheck : Enabled +SendRecvTimeoutInSeconds : 30 +Id : +Name : +Type : ``` -{{ Add description here }} +Create BackendPoolsSettings object using defaults -### Example 2: {{ Add title here }} +### Example 2: Create BackendPoolsSettings object with user specified values ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +EnforceCertificateNameCheck : Enabled +SendRecvTimeoutInSeconds : 60 +Id : +Name : +Type : ``` -{{ Add description here }} +Create BackendPoolsSettings object with user specified values ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorCacheConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorCacheConfigurationObject.md index 55b04a256584..8361f4b4083a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorCacheConfigurationObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorCacheConfigurationObject.md @@ -22,27 +22,18 @@ Create an in-memory object for CacheConfiguration. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a cache configuration object ```powershell -{{ Add code here }} +New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -QueryParameterStripDirective "StripAllExcept" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CacheDuration : 0.12:00:00 +DynamicCompression : Enabled +QueryParameterStripDirective : StripAllExcept ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a cache configuration object. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorForwardingConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorForwardingConfigurationObject.md index dd24a9a9938c..fc88ad4d016d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorForwardingConfigurationObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorForwardingConfigurationObject.md @@ -23,27 +23,34 @@ Create an in-memory object for ForwardingConfiguration. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a basic forwarding configuration object ```powershell -{{ Add code here }} +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "MatchRequest" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +BackendPoolId : /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool +CacheConfiguration : +CustomForwardingPath : +ForwardingProtocol : MatchRequest ``` -{{ Add description here }} +Create a basic forwarding configuration object that forwards requests to a backend pool using the same protocol as the incoming request. -### Example 2: {{ Add title here }} +### Example 2: Create a forwarding configuration object with cache and custom path ```powershell -{{ Add code here }} +$cacheConfig = New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "HttpsOnly" -CustomForwardingPath "/api/v2" -CacheConfiguration $cacheConfig ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +BackendPoolId : /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool +CacheConfiguration : Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration +CustomForwardingPath : /api/v2 +ForwardingProtocol : HttpsOnly ``` -{{ Add description here }} +Create a forwarding configuration object with caching enabled, custom forwarding path, and HTTPS-only forwarding protocol. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorFrontendEndpointObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorFrontendEndpointObject.md index 1b7f77d753cc..46a4b240ab76 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorFrontendEndpointObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorFrontendEndpointObject.md @@ -25,27 +25,33 @@ Create an in-memory object for FrontendEndpoint. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a PSFrontendEndpoint Object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName "frontendendpoint1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendendpoint1 +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : +CustomHttpsProvisioningSubstate : +CertificateSource : +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : +Id : +Name : frontendendpoint1 +Type : +ProtocolType : ServerNameIndication ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSFrontendEndpoint Object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHeaderActionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHeaderActionObject.md index 5ba451067fbd..aa6692890551 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHeaderActionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHeaderActionObject.md @@ -22,27 +22,18 @@ Create an in-memory object for HeaderAction. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 :Creates PSHeaderAction object for the creation of PSRulesEngineAction object. ```powershell -{{ Add code here }} +New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HeaderName HeaderActionType Value +---------- ---------------- ----- +headername Append ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Creates PSHeaderAction object for the creation of PSRulesEngineAction object. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHealthProbeSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHealthProbeSettingObject.md index 848b392281ae..4cbf3f62cac1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHealthProbeSettingObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorHealthProbeSettingObject.md @@ -22,27 +22,26 @@ Create an in-memory object for HealthProbeSettingsModel. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a PSHealthProbeSetting object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Path : / +Protocol : Http +IntervalInSeconds : 30 +ResourceState : +HealthProbeMethod : Head +EnabledState : Enabled +Id : +Name : healthProbeSetting1 +Type : ``` -{{ Add description here }} +Note: HealthProbeMethod setting is not case sensitive. -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSHealthProbeSetting object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorLoadBalancingSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorLoadBalancingSettingObject.md index 688d7a3e652d..bd5357cc114f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorLoadBalancingSettingObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorLoadBalancingSettingObject.md @@ -22,27 +22,22 @@ Create an in-memory object for LoadBalancingSettingsModel. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a PSLoadBalancingSetting object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +SampleSize : 4 +AdditionalLatencyMilliseconds : 0 +SuccessfulSamplesRequired : 2 +ResourceState : +Id : +Name : loadbalancingsetting1 +Type : ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSLoadBalancingSetting object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md index 0c4138d007ee..95aa27b4d93f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md @@ -24,27 +24,24 @@ Create an in-memory object for PolicySettings. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a WAF policy settings object with all parameters ```powershell -{{ Add code here }} +$logScrubbing = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @() +New-AzFrontDoorPolicySettingsObject -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Enabled" -CustomBlockResponseStatusCode 403 -CustomBlockResponseBody "PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+" -RedirectUrl "https://www.example.com/blocked" -JavascriptChallengeExpirationInMinutes 30 -LogScrubbingSetting $logScrubbing ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CustomBlockResponseBody : PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+ +CustomBlockResponseStatusCode : 403 +EnabledState : Enabled +JavascriptChallengeExpirationInMinutes : 30 +LogScrubbingSetting : Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing +Mode : Prevention +RedirectUrl : https://www.example.com/blocked +RequestBodyCheck : Enabled ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a comprehensive WAF policy settings object with prevention mode enabled, custom block response, redirect URL, and log scrubbing configuration. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRedirectConfigurationObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRedirectConfigurationObject.md index 4ca57acc7927..604df0bd05cd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRedirectConfigurationObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRedirectConfigurationObject.md @@ -23,27 +23,21 @@ Create an in-memory object for RedirectConfiguration. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a redirect configuration object with all parameters ```powershell -{{ Add code here }} +New-AzFrontDoorRedirectConfigurationObject -RedirectType "PermanentRedirect" -RedirectProtocol "HttpsOnly" -CustomHost "www.example.com" -CustomPath "/newpath" -CustomQueryString "source=frontdoor&campaign=redirect" -CustomFragment "section1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CustomFragment : section1 +CustomHost : www.example.com +CustomPath : /newpath +CustomQueryString : source=frontdoor&campaign=redirect +RedirectProtocol : HttpsOnly +RedirectType : PermanentRedirect ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a comprehensive redirect configuration object that permanently redirects requests to HTTPS protocol with custom host, path, query string, and fragment. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md index d6b28a4ff9c8..886d6546bb1e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md @@ -41,27 +41,51 @@ Create an in-memory object for RoutingRule. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a PSRoutingRuleObject for Front Door creation with a forwarding rule ```powershell -{{ Add code here }} +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +FrontendEndpointIds : {/subscriptions/{subid}/resourceGroups/{rgname}/pro + viders/Microsoft.Network/frontDoors/{frontdoorname}/FrontendEndpoints/frontendEndpoint1} +AcceptedProtocols : {Http, Https} +PatternsToMatch : {/*} +HealthProbeSettings : +RouteConfiguration : Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration +EnabledState : Enabled +ResourceState : +Id : +Name : {routingRuleName} +Type : +``` + +Create a PSRoutingRuleObject for Front Door creation with a forwarding rule + +### Example 2: Create a PSRoutingRuleObject for Front Door creation with a redirect rule ```powershell -{{ Add code here }} +$customHost = "www.contoso.com" +$customPath = "/images/contoso.png" +$queryString = "field1=value1&field2=value2" +$destinationFragment = "section-header-2" +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath -CustomQueryString $queryString -CustomFragment $destinationFragment ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +FrontendEndpointIds : {/subscriptions/{subid}/resourceGroups/{rgname}/pro + viders/Microsoft.Network/frontDoors/{frontdoorname}/FrontendEndpoints/frontendEndpoint1} +AcceptedProtocols : {Http, Https} +PatternsToMatch : {/*} +HealthProbeSettings : +RouteConfiguration : Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration +EnabledState : Enabled +ResourceState : +Id : +Name : {routingRuleName} +Type : +``` + +Create a PSRoutingRuleObject for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngine.md index fb2323d13301..439c41818025 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngine.md @@ -38,27 +38,18 @@ Create a new Rules Engine Configuration with the specified name within the speci ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a new rules engine configuration for specified front door. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a new rules engine configuration for specified front door. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md index 632f2b9bf712..12d2e130a1b4 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md @@ -40,27 +40,77 @@ Create an in-memory object for RulesEngineAction. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. ```powershell -{{ Add code here }} -``` +$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" +$headerActions + +HeaderName HeaderActionType Value +---------- ---------------- ----- +X-Content-Type-Options Append nosniff + +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {X-Content-Type-Options} -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -{{ Add description here }} +Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. -### Example 2: {{ Add title here }} +### Example 2: Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. ```powershell -{{ Add code here }} +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true +$rulesEngineAction + +RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride +------------------- -------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineAction.RequestHeaderAction + +HeaderName HeaderActionType Value +---------- ---------------- ----- +headeraction1 Overwrite +headeraction2 Append + +$rulesEngineAction.ResponseHeaderAction +$rulesEngineAction.RouteConfigurationOverride + +CustomForwardingPath : +ForwardingProtocol : HttpsOnly +BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi + ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool +QueryParameterStripDirective : StripNone +DynamicCompression : Disabled +EnableCaching : True ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. + +### Example 3: Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. +```powershell +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration + +$rulesEngineAction.RouteConfigurationOverride + +RedirectType : Moved +RedirectProtocol : MatchRequest +CustomHost : www.contoso.com +CustomPath : +CustomFragment : +CustomQueryString : + ``` -{{ Add description here }} +Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineMatchConditionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineMatchConditionObject.md index 1597d8e12d1b..8f02d046f4eb 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineMatchConditionObject.md @@ -23,27 +23,21 @@ Create an in-memory object for RulesEngineMatchCondition. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a new PSRulesEngineMatchCondition object. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RulesEngineMatchVariable : RequestHeader +RulesEngineMatchValue : {allowoverride} +Selector : Rules-Engine-Route-Forward +RulesEngineOperator : Equal +NegateCondition : False +Transform : {Lowercase, Uppercase} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a new PSRulesEngineMatchCondition object. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md index 007f5d1c68ce..7142511e1067 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md @@ -22,27 +22,50 @@ Create an in-memory object for RulesEngineRule. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create new PSRulesEngineRule object and demonstrate how to see the subfields. ```powershell -{{ Add code here }} -``` +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name : rules1 +Priority : 0 +MatchProcessingBehavior : Stop +MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} +Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction + + +$rulesEngineRule1.Action + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineRule1.MatchCondition[0] + +RulesEngineMatchVariable : RequestHeader +RulesEngineMatchValue : {allowoverride} +Selector : Rules-Engine-Route-Forward +RulesEngineOperator : Equal +NegateCondition : False +Transforms : {Lowercase, Uppercase} ``` -{{ Add description here }} +Create new PSRulesEngineRule object and demonstrate how to see the subfields. -### Example 2: {{ Add title here }} +### Example 2: Expect output when passing in invalid priority value. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +New-AzFrontDoorRulesEngineRuleObject : Cannot validate argument on parameter 'Priority'. The -1 argument is less than the minimum allowed range of 0. Supply an argument that is greater than or equal to 0 and then try the command again. +At line:1 char:81 ++ ... ule1 = New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 ++ ~~ ++ CategoryInfo : InvalidData: (:) [New-AzFrontDoorRulesEngineRuleObject], ParameterBindingValidationException ++ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject ``` -{{ Add description here }} +Expect output when passing in invalid priority value. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md index 57c84edcc3b9..665a1a79bca1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md @@ -21,27 +21,13 @@ Create an in-memory object for GroupByVariable. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create CustomRuleGroupByVariable object for custom rule object ```powershell -{{ Add code here }} +New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName SocketAddr ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create CustomRuleGroupByVariable object for custom rule object +Use cmdlet "New-AzFrontDoorWafCustomRuleGroupByVariableObject" to pass -CustomRule parameter ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md index 9f8023c452e8..0a6882df76e5 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md @@ -23,27 +23,18 @@ Create an in-memory object for CustomRule. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create CustomRule Object for WAF policy creation ```powershell -{{ Add code here }} +New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RuleType Action Priority RateLimitDurationInMinutes +---- -------- ------ -------- -------------------------- +Rule1 MatchRule Block 2 1 ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a CustomRule Object ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingRuleObject.md index 16a59feac309..f8a2531a87d5 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingRuleObject.md @@ -22,27 +22,12 @@ Create an in-memory object for WebApplicationFirewallScrubbingRules. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create LogScrubbingRule object for LogScrubbingSetting ```powershell -{{ Add code here }} +New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +This object is a parameter for LogscrubbingSetting ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingSettingObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingSettingObject.md index 24e4d1200a51..4df7aac6c7d9 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingSettingObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafLogScrubbingSettingObject.md @@ -22,27 +22,13 @@ Create an in-memory object for PolicySettingsLogScrubbing. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create LogScrubbingSetting object for Waf policy object ```powershell -{{ Add code here }} +$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" +New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Need to create a LogScrubbingRule object before using. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleExclusionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleExclusionObject.md index a372870ba8e7..5469e752ed91 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleExclusionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleExclusionObject.md @@ -22,27 +22,18 @@ Create an in-memory object for ManagedRuleExclusion. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create managed rule exclusion object for WAF managed rule sets, groups, or rules. ```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable SelectorMatchOperator Selector +------------- --------------------- -------- +QueryStringArgNames Equals ParameterName ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create managed rule exclusion object for WAF managed rule sets, groups, or rules. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md index 58e0330e4abd..88619aa48567 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md @@ -22,27 +22,25 @@ Create an in-memory object for ManagedRuleSet. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create ManagedRule Object for WAF policy creation ```powershell -{{ Add code here }} -``` +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log +$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` +$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log +$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3 -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleGroupOverrides RuleSetType RuleSetVersion +------------------ ----------- -------------- +{SQLI, XSS} DefaultRuleSet preview-0.1 ``` -{{ Add description here }} +Create a ManagedRule Object ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md index 91f97ee75ee3..4fe6796ebeef 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -22,27 +22,18 @@ Create an in-memory object for ManagedRuleOverride. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation. ```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleId EnabledState Action +------ ------------ ------ +942250 Enabled Log ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafMatchConditionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafMatchConditionObject.md index 8b5aee51447e..7419970175ab 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafMatchConditionObject.md @@ -23,27 +23,32 @@ Create an in-memory object for MatchCondition. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create MatchCondition Object for WAF policy creation ```powershell -{{ Add code here }} +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform +------------- ---------------- ---------- -------- --------------- --------- +RequestHeader Contains {Windows} User-Agent False + ``` -{{ Add description here }} +Create MatchCondition Object for WAF policy creation -### Example 2: {{ Add title here }} +### Example 2: Create MatchCondition Object for WAF policy creation ```powershell -{{ Add code here }} +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform +------------- ---------------- ---------- -------- --------------- --------- +RequestHeader Contains {WINDOWS} User-Agent False {Uppercase} ``` -{{ Add description here }} +Create a MatchCondition object ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md index f7406cfd0546..f9d5fa0133cd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md @@ -41,27 +41,18 @@ Create policy with specified rule set name within a resource group. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create WAF policy ```powershell -{{ Add code here }} +New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState RedirectUrl +---- ---------- ------------------ ----------- +{policyName} Prevention Enabled https://www.bing.com/ ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create WAF policy ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafRuleGroupOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafRuleGroupOverrideObject.md index 6f6fa6048b29..74976f2b9020 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafRuleGroupOverrideObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafRuleGroupOverrideObject.md @@ -22,27 +22,21 @@ Create an in-memory object for ManagedRuleGroupOverride. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create RuleGroupOverride Object for WAF policy creation ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} +New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleGroupName ManagedRuleOverrides +------------- -------------------- +SQLI {942250, 942251} ``` -{{ Add description here }} +Create a RuleGroupOverride Object ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoor.md index b3fca717528d..363b3ba0efa2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoor.md @@ -29,27 +29,33 @@ Deletes an existing Front Door with the specified parameters. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Remove "frontdoor1" in resource group "rg1" under the current subscription. ```powershell -{{ Add code here }} +Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Remove "frontdoor1" in resource group "rg1" under the current subscription. + +### Example 2: Remove all FrontDoors in resource group "rg1" under the current subscription. +```powershell +Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor ``` -{{ Add description here }} +Remove all FrontDoors in resource group "rg1" under the current subscription. -### Example 2: {{ Add title here }} +### Example 3: Remove all FrontDoors under the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor | Remove-AzFrontDoor ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Remove all FrontDoors under the current subscription. + +### Example 4: Remove all FrontDoors with name "frontdoor1" under the current subscription. +```powershell +Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor ``` -{{ Add description here }} +Remove all FrontDoors with name "frontdoor1" under the current subscription. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md index dd1cf0ffd5de..0a79d56afac8 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md @@ -57,27 +57,12 @@ Removes a content from Front Door. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Remove-AzFrontDoorContent purges cached contents in a Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorContent -ResourceGroupName $ResourceGroupName -Name $FrontDoorName -ContentPath "/*" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Remove-AzFrontDoorContent purges cached contents in a Front Door ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorRulesEngine.md index 040232fd2698..1a64676c462c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorRulesEngine.md @@ -36,27 +36,32 @@ Deletes an existing Rules Engine Configuration with the specified parameters. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Remove Rules Engine from Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $rulesEngine.Name -PassThru ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +True ``` -{{ Add description here }} +Remove rules engine configuration. -### Example 2: {{ Add title here }} +### Example 2: Remove Rules Engine from Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistentRulesEngine ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Remove-AzFrontDoorRulesEngine : Rules Engine with name 'nonexistentRulesEngine' in Front Door 'frontDoorName' in the resource group 'resourceGroupName' does not exist. +At line:1 char:1 ++ Remove-AzFrontDoorRulesEngine -ResourceGroupName resourceGroupName -Fro ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++ CategoryInfo : CloseError: (:) [Remove-AzFrontDoorRulesEngine], PSArgumentException ++ FullyQualifiedErrorId : Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine ``` -{{ Add description here }} +Expected outcome when removing a nonexistent rules engine configuration. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorWafPolicy.md index e69812c6269b..2d6024fbe63f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorWafPolicy.md @@ -29,27 +29,19 @@ Deletes Policy ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Removes a WAF policy ```powershell -{{ Add code here }} +Remove-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Remove the WAF policy called $policyName in $resourceGroupName. -### Example 2: {{ Add title here }} +### Example 2: Removes all WAF policy ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy ``` -{{ Add description here }} +Remove all WAF policy in $resourceGroupName. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md index 5ec6dfea2e5f..e6b83a59c37a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md @@ -41,27 +41,109 @@ Update a new Front Door with a Front Door name under the specified subscription ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: update an existing Front Door with FrontDoorName and ResourceGroupName. ```powershell -{{ Add code here }} +Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoors ``` -{{ Add description here }} +update an existing FrontDoor. -### Example 2: {{ Add title here }} +### Example 2: update an existing Front Door with PSFrontDoor object. ```powershell -{{ Add code here }} +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 ``` -{{ Add description here }} +update an existing FrontDoor. + +### Example 3: update an existing Front Door with ResourceId +```powershell +Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +``` + +```output +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +update an existing FrontDoor. + +### Example 4: update BackendPoolSetting property EnforceCertificateNameCheck of an existing Front Door with -DisableCertificateNameCheck switch parameter +```powershell +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck +``` + +```output +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {PSBackendPoolsSetting object with EnforceCertificateNameCheck is set to Disabled} +EnforceCertificateNameCheck : Disabled +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +update an existing FrontDoor. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md index 0891a6714916..d6f055b19422 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md @@ -23,27 +23,23 @@ Update a new Rules Engine Configuration with the specified name within the speci ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Get an existing rules engine configuration and add another rules engine rule to it. ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -{{ Add description here }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1} -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` +$rulesEngineRule2 = New-AzFrontDoorRulesEngineRuleObject -Name rules2 -Priority 3 -Action $rulesEngineAction +Set-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1, $rulesEngineRule2 -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1, rules2} ``` -{{ Add description here }} +Get an existing rules engine configuration and add another rules engine rule to it. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md index e9791dd72829..ad2de5a97c70 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md @@ -34,27 +34,51 @@ Update policy with specified rule set name within a resource group. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Updates an existing WAF policy custom status code. ```powershell -{{ Add code here }} +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Update an existing WAF policy custom status code. -### Example 2: {{ Add title here }} +### Example 2: Update an existing WAF policy mode. ```powershell -{{ Add code here }} +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Detection Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Update an existing WAF policy mode. + +### Example 3: Update an existing WAF policy enabled state and mode. +```powershell +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +``` + +```output +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Detection Disabled 403 https://www.bing.com/ +``` + +Update an existing WAF policy enabled state and mode. + +### Example 4: Update all WAF policies in $resourceGroupName +```powershell +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled +``` + +Update all WAF policies in $resourceGroupName ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 047aae4d6b9e..c474ea2ff033 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "916e880d-9edd-40a5-ac8d-3552d3c5fec0" + "generate_Id": "d4637eaf-62a2-44fb-a24c-3dc90a1c5f8b" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 index 795182a24031..9d063fd037ad 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Enable-AzFrontDoorCustomDomai . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Enable-AzFrontDoorCustomDomainHttps' { +Describe 'Enable-AzFrontDoorCustomDomainHttps' -Tag 'LiveOnly' { It 'EnableExpanded' { # need to clean dns zone record before running this test $PrefixName = "pwshv4test-2" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 index 0243f5e29163..ee12d933be4c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafPolicy')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorWafPolicy' { +Describe 'New-AzFrontDoorWafPolicy' -Tag 'LiveOnly' { It 'CreateExpanded' { $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 index 5af4659f3280..e7faff7ac660 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoor')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoor' { +Describe 'Remove-AzFrontDoor' -Tag 'LiveOnly' { It 'Delete' { { $frontDoorName = 'testps-fd-' + (RandomString -allChars $false -len 4) diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 index 583d5d03bfec..67fe7492e83b 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorWafPolicy') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorWafPolicy' { +Describe 'Remove-AzFrontDoorWafPolicy' -Tag 'LiveOnly' { It 'Delete' { { $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 index af300aec2af8..99beb7c9eac8 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Set-AzFrontDoor')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Set-AzFrontDoor' { +Describe 'Set-AzFrontDoor' -Tag 'LiveOnly' { It 'UpdateExpanded' { $FDName = 'testps-fd-' + (RandomString -allChars $false -len 4) $tags = @{"tag1" = "value1"; "tag2" = "value2"} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 index 04f8fb61500b..06dd61b3cdca 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorWafPolicy') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorWafPolicy' { +Describe 'Update-AzFrontDoorWafPolicy' -Tag 'LiveOnly' { It 'UpdateExpanded' { $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" $customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action "Log" -Priority 2 diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 3eb9f5c96df8..f6343b3fa0c8 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{46D6F87B-7E44-47CC-8862-84A903DF4A67}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|x64.ActiveCfg = Debug|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|x64.Build.0 = Debug|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|x86.ActiveCfg = Debug|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Debug|x86.Build.0 = Debug|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|Any CPU.Build.0 = Release|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|x64.ActiveCfg = Release|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|x64.Build.0 = Release|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|x86.ActiveCfg = Release|Any CPU - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C}.Release|x86.Build.0 = Release|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|Any CPU.Build.0 = Debug|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|x64.ActiveCfg = Debug|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|x64.Build.0 = Debug|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|x86.ActiveCfg = Debug|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|x86.Build.0 = Debug|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|Any CPU.ActiveCfg = Release|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|Any CPU.Build.0 = Release|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|x64.ActiveCfg = Release|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|x64.Build.0 = Release|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|x86.ActiveCfg = Release|Any CPU + {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {144E7DEA-AA1F-4A05-BB1E-6FEF5903569C} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {46D6F87B-7E44-47CC-8862-84A903DF4A67} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 3409cc173178..88f91be0e2d4 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/8/27 +# Generated on: 2025/9/22 # @{ diff --git a/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md index 367199cb8eec..e5cd37392a10 100644 --- a/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md @@ -37,27 +37,89 @@ Disables a frontendEndpoint for HTTPS traffic ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Disable HTTPS for a custom domain with FrontDoorName and ResourceGroupName. ```powershell -{{ Add code here }} +Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with FrontDoorName as "frontdoor1" and ResourceGroupName as "resourcegroup1". -### Example 2: {{ Add title here }} +### Example 2: Disable HTTPS for a custom domain with PSFrontendEndpoint object. ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Disable-AzFrontDoorCustomDomainHttps -InputObject $frontendEndpointObj ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints ``` -{{ Add description here }} +Disable HTTPS for a custom domain with PSFrontendEndpoint object. + +### Example 3: Disable HTTPS for a custom domain with ResourceId. +```powershell +Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +``` + +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabling +CustomHttpsProvisioningSubstate : DeletingCertificate +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with ResourceId as $resourceId. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md index 9999b2bf62a5..c7c4b1caba63 100644 --- a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md @@ -74,27 +74,152 @@ Enables a frontendEndpoint for HTTPS traffic ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using Front Door managed certificate. ```powershell -{{ Add code here }} +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using Front Door managed certificate. + +### Example 2: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the specific version. +```powershell +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" ``` -{{ Add description here }} +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : AzureKeyVault +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.0 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the specific version. + +### Example 3: Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. +```powershell +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps +``` -### Example 2: {{ Add title here }} +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. + +### Example 4: Enable HTTPS for a custom domain with resource id using Front Door managed certificate. ```powershell -{{ Add code here }} +Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : FrontDoor +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" with resource id $resourceId using Front Door managed certificate. + +### Example 5: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. +```powershell +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" ``` -{{ Add description here }} +```output +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Enabling +CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest +CertificateSource : AzureKeyVault +ProtocolType : ServerNameIndication +MinimumTlsVersion : 1.0 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md index 9cbdae30aa9d..6b3ca7573494 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md @@ -41,27 +41,117 @@ Gets a Front Door with the specified Front Door name under the specified subscri ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Get all FrontDoors in the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid1}/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 + +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid2}/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +Get all FrontDoors in the current subscription. + +### Example 2: Get all FrontDoors in resource group "rg1" in the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor -ResourceGroupName "rg1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 + +FriendlyName : frontdoor2 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +Get all FrontDoors in resource group "rg1" in the current subscription. + +### Example 3: Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription. +```powershell +Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1" ``` -{{ Add description here }} +```output +FriendlyName : frontdoor1 +FrontDoorId : {guid} +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M + icrosoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md index 9261b9ccafc5..f523a4a2092a 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md @@ -43,27 +43,80 @@ Gets a Frontend endpoint with the specified name within the specified Front Door ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +HostName : frontdoor1.azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net +Name : frontdoor1-azurefd-net +Type : Microsoft.Network/frontdoors/frontendendpoints + +HostName : frontendpointname1.custom.xyz +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz +Name : frontendpointname1-custom-xyz +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". + +### Example 2: Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" -Name "frontdoor1-azurefd-net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +HostName : frontdoor1.azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : Disabled +CustomHttpsProvisioningSubstate : None +CertificateSource : +ProtocolType : +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : Enabled +Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 + /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net +Name : frontdoor1-azurefd-net +Type : Microsoft.Network/frontdoors/frontendendpoints +``` + +Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md index d29c064c4210..dfc0cddab667 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorRulesEngine.md @@ -42,27 +42,49 @@ Gets a Rules Engine Configuration with the specified name within the specified F ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name rulesengine3 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +rulesEngine3 {rules1} ``` -{{ Add description here }} +Get specific rules engine configuration. -### Example 2: {{ Add title here }} +### Example 2 ```powershell -{{ Add code here }} +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +rulesEngine1 {Rule1} +rulesEngine2 {Rule1} +rulesEngine3 {rules1} ``` -{{ Add description here }} +Get all rules engine configurations in a front door. + +### Example 3 +```powershell +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistent +``` + +```output +Get-AzFrontDoorRulesEngine : Rules Engine with name 'nonexistent' in Front Door 'frontDoorName' is not found. +At line:1 char:1 ++ Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontD ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++ CategoryInfo : CloseError: (:) [Get-AzFrontDoorRulesEngine], PSArgumentException ++ FullyQualifiedErrorId : Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine +``` + +Expected output when getting a nonexistent rules engine. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md index 4f8ce24e2b67..f0b8e1e36ec9 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafManagedRuleSetDefinition.md @@ -22,27 +22,21 @@ Lists all available managed rule sets. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafManagedRuleSetDefinition ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +ProvisioningState RuleSetType RuleSetVersion RuleGroups +----------------- ----------- -------------- ---------- +Succeeded DefaultRuleSet 1.0 {PROTOCOL-ATTACK, LFI, RFI, RCE...} +Succeeded Microsoft_BotManagerRuleSet 1.0 {BadBots, GoodBots, UnknownBots} +Succeeded DefaultRuleSet preview-0.1 {LFI, RFI, RCE, PHP...} +Succeeded BotProtection preview-0.1 {KnownBadBots} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Get WAF managed rule set definitions. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md index a21199fb2ecc..2c01f4143c40 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorWafPolicy.md @@ -41,27 +41,33 @@ Retrieve protection policy with specified name within a resource group. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Get a WAF policy called $policyName in $resourceGroupName -### Example 2: {{ Add title here }} +### Example 2 ```powershell -{{ Add code here }} +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Disabled +{policyName} Detection Enabled 403 https://www.bing.com/ +{policyName} Detection Enabled 404 ``` -{{ Add description here }} +Get all WAF policy in $resourceGroupName ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md index c936dc7d5500..5c103d1949a1 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoor.md @@ -41,27 +41,31 @@ Create a new Front Door with a Front Door name under the specified subscription ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a Front Door based on given parameters. ```powershell -{{ Add code here }} +New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/rg1/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoors ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a Front Door based on given parameters. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md index 71785073acdf..07e77bc829be 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendObject.md @@ -24,27 +24,22 @@ Create an in-memory object for Backend. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Address : contoso1.azurewebsites.net +HttpPort : 80 +HttpsPort : 443 +Priority : 1 +Weight : 50 +BackendHostHeader : +EnabledState : Enabled ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSBackend object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md index 600a28fea1d9..de0c04cc1e7f 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolObject.md @@ -23,27 +23,25 @@ Create an in-memory object for BackendPool. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Backends : {Microsoft.Azure.Commands.FrontDoor.Models.PSBackend} +LoadBalancingSettingRef : /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers + /Microsoft.Network/frontDoors/frontdoor5/LoadBalancingSettings/loadBalancingSetting1 +HealthProbeSettingRef : /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers + /Microsoft.Network/frontDoors/frontdoor5/HealthProbeSettings/healthProbeSetting1 +EnabledState : Enabled +ResourceState : +Id : +Name : backendpool1 +Type : ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSBackendPool object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md index 29fd12f79538..ca192f7cc9a4 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorBackendPoolsSettingObject.md @@ -22,27 +22,35 @@ Create an in-memory object for BackendPoolsSettings. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create BackendPoolsSettings object using defaults ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolsSettingObject ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +EnforceCertificateNameCheck : Enabled +SendRecvTimeoutInSeconds : 30 +Id : +Name : +Type : ``` -{{ Add description here }} +Create BackendPoolsSettings object using defaults -### Example 2: {{ Add title here }} +### Example 2: Create BackendPoolsSettings object with user specified values ```powershell -{{ Add code here }} +New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +EnforceCertificateNameCheck : Enabled +SendRecvTimeoutInSeconds : 60 +Id : +Name : +Type : ``` -{{ Add description here }} +Create BackendPoolsSettings object with user specified values ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorCacheConfigurationObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorCacheConfigurationObject.md index e65b66a3e5bc..633b592a7984 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorCacheConfigurationObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorCacheConfigurationObject.md @@ -23,27 +23,18 @@ Create an in-memory object for CacheConfiguration. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a cache configuration object ```powershell -{{ Add code here }} +New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -QueryParameterStripDirective "StripAllExcept" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CacheDuration : 0.12:00:00 +DynamicCompression : Enabled +QueryParameterStripDirective : StripAllExcept ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a cache configuration object. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorForwardingConfigurationObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorForwardingConfigurationObject.md index 43a94d05ef79..77b8d2de90d0 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorForwardingConfigurationObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorForwardingConfigurationObject.md @@ -23,27 +23,34 @@ Create an in-memory object for ForwardingConfiguration. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a basic forwarding configuration object ```powershell -{{ Add code here }} +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "MatchRequest" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +BackendPoolId : /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool +CacheConfiguration : +CustomForwardingPath : +ForwardingProtocol : MatchRequest ``` -{{ Add description here }} +Create a basic forwarding configuration object that forwards requests to a backend pool using the same protocol as the incoming request. -### Example 2: {{ Add title here }} +### Example 2: Create a forwarding configuration object with cache and custom path ```powershell -{{ Add code here }} +$cacheConfig = New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "HttpsOnly" -CustomForwardingPath "/api/v2" -CacheConfiguration $cacheConfig ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +BackendPoolId : /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool +CacheConfiguration : Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration +CustomForwardingPath : /api/v2 +ForwardingProtocol : HttpsOnly ``` -{{ Add description here }} +Create a forwarding configuration object with caching enabled, custom forwarding path, and HTTPS-only forwarding protocol. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md index e5b3ae7ddc9b..7d3fa62b7c9f 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorFrontendEndpointObject.md @@ -25,27 +25,33 @@ Create an in-memory object for FrontendEndpoint. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a PSFrontendEndpoint Object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName "frontendendpoint1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : frontendendpoint1 +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +Backends : +CustomHttpsProvisioningState : +CustomHttpsProvisioningSubstate : +CertificateSource : +MinimumTlsVersion : 1.2 +Vault : +SecretName : +SecretVersion : +CertificateType : +ResourceState : +Id : +Name : frontendendpoint1 +Type : +ProtocolType : ServerNameIndication ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSFrontendEndpoint Object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md index f98019c1dbd9..d91054c07516 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHeaderActionObject.md @@ -22,27 +22,18 @@ Create an in-memory object for HeaderAction. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1 :Creates PSHeaderAction object for the creation of PSRulesEngineAction object. ```powershell -{{ Add code here }} +New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HeaderName HeaderActionType Value +---------- ---------------- ----- +headername Append ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Creates PSHeaderAction object for the creation of PSRulesEngineAction object. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md index c8ed5df251c4..539dd351e47c 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorHealthProbeSettingObject.md @@ -23,27 +23,26 @@ Create an in-memory object for HealthProbeSettingsModel. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a PSHealthProbeSetting object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Path : / +Protocol : Http +IntervalInSeconds : 30 +ResourceState : +HealthProbeMethod : Head +EnabledState : Enabled +Id : +Name : healthProbeSetting1 +Type : ``` -{{ Add description here }} +Note: HealthProbeMethod setting is not case sensitive. -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSHealthProbeSetting object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md index 4bc8aabf90f3..38aeae31146c 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorLoadBalancingSettingObject.md @@ -23,27 +23,22 @@ Create an in-memory object for LoadBalancingSettingsModel. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a PSLoadBalancingSetting object for Front Door creation ```powershell -{{ Add code here }} +New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +SampleSize : 4 +AdditionalLatencyMilliseconds : 0 +SuccessfulSamplesRequired : 2 +ResourceState : +Id : +Name : loadbalancingsetting1 +Type : ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a PSLoadBalancingSetting object for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md index 73d1b0ed16c0..be534ad77315 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md @@ -25,27 +25,24 @@ Create an in-memory object for PolicySettings. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a WAF policy settings object with all parameters ```powershell -{{ Add code here }} +$logScrubbing = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @() +New-AzFrontDoorPolicySettingsObject -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Enabled" -CustomBlockResponseStatusCode 403 -CustomBlockResponseBody "PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+" -RedirectUrl "https://www.example.com/blocked" -JavascriptChallengeExpirationInMinutes 30 -LogScrubbingSetting $logScrubbing ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CustomBlockResponseBody : PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+ +CustomBlockResponseStatusCode : 403 +EnabledState : Enabled +JavascriptChallengeExpirationInMinutes : 30 +LogScrubbingSetting : Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing +Mode : Prevention +RedirectUrl : https://www.example.com/blocked +RequestBodyCheck : Enabled ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a comprehensive WAF policy settings object with prevention mode enabled, custom block response, redirect URL, and log scrubbing configuration. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRedirectConfigurationObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRedirectConfigurationObject.md index 460295c732c3..fed7661347f3 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRedirectConfigurationObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRedirectConfigurationObject.md @@ -23,27 +23,21 @@ Create an in-memory object for RedirectConfiguration. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a redirect configuration object with all parameters ```powershell -{{ Add code here }} +New-AzFrontDoorRedirectConfigurationObject -RedirectType "PermanentRedirect" -RedirectProtocol "HttpsOnly" -CustomHost "www.example.com" -CustomPath "/newpath" -CustomQueryString "source=frontdoor&campaign=redirect" -CustomFragment "section1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +CustomFragment : section1 +CustomHost : www.example.com +CustomPath : /newpath +CustomQueryString : source=frontdoor&campaign=redirect +RedirectProtocol : HttpsOnly +RedirectType : PermanentRedirect ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a comprehensive redirect configuration object that permanently redirects requests to HTTPS protocol with custom host, path, query string, and fragment. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md index c3a2217f3695..b85fa64aa182 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md @@ -29,27 +29,51 @@ Create an in-memory object for RoutingRule. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a PSRoutingRuleObject for Front Door creation with a forwarding rule ```powershell -{{ Add code here }} +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FrontendEndpointIds : {/subscriptions/{subid}/resourceGroups/{rgname}/pro + viders/Microsoft.Network/frontDoors/{frontdoorname}/FrontendEndpoints/frontendEndpoint1} +AcceptedProtocols : {Http, Https} +PatternsToMatch : {/*} +HealthProbeSettings : +RouteConfiguration : Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration +EnabledState : Enabled +ResourceState : +Id : +Name : {routingRuleName} +Type : ``` -{{ Add description here }} +Create a PSRoutingRuleObject for Front Door creation with a forwarding rule -### Example 2: {{ Add title here }} +### Example 2: Create a PSRoutingRuleObject for Front Door creation with a redirect rule ```powershell -{{ Add code here }} +$customHost = "www.contoso.com" +$customPath = "/images/contoso.png" +$queryString = "field1=value1&field2=value2" +$destinationFragment = "section-header-2" +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath -CustomQueryString $queryString -CustomFragment $destinationFragment ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FrontendEndpointIds : {/subscriptions/{subid}/resourceGroups/{rgname}/pro + viders/Microsoft.Network/frontDoors/{frontdoorname}/FrontendEndpoints/frontendEndpoint1} +AcceptedProtocols : {Http, Https} +PatternsToMatch : {/*} +HealthProbeSettings : +RouteConfiguration : Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration +EnabledState : Enabled +ResourceState : +Id : +Name : {routingRuleName} +Type : ``` -{{ Add description here }} +Create a PSRoutingRuleObject for Front Door creation ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md index a2f538d0c8fc..def4520914ae 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngine.md @@ -38,27 +38,18 @@ Create a new Rules Engine Configuration with the specified name within the speci ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a new rules engine configuration for specified front door. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a new rules engine configuration for specified front door. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md index 24c6ddb8e04c..63b7b61fceb4 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md @@ -28,27 +28,75 @@ Create an in-memory object for RulesEngineAction. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. ```powershell -{{ Add code here }} -``` +$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" +$headerActions + +HeaderName HeaderActionType Value +---------- ---------------- ----- +X-Content-Type-Options Append nosniff -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {X-Content-Type-Options} ``` -{{ Add description here }} +Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. -### Example 2: {{ Add title here }} +### Example 2: Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. ```powershell -{{ Add code here }} +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true +$rulesEngineAction + +RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride +------------------- -------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineAction.RequestHeaderAction + +HeaderName HeaderActionType Value +---------- ---------------- ----- +headeraction1 Overwrite +headeraction2 Append + +$rulesEngineAction.ResponseHeaderAction +$rulesEngineAction.RouteConfigurationOverride + +CustomForwardingPath : +ForwardingProtocol : HttpsOnly +BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi + ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool +QueryParameterStripDirective : StripNone +DynamicCompression : Disabled +EnableCaching : True ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. + +### Example 3: Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. +```powershell +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration + +$rulesEngineAction.RouteConfigurationOverride + +RedirectType : Moved +RedirectProtocol : MatchRequest +CustomHost : www.contoso.com +CustomPath : +CustomFragment : +CustomQueryString : ``` -{{ Add description here }} +Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md index 33ef087d78ff..9e5c142d1f58 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineMatchConditionObject.md @@ -23,27 +23,21 @@ Create an in-memory object for RulesEngineMatchCondition. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a new PSRulesEngineMatchCondition object. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RulesEngineMatchVariable : RequestHeader +RulesEngineMatchValue : {allowoverride} +Selector : Rules-Engine-Route-Forward +RulesEngineOperator : Equal +NegateCondition : False +Transform : {Lowercase, Uppercase} ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a new PSRulesEngineMatchCondition object. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md index e08162826a95..5908a8659847 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md @@ -23,27 +23,50 @@ Create an in-memory object for RulesEngineRule. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create new PSRulesEngineRule object and demonstrate how to see the subfields. ```powershell -{{ Add code here }} -``` +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name : rules1 +Priority : 0 +MatchProcessingBehavior : Stop +MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} +Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction + + +$rulesEngineRule1.Action + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineRule1.MatchCondition[0] + +RulesEngineMatchVariable : RequestHeader +RulesEngineMatchValue : {allowoverride} +Selector : Rules-Engine-Route-Forward +RulesEngineOperator : Equal +NegateCondition : False +Transforms : {Lowercase, Uppercase} ``` -{{ Add description here }} +Create new PSRulesEngineRule object and demonstrate how to see the subfields. -### Example 2: {{ Add title here }} +### Example 2: Expect output when passing in invalid priority value. ```powershell -{{ Add code here }} +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +New-AzFrontDoorRulesEngineRuleObject : Cannot validate argument on parameter 'Priority'. The -1 argument is less than the minimum allowed range of 0. Supply an argument that is greater than or equal to 0 and then try the command again. +At line:1 char:81 ++ ... ule1 = New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 ++ ~~ ++ CategoryInfo : InvalidData: (:) [New-AzFrontDoorRulesEngineRuleObject], ParameterBindingValidationException ++ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject ``` -{{ Add description here }} +Expect output when passing in invalid priority value. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md index 99c5b22de735..8fc89bb1cfe2 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleGroupByVariableObject.md @@ -22,27 +22,13 @@ Create an in-memory object for GroupByVariable. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create CustomRuleGroupByVariable object for custom rule object ```powershell -{{ Add code here }} +New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName SocketAddr ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create CustomRuleGroupByVariable object for custom rule object +Use cmdlet "New-AzFrontDoorWafCustomRuleGroupByVariableObject" to pass -CustomRule parameter ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md index 5d88c4d8bebe..c4e7b0e27017 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md @@ -24,27 +24,18 @@ Create an in-memory object for CustomRule. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create CustomRule Object for WAF policy creation ```powershell -{{ Add code here }} +New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RuleType Action Priority RateLimitDurationInMinutes +---- -------- ------ -------- -------------------------- +Rule1 MatchRule Block 2 1 ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create a CustomRule Object ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md index 708052617908..6cd6102ed2c7 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingRuleObject.md @@ -22,27 +22,12 @@ Create an in-memory object for WebApplicationFirewallScrubbingRules. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create LogScrubbingRule object for LogScrubbingSetting ```powershell -{{ Add code here }} +New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +This object is a parameter for LogscrubbingSetting ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md index 68355841aaa3..89e0fa8f6846 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafLogScrubbingSettingObject.md @@ -22,27 +22,13 @@ Create an in-memory object for PolicySettingsLogScrubbing. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create LogScrubbingSetting object for Waf policy object ```powershell -{{ Add code here }} +$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" +New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Need to create a LogScrubbingRule object before using. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md index ffb074c7d7df..0a79b83d5ed7 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleExclusionObject.md @@ -22,27 +22,18 @@ Create an in-memory object for ManagedRuleExclusion. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create managed rule exclusion object for WAF managed rule sets, groups, or rules. ```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable SelectorMatchOperator Selector +------------- --------------------- -------- +QueryStringArgNames Equals ParameterName ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create managed rule exclusion object for WAF managed rule sets, groups, or rules. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md index 2e3392f0daf4..25ae1ddacf69 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md @@ -23,27 +23,25 @@ Create an in-memory object for ManagedRuleSet. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create ManagedRule Object for WAF policy creation ```powershell -{{ Add code here }} -``` +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log +$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` +$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log +$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3 -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleGroupOverrides RuleSetType RuleSetVersion +------------------ ----------- -------------- +{SQLI, XSS} DefaultRuleSet preview-0.1 ``` -{{ Add description here }} +Create a ManagedRule Object ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md index 51f429512ade..5029e30154d0 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -22,27 +22,18 @@ Create an in-memory object for ManagedRuleOverride. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation. ```powershell -{{ Add code here }} +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleId EnabledState Action +------ ------------ ------ +942250 Enabled Log ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md index 1dbb763b22bf..c957530683f3 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafMatchConditionObject.md @@ -23,27 +23,31 @@ Create an in-memory object for MatchCondition. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create MatchCondition Object for WAF policy creation ```powershell -{{ Add code here }} +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform +------------- ---------------- ---------- -------- --------------- --------- +RequestHeader Contains {Windows} User-Agent False ``` -{{ Add description here }} +Create MatchCondition Object for WAF policy creation -### Example 2: {{ Add title here }} +### Example 2: Create MatchCondition Object for WAF policy creation ```powershell -{{ Add code here }} +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform +------------- ---------------- ---------- -------- --------------- --------- +RequestHeader Contains {WINDOWS} User-Agent False {Uppercase} ``` -{{ Add description here }} +Create a MatchCondition object ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md index 1078f31519e9..aecca1a89903 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md @@ -42,27 +42,18 @@ Create policy with specified rule set name within a resource group. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create WAF policy ```powershell -{{ Add code here }} +New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState RedirectUrl +---- ---------- ------------------ ----------- +{policyName} Prevention Enabled https://www.bing.com/ ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Create WAF policy ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md index 808c80988c5c..f57e874d7432 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafRuleGroupOverrideObject.md @@ -22,27 +22,21 @@ Create an in-memory object for ManagedRuleGroupOverride. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create RuleGroupOverride Object for WAF policy creation ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} +New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +RuleGroupName ManagedRuleOverrides +------------- -------------------- +SQLI {942250, 942251} ``` -{{ Add description here }} +Create a RuleGroupOverride Object ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md index 784693eb531d..849799d8e362 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoor.md @@ -30,27 +30,33 @@ Deletes an existing Front Door with the specified parameters. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Remove "frontdoor1" in resource group "rg1" under the current subscription. ```powershell -{{ Add code here }} +Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Remove "frontdoor1" in resource group "rg1" under the current subscription. + +### Example 2: Remove all FrontDoors in resource group "rg1" under the current subscription. +```powershell +Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor ``` -{{ Add description here }} +Remove all FrontDoors in resource group "rg1" under the current subscription. -### Example 2: {{ Add title here }} +### Example 3: Remove all FrontDoors under the current subscription. ```powershell -{{ Add code here }} +Get-AzFrontDoor | Remove-AzFrontDoor ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Remove all FrontDoors under the current subscription. + +### Example 4: Remove all FrontDoors with name "frontdoor1" under the current subscription. +```powershell +Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor ``` -{{ Add description here }} +Remove all FrontDoors with name "frontdoor1" under the current subscription. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md index 60caa3c3482b..5a478e32d10c 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md @@ -59,27 +59,12 @@ Removes a content from Front Door. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Remove-AzFrontDoorContent purges cached contents in a Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorContent -ResourceGroupName $ResourceGroupName -Name $FrontDoorName -ContentPath "/*" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Remove-AzFrontDoorContent purges cached contents in a Front Door ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md index fe3e6be9ac73..a8d2357df498 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorRulesEngine.md @@ -37,27 +37,32 @@ Deletes an existing Rules Engine Configuration with the specified parameters. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Remove Rules Engine from Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $rulesEngine.Name -PassThru ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +True ``` -{{ Add description here }} +Remove rules engine configuration. -### Example 2: {{ Add title here }} +### Example 2: Remove Rules Engine from Front Door ```powershell -{{ Add code here }} +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistentRulesEngine ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Remove-AzFrontDoorRulesEngine : Rules Engine with name 'nonexistentRulesEngine' in Front Door 'frontDoorName' in the resource group 'resourceGroupName' does not exist. +At line:1 char:1 ++ Remove-AzFrontDoorRulesEngine -ResourceGroupName resourceGroupName -Fro ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++ CategoryInfo : CloseError: (:) [Remove-AzFrontDoorRulesEngine], PSArgumentException ++ FullyQualifiedErrorId : Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine ``` -{{ Add description here }} +Expected outcome when removing a nonexistent rules engine configuration. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md index f34557790f0d..3abc54c4c95b 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorWafPolicy.md @@ -30,27 +30,19 @@ Deletes Policy ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Removes a WAF policy ```powershell -{{ Add code here }} +Remove-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Remove the WAF policy called $policyName in $resourceGroupName. -### Example 2: {{ Add title here }} +### Example 2: Removes all WAF policy ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy ``` -{{ Add description here }} +Remove all WAF policy in $resourceGroupName. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md index b2565942c7d7..6681e4b9f4e5 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md @@ -41,27 +41,109 @@ Update a new Front Door with a Front Door name under the specified subscription ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: update an existing Front Door with FrontDoorName and ResourceGroupName. ```powershell -{{ Add code here }} +Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoors ``` -{{ Add description here }} +update an existing FrontDoor. -### Example 2: {{ Add title here }} +### Example 2: update an existing Front Door with PSFrontDoor object. ```powershell -{{ Add code here }} +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 ``` -{{ Add description here }} +update an existing FrontDoor. + +### Example 3: update an existing Front Door with ResourceId +```powershell +Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +``` + +```output +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {backendPoolsSetting1} +EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +update an existing FrontDoor. + +### Example 4: update BackendPoolSetting property EnforceCertificateNameCheck of an existing Front Door with -DisableCertificateNameCheck switch parameter +```powershell +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck +``` + +```output +FriendlyName : frontdoor1 +RoutingRules : {routingrule1} +BackendPools : {backendpool1} +BackendPoolsSetting : {PSBackendPoolsSetting object with EnforceCertificateNameCheck is set to Disabled} +EnforceCertificateNameCheck : Disabled +HealthProbeSettings : {healthProbeSetting1} +LoadBalancingSettings : {loadbalancingsetting1} +FrontendEndpoints : {frontendendpoint1} +EnabledState : Enabled +ResourceState : Enabled +ProvisioningState : Succeeded +Cname : +Tags : {tag1, tag2} +Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 +Name : frontdoor1 +Type : Microsoft.Network/frontdoor1 +``` + +update an existing FrontDoor. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md index 4cb36ffcc337..2fb087ea53b2 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md @@ -23,27 +23,23 @@ Update a new Rules Engine Configuration with the specified name within the speci ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Get an existing rules engine configuration and add another rules engine rule to it. ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -{{ Add description here }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1} -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` +$rulesEngineRule2 = New-AzFrontDoorRulesEngineRuleObject -Name rules2 -Priority 3 -Action $rulesEngineAction +Set-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1, $rulesEngineRule2 -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {rules1, rules2} ``` -{{ Add description here }} +Get an existing rules engine configuration and add another rules engine rule to it. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md index a2df83431d9a..9a1ea406ca88 100644 --- a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md @@ -35,27 +35,51 @@ Update policy with specified rule set name within a resource group. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Updates an existing WAF policy custom status code. ```powershell -{{ Add code here }} +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Prevention Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Update an existing WAF policy custom status code. -### Example 2: {{ Add title here }} +### Example 2: Update an existing WAF policy mode. ```powershell -{{ Add code here }} +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Detection Enabled 403 https://www.bing.com/ ``` -{{ Add description here }} +Update an existing WAF policy mode. + +### Example 3: Update an existing WAF policy enabled state and mode. +```powershell +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +``` + +```output +Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl +---- ---------- ------------------ ----------------------------- ----------- +{policyName} Detection Disabled 403 https://www.bing.com/ +``` + +Update an existing WAF policy enabled state and mode. + +### Example 4: Update all WAF policies in $resourceGroupName +```powershell +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled +``` + +Update all WAF policies in $resourceGroupName ## PARAMETERS From 1c1cfa51011836f8c2386cdf23b385c1abfb20d9 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Thu, 25 Sep 2025 12:07:23 +1000 Subject: [PATCH 11/30] run test --- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../FrontDoor.Autorest/generate-info.json | 2 +- ...zFrontDoorCustomDomainHttps.Recording.json | 1100 ----------------- ...ble-AzFrontDoorCustomDomainHttps.Tests.ps1 | 6 +- .../test/Get-AzFrontDoor.Recording.json | 24 +- ...AzFrontDoorFrontendEndpoint.Recording.json | 25 +- ...WafManagedRuleSetDefinition.Recording.json | 27 +- .../Get-AzFrontDoorWafPolicy.Recording.json | 24 +- .../New-AzFrontDoorRulesEngine.Recording.json | 46 +- .../New-AzFrontDoorWafPolicy.Recording.json | 71 +- .../test/New-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- .../test/Remove-AzFrontDoor.Recording.json | 285 +++-- .../test/Remove-AzFrontDoor.Tests.ps1 | 2 +- ...move-AzFrontDoorRulesEngine.Recording.json | 69 +- ...Remove-AzFrontDoorWafPolicy.Recording.json | 90 +- .../Remove-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- .../test/Set-AzFrontDoor.Recording.json | 166 +-- .../test/Set-AzFrontDoor.Tests.ps1 | 2 +- .../Set-AzFrontDoorRulesEngine.Recording.json | 104 +- ...Update-AzFrontDoorWafPolicy.Recording.json | 91 +- .../Update-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- .../FrontDoor.Autorest/test/env.json | 10 +- src/FrontDoor/FrontDoor.sln | 28 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- 24 files changed, 556 insertions(+), 1626 deletions(-) delete mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index d07b61f60540..c568b787ff8c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: b45ba7ed-deb6-4cfe-a02e-34af4e8e4233 +Module Guid: bbc46df2-6fe1-4e97-a6f0-a825b6f8e081 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index c474ea2ff033..58a3badd6184 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "d4637eaf-62a2-44fb-a24c-3dc90a1c5f8b" + "generate_Id": "e0ab303b-2de7-4c2a-b1ec-4f2de6bd52a3" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json deleted file mode 100644 index 69950620b8e5..000000000000 --- a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json +++ /dev/null @@ -1,1100 +0,0 @@ -{ - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+1": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshv4test.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n },\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", - "isContentBase64": false, - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "3140" ] - } - }, - "Response": { - "StatusCode": 201, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "10" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "3627da5b-6aa3-430b-87b7-b78640fe22d2" ], - "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/ecbb5305-8de8-48ca-a2d8-16b33f7b8641?api-version=2021-06-01\u0026t=638694959076939246\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUU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ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=tgWpxg4yPzVaIscmB9d9NgE3w7RvJlZETcpsqtUIs3ISZ_WCeKUkwXoesXxgJJA3OaK8Tu4LPABnscp1hxJL8yW7qqO-I0ZfxFb4_HSMPIHapP597LxnfolwKHP8QRljSAwnyCHE2SwlkhaWsLqIEgMWUKUaORh4_QgGHGafiqIHM03Kvc5ySTgo7antGoJxY0rtlsxQpkOQo6lsCtKR5s6HPq7Z6gA3ob-sM-LvvFlTUfDWaU0ZnhRrqShOgQVmEEhLVOu0HQjtJGEtUAlKdYqsAmUwYU8q26qkCr3_RVkzatW6Sdhw0gULuD5rIDQx5vENtjrE6gLfQ5RjksEl9g\u0026h=Na5IgWYisEhy2F1cupYAylRQA61ojBB2r8e5-RHnfsk" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], - "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "78e67402-103b-4962-a020-0d5f8f0216e9" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T063827Z:78e67402-103b-4962-a020-0d5f8f0216e9" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8C8A0634C67E4BD7804431C191EEFF0D Ref B: TYO201151002060 Ref C: 2024-12-11T06:38:22Z" ], - "Date": [ "Wed, 11 Dec 2024 06:38:27 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "4674" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/pwshv4test\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"pwshv4test\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"4588f000-2f77-4ef2-9c69-76b7332c4328\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"pwshv4test.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}},{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30},\"enabledState\":\"Enabled\",\"cName\":\"pwshv4test.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/ecbb5305-8de8-48ca-a2d8-16b33f7b8641?api-version=2021-06-01\u0026t=638694959076939246\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBA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estUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/ecbb5305-8de8-48ca-a2d8-16b33f7b8641?api-version=2021-06-01\u0026t=638694959076939246\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGt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QUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=tgWpxg4yPzVaIscmB9d9NgE3w7RvJlZETcpsqtUIs3ISZ_WCeKUkwXoesXxgJJA3OaK8Tu4LPABnscp1hxJL8yW7qqO-I0ZfxFb4_HSMPIHapP597LxnfolwKHP8QRljSAwnyCHE2SwlkhaWsLqIEgMWUKUaORh4_QgGHGafiqIHM03Kvc5ySTgo7antGoJxY0rtlsxQpkOQo6lsCtKR5s6HPq7Z6gA3ob-sM-LvvFlTUfDWaU0ZnhRrqShOgQVmEEhLVOu0HQjtJGEtUAlKdYqsAmUwYU8q26qkCr3_RVkzatW6Sdhw0gULuD5rIDQx5vENtjrE6gLfQ5RjksEl9g\u0026h=Na5IgWYisEhy2F1cupYAylRQA61ojBB2r8e5-RHnfsk", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], - "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], - "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "bef82593-e01f-4f11-8cf4-a46affaad15d" ], - "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "6740cfab-458b-4f0a-acfb-d3ba9309c59d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T063838Z:6740cfab-458b-4f0a-acfb-d3ba9309c59d" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2F3B7CB165B44D699BE76C21B53FBA68 Ref B: TYO201151002060 Ref C: 2024-12-11T06:38:37Z" ], - "Date": [ "Wed, 11 Dec 2024 06:38:38 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "61" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], - "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], - "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "12e258e5-cf1f-4234-8ff7-de14dfb4c9cc" ], - "x-ms-client-request-id": [ "1dd887d0-915b-4b47-a8d4-2521cda7e5f3" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "f965a6d1-85b9-4688-a1f1-b6d4b84c324d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T063839Z:f965a6d1-85b9-4688-a1f1-b6d4b84c324d" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 327661CC3AB147188672C1256DCC8BBD Ref B: TYO201151002060 Ref C: 2024-12-11T06:38:38Z" ], - "Date": [ "Wed, 11 Dec 2024 06:38:39 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "4668" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/pwshv4test\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"pwshv4test\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"4588f000-2f77-4ef2-9c69-76b7332c4328\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}},{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30},\"enabledState\":\"Enabled\",\"cName\":\"pwshv4test.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$POST+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2021-06-01+4": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2021-06-01", - "Content": "{\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n}", - "isContentBase64": false, - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "201" ] - } - }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44/frontdoorresults/pwshv4test?api-version=2021-06-01" ], - "Retry-After": [ "120" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "21b9d374-a16f-47a1-aad2-b225ed90aad6" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC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ThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], - "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "d678cd34-34d3-4311-b5c1-2f2975eb2503" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T063841Z:d678cd34-34d3-4311-b5c1-2f2975eb2503" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 62C8B24C003543498DE41B66AE1E1184 Ref B: TYO201151002060 Ref C: 2024-12-11T06:38:39Z" ], - "Date": [ "Wed, 11 Dec 2024 06:38:40 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "648" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Enabling\",\"customHttpsProvisioningSubstate\":\"SubmittingDomainControlValidationRequest\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\",\"keyVaultCertificateSourceParameters\":{\"vault\":{\"id\":null},\"secretName\":null,\"secretVersion\":null},\"frontDoorCertificateSourceParameters\":{\"certificateType\":\"Dedicated\",\"certificateTypeAsEnum\":\"Dedicated\"}}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdC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DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnC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nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "53d0a24a-2262-4415-b16b-f6f33b778e05" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "6727e9be-3fe7-46a7-9b2b-566dfa204163" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064042Z:6727e9be-3fe7-46a7-9b2b-566dfa204163" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 76D532F3AE274957BDAF46A67EB8C6DA Ref B: TYO201100114027 Ref C: 2024-12-11T06:40:42Z" ], - "Date": [ "Wed, 11 Dec 2024 06:40:42 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIh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LztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBA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": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "17dbb103-1802-44d4-9004-cd0649184498" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "25ef594e-2575-4d5a-8784-6f85b0824e18" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T064114Z:25ef594e-2575-4d5a-8784-6f85b0824e18" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C8F7E51EC7294150894287DBC69A5CE6 Ref B: TYO201100114027 Ref C: 2024-12-11T06:41:13Z" ], - "Date": [ "Wed, 11 Dec 2024 06:41:13 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/provid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AtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u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N3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "2e65d1b7-096a-4660-a6e9-77be3afaf41f" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "29540920-4da8-4cad-accf-54594b9d67aa" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064145Z:29540920-4da8-4cad-accf-54594b9d67aa" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 9EF36F9474EF408EB62F975E8CC2A288 Ref B: TYO201100114027 Ref C: 2024-12-11T06:41:44Z" ], - "Date": [ "Wed, 11 Dec 2024 06:41:44 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBG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M4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+8": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwND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BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "df9337de-13cb-4262-87f8-ff293448e705" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "38b2d45e-0c16-4ab9-abec-9fece0215c21" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064216Z:38b2d45e-0c16-4ab9-abec-9fece0215c21" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: CBB7357D0BA94B4C92C8055772BA90F4 Ref B: TYO201100114027 Ref C: 2024-12-11T06:42:15Z" ], - "Date": [ "Wed, 11 Dec 2024 06:42:15 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZ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pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+9": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8Z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UcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "cdbf4e54-e6c1-4fe5-a2d4-34ca1e12e03e" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "10312220-e137-472f-8c53-a2fee4ee2dc7" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064246Z:10312220-e137-472f-8c53-a2fee4ee2dc7" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 12C5E65B4E0841BBBC81B78710144DBC Ref B: TYO201100114027 Ref C: 2024-12-11T06:42:46Z" ], - "Date": [ "Wed, 11 Dec 2024 06:42:46 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0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ELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+10": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtf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z-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f80ae9c5-4e71-4d7c-95ef-c730b191febb" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "62141be6-c57d-4dd2-be85-edb02586b485" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T064318Z:62141be6-c57d-4dd2-be85-edb02586b485" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4A845F9A20254356A24BEBDC62BE00DB Ref B: TYO201100114027 Ref C: 2024-12-11T06:43:17Z" ], - "Date": [ "Wed, 11 Dec 2024 06:43:17 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwgg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vxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+11": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJ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Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "393b3093-7f94-46a1-9953-5ce617053d61" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "3668cdda-f2de-40d3-b1c2-d752c60ea839" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T064349Z:3668cdda-f2de-40d3-b1c2-d752c60ea839" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F1054142DCEB4B59900E60BE97A4FD01 Ref B: TYO201100114027 Ref C: 2024-12-11T06:43:48Z" ], - "Date": [ "Wed, 11 Dec 2024 06:43:48 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodH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sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+12": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ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QAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6ce8612e-79de-4b86-ab01-10120518d746" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "1cd49cf3-9b18-4bab-8e2a-05da8cee6aeb" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064420Z:1cd49cf3-9b18-4bab-8e2a-05da8cee6aeb" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 739925B262894D30AFF4DD0AC1EFBABF Ref B: TYO201100114027 Ref C: 2024-12-11T06:44:19Z" ], - "Date": [ "Wed, 11 Dec 2024 06:44:19 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MI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AWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+13": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMR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BQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "49ef13d4-2952-4054-86f8-14d430d7d41c" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "26bc8386-dfcd-42c7-b4a2-5aacf23b124e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064451Z:26bc8386-dfcd-42c7-b4a2-5aacf23b124e" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8F49747CCAC04663BA6716AA780A3C36 Ref B: TYO201100114027 Ref C: 2024-12-11T06:44:50Z" ], - "Date": [ "Wed, 11 Dec 2024 06:44:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwM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_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+14": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0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zKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "39c976a1-d3be-4a06-87d3-7fcaf4743b16" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "2362dd75-4226-41e2-b11a-9ddc31178586" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T064522Z:2362dd75-4226-41e2-b11a-9ddc31178586" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E05C86FD88964A58AD040322C19FEA3E Ref B: TYO201100114027 Ref C: 2024-12-11T06:45:21Z" ], - "Date": [ "Wed, 11 Dec 2024 06:45:21 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9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5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+15": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo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ZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b27c0338-a12d-462a-9a09-0ec78ba56139" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ddf69abe-672b-4be7-817f-30a3ca2c4982" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064553Z:ddf69abe-672b-4be7-817f-30a3ca2c4982" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8EEA4F3AE4E54F6ABADB40E6164A19C1 Ref B: TYO201100114027 Ref C: 2024-12-11T06:45:52Z" ], - "Date": [ "Wed, 11 Dec 2024 06:45:52 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuG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uvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+16": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaL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Cy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "437f490f-a846-4faa-ad67-594329342ac5" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "2eefbcde-7489-4f99-bf3b-3677292e95db" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064624Z:2eefbcde-7489-4f99-bf3b-3677292e95db" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 5E985C556B66485F8B03F911767EAA3E Ref B: TYO201100114027 Ref C: 2024-12-11T06:46:23Z" ], - "Date": [ "Wed, 11 Dec 2024 06:46:23 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAw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Ju6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+17": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQ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, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "77e2f9cc-f2eb-46e3-adf5-ba0dbf33a377" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "21cb9b2e-ce65-4f57-aad7-860d06b15c1f" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T064655Z:21cb9b2e-ce65-4f57-aad7-860d06b15c1f" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 0DB4949D0C5A415280659096FBE5EE16 Ref B: TYO201100114027 Ref C: 2024-12-11T06:46:54Z" ], - "Date": [ "Wed, 11 Dec 2024 06:46:54 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwM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AZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+18": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b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MAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1320d895-1054-476e-aa87-5ea02ab3024a" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e30dff25-36c2-447b-bb8b-cb337a5d5cda" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T064726Z:e30dff25-36c2-447b-bb8b-cb337a5d5cda" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F2909F057D7C4FA29D804601F6C0E4C3 Ref B: TYO201100114027 Ref C: 2024-12-11T06:47:25Z" ], - "Date": [ "Wed, 11 Dec 2024 06:47:25 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZIm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QYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+19": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUU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ZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "32cf393a-17a8-4046-97d5-5897f428346a" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "8372f935-aea8-444d-8d68-7e0407a0656c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064757Z:8372f935-aea8-444d-8d68-7e0407a0656c" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B5AB0CEA1BFC4E36AA7A310E44B5A579 Ref B: TYO201100114027 Ref C: 2024-12-11T06:47:56Z" ], - "Date": [ "Wed, 11 Dec 2024 06:47:56 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW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1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+20": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBA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F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=jMAbYjpYLbZBv7KNHqABxhSDlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "818b3609-6e1c-4b56-903f-9224373eee8b" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "401ed389-1342-49ca-8d96-737c3d0b1151" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064828Z:401ed389-1342-49ca-8d96-737c3d0b1151" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 70C8F0B883FE4F099B9F38E192E7A3F7 Ref B: TYO201100114027 Ref C: 2024-12-11T06:48:28Z" ], - "Date": [ "Wed, 11 Dec 2024 06:48:27 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "61" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2Py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DlUst4cSHtfibfau3lnbG0pE2JVxpc8WKELlADkSN4NvWkR0czBTtr3jw7ctU4GqmY2siiyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw+21": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/b32f5868-3f4b-43e0-b0cb-8053d13b2a44?api-version=2021-06-01\u0026t=638694959212050571\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0D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iyl4_vWkPXEcgoLxMKUireK7AclmzRHdFz-cRnbs_dwcWQuvmT2JCDlQ-4mqNlQxzwmrl_DIhgwL3L0rRkUPfh7t3Tf7gkfds4TcqH4w6MNCy9k8aW7HuRbViKw55_y6YviwT04Nv8NPwR7_j435gQAWMYZypaoymkz21hvxSBSX1fgMMUT84P_pNIVJjO4ZHHtXrx2YQ-s0U5R4ogKMrVikDh3Hb9Hn-4Tsm-hNFAUj-VI7inJu6IVzbw\u0026h=eLdLztzYLBv5PRI24W_50WMl1yLJDJAvc-cZb6ZlGDw", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "CommandName": [ "Az.FrontDoor.internal\\Enable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Enable-AzFrontDoorCustomDomainHttps_EnableExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "deae21cd-de63-401e-aec5-a91496c669d6" ], - "x-ms-client-request-id": [ "725f08ca-ade3-4550-b099-83df7606dc94" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "573b8493-fd3a-43ef-b225-f25a8c47deb2" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T064829Z:573b8493-fd3a-43ef-b225-f25a8c47deb2" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D94CF07CC7D44558AABD6A40B1A63C3B Ref B: TYO201100114027 Ref C: 2024-12-11T06:48:28Z" ], - "Date": [ "Wed, 11 Dec 2024 06:48:28 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "61" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$POST+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2021-06-01+1": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2021-06-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], - "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84/frontdoorresults/pwshv4test?api-version=2021-06-01" ], - "Retry-After": [ "120" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "67da7321-e833-4117-820a-859546a46684" ], - "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAG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ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], - "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "7d66f61c-88fd-4b3a-890b-f9aaed098afb" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T064831Z:7d66f61c-88fd-4b3a-890b-f9aaed098afb" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 6BE441331BFF470AA644704D1B22E046 Ref B: TYO201100114027 Ref C: 2024-12-11T06:48:29Z" ], - "Date": [ "Wed, 11 Dec 2024 06:48:30 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "628" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test-2.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabling\",\"customHttpsProvisioningSubstate\":\"DeletingCertificate\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\",\"keyVaultCertificateSourceParameters\":{\"vault\":{\"id\":null},\"secretName\":null,\"secretVersion\":null},\"frontDoorCertificateSourceParameters\":{\"certificateType\":\"Dedicated\",\"certificateTypeAsEnum\":\"Dedicated\"}}}", - "isContentBase64": false - } - }, - "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0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SMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQ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QYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], - "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f92de7c7-d286-4592-8343-6203d94c0cb2" ], - "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "54906815-8349-4f45-96fb-6ea38ef2bc1d" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T065033Z:54906815-8349-4f45-96fb-6ea38ef2bc1d" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 018FA19DED944993AFDA641181622D0F Ref B: TYO201100116049 Ref C: 2024-12-11T06:50:32Z" ], - "Date": [ "Wed, 11 Dec 2024 06:50:33 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT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99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW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1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], - "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8568d88b-8981-457b-82dc-1f33fc908090" ], - "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "a8f6be4f-d5d8-4c45-a9e1-5ef7cac76178" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065104Z:a8f6be4f-d5d8-4c45-a9e1-5ef7cac76178" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F577C742B47E4077AAC98A705E538159 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:03Z" ], - "Date": [ "Wed, 11 Dec 2024 06:51:04 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "61" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBA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uH12hn2s2xEeYNMURYXNCzYc\u0026s=stdHVEW-_LDdPXPqmmfcykHHce5up99sOnZYIN75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/6008d75d-3d21-4f25-b8ec-bc7ebb80bb84?api-version=2021-06-01\u0026t=638694965114661712\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkB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N75zptubKKi5Yi8aGHK2B--OnT2Og8aanpNCxDUgjfCO--UH9VkNe750gy-kuTItpf_9j-otKTXSmWvaUZPSisGQpq0PAk7CxwKP5jON3gcXafMt1x6d9fHSKFRjKjlWsPSkSv8YPR9fPZaODNz1VZL5IwqjVXeRIg0Y7ZOwv6SOGgk9gtKn1HKwA5snNyxhw5I85S03Uqa5ERtH-21_099bnTDzx8QqzjTXvRC6GU7ASijwRBe7Rfp1AZm3Su1eiP-YyWOLXhF1uQDjxTfKqu58zu_2Oro5KS-3Qe3IfDjzsrBIQ\u0026h=ZB_5j2ssmCMHAzx9QxHb-eH8Gl1_Edb3yLiNMZ5QaXM", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], - "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c2993e72-12f9-4d39-8f43-0fc3e1decafd" ], - "x-ms-client-request-id": [ "5c4f3bb4-cce0-4342-82af-d4a487925258" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "789cab8a-f1ff-4a71-914d-70d2572798c7" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065105Z:789cab8a-f1ff-4a71-914d-70d2572798c7" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4FAC522A111B464F82DA2D663EC468F2 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:04Z" ], - "Date": [ "Wed, 11 Dec 2024 06:51:05 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "61" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 index 9d063fd037ad..21fc9606c3f1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 @@ -14,8 +14,8 @@ if(($null -eq $TestName) -or ($TestName -contains 'Enable-AzFrontDoorCustomDomai . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Enable-AzFrontDoorCustomDomainHttps' -Tag 'LiveOnly' { - It 'EnableExpanded' { +Describe 'Enable-AzFrontDoorCustomDomainHttps' { + It 'EnableExpanded' -skip { # need to clean dns zone record before running this test $PrefixName = "pwshv4test-2" $FrontDoorName = "pwshv4test" @@ -66,7 +66,7 @@ Describe 'Enable-AzFrontDoorCustomDomainHttps' -Tag 'LiveOnly' { } Describe 'Disable-AzFrontDoorCustomDomainHttps' { - It 'Disable' { + It 'Disable' -skip{ $FrontDoorName = "pwshv4test" $customFrontendEndpointName = "frontendendpoint2" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json index 8e7fb302c290..5a1a9b9a1bc1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs?api-version=2021-06-01+1": { + "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "a6bf1a5e-2489-471e-ba7f-0d89ab451ed1" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "66b5cae4-803f-4b54-8b2b-aaaa91c14554" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a93fa16b-5e0f-40db-bc05-5c5fd3e7e256" ], - "x-ms-client-request-id": [ "a6bf1a5e-2489-471e-ba7f-0d89ab451ed1" ], + "x-ms-request-id": [ "7a17fd8e-d58c-4727-a223-2279c9e05faa" ], + "x-ms-client-request-id": [ "66b5cae4-803f-4b54-8b2b-aaaa91c14554" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "16df4693-2c6c-48c7-bd8f-2cb679ec1601" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T065107Z:16df4693-2c6c-48c7-bd8f-2cb679ec1601" ], + "x-ms-correlation-request-id": [ "538a80cf-49e1-4c01-8e44-b70401f7633e" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005757Z:538a80cf-49e1-4c01-8e44-b70401f7633e" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 731FA486DB6D4CD9932ABDE31881FDFF Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:06Z" ], - "Date": [ "Wed, 11 Dec 2024 06:51:06 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 6E08B46D318840AEA1F69E77077FB453 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:57:56Z" ], + "Date": [ "Thu, 25 Sep 2025 00:57:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "6398" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-uzrs\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"76e10376-1859-4686-a8c5-bfffe3ad96b0\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-uzrs/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-uzrs.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-uzrs.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-pczt\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"4961859c-3de2-433f-8e5b-9a683fbb0f16\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-pczt.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-pczt.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json index 1c2b5de3ba97..3f4506c54855 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/frontendEndpoints?api-version=2021-06-01+1": { + "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/frontendEndpoints?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/frontendEndpoints?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/frontendEndpoints?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "7d83b9f0-7529-45bd-b440-9af5a721a18f" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "97f3e42c-8b5e-49cc-82f7-03a31c3301de" ], "CommandName": [ "Get-AzFrontDoorFrontendEndpoint" ], "FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8935f1ea-5a2d-422b-ba2a-c0478eaa7fc5" ], - "x-ms-client-request-id": [ "7d83b9f0-7529-45bd-b440-9af5a721a18f" ], + "x-ms-request-id": [ "cfa22aa0-a16d-4488-b381-719f069c1d09" ], + "x-ms-client-request-id": [ "97f3e42c-8b5e-49cc-82f7-03a31c3301de" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1828138c-1540-4d91-a9c9-bfb614c8b84e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "475235cf-4c1c-486e-81dd-bdb4c32555b0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065108Z:475235cf-4c1c-486e-81dd-bdb4c32555b0" ], + "x-ms-correlation-request-id": [ "8c605b20-91ed-4409-a337-3ad8be9b77b4" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005759Z:8c605b20-91ed-4409-a337-3ad8be9b77b4" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D8966C725CEC4735BC9C4601A59B8F09 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:07Z" ], - "Date": [ "Wed, 11 Dec 2024 06:51:08 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E03552F457AF43FE9996C3650F23D6BF Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:57:58Z" ], + "Date": [ "Thu, 25 Sep 2025 00:57:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-uzrs.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-pczt.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json index 86fe8d1ab9e1..5b3edeae04c5 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json @@ -6,12 +6,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "28002819-c2d9-4cc2-9533-a7ea44f8646d" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "ad27fb9f-83de-422a-8ca7-5bc6fe709465" ], "CommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition" ], "FullCommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "799c83e2-4094-4766-bb3c-5ecd62153544" ], - "x-ms-client-request-id": [ "28002819-c2d9-4cc2-9533-a7ea44f8646d" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "ab343d93-035c-404b-8d89-348f595ee083" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065110Z:ab343d93-035c-404b-8d89-348f595ee083" ], + "x-ms-request-id": [ "b074242b-7db3-4583-9f03-a8add93a4134" ], + "x-ms-client-request-id": [ "ad27fb9f-83de-422a-8ca7-5bc6fe709465" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/76d2c0f8-0de6-4c94-a1c4-41547f36a704" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "100c1c75-7f12-49dd-8ce0-04d1fb53c686" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005801Z:100c1c75-7f12-49dd-8ce0-04d1fb53c686" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 423160B0142748F6820ABE0861935C91 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:09Z" ], - "Date": [ "Wed, 11 Dec 2024 06:51:10 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F2D4B7A60D724452B4E5E33CC99CBCDD Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:00Z" ], + "Date": [ "Thu, 25 Sep 2025 00:58:01 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "130824" ], + "Content-Length": [ "162977" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.0\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921190\",\"description\":\"HTTP Splitting (CR/LF in request filename detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921200\",\"description\":\"LDAP Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920181\",\"description\":\"Content-Length and Transfer-Encoding headers present\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920500\",\"description\":\"Attempt to access a backup or working file\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100300\",\"description\":\"High risk bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Verified misc bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200300\",\"description\":\"Verified link checker bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200400\",\"description\":\"Verified social media bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200500\",\"description\":\"Verified content fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200600\",\"description\":\"Verified feed fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200700\",\"description\":\"Verified Advertising bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.2\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.2\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Unverified search engine crawlers\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_preview-0.1\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../) using Encoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../) using Decoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932106\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932190\",\"description\":\"Remote Command Execution: Wildcard\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: Opening/Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933111\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933131\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933161\",\"description\":\"PHP Injection Attack: Low-Value PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933190\",\"description\":\"PHP Injection Attack: PHP Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Abusing of PHP wrappers could lead to RCE\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found (bypass 933180)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942251\",\"description\":\"Detects HAVING injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942431\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (6)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942432\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (2)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942490\",\"description\":\"Detects classic SQL injection probings 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Java: deserialization that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944300\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/BotProtection_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"BotProtection_preview-0.1\",\"properties\":{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"KnownBadBots\",\"description\":\"\",\"rules\":[{\"ruleId\":\"Bot00001\",\"description\":\"Malicious Bots\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.0\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921190\",\"description\":\"HTTP Splitting (CR/LF in request filename detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921200\",\"description\":\"LDAP Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920181\",\"description\":\"Content-Length and Transfer-Encoding headers present\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920500\",\"description\":\"Attempt to access a backup or working file\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.2\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.2\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030003\",\"description\":\"URL encoded file path\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030004\",\"description\":\"Missing brotli encoding from supporting browser with https referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030005\",\"description\":\"Missing brotli encoding from supporting browser over HTTP/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030006\",\"description\":\"Illegal character in requested filename\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031005\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replacing rule #942430)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031006\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replacing rule #942340)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"99032001\",\"description\":\"XSS Filter - Category 2: Event Handler Vector (replacing rule #941120)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99032002\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replacing rule #931130)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"921190\",\"description\":\"HTTP Splitting (CR/LF in request filename detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921200\",\"description\":\"LDAP Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921422\",\"description\":\"Detect content types in the Content-Type header outside of the actual content type declaration\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920181\",\"description\":\"Content-Length and Transfer-Encoding headers present\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920500\",\"description\":\"Attempt to access a backup or working file\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920530\",\"description\":\"Restrict charset parameter inside content type header to occur max once\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920620\",\"description\":\"Multiple Content-Type Request Headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100300\",\"description\":\"High risk bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Verified misc bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200300\",\"description\":\"Verified link checker bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200400\",\"description\":\"Verified social media bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200500\",\"description\":\"Verified content fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200600\",\"description\":\"Verified feed fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200700\",\"description\":\"Verified Advertising bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_HTTPDDoSRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_HTTPDDoSRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"Microsoft_HTTPDDoSRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"89e83da1-abda-4b9d-a1c9-da4ecd89bd89\",\"ruleGroups\":[{\"ruleGroupName\":\"ExcessiveRequests\",\"description\":\"Excessive Requests\",\"rules\":[{\"ruleId\":\"500100\",\"description\":\"Anomaly detected on high rate of client requests\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"500110\",\"description\":\"Suspected bots sending high rate of requests\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.2\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.2\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Unverified search engine crawlers\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_preview-0.1\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../) using Encoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../) using Decoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932106\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932190\",\"description\":\"Remote Command Execution: Wildcard\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: Opening/Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933111\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933131\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933161\",\"description\":\"PHP Injection Attack: Low-Value PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933190\",\"description\":\"PHP Injection Attack: PHP Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Abusing of PHP wrappers could lead to RCE\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found (bypass 933180)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector (replaced by rule #99032001)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replaced by rule #99031001)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942251\",\"description\":\"Detects HAVING injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942431\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (6)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942432\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (2)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942490\",\"description\":\"Detects classic SQL injection probings 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Java: deserialization that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944300\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/BotProtection_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"BotProtection_preview-0.1\",\"properties\":{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"KnownBadBots\",\"description\":\"\",\"rules\":[{\"ruleId\":\"Bot00001\",\"description\":\"Malicious Bots\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json index 29a2c1a155e4..06f090d7c2d1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+1": { + "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "d15b5c06-1818-49f8-a55b-23713bcf2978" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "dc23a4ad-0eaf-47c4-95f5-689f0341ae4a" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "ebe8ea23-a4d4-4e33-9930-702e8d1d27ea" ], - "x-ms-client-request-id": [ "d15b5c06-1818-49f8-a55b-23713bcf2978" ], + "x-ms-request-id": [ "6cbdef6d-2fd9-4153-b866-f0d3d5cd080b" ], + "x-ms-client-request-id": [ "dc23a4ad-0eaf-47c4-95f5-689f0341ae4a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e2e2d917-3cfe-4f21-ba98-9f58f5b05492" ], - "x-ms-routing-request-id": [ "JAPANWEST:20241211T065111Z:e2e2d917-3cfe-4f21-ba98-9f58f5b05492" ], + "x-ms-correlation-request-id": [ "c5c3f408-8162-478e-bf4d-ebace156f58d" ], + "x-ms-routing-request-id": [ "AUSTRALIAEAST:20250925T005803Z:c5c3f408-8162-478e-bf4d-ebace156f58d" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 13B859BCE2244B13AACB21A2F4AD7DDC Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:11Z" ], - "Date": [ "Wed, 11 Dec 2024 06:51:11 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 87FBD654B5414C3093D6FDF30392463B Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:02Z" ], + "Date": [ "Thu, 25 Sep 2025 00:58:03 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json index 8ee336d06602..f1cf1a369487 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+1": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,40 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fa9406dc-8ac3-45eb-b01d-541348cee3cf" ], - "x-ms-client-request-id": [ "0b83e76d-885e-42b3-896f-cf539595e97d" ], + "x-ms-request-id": [ "9a7fc170-d5fd-48f1-9ebb-b6418e25ee88" ], + "x-ms-client-request-id": [ "df3b3725-84ea-4dd7-bffe-981e232f9748" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f1d03c7c-4fee-4d25-b38d-d0e8cd687f27" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "1803855d-6eb2-4c57-b6ad-6e32f8270711" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065119Z:1803855d-6eb2-4c57-b6ad-6e32f8270711" ], + "x-ms-correlation-request-id": [ "398b6154-226e-4907-bf49-a8dcf61264d9" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005814Z:398b6154-226e-4907-bf49-a8dcf61264d9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 5DB798EBB293411799688A90E537FA76 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:17Z" ], - "Date": [ "Wed, 11 Dec 2024 06:51:19 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 437DC0E89FDE4043AB287AE3CF049D1D Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:14Z" ], + "Date": [ "Thu, 25 Sep 2025 00:58:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+2": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "0b83e76d-885e-42b3-896f-cf539595e97d" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "df3b3725-84ea-4dd7-bffe-981e232f9748" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -62,23 +63,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d3969a1d-7428-4dff-bb24-65951f9b1128" ], - "x-ms-client-request-id": [ "0b83e76d-885e-42b3-896f-cf539595e97d" ], + "x-ms-request-id": [ "e87973e4-9555-4366-a15c-972fc3c8ec2c" ], + "x-ms-client-request-id": [ "df3b3725-84ea-4dd7-bffe-981e232f9748" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/81016d3e-b43c-4dd2-9e9f-ece8a080eae6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "bbde9566-e585-4bf5-ae5d-ec5937075619" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065150Z:bbde9566-e585-4bf5-ae5d-ec5937075619" ], + "x-ms-correlation-request-id": [ "a4d0043f-2cf6-41be-9e57-d03564e91154" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005845Z:a4d0043f-2cf6-41be-9e57-d03564e91154" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4EBBDEBB89D94D1EB1E52E981527F964 Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:49Z" ], - "Date": [ "Wed, 11 Dec 2024 06:51:50 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E36763916FF54316AEE1D829E33CA4FD Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:45Z" ], + "Date": [ "Thu, 25 Sep 2025 00:58:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json index 37c9aee18a0a..851aadb7fe1b 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json @@ -1,8 +1,8 @@ { - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01+1": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,40 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "3b647d0e-0f2f-4533-942d-2deec4d9147e" ], - "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "x-ms-request-id": [ "7e7d022f-3290-4757-aca6-4fa51925ee29" ], + "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c87695da-1902-4bc2-80e1-2e5b0ec94590" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "16eb0a54-f01a-4b3a-96cd-502d4632c128" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065200Z:16eb0a54-f01a-4b3a-96cd-502d4632c128" ], + "x-ms-correlation-request-id": [ "be274ed3-d70f-4c4f-8a2e-7e3cf320c978" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005856Z:be274ed3-d70f-4c4f-8a2e-7e3cf320c978" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 81499047E8C04BCC82A862F3E24E613A Ref B: TYO201100116049 Ref C: 2024-12-11T06:51:57Z" ], - "Date": [ "Wed, 11 Dec 2024 06:52:00 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E0CAB766C1034135BD528A2337483257 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:55Z" ], + "Date": [ "Thu, 25 Sep 2025 00:58:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf0ouj\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf0ouj\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqe1t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqe1t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01+2": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -62,40 +63,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e64459cd-1356-4893-87ba-5db54958541c" ], - "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "x-ms-request-id": [ "0ec5ee17-86dc-40e0-963c-f77d636f8660" ], + "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "22505bc9-42ed-4beb-acb7-64ce635e860b" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065231Z:22505bc9-42ed-4beb-acb7-64ce635e860b" ], + "x-ms-correlation-request-id": [ "9556476b-071b-441c-a205-e272ee59c400" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005927Z:9556476b-071b-441c-a205-e272ee59c400" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 75BE4379C12945C49E581DD9F17DAF77 Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:31Z" ], - "Date": [ "Wed, 11 Dec 2024 06:52:31 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A84CA0E3583D4529AB1C8487BAB5A0DB Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:27Z" ], + "Date": [ "Thu, 25 Sep 2025 00:59:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf0ouj\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf0ouj\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqe1t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqe1t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01+3": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf0ouj?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -106,23 +107,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f0243021-5f9d-442c-9de1-5ba42995e3c1" ], - "x-ms-client-request-id": [ "05439ea4-faf8-42d3-a396-f594b76dceb6" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "bd9735e0-fb4b-47dc-bcad-714b634080a7" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065232Z:bd9735e0-fb4b-47dc-bcad-714b634080a7" ], + "x-ms-request-id": [ "793c8ab6-c137-43da-afd6-10306cc51a7f" ], + "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "89ecc4fe-305b-4db9-bdcd-45bcd9ae139c" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005928Z:89ecc4fe-305b-4db9-bdcd-45bcd9ae139c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: CEB8E16328974050AB8965D8D2A5AAF9 Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:32Z" ], - "Date": [ "Wed, 11 Dec 2024 06:52:32 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A03D1588EB2049AA8F1D5650068023BA Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:27Z" ], + "Date": [ "Thu, 25 Sep 2025 00:59:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf0ouj\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf0ouj\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqe1t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqe1t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 index ee12d933be4c..0243f5e29163 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafPolicy')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorWafPolicy' -Tag 'LiveOnly' { +Describe 'New-AzFrontDoorWafPolicy' { It 'CreateExpanded' { $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json index 258da026376f..73fc39f39b4e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01+1": { + "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-ogv3.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-4u63.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -19,41 +19,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "62597151-1eb5-481d-a0ce-36e9571ef5a7" ], - "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/9d34a355-53a0-43d0-a432-186c0d1dba4f?api-version=2021-06-01\u0026t=638694967596349405\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRD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TAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=O7oxjTlvGAFu1j_AuqohTXr_jZ9xlBUHjCxAFzppJ9l6Klmg3qlm3efBijM19vSyb5lDyQUz3Rmqo0BoeNjCvHPUzq1V8MmEOim7HPF4MAZ5Ywvq7cGScTO_SYLVlhXU701OlwVStK6x4BuMAobSAW4r0VG4-hSaXmmM0Cygt0-0o8uR9-gOQ0GTjE2q1l9XWO-2QbOjaLtxxcLrTvMWgAuUK_BnCyOeWKgUvx6ASMu17wi13usPMBpJiDVFgLamK11Lm6GzWaNltF__Dh91hj1XzrozDL-IJsbO3sPHl796MhP_XsLQrfP7iwxwm8GPcLXJGCinOwa0p2mrHRyxbg\u0026h=XSY9QaEckr_cvkk9MwKCOMtjsmqcnbyqFrZlbzQ44X0" ], + "x-ms-request-id": [ "e58fcd9e-e315-43f1-b01d-24cb49d47bb4" ], + "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/cc2c4a30-79d7-465d-81ab-110ee01855c7?api-version=2021-06-01\u0026t=638943587727672059\u0026c=MIIIrzCCB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RXpgCwDidtjdWIAp3_tgZo187MMBNh9LCmF9lS5_9YHoR-wjbSgVXsqcJXPFtlGVCSno5tX7pxOsbFFqxla440IWyYL_Wwu4C4zIxx16-xfvZDu4CWsA\u0026h=pzWxIw9rDWF4nrQXbhGK9Dplahdckmp9dPUV29LAa_s" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/5d67ca8a-6f98-429f-a85a-a482009fd595" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "07fb0418-b33d-49c2-ba63-c5167ccc2321" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065239Z:07fb0418-b33d-49c2-ba63-c5167ccc2321" ], + "x-ms-correlation-request-id": [ "f279d5d0-747f-4b1f-a2d5-017c8bd0e76c" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005932Z:f279d5d0-747f-4b1f-a2d5-017c8bd0e76c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B2C6BB7AC36F4757A04BCC897DFDA02B Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:34Z" ], - "Date": [ "Wed, 11 Dec 2024 06:52:39 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 1E516DFA062943E596A53F8455114135 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:30Z" ], + "Date": [ "Thu, 25 Sep 2025 00:59:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-ogv3\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-ogv3\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"ab1f25f0-7fa3-4333-b5c9-c93fa6ca5ecf\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-ogv3.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-ogv3.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-4u63\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4u63\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"84f853a0-0906-49d8-8e0e-724a61037572\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-4u63.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4u63.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/9d34a355-53a0-43d0-a432-186c0d1dba4f?api-version=2021-06-01\u0026t=638694967596349405\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG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FBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=O7oxjTlvGAFu1j_AuqohTXr_jZ9xlBUHjCxAFzppJ9l6Klmg3qlm3efBijM19vSyb5lDyQUz3Rmqo0BoeNjCvHPUzq1V8MmEOim7HPF4MAZ5Ywvq7cGScTO_SYLVlhXU701OlwVStK6x4BuMAobSAW4r0VG4-hSaXmmM0Cygt0-0o8uR9-gOQ0GTjE2q1l9XWO-2QbOjaLtxxcLrTvMWgAuUK_BnCyOeWKgUvx6ASMu17wi13usPMBpJiDVFgLamK11Lm6GzWaNltF__Dh91hj1XzrozDL-IJsbO3sPHl796MhP_XsLQrfP7iwxwm8GPcLXJGCinOwa0p2mrHRyxbg\u0026h=XSY9QaEckr_cvkk9MwKCOMtjsmqcnbyqFrZlbzQ44X0+2": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/cc2c4a30-79d7-465d-81ab-110ee01855c7?api-version=2021-06-01\u0026t=638943587727672059\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyL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-xfvZDu4CWsA\u0026h=pzWxIw9rDWF4nrQXbhGK9Dplahdckmp9dPUV29LAa_s+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/9d34a355-53a0-43d0-a432-186c0d1dba4f?api-version=2021-06-01\u0026t=638694967596349405\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQc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Uri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/cc2c4a30-79d7-465d-81ab-110ee01855c7?api-version=2021-06-01\u0026t=638943587727672059\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29m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dv2FUSlGOTJ1O1_kpUoHjz34TQbFFm8q9ZXZn0vSY7qW3ejXwWily7TJ2a2s72pVWLkMJ-_RjahP2dBrEOnVosi1cnm-ejgp6GrB8SKQQ-dNPD0kl0Dz8z__x1pLVaYX-2eXyAcVumxPnbBSsyKKcx2LIRXpgCwDidtjdWIAp3_tgZo187MMBNh9LCmF9lS5_9YHoR-wjbSgVXsqcJXPFtlGVCSno5tX7pxOsbFFqxla440IWyYL_Wwu4C4zIxx16-xfvZDu4CWsA\u0026h=pzWxIw9rDWF4nrQXbhGK9Dplahdckmp9dPUV29LAa_s", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -64,16 +65,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "62c64c68-4b37-47c7-80ee-cbbbecac2131" ], - "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], + "x-ms-request-id": [ "c0ae71dd-28a4-4d1b-9359-5ad3a17ceae8" ], + "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d54873c1-11bf-48ec-80b8-b0962c763d26" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "fa144468-3fb9-41bf-afa7-7cdcddaeb8fc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065250Z:fa144468-3fb9-41bf-afa7-7cdcddaeb8fc" ], + "x-ms-correlation-request-id": [ "808d7bf6-81f6-4afc-a96c-6eeb0c9d205f" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005943Z:808d7bf6-81f6-4afc-a96c-6eeb0c9d205f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B2006DA164374C6E9F96E2E9AB3CECBF Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:49Z" ], - "Date": [ "Wed, 11 Dec 2024 06:52:50 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2310354201384F489897BE36BEC9EECC Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:43Z" ], + "Date": [ "Thu, 25 Sep 2025 00:59:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -84,20 +86,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01+3": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -108,39 +110,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "31213512-0bf3-4a53-9daf-93d07658a255" ], - "x-ms-client-request-id": [ "2ee3096a-3dee-4249-be07-350e8ffbdd47" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "01a4c4fa-fd5d-41e6-9e58-d1f73b95b4dd" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065251Z:01a4c4fa-fd5d-41e6-9e58-d1f73b95b4dd" ], + "x-ms-request-id": [ "4c244d03-73a8-4ebc-9e6c-324f203f968d" ], + "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "f4ef2c60-aaab-47aa-8bc6-4d939eac4702" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T005943Z:f4ef2c60-aaab-47aa-8bc6-4d939eac4702" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F74D4821AE954D2D93BBB60F0FD5B359 Ref B: TYO201100116049 Ref C: 2024-12-11T06:52:50Z" ], - "Date": [ "Wed, 11 Dec 2024 06:52:51 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 48F4B6B9A4904C279C34FFBBD78FAA0C Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:43Z" ], + "Date": [ "Thu, 25 Sep 2025 00:59:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-ogv3\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-ogv3\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"ab1f25f0-7fa3-4333-b5c9-c93fa6ca5ecf\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-ogv3/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-ogv3.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-ogv3.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-4u63\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4u63\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"84f853a0-0906-49d8-8e0e-724a61037572\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4u63.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4u63.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01+4": { + "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-ogv3?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -151,20 +153,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f/frontdoorresults/testps-fd-ogv3?api-version=2021-06-01" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26/frontdoorresults/testps-fd-4u63?api-version=2021-06-01\u0026t=638943588050806895\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClB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tefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=y410XdxiiLjrWCM64or0KGytcB-pFcs1LCeubDkQp0fNRvoKtcht46Dq6kDxo_PI9DbdoPdZbv05JrZ7Z_ufLjMQq0whk9vd2I8G2GhqWEUiy4ay7Oep57VDEqlNsnEBx-9B6yHBpBYvdUsi5zAWmPlwIV4eCQJJKLS_Rg_oWvBHzW583VreFJ6588zoqNCjygaSLepIC3dqEkEHW0P5YPMv4YJZB35rfQDJMG5NSMi6DZh4nh_7H762eieQU8-B1O4uRjPdU4EiY3QaXVIMyczyd9i_lWpYVTi-x2dZbIAjo1hPHzEBMNWCQePyvmSW-DvNJzeWgOhKVyqan9zNAQ\u0026h=RTYeAdTLx8iOvJ1KZuqg9CD2LE4Gm1KPQlgoFsq9r3k" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fd84c0a3-da8b-4307-ac54-03400dbb2eaa" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d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ADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk" ], + "x-ms-request-id": [ "ef5cf606-35da-4438-99ba-18358a9fdd4f" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Micro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XuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ee3868be-7524-4f74-a2a8-4f482ca8005e" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "d8d06b63-005b-4469-a16f-e2a14516c70e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065314Z:d8d06b63-005b-4469-a16f-e2a14516c70e" ], + "x-ms-correlation-request-id": [ "0284b969-35d4-4935-a3c5-a2e77c6abf15" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010005Z:0284b969-35d4-4935-a3c5-a2e77c6abf15" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 0529ACE9AFDB47D6B1099B402DAA6B6D Ref B: TYO201100116049 Ref C: 2024-12-11T06:53:11Z" ], - "Date": [ "Wed, 11 Dec 2024 06:53:14 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 398A70B6B91B46F0A9296A09671BD260 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:00:03Z" ], + "Date": [ "Thu, 25 Sep 2025 01:00:04 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -174,20 +177,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS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ZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+5": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b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pmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaH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nq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwY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I6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -198,16 +201,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0cf8a904-8142-43e3-9894-c221ad6aee19" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-request-id": [ "a84c5d04-b46e-488b-ab8c-74abe19d3a4d" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d336181e-6832-4871-8c92-3be67f9d4cd4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "0a190204-f51c-4545-8e53-ca48ae914a49" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065325Z:0a190204-f51c-4545-8e53-ca48ae914a49" ], + "x-ms-correlation-request-id": [ "044ddee7-62e4-44db-b6b5-aae7a4384f04" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010016Z:044ddee7-62e4-44db-b6b5-aae7a4384f04" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C3A7A87D10D646DC948EF9CA84D20789 Ref B: TYO201100116049 Ref C: 2024-12-11T06:53:24Z" ], - "Date": [ "Wed, 11 Dec 2024 06:53:24 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 63C65F8EB5744EA5875B30715CFEA40D Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:00:15Z" ], + "Date": [ "Thu, 25 Sep 2025 01:00:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -218,20 +222,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQ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AwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+6": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwF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rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQ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ions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mc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pQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -242,16 +246,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "adbb7067-3e2b-4fe9-88ee-6e8f3e2bcb28" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-request-id": [ "0eb617c6-9f76-4acd-bb16-767b80385f18" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3dd104a8-f736-4f0d-87aa-2be48fe84e2e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e7f70970-b957-41f0-b8c9-f58c9cfa3902" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065355Z:e7f70970-b957-41f0-b8c9-f58c9cfa3902" ], + "x-ms-correlation-request-id": [ "aa8925f5-b560-42d5-92a3-9cf6bd34dda8" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010047Z:aa8925f5-b560-42d5-92a3-9cf6bd34dda8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 1726431A687A4B68B2F4C905AEB09B7D Ref B: TYO201100116049 Ref C: 2024-12-11T06:53:55Z" ], - "Date": [ "Wed, 11 Dec 2024 06:53:55 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F5FF76CEA2B84C5E98F343D7FE3855AA Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:00:46Z" ], + "Date": [ "Thu, 25 Sep 2025 01:00:47 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -262,20 +267,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGl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4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+7": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLm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xpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38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AwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8ms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tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -286,16 +291,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "18f48dd4-68bf-4492-b59e-129719fe5c98" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-request-id": [ "9c57caf4-470d-4c07-b5dd-459cfb8af694" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/78356fad-191b-4f14-a955-e32e5d24a7f4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "bbced530-2402-451c-96f5-4bd22d65b181" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065427Z:bbced530-2402-451c-96f5-4bd22d65b181" ], + "x-ms-correlation-request-id": [ "59a7db03-28a8-424a-a49f-d9ac823350c6" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010118Z:59a7db03-28a8-424a-a49f-d9ac823350c6" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D2A16E1DB9C24D4CB8EDEFC732C35710 Ref B: TYO201100116049 Ref C: 2024-12-11T06:54:26Z" ], - "Date": [ "Wed, 11 Dec 2024 06:54:26 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 89C87E54C33B4410AD3F2EA6A0AEE445 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:01:17Z" ], + "Date": [ "Thu, 25 Sep 2025 01:01:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -306,20 +312,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7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xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+8": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5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Tv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw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LRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQ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-unique-id": [ "56" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -330,16 +336,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d4a79cb2-8cc3-4a72-99a9-96d69951af39" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-request-id": [ "eb37a91a-ea07-4158-a086-554772d83332" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/32a15357-19ba-469d-bcbd-e993614e2393" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "d38567f6-a27b-49c1-af3d-bc0b72d522cb" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065457Z:d38567f6-a27b-49c1-af3d-bc0b72d522cb" ], + "x-ms-correlation-request-id": [ "bc5ca196-3f4a-4879-a9a7-c07e69314bff" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010149Z:bc5ca196-3f4a-4879-a9a7-c07e69314bff" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F74D9D12F03D433D9D194277970C19C5 Ref B: TYO201100116049 Ref C: 2024-12-11T06:54:57Z" ], - "Date": [ "Wed, 11 Dec 2024 06:54:57 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 34B4267CA52842F0920A676C9770A15E Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:01:48Z" ], + "Date": [ "Thu, 25 Sep 2025 01:01:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -350,20 +357,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0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95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+9": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6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MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggE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eA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrS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sdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -374,16 +381,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6ce12e66-5e08-453d-ae20-02ea401757bb" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-request-id": [ "b355393c-780b-4263-97b7-bfb24f759306" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e809b0bf-9bc6-4474-aba4-fc4d0629dceb" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "4892210f-7712-4b49-803f-09a0e64ae98f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065528Z:4892210f-7712-4b49-803f-09a0e64ae98f" ], + "x-ms-correlation-request-id": [ "ab0be8a3-347d-41b1-8279-a27b689c254e" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010220Z:ab0be8a3-347d-41b1-8279-a27b689c254e" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 7AAEDF66CF314725947C39EDB52A9A56 Ref B: TYO201100116049 Ref C: 2024-12-11T06:55:28Z" ], - "Date": [ "Wed, 11 Dec 2024 06:55:28 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 6A72723C7A024F019CFC21CACBB41B2E Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:02:19Z" ], + "Date": [ "Thu, 25 Sep 2025 01:02:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -394,20 +402,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjD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ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+10": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcw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u7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA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Kj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_E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Ys9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -418,16 +426,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d03fdc04-396a-4938-bf51-c9d240275549" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-request-id": [ "6fa4ab74-b3fb-47ba-80c2-c197ba749afa" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0a597949-095f-420a-8fbb-8d2fd8783adf" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9b403da7-493e-4b5c-88ce-bf13116e1c61" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065559Z:9b403da7-493e-4b5c-88ce-bf13116e1c61" ], + "x-ms-correlation-request-id": [ "79a04d0d-83e9-42f6-a693-717894d5822d" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010250Z:79a04d0d-83e9-42f6-a693-717894d5822d" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 71C3BD4235404FD09D651D1987F473CE Ref B: TYO201100116049 Ref C: 2024-12-11T06:55:59Z" ], - "Date": [ "Wed, 11 Dec 2024 06:55:59 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 9616FB60285D487BB0635FE1A3FED4BB Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:02:50Z" ], + "Date": [ "Thu, 25 Sep 2025 01:02:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -438,20 +447,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJh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wADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+11": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26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0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGC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3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUH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iaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -462,16 +471,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "257187af-065c-43ad-9f3d-838fe55a04a6" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-request-id": [ "9811e606-e9a8-431e-9ffc-022922626db1" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ee48663f-5711-4061-9213-ea88f49c9f27" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ccf18845-b519-432f-b675-09ecaf583be9" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065630Z:ccf18845-b519-432f-b675-09ecaf583be9" ], + "x-ms-correlation-request-id": [ "b0af6446-cf1b-4706-9e8e-9651ed6c152f" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010321Z:b0af6446-cf1b-4706-9e8e-9651ed6c152f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E5156859B6DD4F9F9736C66B3D97D0B5 Ref B: TYO201100116049 Ref C: 2024-12-11T06:56:30Z" ], - "Date": [ "Wed, 11 Dec 2024 06:56:30 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 48FBAC0A242E44EC82C7A750D229A526 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:03:20Z" ], + "Date": [ "Thu, 25 Sep 2025 01:03:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -482,20 +492,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKC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zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk+12": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMD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I2_m2JHZI+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/a8d2d0f1-f38b-4d0d-8430-8a864746d83f?api-version=2021-06-01\u0026t=638694967943336267\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRw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ATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=VV2lXKaxdkzbtfI8PcQ0xEDVMWHxDm3ojUb_K0lZ_McuLHGrS8wccCfigJcwJVSfoN8vKj7HQFtD6FhxGaRq5UGmEMmXOqeswdrox5DjcDnR9lDrvwPRYfT2VMVRQSU4I7yUHYN2uiXLZ4NSAgpJ-wo82QGK9aPBb95bZG_9BKTImyzzBCoVKAd0LyfgOZ3V9kTuTPD2slnPizoasB3xPqbZSdmXCV1wecFeJnq46d9WrqA2hTxi0pp8MU9tZjO3Qj_pH31mCNVrAzQsZfT6haQHIICW3NcwqX_k1HGnXdr5ehJmnpg_rb0Tbnyj0yxso7v9O01cDlfXjOHu74aZKg\u0026h=j0061ji44xoFm-PlPwCnmBoG5WiEuyqbyAACaG1LWvk", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvbWVsMDFwa2lpbnRjYTA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VzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -506,16 +516,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b546a1f1-ec8d-4b18-a032-e965c3723619" ], - "x-ms-client-request-id": [ "e6571090-22af-4f58-891c-17ad3e861911" ], + "x-ms-request-id": [ "626b548f-e1b3-460f-9f13-3b297cc4ee6a" ], + "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2217dbec-f3d3-4c23-b5db-4badf9cb6887" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "f6606e8b-7e09-411e-ba82-57e37ed5b910" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065631Z:f6606e8b-7e09-411e-ba82-57e37ed5b910" ], + "x-ms-correlation-request-id": [ "6be608a0-e4c5-4a1f-b3d1-786fe2f1d671" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010322Z:6be608a0-e4c5-4a1f-b3d1-786fe2f1d671" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8ACD310971F14D5EB8735305E0C58EE5 Ref B: TYO201100116049 Ref C: 2024-12-11T06:56:30Z" ], - "Date": [ "Wed, 11 Dec 2024 06:56:30 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 94B51D45012A4181B218D4D83742907C Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:03:21Z" ], + "Date": [ "Thu, 25 Sep 2025 01:03:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 index e7faff7ac660..5af4659f3280 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoor')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoor' -Tag 'LiveOnly' { +Describe 'Remove-AzFrontDoor' { It 'Delete' { { $frontDoorName = 'testps-fd-' + (RandomString -allChars $false -len 4) diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json index edbe5d5788eb..7eef55eae345 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01+1": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,40 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "35b8c3f4-fd15-4dab-8150-f4ffb1789a2d" ], - "x-ms-client-request-id": [ "14849011-7300-42c7-8d4f-afc4d5787daf" ], + "x-ms-request-id": [ "1f160e65-6fb4-494c-91ab-751d1280762d" ], + "x-ms-client-request-id": [ "5c92d242-360c-4be6-8cf3-7887da4c0c41" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/australiaeast/5bbf54aa-0b70-4a60-aef5-d048b0cb6fa3" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "842e6f6e-4386-49bd-872a-63bd70bb7618" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065633Z:842e6f6e-4386-49bd-872a-63bd70bb7618" ], + "x-ms-correlation-request-id": [ "1fd44222-5609-4f64-a526-c298b3c6dbbd" ], + "x-ms-routing-request-id": [ "AUSTRALIAEAST:20250925T010329Z:1fd44222-5609-4f64-a526-c298b3c6dbbd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2AD0E7AA928041689DFB610B77A87EA5 Ref B: TYO201100116049 Ref C: 2024-12-11T06:56:32Z" ], - "Date": [ "Wed, 11 Dec 2024 06:56:33 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2BB60A13465E42AB8B9918085D2901E3 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:03:25Z" ], + "Date": [ "Thu, 25 Sep 2025 01:03:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01+2": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "62" ], - "x-ms-client-request-id": [ "14849011-7300-42c7-8d4f-afc4d5787daf" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "5c92d242-360c-4be6-8cf3-7887da4c0c41" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -62,39 +63,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "adb7b50e-e8ea-41be-8931-d036d2eb428a" ], - "x-ms-client-request-id": [ "14849011-7300-42c7-8d4f-afc4d5787daf" ], + "x-ms-request-id": [ "e30fa651-8829-4c92-be94-e60b6b0ad096" ], + "x-ms-client-request-id": [ "5c92d242-360c-4be6-8cf3-7887da4c0c41" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a0044b65-3fdd-4053-9bdb-0e33d16afc78" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9c02830e-7e37-431d-b416-4454f4983e54" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065705Z:9c02830e-7e37-431d-b416-4454f4983e54" ], + "x-ms-correlation-request-id": [ "aa2994a9-1ecc-4571-a71b-713f8513c0e9" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010400Z:aa2994a9-1ecc-4571-a71b-713f8513c0e9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8715C6C9B0E84EF1BF517DC23733842A Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:04Z" ], - "Date": [ "Wed, 11 Dec 2024 06:57:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A9C8D67A8C494B6C9E00671E42011494 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:03:59Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01+3": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "63" ], - "x-ms-client-request-id": [ "1a52f214-f0ce-481c-af7c-f739588f921b" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "496a37b6-f3e7-4423-aea1-d68fc026f601" ], "CommandName": [ "Remove-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Remove-AzFrontDoorRulesEngine_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -106,16 +108,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "85311e50-cf19-4f5f-946e-7ef66b78207a" ], - "x-ms-client-request-id": [ "1a52f214-f0ce-481c-af7c-f739588f921b" ], + "x-ms-request-id": [ "a058d2a5-92a1-4b3a-8b6d-f71739681e59" ], + "x-ms-client-request-id": [ "496a37b6-f3e7-4423-aea1-d68fc026f601" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/07c4f9e4-e6db-4c5d-89d3-b23df451610a" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "66f4bfe5-83f0-411f-837c-9619119cd051" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065706Z:66f4bfe5-83f0-411f-837c-9619119cd051" ], + "x-ms-correlation-request-id": [ "76d264c4-f798-4e2e-b977-d23d1c0d6a66" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010402Z:76d264c4-f798-4e2e-b977-d23d1c0d6a66" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D0D55688EA6B4F1FA3E66BDD2CD1403F Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:05Z" ], - "Date": [ "Wed, 11 Dec 2024 06:57:05 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 30EB9BDD8DAC4B8F862D97BAA68392F8 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:01Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:01 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json index 308c6943ed9a..5ee838329733 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01+1": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,40 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "03e15bdf-5c24-4b35-9573-8499fc044439" ], - "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "x-ms-request-id": [ "33de00c6-e97c-48f8-91cb-3725605a71d8" ], + "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7234f325-40d3-4525-a627-1016315a27a7" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "2a5a4e73-dbda-450e-8be6-48200770d4fd" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065710Z:2a5a4e73-dbda-450e-8be6-48200770d4fd" ], + "x-ms-correlation-request-id": [ "15c3d55a-93b2-4180-a020-b42ccea8eb9c" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010405Z:15c3d55a-93b2-4180-a020-b42ccea8eb9c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: BE26ADBE9A4A406E96FE09515568772F Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:07Z" ], - "Date": [ "Wed, 11 Dec 2024 06:57:09 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 01C327636ECF4CECBD97BCF43895FDC1 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:03Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8uts\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8uts\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf1anu\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf1anu\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01+2": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "66" ], - "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -62,40 +63,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "99741cee-8751-48f4-8077-4d23f1b51200" ], - "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "x-ms-request-id": [ "e786a10d-6c23-4140-aaa7-299b56206b4c" ], + "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "4b3c7e7f-3ebe-45cd-b2d7-184ee30cf8d4" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065741Z:4b3c7e7f-3ebe-45cd-b2d7-184ee30cf8d4" ], + "x-ms-correlation-request-id": [ "41a07392-7151-4a97-b276-1865252abc3a" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010436Z:41a07392-7151-4a97-b276-1865252abc3a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D8784E8AE690424B820B7903F26FDB75 Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:40Z" ], - "Date": [ "Wed, 11 Dec 2024 06:57:41 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D84602DF74E04DA88095AC60DB623F99 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:36Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8uts\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8uts\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf1anu\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf1anu\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01+3": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "67" ], - "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -106,39 +107,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d459d3ed-d3cb-42bd-b148-f20efdb25e41" ], - "x-ms-client-request-id": [ "208c3722-dec5-406f-81f9-eab2e89b7e2e" ], + "x-ms-request-id": [ "8afb41ba-f703-4f9c-882e-813cfde4bf89" ], + "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "a2770391-9c83-42ae-8ac3-a0ea9fc21bc5" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065742Z:a2770391-9c83-42ae-8ac3-a0ea9fc21bc5" ], + "x-ms-correlation-request-id": [ "b92c69d5-f87b-47b7-98fb-5fd12d12c76c" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010436Z:b92c69d5-f87b-47b7-98fb-5fd12d12c76c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 7CB0CEF76C87460E9C3618C893119D42 Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:41Z" ], - "Date": [ "Wed, 11 Dec 2024 06:57:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A774D12F6C4148C5A0B179344950351E Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:36Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8uts\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8uts\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf1anu\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf1anu\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01+4": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8uts?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "68" ], - "x-ms-client-request-id": [ "219f2601-a84b-4993-ba0c-f80509953ca1" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "48ccda96-a3ed-4f0f-b645-a7a1d07f1ec5" ], "CommandName": [ "Remove-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Remove-AzFrontDoorWafPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -150,16 +151,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "065cbc50-b5bc-409b-a33f-d1c752550d56" ], - "x-ms-client-request-id": [ "219f2601-a84b-4993-ba0c-f80509953ca1" ], + "x-ms-request-id": [ "1ef7a5c2-f663-4dc6-8f94-946110f6e8af" ], + "x-ms-client-request-id": [ "48ccda96-a3ed-4f0f-b645-a7a1d07f1ec5" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2e374691-5657-4f11-bdd1-2ad7056a7eb2" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "1e220fef-57c0-44e4-b06f-cda882a59dac" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065745Z:1e220fef-57c0-44e4-b06f-cda882a59dac" ], + "x-ms-correlation-request-id": [ "e41cb841-36e0-4e0c-b32a-84dd4abc383f" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010438Z:e41cb841-36e0-4e0c-b32a-84dd4abc383f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D09347519BBE4F0598D1D3A408AC8AD6 Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:42Z" ], - "Date": [ "Wed, 11 Dec 2024 06:57:45 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 567A6EE333944B62A4491E80CB7C4529 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:36Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:37 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 index 67fe7492e83b..583d5d03bfec 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorWafPolicy') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorWafPolicy' -Tag 'LiveOnly' { +Describe 'Remove-AzFrontDoorWafPolicy' { It 'Delete' { { $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json index 6b4846a1a236..756f52f4ac38 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json @@ -1,9 +1,9 @@ { - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+1": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-12wm.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-m56z.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -19,41 +19,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "18f4bfb8-a265-44da-a7cf-792fff5bdcb2" ], - "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/4cf82e5e-9128-43e6-a690-914a52acecf8?api-version=2021-06-01\u0026t=638694970714802964\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt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ak3yCnNcJJN8wcZ3J3oXVR_cZgDN5633AgvKlr6q489pkDolmov29Zh-6sknogIYTeiQ2cjRuWja5ZLYQanXjBsBkKin8SUPdGHBKaBWZxP7AevetcyC0tmjDv8CNCX9KNe3XPj-2LfHNtnznm5tPDTj7uHYtQKgUJSEcucHjj-om4R7_cSxeI7BCRo2IrxttfWuRWhbLdbuybZTYGKbcBWxpRMQ-CDtIL8MeO4wMjybL8hsNfUtK-jPNG-WZrHQUumjJnt-iMTIV3C67DZhICyJSQJfLEcW-KNUezZzA\u0026h=uL6x5znrBMD4eNUhL28S8l_U_uJ7LBtD5eE0JshO-hQ" ], + "x-ms-request-id": [ "12c17d48-8eb4-4574-96fa-1029587e41a9" ], + "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/080da621-4a64-4a2c-905d-fd91869312a9?api-version=2021-06-01\u0026t=638943590815223259\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX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dGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=HshJpC0Pnnw-MebxSUiNB98wvkSbDC2uo2I_UmAO6zh3QBrxY198IWg9fpTkFAsZwYWlo7_HgVHnRsZ_3TI15nNGfpuBon8qW87XKWxoc5mpIBS2FzOK8RiuALuY7GcwdB93y1djsj-VWZ3PZBlM1ONw1V34XilbS_NdGN_AB8xPHDuNsZY05a39D860gF5ljPcD2RdO1GBNLFPy-Z-87CKPT56FEvUEOnvl_AXUYUfhgbmoptRiorxkrJ4LNqrF7ARzpD6bCbEoU1Fw69GLjM_4PxHZ0O7yqSmLbPNvf8lZg8DWR2AcFUEEkUvN7p73tHC4cnLXEieFlEtnEMa_FA\u0026h=wWd2ParTMXm5qCJHP03J5aQ7A2KTjGaRGOKWTzGOj1A" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/82898d01-81e1-45b8-aded-c16dc7aa7239" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "eed64239-9f09-4439-84f1-e40729219095" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065751Z:eed64239-9f09-4439-84f1-e40729219095" ], + "x-ms-correlation-request-id": [ "4b8b4754-16bb-4a83-bf37-9e1ab9210022" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010441Z:4b8b4754-16bb-4a83-bf37-9e1ab9210022" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 19E0444A2C2F4776BB4C6AE7E163A828 Ref B: TYO201100116049 Ref C: 2024-12-11T06:57:47Z" ], - "Date": [ "Wed, 11 Dec 2024 06:57:51 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 9C85733D4B6E440C96097156431538A2 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:39Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/4cf82e5e-9128-43e6-a690-914a52acecf8?api-version=2021-06-01\u0026t=638694970714802964\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Ef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Q2cjRuWja5ZLYQanXjBsBkKin8SUPdGHBKaBWZxP7AevetcyC0tmjDv8CNCX9KNe3XPj-2LfHNtnznm5tPDTj7uHYtQKgUJSEcucHjj-om4R7_cSxeI7BCRo2IrxttfWuRWhbLdbuybZTYGKbcBWxpRMQ-CDtIL8MeO4wMjybL8hsNfUtK-jPNG-WZrHQUumjJnt-iMTIV3C67DZhICyJSQJfLEcW-KNUezZzA\u0026h=uL6x5znrBMD4eNUhL28S8l_U_uJ7LBtD5eE0JshO-hQ+2": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/080da621-4a64-4a2c-905d-fd91869312a9?api-version=2021-06-01\u0026t=638943590815223259\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKs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FsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=HshJpC0Pnnw-MebxSUiNB98wvkSbDC2uo2I_UmAO6zh3QBrxY198IWg9fpTkFAsZwYWlo7_HgVHnRsZ_3TI15nNGfpuBon8qW87XKWxoc5mpIBS2FzOK8RiuALuY7GcwdB93y1djsj-VWZ3PZBlM1ONw1V34XilbS_NdGN_AB8xPHDuNsZY05a39D860gF5ljPcD2RdO1GBNLFPy-Z-87CKPT56FEvUEOnvl_AXUYUfhgbmoptRiorxkrJ4LNqrF7ARzpD6bCbEoU1Fw69GLjM_4PxHZ0O7yqSmLbPNvf8lZg8DWR2AcFUEEkUvN7p73tHC4cnLXEieFlEtnEMa_FA\u0026h=wWd2ParTMXm5qCJHP03J5aQ7A2KTjGaRGOKWTzGOj1A+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/4cf82e5e-9128-43e6-a690-914a52acecf8?api-version=2021-06-01\u0026t=638694970714802964\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ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C_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=U4fEvzPLfYuiIqfznThuZ2XMxWwblF0DXna0nVKH0vdRvak3yCnNcJJN8wcZ3J3oXVR_cZgDN5633AgvKlr6q489pkDolmov29Zh-6sknogIYTeiQ2cjRuWja5ZLYQanXjBsBkKin8SUPdGHBKaBWZxP7AevetcyC0tmjDv8CNCX9KNe3XPj-2LfHNtnznm5tPDTj7uHYtQKgUJSEcucHjj-om4R7_cSxeI7BCRo2IrxttfWuRWhbLdbuybZTYGKbcBWxpRMQ-CDtIL8MeO4wMjybL8hsNfUtK-jPNG-WZrHQUumjJnt-iMTIV3C67DZhICyJSQJfLEcW-KNUezZzA\u0026h=uL6x5znrBMD4eNUhL28S8l_U_uJ7LBtD5eE0JshO-hQ", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/080da621-4a64-4a2c-905d-fd91869312a9?api-version=2021-06-01\u0026t=638943590815223259\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF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VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=HshJpC0Pnnw-MebxSUiNB98wvkSbDC2uo2I_UmAO6zh3QBrxY198IWg9fpTkFAsZwYWlo7_HgVHnRsZ_3TI15nNGfpuBon8qW87XKWxoc5mpIBS2FzOK8RiuALuY7GcwdB93y1djsj-VWZ3PZBlM1ONw1V34XilbS_NdGN_AB8xPHDuNsZY05a39D860gF5ljPcD2RdO1GBNLFPy-Z-87CKPT56FEvUEOnvl_AXUYUfhgbmoptRiorxkrJ4LNqrF7ARzpD6bCbEoU1Fw69GLjM_4PxHZ0O7yqSmLbPNvf8lZg8DWR2AcFUEEkUvN7p73tHC4cnLXEieFlEtnEMa_FA\u0026h=wWd2ParTMXm5qCJHP03J5aQ7A2KTjGaRGOKWTzGOj1A", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "71" ], - "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -64,16 +65,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fa8f96eb-0e1e-46c5-96d5-2f182f22689a" ], - "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "x-ms-request-id": [ "4dae0d58-cc98-42ea-8fc1-93f81a125ea7" ], + "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1376d080-7b8b-4b3c-94b8-c69b7d584ed6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "90420d5f-437e-4d53-bdfe-c4ac10aac929" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065802Z:90420d5f-437e-4d53-bdfe-c4ac10aac929" ], + "x-ms-correlation-request-id": [ "04ab3a5a-0e1a-4de6-ad13-f940bbb3fdf0" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010452Z:04ab3a5a-0e1a-4de6-ad13-f940bbb3fdf0" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2ACA506F1D10489AAF6007FC9A784385 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:01Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:02 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C94E3CE3E0D942FBA55C954595234035 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:51Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -84,20 +86,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+3": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "72" ], - "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -108,39 +110,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a6dc3262-8710-4de5-9aeb-d0fa62a2ded1" ], - "x-ms-client-request-id": [ "03ae4030-321b-46d9-b44c-67ad75e45f52" ], + "x-ms-request-id": [ "205d65e2-8049-4276-af5a-8f9e14dd4bd5" ], + "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "5b63f1f9-c70c-4c0d-b3a7-841684806bd9" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065802Z:5b63f1f9-c70c-4c0d-b3a7-841684806bd9" ], + "x-ms-correlation-request-id": [ "e0dd96da-1ab3-4ca9-ad1a-4046612a4e9f" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010452Z:e0dd96da-1ab3-4ca9-ad1a-4046612a4e9f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 1F4D6D4823CD4CD29F6A732135D13B72 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:02Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:02 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E3D81C5D1100481D87E2B7FBB10AB0CD Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:52Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+4": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "73" ], - "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -152,31 +154,31 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0b00b302-be96-41ba-a154-4b099ba06522" ], - "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-request-id": [ "78b5464d-6ea8-4e7d-ac28-a968a622dec8" ], + "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "004c4838-20a3-4391-a2b8-9be2ed1e352a" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065803Z:004c4838-20a3-4391-a2b8-9be2ed1e352a" ], + "x-ms-correlation-request-id": [ "fa52df82-ccc0-4ab8-811d-4222f10fee29" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010453Z:fa52df82-ccc0-4ab8-811d-4222f10fee29" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 78DC3B0D76AF4B2E984B584270C39D61 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:03Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:03 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 63762563B7F9437F80CCB7F63AD32F7B Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:52Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:52 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+5": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+5": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-12wm.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-m56z.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -190,44 +192,45 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/1186a8ee-b157-417e-990e-df0a19a8433d/frontdoorresults/testps-fd-12wm?api-version=2021-06-01" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/b4782ef6-de42-48cc-971e-42ba3a558f65/frontdoorresults/testps-fd-m56z?api-version=2021-06-01\u0026t=638943590946012690\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE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Q3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=X19syu3bidDNkS83ES5AxwTYb0GPrOLAGEKfKi4Yc_MshmJdsNOVW4vLBH982ykRfRndKJm2kuiJA8mfeY1QeohaRayXi0RhFrkLwsFTEmBMQe9Ii0DbL-VwRD-s_XTg5rE6IB0aNE4b6BICgECiD97wN_uJ1T1XkaEl05QUtrHt58pFZ4sOkDRhj1RQejxe-KzD0tH5ujFHqN8LGawgAXe63IBYbs_Veeo0FrXDoQSH4kqalzXtGObvH-pyXZCXLav7ZLQuOO7TjWQkXdf8Pse_2x3ysZFAQesnssiQTNW7LaC4ba-KeTWrCTUBRMvuoXmE8oreHXJ3yOemRqanaA\u0026h=Nj4lYAW2pYiGF7Vx5eCCIu807sSQDpFq_GjzNvfz-NI" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a4d420b5-0b1f-4662-b313-16280bee670a" ], - "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/1186a8ee-b157-417e-990e-df0a19a8433d?api-version=2021-06-01\u0026t=638694970851031467\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw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LRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=n8B04NxxziolbrUa6z1oJ81hmJaSTwq1u0p2LM5WYefi4ZnvooxZud03LouthoVy01OyNmf_0x0sJvrIclK3aM_7c5D0I6eN9C1Rbeul0T7fO8JVkVa9lfbUkYKr-seLRBRZPCkVTYGa-aGnZoPhuoNUFn8ECuXoxausg9h4spd1-63vPk9Sjzw2nDSlvjltXknPgBEWEp1ceW0k_Jvkgg0KYgIiTMMTbcjQwVYvGvUbxoQUc76GPmCOqptIvuJo_o81Il_MyBgXe_hhT238-jN3gP284LBBD1RdijwtRFlC-fu_5AtzZiQ831292igKajb1QjBXDa50kvMaXCFCIw\u0026h=Hsvhw3uKqa84v68X1zs7GhLA6ehsE0-9JSG4Uk_QsUw" ], + "x-ms-request-id": [ "d4b6f329-e6dc-4dd5-a1b3-b6e6fef4c217" ], + "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/b4782ef6-de42-48cc-971e-42ba3a558f65?api-version=2021-06-01\u0026t=638943590945856437\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1F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=UAZSLX_vXYpbRrw0hNkUpiOy-LsiJua4ygP10pe3PMo" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/10cc84cd-5bd9-49ff-a3c2-6c5e4d10df6d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "b6429ff9-2667-48a1-953f-93728b2ee18e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065805Z:b6429ff9-2667-48a1-953f-93728b2ee18e" ], + "x-ms-correlation-request-id": [ "5053b757-baed-4e5b-a0ef-4c347d53e9d0" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010454Z:5053b757-baed-4e5b-a0ef-4c347d53e9d0" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 36493FE89389494EBE4CEBA8BD4D0DEE Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:03Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DFA1DA08E29A49FFA34F79E30C7DBAEE Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:53Z" ], + "Date": [ "Thu, 25 Sep 2025 01:04:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/1186a8ee-b157-417e-990e-df0a19a8433d?api-version=2021-06-01\u0026t=638694970851031467\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwH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TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=n8B04NxxziolbrUa6z1oJ81hmJaSTwq1u0p2LM5WYefi4ZnvooxZud03LouthoVy01OyNmf_0x0sJvrIclK3aM_7c5D0I6eN9C1Rbeul0T7fO8JVkVa9lfbUkYKr-seLRBRZPCkVTYGa-aGnZoPhuoNUFn8ECuXoxausg9h4spd1-63vPk9Sjzw2nDSlvjltXknPgBEWEp1ceW0k_Jvkgg0KYgIiTMMTbcjQwVYvGvUbxoQUc76GPmCOqptIvuJo_o81Il_MyBgXe_hhT238-jN3gP284LBBD1RdijwtRFlC-fu_5AtzZiQ831292igKajb1QjBXDa50kvMaXCFCIw\u0026h=Hsvhw3uKqa84v68X1zs7GhLA6ehsE0-9JSG4Uk_QsUw+6": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/b4782ef6-de42-48cc-971e-42ba3a558f65?api-version=2021-06-01\u0026t=638943590945856437\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29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YiwUCShYUrJU3IDKm0amgY_xtVwywcT-VPGF7VZHrEHKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=ZHaYiY0oB0XzprCxcdky-mF0t4TcgngW4IIzyKO7P_pq9gSIaNFHbVOvmjb9KBdKln27rWgk5xsLTfvwRYJ-g5KBTdo1g6JRQC_BzhKO9RV1aouuVNEiBauj2h1Zsd-ujwvpk6lg6t3M83cq4-F3pcJ1iQY5rOw65Wh60h2mwQIg7qIvfleuiP7EdhWOSH6loBMeQzxfzdDLQiCWwCxyeXw-jqxRei3_CuV28VpaHTfCCbdelIYiZ7QLPsZvJMoOtybDsvANwhm-6_3xf6JQkvbciE-2vCtVDrFho_n19sXAqFPEEw513cZ2ZI2EQPny0_gHxBbibScCeOf65SG_8g\u0026h=UAZSLX_vXYpbRrw0hNkUpiOy-LsiJua4ygP10pe3PMo+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdooroperationresults/1186a8ee-b157-417e-990e-df0a19a8433d?api-version=2021-06-01\u0026t=638694970851031467\u0026c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR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ALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc\u0026s=n8B04NxxziolbrUa6z1oJ81hmJaSTwq1u0p2LM5WYefi4ZnvooxZud03LouthoVy01OyNmf_0x0sJvrIclK3aM_7c5D0I6eN9C1Rbeul0T7fO8JVkVa9lfbUkYKr-seLRBRZPCkVTYGa-aGnZoPhuoNUFn8ECuXoxausg9h4spd1-63vPk9Sjzw2nDSlvjltXknPgBEWEp1ceW0k_Jvkgg0KYgIiTMMTbcjQwVYvGvUbxoQUc76GPmCOqptIvuJo_o81Il_MyBgXe_hhT238-jN3gP284LBBD1RdijwtRFlC-fu_5AtzZiQ831292igKajb1QjBXDa50kvMaXCFCIw\u0026h=Hsvhw3uKqa84v68X1zs7GhLA6ehsE0-9JSG4Uk_QsUw", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/b4782ef6-de42-48cc-971e-42ba3a558f65?api-version=2021-06-01\u0026t=638943590945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yeXw-jqxRei3_CuV28VpaHTfCCbdelIYiZ7QLPsZvJMoOtybDsvANwhm-6_3xf6JQkvbciE-2vCtVDrFho_n19sXAqFPEEw513cZ2ZI2EQPny0_gHxBbibScCeOf65SG_8g\u0026h=UAZSLX_vXYpbRrw0hNkUpiOy-LsiJua4ygP10pe3PMo", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "75" ], - "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -238,16 +241,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9e965e48-7339-4821-bab0-248d7ac2e8c4" ], - "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-request-id": [ "475ca67c-9eea-447d-bd25-6175831cfd10" ], + "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f3b90703-9ccf-471b-aa52-bb4ab7e12159" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "f83b2f8c-c434-47ab-a3e4-f58dda8e96db" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065816Z:f83b2f8c-c434-47ab-a3e4-f58dda8e96db" ], + "x-ms-correlation-request-id": [ "cc1db867-574a-4a67-8625-b2275867ae03" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010505Z:cc1db867-574a-4a67-8625-b2275867ae03" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 36813D35F1794257AAC920EBD5298B3F Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:15Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:15 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F7E0051E63D54FA98F9A34A047437323 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:04Z" ], + "Date": [ "Thu, 25 Sep 2025 01:05:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -258,20 +262,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01+7": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "76" ], - "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -282,23 +286,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "49bac85a-7e99-4e04-9ae7-f02118ba8892" ], - "x-ms-client-request-id": [ "559711dd-757d-4235-8af5-5c1c86464ee4" ], + "x-ms-request-id": [ "b71484ea-dad1-4121-9497-ef1407149b60" ], + "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "a07378b9-82b9-4f4f-9569-d9f4e4132476" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065816Z:a07378b9-82b9-4f4f-9569-d9f4e4132476" ], + "x-ms-correlation-request-id": [ "1d1ac933-d3bb-49b0-b41a-f2964cd29074" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010506Z:1d1ac933-d3bb-49b0-b41a-f2964cd29074" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 23AB21B1E5B64F3A939650DC316D6DD2 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:16Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:16 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 52DEFC5EBCF3408393E766D1D35115D5 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:05Z" ], + "Date": [ "Thu, 25 Sep 2025 01:05:05 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-12wm\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-12wm\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e45d2891-7cde-40bc-a7a3-6541a56981ef\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-12wm/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/Frontdoors/testps-fd-12wm/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-12wm.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-12wm.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 index 99beb7c9eac8..af300aec2af8 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Set-AzFrontDoor')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Set-AzFrontDoor' -Tag 'LiveOnly' { +Describe 'Set-AzFrontDoor' { It 'UpdateExpanded' { $FDName = 'testps-fd-' + (RandomString -allChars $false -len 4) $tags = @{"tag1" = "value1"; "tag2" = "value2"} diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json index d73052132f14..5f63afb39b27 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json @@ -1,17 +1,17 @@ { - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+1": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "77" ], - "x-ms-client-request-id": [ "f3f32a72-87d6-40db-bb21-b483e8a735ba" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "b6045d7b-8e53-4155-a76a-afb544a93963" ], "CommandName": [ "Get-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Get-AzFrontDoorRulesEngine_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,39 +23,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c8b1e866-2a0d-4545-a88a-3d411c56ec19" ], - "x-ms-client-request-id": [ "f3f32a72-87d6-40db-bb21-b483e8a735ba" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "695d8091-8b2e-4a77-9677-b94ce53bf808" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065818Z:695d8091-8b2e-4a77-9677-b94ce53bf808" ], + "x-ms-request-id": [ "df462b5e-94bb-4d68-995f-8b5f139670c2" ], + "x-ms-client-request-id": [ "b6045d7b-8e53-4155-a76a-afb544a93963" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/65d67efc-248e-41c5-a512-aea9709a137d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "cf0dc448-3983-480a-a95c-b3c94fec43b8" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010507Z:cf0dc448-3983-480a-a95c-b3c94fec43b8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: CF1D0F1E133E47CFA260E28ABDFCC80E Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:17Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:17 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 501F3B7A0FE1481AB35095C2AA7F7C50 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:06Z" ], + "Date": [ "Thu, 25 Sep 2025 01:05:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+2": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "78" ], - "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], - "FullCommandName": [ "Update-AzFrontDoorRulesEngine_UpdateExpanded" ], + "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -67,31 +68,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "27677b0f-90ac-4ea6-80a5-8b1b6f201678" ], - "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "x-ms-request-id": [ "a1f8512c-6a31-414d-96a8-40dcd2030a54" ], + "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2d0d46a0-23ae-48e4-863a-2a16f27e118d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9efd21be-4b5d-4961-aa33-37682f5c7486" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065819Z:9efd21be-4b5d-4961-aa33-37682f5c7486" ], + "x-ms-correlation-request-id": [ "e543322f-0863-4ca8-9a1d-5c3393d8d2a3" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010507Z:e543322f-0863-4ca8-9a1d-5c3393d8d2a3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 0A4808CF8AAE4C6A9DBBF1696A33B234 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:18Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:18 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8347BEBA8D0140D5A19099383B5F8E18 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:07Z" ], + "Date": [ "Thu, 25 Sep 2025 01:05:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+3": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -106,40 +108,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "79bc661f-08b7-409d-8aa9-296d4c727714" ], - "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "x-ms-request-id": [ "c6fb72ec-3a5e-4f27-b29d-cd17b0b15da1" ], + "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7095eafa-7138-44f7-8875-00068acbe020" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "cfd9ca85-300d-40d0-a6b5-76b4bb732ca6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065820Z:cfd9ca85-300d-40d0-a6b5-76b4bb732ca6" ], + "x-ms-correlation-request-id": [ "8f95b150-9273-4de9-976f-dd365ae8bd83" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010508Z:8f95b150-9273-4de9-976f-dd365ae8bd83" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 06875B327F964052B327952CB60CE432 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:19Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:19 GMT" ] + "X-MSEdge-Ref": [ "Ref A: CC37AA7E9C0D465BAB96198BEBD3AD07 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:07Z" ], + "Date": [ "Thu, 25 Sep 2025 01:05:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01+4": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "80" ], - "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], - "FullCommandName": [ "Update-AzFrontDoorRulesEngine_UpdateExpanded" ], + "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -150,23 +153,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a5a4f2f6-c49d-4ff1-bc31-a40bd0fa4a10" ], - "x-ms-client-request-id": [ "dcf6260f-fb24-4301-9cae-29db5d70b8c6" ], + "x-ms-request-id": [ "3c2f713a-1853-4edf-9c41-4e386044325f" ], + "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6a6f0d23-3085-49b5-b807-7ef189fbfafa" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "5722c3e4-72ef-482d-9a6a-b713d06211bd" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065850Z:5722c3e4-72ef-482d-9a6a-b713d06211bd" ], + "x-ms-correlation-request-id": [ "14f3ce0d-f50c-4582-9047-f5bf51d82efd" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010539Z:14f3ce0d-f50c-4582-9047-f5bf51d82efd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2E67D60DB3D14ED694DCF869AC68F3E8 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:50Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:50 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8B52A4955FD144C38E0742F57D83F7DC Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:38Z" ], + "Date": [ "Thu, 25 Sep 2025 01:05:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoors/testps-fd-uzrs/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/frontDoors/testps-fd-uzrs/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json index 33548a93ac58..13cff68065f7 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+1": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "82" ], - "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,30 +23,30 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f5fbabdb-d60d-4991-a931-d0ba90a349c9" ], - "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-request-id": [ "970ca77c-7f47-4835-ae36-03731c828bff" ], + "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "bc1a60b8-f2ae-4a29-b7b9-4714be2ec125" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065853Z:bc1a60b8-f2ae-4a29-b7b9-4714be2ec125" ], + "x-ms-correlation-request-id": [ "a495de3e-43a4-4931-8014-d4cc98e7ce2f" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010541Z:a495de3e-43a4-4931-8014-d4cc98e7ce2f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 86BE9715EBD34A53B79E763040786FC7 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:52Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:53 GMT" ] + "X-MSEdge-Ref": [ "Ref A: BCC0F724EEF8480B9AA8ED33740CAB4B Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:41Z" ], + "Date": [ "Thu, 25 Sep 2025 01:05:41 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+2": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [ ],\r\n \"ruleGroupOverrides\": [ ]\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -62,40 +62,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7a967199-7706-46fc-9013-9ab14515c598" ], - "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-request-id": [ "6b5f7651-1980-4b6e-bd8b-3bc96603b840" ], + "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/abb75872-11df-46e8-bdb3-daec9d4e61e6" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "6c5ade9d-7c69-4045-ae33-790e60afe4b3" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065854Z:6c5ade9d-7c69-4045-ae33-790e60afe4b3" ], + "x-ms-correlation-request-id": [ "2f78b766-dfee-40d4-898c-e7a54a031cb4" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010543Z:2f78b766-dfee-40d4-898c-e7a54a031cb4" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8CEFF6AF11394F78BD4A75A0047D4043 Ref B: TYO201100116049 Ref C: 2024-12-11T06:58:53Z" ], - "Date": [ "Wed, 11 Dec 2024 06:58:54 GMT" ] + "X-MSEdge-Ref": [ "Ref A: EF4F1E87538C40AF99811932571C2DA5 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:41Z" ], + "Date": [ "Thu, 25 Sep 2025 01:05:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+3": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "84" ], - "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -106,40 +107,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "13137ac3-1648-47e7-bb19-6ed7af311fa5" ], - "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-request-id": [ "d97a12b9-ee1a-4d9b-9e5a-e0b18745a284" ], + "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9a16116b-18b0-452d-b49e-01e4004ab498" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065926Z:9a16116b-18b0-452d-b49e-01e4004ab498" ], + "x-ms-correlation-request-id": [ "217abf7d-3d9f-4b5c-8c6f-e5bd66866af3" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010613Z:217abf7d-3d9f-4b5c-8c6f-e5bd66866af3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F8ACF8A6F429401FBD8CBEA7B1150C77 Ref B: TYO201100116049 Ref C: 2024-12-11T06:59:25Z" ], - "Date": [ "Wed, 11 Dec 2024 06:59:25 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4A289DC9D8034E0CA872236FABC5975E Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:06:13Z" ], + "Date": [ "Thu, 25 Sep 2025 01:06:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01+4": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-10xh/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafri3t?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "85" ], - "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v12.4.0", "PSVersion/v7.4.6", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -150,23 +151,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fec536f3-299b-446c-9266-abdeaaf71675" ], - "x-ms-client-request-id": [ "7a58cb3d-7dca-4a83-b4ad-5b034601c575" ], + "x-ms-request-id": [ "c81c0b34-8423-40aa-94ab-ffb437ca6b0a" ], + "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "3853b50b-7ec0-42b8-8273-46544df3d6c1" ], - "x-ms-routing-request-id": [ "JAPANEAST:20241211T065926Z:3853b50b-7ec0-42b8-8273-46544df3d6c1" ], + "x-ms-correlation-request-id": [ "bead7fc4-6092-4395-b681-b788f0460bd7" ], + "x-ms-routing-request-id": [ "WESTUS:20250925T010614Z:bead7fc4-6092-4395-b681-b788f0460bd7" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 22950E8B375842E89BDE621368E5DA5D Ref B: TYO201100116049 Ref C: 2024-12-11T06:59:26Z" ], - "Date": [ "Wed, 11 Dec 2024 06:59:26 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 964BAE5B479D443B8D08155A838C90F2 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:06:13Z" ], + "Date": [ "Thu, 25 Sep 2025 01:06:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-10xh/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafri3t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafri3t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 index 06dd61b3cdca..04f8fb61500b 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorWafPolicy') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorWafPolicy' -Tag 'LiveOnly' { +Describe 'Update-AzFrontDoorWafPolicy' { It 'UpdateExpanded' { $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" $customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action "Log" -Priority 2 diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json index 0eebd59a0801..c89dd06013bc 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/env.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -1,9 +1,9 @@ { - "WafPolicyName": "testpsWafri3t", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", "RuleEngineName": "engine101", - "ResourceGroupName": "testps-rg-10xh", "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", - "FrontDoorName": "testps-fd-uzrs", - "location": "westus" + "WafPolicyName": "testpsWafqruo", + "location": "westus", + "FrontDoorName": "testps-fd-pczt", + "ResourceGroupName": "testps-rg-ck7u", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index f6343b3fa0c8..a30e446a083e 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{46D6F87B-7E44-47CC-8862-84A903DF4A67}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|Any CPU.Build.0 = Debug|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|x64.ActiveCfg = Debug|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|x64.Build.0 = Debug|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|x86.ActiveCfg = Debug|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Debug|x86.Build.0 = Debug|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|Any CPU.ActiveCfg = Release|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|Any CPU.Build.0 = Release|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|x64.ActiveCfg = Release|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|x64.Build.0 = Release|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|x86.ActiveCfg = Release|Any CPU - {46D6F87B-7E44-47CC-8862-84A903DF4A67}.Release|x86.Build.0 = Release|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|x64.ActiveCfg = Debug|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|x64.Build.0 = Debug|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|x86.ActiveCfg = Debug|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|x86.Build.0 = Debug|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|Any CPU.Build.0 = Release|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|x64.ActiveCfg = Release|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|x64.Build.0 = Release|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|x86.ActiveCfg = Release|Any CPU + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {46D6F87B-7E44-47CC-8862-84A903DF4A67} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 88f91be0e2d4..7e85445904b1 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/9/22 +# Generated on: 2025/9/24 # @{ From c66e102904e32cdf1727e3a8f571416358c38260 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Mon, 29 Sep 2025 14:35:51 +1000 Subject: [PATCH 12/30] add [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] --- .../FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 | 1 + .../custom/New-AzFrontDoorBackendPoolObject.ps1 | 1 + .../custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 | 1 + .../custom/New-AzFrontDoorFrontendEndpointObject.ps1 | 1 + .../custom/New-AzFrontDoorHealthProbeSettingObject.ps1 | 1 + .../custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 | 1 + .../custom/New-AzFrontDoorRoutingRuleObject.ps1 | 1 + .../custom/New-AzFrontDoorRulesEngineActionObject.ps1 | 1 + .../custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 | 1 + .../custom/New-AzFrontDoorRulesEngineRuleObject.ps1 | 1 + .../custom/New-AzFrontDoorWafCustomRuleObject.ps1 | 1 + .../custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 | 1 + 12 files changed, 12 insertions(+) diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 index fc9029c21b91..cd3900aee784 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject #> function New-AzFrontDoorBackendObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 index 84cf69190fe4..7dd612e1824a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject #> function New-AzFrontDoorBackendPoolObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 index 18e7e51ba0e0..65c89f0e0f70 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject #> function New-AzFrontDoorBackendPoolsSettingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 index 770f44dec4ed..3275a9392918 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject #> function New-AzFrontDoorFrontendEndpointObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 index e81a05dcefb7..7ef364c2edba 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject #> function New-AzFrontDoorHealthProbeSettingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 index aa4d7c0e1261..a3a997049141 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject #> function New-AzFrontDoorLoadBalancingSettingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 index f0f91414406e..293f48ef45bc 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject #> function New-AzFrontDoorRoutingRuleObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule')] [CmdletBinding(DefaultParameterSetName= 'ForwardingParameterSet')] [CmdletBinding(PositionalBinding=$false)] diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 index 8d8969ecc02a..14e620fd9896 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject #> function New-AzFrontDoorRulesEngineActionObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction')] [CmdletBinding(DefaultParameterSetName= 'ForwardingParameterSet')] [CmdletBinding(PositionalBinding=$false)] diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 index 7f9faee1e2c5..f220bd8d8d9a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject #> function New-AzFrontDoorRulesEngineMatchConditionObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 index bf74c52d6895..31a7143babf1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject #> function New-AzFrontDoorRulesEngineRuleObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 index 445cbc1e169a..130fdd95e2e0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject #> function New-AzFrontDoorWafCustomRuleObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 index f108a34a5b9f..95d027260005 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject #> function New-AzFrontDoorWafManagedRuleOverrideObject { + [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride')] [CmdletBinding(PositionalBinding=$false)] Param( From 92861cba229583fc9e56abe83f0e702b2a7d1065 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Mon, 29 Sep 2025 14:38:26 +1000 Subject: [PATCH 13/30] rename --- .../FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 | 2 +- .../custom/New-AzFrontDoorBackendPoolObject.ps1 | 2 +- .../custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 | 2 +- .../custom/New-AzFrontDoorFrontendEndpointObject.ps1 | 2 +- .../custom/New-AzFrontDoorHealthProbeSettingObject.ps1 | 2 +- .../custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 | 2 +- .../custom/New-AzFrontDoorRoutingRuleObject.ps1 | 2 +- .../custom/New-AzFrontDoorRulesEngineActionObject.ps1 | 2 +- .../custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 | 2 +- .../custom/New-AzFrontDoorRulesEngineRuleObject.ps1 | 2 +- .../custom/New-AzFrontDoorWafCustomRuleObject.ps1 | 2 +- .../custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 index cd3900aee784..ccc29893ad7e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject #> function New-AzFrontDoorBackendObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 index 7dd612e1824a..0635b6846d66 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject #> function New-AzFrontDoorBackendPoolObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 index 65c89f0e0f70..6bbabead80e5 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorBackendPoolsSettingObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject #> function New-AzFrontDoorBackendPoolsSettingObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 index 3275a9392918..c93ecab83b90 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorFrontendEndpointObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject #> function New-AzFrontDoorFrontendEndpointObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 index 7ef364c2edba..adc5a1203546 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorHealthProbeSettingObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject #> function New-AzFrontDoorHealthProbeSettingObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 index a3a997049141..d47c9d921c9e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorLoadBalancingSettingObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject #> function New-AzFrontDoorLoadBalancingSettingObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 index 293f48ef45bc..e7c2c579a4d7 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject #> function New-AzFrontDoorRoutingRuleObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule')] [CmdletBinding(DefaultParameterSetName= 'ForwardingParameterSet')] [CmdletBinding(PositionalBinding=$false)] diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 index 14e620fd9896..b3acf15acdab 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject #> function New-AzFrontDoorRulesEngineActionObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction')] [CmdletBinding(DefaultParameterSetName= 'ForwardingParameterSet')] [CmdletBinding(PositionalBinding=$false)] diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 index f220bd8d8d9a..cd7bb7ddb785 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject #> function New-AzFrontDoorRulesEngineMatchConditionObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 index 31a7143babf1..9cdb332a57db 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineRuleObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject #> function New-AzFrontDoorRulesEngineRuleObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 index 130fdd95e2e0..689cb1d93834 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject #> function New-AzFrontDoorWafCustomRuleObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 index 95d027260005..113cafc512cb 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject #> function New-AzFrontDoorWafManagedRuleOverrideObject { - [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride')] [CmdletBinding(PositionalBinding=$false)] Param( From 1a2ecfa28e5cc80d012386a9ac4d10d1d690622f Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Mon, 29 Sep 2025 14:41:53 +1000 Subject: [PATCH 14/30] regen --- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../FrontDoor.Autorest/generate-info.json | 2 +- src/FrontDoor/FrontDoor.sln | 28 +++++++++---------- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index c568b787ff8c..bf97b575f2d5 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: bbc46df2-6fe1-4e97-a6f0-a825b6f8e081 +Module Guid: 1cd50361-7b4f-418a-9851-945676ee06e3 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 58a3badd6184..096a68c29b84 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "e0ab303b-2de7-4c2a-b1ec-4f2de6bd52a3" + "generate_Id": "5eb33352-f9b1-461f-ba53-6b7ad4002371" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index a30e446a083e..1824b418a583 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{3C698510-398A-4853-B344-A0172F587AC6}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|x64.ActiveCfg = Debug|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|x64.Build.0 = Debug|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|x86.ActiveCfg = Debug|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Debug|x86.Build.0 = Debug|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|Any CPU.Build.0 = Release|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|x64.ActiveCfg = Release|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|x64.Build.0 = Release|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|x86.ActiveCfg = Release|Any CPU - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF}.Release|x86.Build.0 = Release|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Debug|x64.ActiveCfg = Debug|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Debug|x64.Build.0 = Debug|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Debug|x86.ActiveCfg = Debug|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Debug|x86.Build.0 = Debug|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Release|Any CPU.Build.0 = Release|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Release|x64.ActiveCfg = Release|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Release|x64.Build.0 = Release|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Release|x86.ActiveCfg = Release|Any CPU + {3C698510-398A-4853-B344-A0172F587AC6}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {4AD3CD93-1EE3-4D08-A7F0-8A686DCE9CDF} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {3C698510-398A-4853-B344-A0172F587AC6} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 7e85445904b1..6966ed8d4978 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/9/24 +# Generated on: 2025/9/29 # @{ From cd62a1be59597efda234ba17425c028cad921772 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Tue, 14 Oct 2025 18:23:04 +1100 Subject: [PATCH 15/30] run all test --- .../Properties/AssemblyInfo.cs | 2 + .../custom/New-AzFrontDoor.ps1 | 77 +++- .../custom/New-AzFrontDoorWafPolicy.ps1 | 83 ++++- .../custom/Update-AzFrontDoorWafPolicy.ps1 | 92 ++++- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../FrontDoor.Autorest/generate-info.json | 2 +- .../test/Get-AzFrontDoor.Recording.json | 26 +- ...AzFrontDoorFrontendEndpoint.Recording.json | 24 +- ...WafManagedRuleSetDefinition.Recording.json | 22 +- .../Get-AzFrontDoorWafPolicy.Recording.json | 22 +- .../New-AzFrontDoorRulesEngine.Recording.json | 46 +-- .../New-AzFrontDoorWafPolicy.Recording.json | 106 ++++-- .../test/Remove-AzFrontDoor.Recording.json | 341 +++++++++--------- ...move-AzFrontDoorRulesEngine.Recording.json | 72 ++-- ...Remove-AzFrontDoorWafPolicy.Recording.json | 134 ++++--- .../test/Set-AzFrontDoor.Recording.json | 216 ++++++----- .../Set-AzFrontDoorRulesEngine.Recording.json | 104 +++--- ...Update-AzFrontDoorWafPolicy.Recording.json | 140 ++++--- .../FrontDoor.Autorest/test/env.json | 10 +- src/FrontDoor/FrontDoor.sln | 28 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 5 +- 21 files changed, 974 insertions(+), 580 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs index b6db8e525a56..02d0834c87ca 100644 --- a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -24,3 +24,5 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + + diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoor.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoor.ps1 index 386c5a8423c4..85a6c54aff8c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoor.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoor.ps1 @@ -262,14 +262,81 @@ param( ) process { - $duplicateCheck = Get-AzFrontDoor -ResourceGroupName $ResourceGroupName - - foreach ($fd in $duplicateCheck) { - if ($fd.Name -eq $Name) { - throw "Front Door with name $Name already exists in resource group $ResourceGroupName" + $RoutingRule = $RoutingRule + if ($PSBoundParameters.ContainsKey('RoutingRule')) { + $null = $PSBoundParameters.Remove('RoutingRule') + } + + $BackendPool = $BackendPool + if ($PSBoundParameters.ContainsKey('BackendPool')) { + $null = $PSBoundParameters.Remove('BackendPool') + } + + $BackendPoolsSetting = $BackendPoolsSetting + if ($PSBoundParameters.ContainsKey('BackendPoolsSetting')) { + $null = $PSBoundParameters.Remove('BackendPoolsSetting') + } + + $FrontendEndpoint = $FrontendEndpoint + if ($PSBoundParameters.ContainsKey('FrontendEndpoint')) { + $null = $PSBoundParameters.Remove('FrontendEndpoint') + } + + $LoadBalancingSetting = $LoadBalancingSetting + if ($PSBoundParameters.ContainsKey('LoadBalancingSetting')) { + $null = $PSBoundParameters.Remove('LoadBalancingSetting') + } + + $HealthProbeSetting = $HealthProbeSetting + if ($PSBoundParameters.ContainsKey('HealthProbeSetting')) { + $null = $PSBoundParameters.Remove('HealthProbeSetting') + } + + $Tag = $Tag + if ($PSBoundParameters.ContainsKey('Tag')) { + $null = $PSBoundParameters.Remove('Tag') + } + + try { + $duplicateCheck = Get-AzFrontDoor @PSBoundParameters + + foreach ($fd in $duplicateCheck) { + if ($fd.Name -eq $Name) { + throw "Front Door with name $Name already exists in resource group $ResourceGroupName" + } + } + } + catch { + # If Get-AzFrontDoor throws an error because the resource doesn't exist, + # we can continue with creating the new Front Door + if ($_.Exception.Message -notlike "*was not found*") { + # Re-throw if it's not a "not found" error + throw $_ } } + if ($RoutingRule) { + $PSBoundParameters.Add('RoutingRule', $RoutingRule) + } + if ($BackendPool) { + $PSBoundParameters.Add('BackendPool', $BackendPool) + } + if ($BackendPoolsSetting) { + $PSBoundParameters.Add('BackendPoolsSetting', $BackendPoolsSetting) + } + if ($FrontendEndpoint) { + $PSBoundParameters.Add('FrontendEndpoint', $FrontendEndpoint) + } + if ($LoadBalancingSetting) { + $PSBoundParameters.Add('LoadBalancingSetting', $LoadBalancingSetting) + } + if ($HealthProbeSetting) { + $PSBoundParameters.Add('HealthProbeSetting', $HealthProbeSetting) + } + if ($Tag) { + $PSBoundParameters.Add('Tag', $Tag) + } + Az.FrontDoor.internal\New-AzFrontDoor @PSBoundParameters } } \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 index 7c1b681c1da6..9f86bbb807bf 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 @@ -264,12 +264,87 @@ param( ) process { - $duplicateCheck = Get-AzFrontDoorWafPolicy -ResourceGroupName $ResourceGroupName - foreach ($policy in $duplicateCheck) { - if ($policy.Name -eq $Name) { - throw "WAF policy with name $Name already exists in resource group $ResourceGroupName" + $SkuName = $SkuName + if ($PSBoundParameters.ContainsKey('SkuName')) { + $null = $PSBoundParameters.Remove('SkuName') + } + + $CustomRule = $CustomRule + if ($PSBoundParameters.ContainsKey('CustomRule')) { + $null = $PSBoundParameters.Remove('CustomRule') + } + + $ManagedRuleSet = $ManagedRuleSet + if ($PSBoundParameters.ContainsKey('ManagedRuleSet')) { + $null = $PSBoundParameters.Remove('ManagedRuleSet') + } + + $EnabledState = $EnabledState + if ($PSBoundParameters.ContainsKey('EnabledState')) { + $null = $PSBoundParameters.Remove('EnabledState') + } + + $Mode = $Mode + if ($PSBoundParameters.ContainsKey('Mode')) { + $null = $PSBoundParameters.Remove('Mode') + } + + $RequestBodyCheck = $RequestBodyCheck + if ($PSBoundParameters.ContainsKey('RequestBodyCheck')) { + $null = $PSBoundParameters.Remove('RequestBodyCheck') + } + + $LogScrubbingSetting = $LogScrubbingSetting + if ($PSBoundParameters.ContainsKey('LogScrubbingSetting')) { + $null = $PSBoundParameters.Remove('LogScrubbingSetting') + } + + $JavascriptChallengeExpirationInMinutes = $JavascriptChallengeExpirationInMinutes + if ($PSBoundParameters.ContainsKey('JavascriptChallengeExpirationInMinutes')) { + $null = $PSBoundParameters.Remove('JavascriptChallengeExpirationInMinutes') + } + + try { + $duplicateCheck = Get-AzFrontDoorWafPolicy @PSBoundParameters + foreach ($policy in $duplicateCheck) { + if ($policy.Name -eq $Name) { + throw "WAF policy with name $Name already exists in resource group $ResourceGroupName" + } + } + } + catch { + # If Get-AzFrontDoorWafPolicy throws an error because the resource doesn't exist, + # we can continue with creating the new WAF policy + if ($_.Exception.Message -notlike "*was not found*") { + # Re-throw if it's not a "not found" error + throw $_ } } + + if (![string]::IsNullOrEmpty($SkuName)) { + $PSBoundParameters.Add('SkuName', $SkuName) + } + if ($CustomRule) { + $PSBoundParameters.Add('CustomRule', $CustomRule) + } + if ($ManagedRuleSet) { + $PSBoundParameters.Add('ManagedRuleSet', $ManagedRuleSet) + } + if (![string]::IsNullOrEmpty($EnabledState)) { + $PSBoundParameters.Add('EnabledState', $EnabledState) + } + if (![string]::IsNullOrEmpty($Mode)) { + $PSBoundParameters.Add('Mode', $Mode) + } + if (![string]::IsNullOrEmpty($RequestBodyCheck)) { + $PSBoundParameters.Add('RequestBodyCheck', $RequestBodyCheck) + } + if ($LogScrubbingSetting) { + $PSBoundParameters.Add('LogScrubbingSetting', $LogScrubbingSetting) + } + if ($JavascriptChallengeExpirationInMinutes -gt 0) { + $PSBoundParameters.Add('JavascriptChallengeExpirationInMinutes', $JavascriptChallengeExpirationInMinutes) + } $PolicySettings = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings]::New() if ($PSBoundParameters.ContainsKey('CustomBlockResponseBody')) { diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 index 538560c97557..1c27635f5fe6 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 @@ -277,7 +277,90 @@ param( ) process { - $retrievedPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $ResourceGroupName + $SkuName = $SkuName + if ($PSBoundParameters.ContainsKey('SkuName')) { + $null = $PSBoundParameters.Remove('SkuName') + } + + $CustomRule = $CustomRule + if ($PSBoundParameters.ContainsKey('CustomRule')) { + $null = $PSBoundParameters.Remove('CustomRule') + } + + $ManagedRuleSet = $ManagedRuleSet + if ($PSBoundParameters.ContainsKey('ManagedRuleSet')) { + $null = $PSBoundParameters.Remove('ManagedRuleSet') + } + + $EnabledState = $EnabledState + if ($PSBoundParameters.ContainsKey('EnabledState')) { + $null = $PSBoundParameters.Remove('EnabledState') + } + + $Mode = $Mode + if ($PSBoundParameters.ContainsKey('Mode')) { + $null = $PSBoundParameters.Remove('Mode') + } + + $RequestBodyCheck = $RequestBodyCheck + if ($PSBoundParameters.ContainsKey('RequestBodyCheck')) { + $null = $PSBoundParameters.Remove('RequestBodyCheck') + } + + $LogScrubbingSetting = $LogScrubbingSetting + if ($PSBoundParameters.ContainsKey('LogScrubbingSetting')) { + $null = $PSBoundParameters.Remove('LogScrubbingSetting') + } + + $JavascriptChallengeExpirationInMinutes = $JavascriptChallengeExpirationInMinutes + if ($PSBoundParameters.ContainsKey('JavascriptChallengeExpirationInMinutes')) { + $null = $PSBoundParameters.Remove('JavascriptChallengeExpirationInMinutes') + } + + try { + $retrievedPolicy = Get-AzFrontDoorWafPolicy @PSBoundParameters + } + catch { + # If Get-AzFrontDoorWafPolicy throws an error because the resource doesn't exist, + # we cannot proceed with the update operation + if ($_.Exception.Message -like "*was not found*") { + throw "WAF policy '$Name' was not found in resource group '$ResourceGroupName'. Cannot update a non-existent policy." + } + else { + # Re-throw if it's not a "not found" error + throw $_ + } + } + + # Handle SKU: use provided SkuName or preserve existing SKU from retrieved policy + if ($PSBoundParameters.ContainsKey('SkuName') -and ![string]::IsNullOrEmpty($SkuName)) { + $PSBoundParameters.Add('SkuName', $SkuName) + } elseif ($retrievedPolicy.Sku -and $retrievedPolicy.Sku.Name) { + $PSBoundParameters.Add('SkuName', $retrievedPolicy.Sku.Name) + } + if ($CustomRule) { + $PSBoundParameters.Add('CustomRule', $CustomRule) + } + if ($ManagedRuleSet) { + $PSBoundParameters.Add('ManagedRuleSet', $ManagedRuleSet) + } + if (![string]::IsNullOrEmpty($EnabledState)) { + $PSBoundParameters.Add('EnabledState', $EnabledState) + } + # Only add Mode and RequestBodyCheck if they have valid values + if (![string]::IsNullOrEmpty($Mode)) { + $PSBoundParameters.Add('Mode', $Mode) + } + if (![string]::IsNullOrEmpty($RequestBodyCheck)) { + $PSBoundParameters.Add('RequestBodyCheck', $RequestBodyCheck) + } + if ($LogScrubbingSetting) { + $PSBoundParameters.Add('LogScrubbingSetting', $LogScrubbingSetting) + } + if ($JavascriptChallengeExpirationInMinutes -gt 0) { + $PSBoundParameters.Add('JavascriptChallengeExpirationInMinutes', $JavascriptChallengeExpirationInMinutes) + } + $UpdatePolicySetting = $retrievedPolicy.PolicySetting if ($PSBoundParameters.ContainsKey("CustomBlockResponseBody")) { $null = $PSBoundParameters.Remove("CustomBlockResponseBody") @@ -288,7 +371,7 @@ process { $null = $PSBoundParameters.Remove("CustomBlockResponseStatusCode") $UpdatePolicySetting.CustomBlockResponseStatusCode = $CustomBlockResponseStatusCode } - if ($PSBoundParameters.ContainsKey("EnabledState")) { + if ($PSBoundParameters.ContainsKey("EnabledState") -and ![string]::IsNullOrEmpty($EnabledState)) { $null = $PSBoundParameters.Remove("EnabledState") $UpdatePolicySetting.EnabledState = $EnabledState } @@ -296,7 +379,7 @@ process { $null = $PSBoundParameters.Remove("LogScrubbingSetting") $UpdatePolicySetting.LogScrubbingSetting = $LogScrubbingSetting } - if ($PSBoundParameters.ContainsKey("Mode")) { + if ($PSBoundParameters.ContainsKey("Mode") -and ![string]::IsNullOrEmpty($Mode)) { $null = $PSBoundParameters.Remove("Mode") $UpdatePolicySetting.Mode = $Mode } @@ -304,7 +387,7 @@ process { $null = $PSBoundParameters.Remove("RedirectUrl") $UpdatePolicySetting.RedirectUrl = $RedirectUrl } - if ($PSBoundParameters.ContainsKey("RequestBodyCheck")) { + if ($PSBoundParameters.ContainsKey("RequestBodyCheck") -and ![string]::IsNullOrEmpty($RequestBodyCheck)) { $null = $PSBoundParameters.Remove("RequestBodyCheck") $UpdatePolicySetting.RequestBodyCheck = $RequestBodyCheck } @@ -312,6 +395,7 @@ process { $null = $PSBoundParameters.Remove("JavascriptChallengeExpirationInMinutes") $UpdatePolicySetting.JavascriptChallengeExpirationInMinutes = $JavascriptChallengeExpirationInMinutes } + $PSBoundParameters.PolicySetting = $UpdatePolicySetting Az.FrontDoor.internal\Update-AzFrontDoorWafPolicy @PSBoundParameters diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index bf97b575f2d5..e3a5fa1a2427 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: 1cd50361-7b4f-418a-9851-945676ee06e3 +Module Guid: cb2bcf1e-c71e-46a2-a176-6cbf613eed22 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 096a68c29b84..a3dbfb9bcc0f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "5eb33352-f9b1-461f-ba53-6b7ad4002371" + "generate_Id": "a4bafc59-e86f-4d43-b13c-9d19f8a09ece" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json index 5a1a9b9a1bc1..43b89c669eb0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt?api-version=2021-06-01+1": { + "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "66b5cae4-803f-4b54-8b2b-aaaa91c14554" ], + "x-ms-client-request-id": [ "83869694-96ee-4776-a068-565fdd4dabb4" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7a17fd8e-d58c-4727-a223-2279c9e05faa" ], - "x-ms-client-request-id": [ "66b5cae4-803f-4b54-8b2b-aaaa91c14554" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "538a80cf-49e1-4c01-8e44-b70401f7633e" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005757Z:538a80cf-49e1-4c01-8e44-b70401f7633e" ], + "x-ms-request-id": [ "4f99e0f8-66b8-4a7d-a1a1-7560afbc23f8" ], + "x-ms-client-request-id": [ "83869694-96ee-4776-a068-565fdd4dabb4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "9cf5c64f-e8c3-4ebc-b505-09266e94d3c2" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061618Z:9cf5c64f-e8c3-4ebc-b505-09266e94d3c2" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 6E08B46D318840AEA1F69E77077FB453 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:57:56Z" ], - "Date": [ "Thu, 25 Sep 2025 00:57:57 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DDC6B587E6184F27A0EAE9D5BB581FA2 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:18Z" ], + "Date": [ "Tue, 14 Oct 2025 06:16:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "6398" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-pczt\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"4961859c-3de2-433f-8e5b-9a683fbb0f16\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-pczt/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-pczt.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-pczt.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-p8vt\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"08084062-18bf-4ae6-b3de-268e5ffabb62\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-p8vt.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-p8vt.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json index 3f4506c54855..5d81b8659855 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/frontendEndpoints?api-version=2021-06-01+1": { + "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/frontendEndpoints?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/frontendEndpoints?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/frontendEndpoints?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "97f3e42c-8b5e-49cc-82f7-03a31c3301de" ], + "x-ms-client-request-id": [ "d627237b-7c1b-4aea-bcf1-4a8f3580ae07" ], "CommandName": [ "Get-AzFrontDoorFrontendEndpoint" ], "FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,24 +23,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "cfa22aa0-a16d-4488-b381-719f069c1d09" ], - "x-ms-client-request-id": [ "97f3e42c-8b5e-49cc-82f7-03a31c3301de" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1828138c-1540-4d91-a9c9-bfb614c8b84e" ], + "x-ms-request-id": [ "393cca04-eec9-49bf-93b0-fafebf21af02" ], + "x-ms-client-request-id": [ "d627237b-7c1b-4aea-bcf1-4a8f3580ae07" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/11da3809-0b64-4ba9-a89e-daf47f772447" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "8c605b20-91ed-4409-a337-3ad8be9b77b4" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005759Z:8c605b20-91ed-4409-a337-3ad8be9b77b4" ], + "x-ms-correlation-request-id": [ "758f2e42-c720-4185-9e43-639ff4161e40" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061620Z:758f2e42-c720-4185-9e43-639ff4161e40" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E03552F457AF43FE9996C3650F23D6BF Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:57:58Z" ], - "Date": [ "Thu, 25 Sep 2025 00:57:58 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B532421F8E1D491E9E9FFC300FC16367 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:19Z" ], + "Date": [ "Tue, 14 Oct 2025 06:16:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-pczt.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-p8vt.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json index 5b3edeae04c5..95caacddc528 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json @@ -7,11 +7,11 @@ "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "ad27fb9f-83de-422a-8ca7-5bc6fe709465" ], + "x-ms-client-request-id": [ "a13a30bc-d71a-4b0e-b1d0-13d037a39b6e" ], "CommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition" ], "FullCommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,17 +23,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b074242b-7db3-4583-9f03-a8add93a4134" ], - "x-ms-client-request-id": [ "ad27fb9f-83de-422a-8ca7-5bc6fe709465" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/76d2c0f8-0de6-4c94-a1c4-41547f36a704" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "100c1c75-7f12-49dd-8ce0-04d1fb53c686" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005801Z:100c1c75-7f12-49dd-8ce0-04d1fb53c686" ], + "x-ms-request-id": [ "27c417a6-4f99-4097-984a-4aa1ef8fecf2" ], + "x-ms-client-request-id": [ "a13a30bc-d71a-4b0e-b1d0-13d037a39b6e" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f2841983-eb02-4e31-a760-e51a78529477" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "f77f4684-5c26-42f1-bbd3-86f3eb290962" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061621Z:f77f4684-5c26-42f1-bbd3-86f3eb290962" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F2D4B7A60D724452B4E5E33CC99CBCDD Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:00Z" ], - "Date": [ "Thu, 25 Sep 2025 00:58:01 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8D00B97EAEF54C3FB5DBEE607D9B40CE Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:21Z" ], + "Date": [ "Tue, 14 Oct 2025 06:16:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "162977" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json index 06f090d7c2d1..8fa64cfc7f2f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+1": { + "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "dc23a4ad-0eaf-47c4-95f5-689f0341ae4a" ], + "x-ms-client-request-id": [ "a77ad8dd-57c1-4e5a-b60d-a70995efaef4" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6cbdef6d-2fd9-4153-b866-f0d3d5cd080b" ], - "x-ms-client-request-id": [ "dc23a4ad-0eaf-47c4-95f5-689f0341ae4a" ], + "x-ms-request-id": [ "87aab9b8-0a1b-4791-8c3a-9f3cfadf158e" ], + "x-ms-client-request-id": [ "a77ad8dd-57c1-4e5a-b60d-a70995efaef4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "c5c3f408-8162-478e-bf4d-ebace156f58d" ], - "x-ms-routing-request-id": [ "AUSTRALIAEAST:20250925T005803Z:c5c3f408-8162-478e-bf4d-ebace156f58d" ], + "x-ms-correlation-request-id": [ "3a6317ca-da87-4d36-a42c-b21842c324c5" ], + "x-ms-routing-request-id": [ "AUSTRALIAEAST:20251014T061624Z:3a6317ca-da87-4d36-a42c-b21842c324c5" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 87FBD654B5414C3093D6FDF30392463B Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:02Z" ], - "Date": [ "Thu, 25 Sep 2025 00:58:03 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A0034AB400DE4B90946EE1D542576557 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:22Z" ], + "Date": [ "Tue, 14 Oct 2025 06:16:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json index f1cf1a369487..acfc3ce47d8a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+1": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,41 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9a7fc170-d5fd-48f1-9ebb-b6418e25ee88" ], - "x-ms-client-request-id": [ "df3b3725-84ea-4dd7-bffe-981e232f9748" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f1d03c7c-4fee-4d25-b38d-d0e8cd687f27" ], + "x-ms-request-id": [ "e7598043-10f0-49a2-8916-96ac8fed03f0" ], + "x-ms-client-request-id": [ "8cf9ea17-3535-41e9-859a-207bccf4aafb" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/329756c9-4e2b-411e-a551-68167b2e1a98" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "398b6154-226e-4907-bf49-a8dcf61264d9" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005814Z:398b6154-226e-4907-bf49-a8dcf61264d9" ], + "x-ms-correlation-request-id": [ "985d097b-bf87-4e8a-bc33-9b27567894b1" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061633Z:985d097b-bf87-4e8a-bc33-9b27567894b1" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 437DC0E89FDE4043AB287AE3CF049D1D Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:14Z" ], - "Date": [ "Thu, 25 Sep 2025 00:58:14 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 98A8D492758E49709EA5C12D82720559 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:33Z" ], + "Date": [ "Tue, 14 Oct 2025 06:16:33 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+2": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "df3b3725-84ea-4dd7-bffe-981e232f9748" ], + "x-ms-client-request-id": [ "8cf9ea17-3535-41e9-859a-207bccf4aafb" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -63,24 +63,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e87973e4-9555-4366-a15c-972fc3c8ec2c" ], - "x-ms-client-request-id": [ "df3b3725-84ea-4dd7-bffe-981e232f9748" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/81016d3e-b43c-4dd2-9e9f-ece8a080eae6" ], + "x-ms-request-id": [ "7fe79784-34be-4021-9692-00a9469a0179" ], + "x-ms-client-request-id": [ "8cf9ea17-3535-41e9-859a-207bccf4aafb" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/594b9b12-3e50-42ea-a3c1-257e53a70e6b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "a4d0043f-2cf6-41be-9e57-d03564e91154" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005845Z:a4d0043f-2cf6-41be-9e57-d03564e91154" ], + "x-ms-correlation-request-id": [ "f8f31226-662a-4047-be1e-d1b6d613369a" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061704Z:f8f31226-662a-4047-be1e-d1b6d613369a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E36763916FF54316AEE1D829E33CA4FD Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:45Z" ], - "Date": [ "Thu, 25 Sep 2025 00:58:45 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 04B49E0F5FFC4D07B28DA9D045059A21 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:04Z" ], + "Date": [ "Tue, 14 Oct 2025 06:17:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json index 851aadb7fe1b..982b0a106c74 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json @@ -1,8 +1,50 @@ { - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01+1": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "73f329a2-3fa2-42f9-bd30-6ccb05fb393f" ], + "CommandName": [ "Get-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "0e9e9316-053f-4705-b54c-552ae48fc95f" ], + "x-ms-correlation-request-id": [ "0e9e9316-053f-4705-b54c-552ae48fc95f" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061712Z:0e9e9316-053f-4705-b54c-552ae48fc95f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D379E72FD215438CBEC45611DAFFE4AB Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:12Z" ], + "Date": [ "Tue, 14 Oct 2025 06:17:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "257" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWaf6t4b\u0027 under resource group \u0027testps-rg-ahz7\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,41 +60,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7e7d022f-3290-4757-aca6-4fa51925ee29" ], - "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c87695da-1902-4bc2-80e1-2e5b0ec94590" ], + "x-ms-request-id": [ "e07b4add-bc73-4903-bd04-4c09e066f521" ], + "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7c6c4d82-0789-4677-ac6d-af9e7e38d120" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "be274ed3-d70f-4c4f-8a2e-7e3cf320c978" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005856Z:be274ed3-d70f-4c4f-8a2e-7e3cf320c978" ], + "x-ms-correlation-request-id": [ "0208674e-f966-4967-9d40-07f107fa499b" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061714Z:0208674e-f966-4967-9d40-07f107fa499b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E0CAB766C1034135BD528A2337483257 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:58:55Z" ], - "Date": [ "Thu, 25 Sep 2025 00:58:56 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A9A41EBF1B834E8B8319336C197A790C Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:12Z" ], + "Date": [ "Tue, 14 Oct 2025 06:17:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqe1t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqe1t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf6t4b\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf6t4b\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01+2": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], + "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -63,40 +105,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0ec5ee17-86dc-40e0-963c-f77d636f8660" ], - "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], + "x-ms-request-id": [ "8c396a4d-bf31-47b0-a187-b798194b5e7a" ], + "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9556476b-071b-441c-a205-e272ee59c400" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005927Z:9556476b-071b-441c-a205-e272ee59c400" ], + "x-ms-correlation-request-id": [ "6fee8e92-1573-404e-9888-70d436df8087" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061745Z:6fee8e92-1573-404e-9888-70d436df8087" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A84CA0E3583D4529AB1C8487BAB5A0DB Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:27Z" ], - "Date": [ "Thu, 25 Sep 2025 00:59:27 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 1A07DA1DA55A4CC39AA6A4868829B7AB Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:44Z" ], + "Date": [ "Tue, 14 Oct 2025 06:17:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqe1t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqe1t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf6t4b\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf6t4b\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01+3": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqe1t?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], + "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -107,23 +149,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "793c8ab6-c137-43da-afd6-10306cc51a7f" ], - "x-ms-client-request-id": [ "58df11dc-4353-45c3-afd2-b224f2cb2037" ], + "x-ms-request-id": [ "232d47a5-0d20-42cb-8dc8-4a837d835745" ], + "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "89ecc4fe-305b-4db9-bdcd-45bcd9ae139c" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005928Z:89ecc4fe-305b-4db9-bdcd-45bcd9ae139c" ], + "x-ms-correlation-request-id": [ "900cbe0d-5c74-4fa7-8967-df6c5dfb4b12" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061745Z:900cbe0d-5c74-4fa7-8967-df6c5dfb4b12" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A03D1588EB2049AA8F1D5650068023BA Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:27Z" ], - "Date": [ "Thu, 25 Sep 2025 00:59:28 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A806F544A8B64C29B43833A3A2A684E9 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:45Z" ], + "Date": [ "Tue, 14 Oct 2025 06:17:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqe1t\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqe1t\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf6t4b\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf6t4b\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json index 73fc39f39b4e..5f8c5e12040e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json @@ -1,9 +1,51 @@ { - "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01+1": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "1253325d-68ea-4ab9-82ff-9ea64e84e84d" ], + "CommandName": [ "Get-AzFrontDoor" ], + "FullCommandName": [ "Get-AzFrontDoor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "284d17f9-dc8d-4567-bcde-ee40602d8499" ], + "x-ms-correlation-request-id": [ "284d17f9-dc8d-4567-bcde-ee40602d8499" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061747Z:284d17f9-dc8d-4567-bcde-ee40602d8499" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 28711777B71840FEBC712D8A811E4395 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:46Z" ], + "Date": [ "Tue, 14 Oct 2025 06:17:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "229" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-1lai\u0027 under resource group \u0027testps-rg-ahz7\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-4u63.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-1lai.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -19,42 +61,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e58fcd9e-e315-43f1-b01d-24cb49d47bb4" ], - "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/cc2c4a30-79d7-465d-81ab-110ee01855c7?api-version=2021-06-01\u0026t=638943587727672059\u0026c=MIII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cx2LIRXpgCwDidtjdWIAp3_tgZo187MMBNh9LCmF9lS5_9YHoR-wjbSgVXsqcJXPFtlGVCSno5tX7pxOsbFFqxla440IWyYL_Wwu4C4zIxx16-xfvZDu4CWsA\u0026h=pzWxIw9rDWF4nrQXbhGK9Dplahdckmp9dPUV29LAa_s" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/5d67ca8a-6f98-429f-a85a-a482009fd595" ], + "x-ms-request-id": [ "78a2ab6e-7d25-430a-bed0-8d247f3928ff" ], + "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/91bc9918-75f4-4798-8452-b4ace8fd5399?api-version=2021-06-01\u0026t=638960194698471282\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiB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fyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=giu6gC1O37vpLvttSed4-AUXpWFIUwm6oph7krXZcHyTIFgaJZmbInVIuP4fbjSA9fRq1JJZ-EMZ3_7PEP2hiE4e7AVZBOTEkQcdaKFxCH0a9rsw_rJNCRZvoxT4UNbBZ1L1HXteLfPJ7BQa4gJfXopIs5RXYLrUYLnQzsXnqXnyvTvKbaIYBUuWfLytGineJzYWgtHApihbObhZmxX6VH7b-c1RAbNilh8mwgJLUgCgF1ZIJYcRxfF4G3E3hA_SM_46ZJUUQVpkCHR5pcavhpxAbRzPxoY2RFw_iQLAgurowumOVZuvtDRmgrLLE0AVU_Na78ZHNMyw2bcmQN9Yfw\u0026h=1ONm3pSpVSZ9R_t5tUHvWNcjEKY39lYVcD9XP8fDN_k" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ed431853-afb4-451a-a4c9-cc1a4a25ca49" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "f279d5d0-747f-4b1f-a2d5-017c8bd0e76c" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005932Z:f279d5d0-747f-4b1f-a2d5-017c8bd0e76c" ], + "x-ms-correlation-request-id": [ "dd173e7e-6559-429b-a88d-6b5b195e43e8" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061749Z:dd173e7e-6559-429b-a88d-6b5b195e43e8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 1E516DFA062943E596A53F8455114135 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:30Z" ], - "Date": [ "Thu, 25 Sep 2025 00:59:32 GMT" ] + "X-MSEdge-Ref": [ "Ref A: EE0DA24BC24A41CFA128FA77ADCD78BF Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:47Z" ], + "Date": [ "Tue, 14 Oct 2025 06:17:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-4u63\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4u63\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"84f853a0-0906-49d8-8e0e-724a61037572\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-4u63.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4u63.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-1lai\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-1lai\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"b8460287-80a8-43ee-af37-4db66d893126\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-1lai.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-1lai.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/cc2c4a30-79d7-465d-81ab-110ee01855c7?api-version=2021-06-01\u0026t=638943587727672059\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rE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h4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=Jhe3CKmof9fBd-agQsU95KuB_M4FESM9JjQ2fUvBtBt3M4WcPiAVmfclPX9r_tjQoQnvR_RV-dv2FUSlGOTJ1O1_kpUoHjz34TQbFFm8q9ZXZn0vSY7qW3ejXwWily7TJ2a2s72pVWLkMJ-_RjahP2dBrEOnVosi1cnm-ejgp6GrB8SKQQ-dNPD0kl0Dz8z__x1pLVaYX-2eXyAcVumxPnbBSsyKKcx2LIRXpgCwDidtjdWIAp3_tgZo187MMBNh9LCmF9lS5_9YHoR-wjbSgVXsqcJXPFtlGVCSno5tX7pxOsbFFqxla440IWyYL_Wwu4C4zIxx16-xfvZDu4CWsA\u0026h=pzWxIw9rDWF4nrQXbhGK9Dplahdckmp9dPUV29LAa_s+2": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/91bc9918-75f4-4798-8452-b4ace8fd5399?api-version=2021-06-01\u0026t=638960194698471282\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdG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c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/cc2c4a30-79d7-465d-81ab-110ee01855c7?api-version=2021-06-01\u0026t=638943587727672059\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvbWVsMDFwa2lp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vSY7qW3ejXwWily7TJ2a2s72pVWLkMJ-_RjahP2dBrEOnVosi1cnm-ejgp6GrB8SKQQ-dNPD0kl0Dz8z__x1pLVaYX-2eXyAcVumxPnbBSsyKKcx2LIRXpgCwDidtjdWIAp3_tgZo187MMBNh9LCmF9lS5_9YHoR-wjbSgVXsqcJXPFtlGVCSno5tX7pxOsbFFqxla440IWyYL_Wwu4C4zIxx16-xfvZDu4CWsA\u0026h=pzWxIw9rDWF4nrQXbhGK9Dplahdckmp9dPUV29LAa_s", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/91bc9918-75f4-4798-8452-b4ace8fd5399?api-version=2021-06-01\u0026t=638960194698471282\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-b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4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=giu6gC1O37vpLvttSed4-AUXpWFIUwm6oph7krXZcHyTIFgaJZmbInVIuP4fbjSA9fRq1JJZ-EMZ3_7PEP2hiE4e7AVZBOTEkQcdaKFxCH0a9rsw_rJNCRZvoxT4UNbBZ1L1HXteLfPJ7BQa4gJfXopIs5RXYLrUYLnQzsXnqXnyvTvKbaIYBUuWfLytGineJzYWgtHApihbObhZmxX6VH7b-c1RAbNilh8mwgJLUgCgF1ZIJYcRxfF4G3E3hA_SM_46ZJUUQVpkCHR5pcavhpxAbRzPxoY2RFw_iQLAgurowumOVZuvtDRmgrLLE0AVU_Na78ZHNMyw2bcmQN9Yfw\u0026h=1ONm3pSpVSZ9R_t5tUHvWNcjEKY39lYVcD9XP8fDN_k", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], + "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -65,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c0ae71dd-28a4-4d1b-9359-5ad3a17ceae8" ], - "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d54873c1-11bf-48ec-80b8-b0962c763d26" ], + "x-ms-request-id": [ "f4abf3e5-b614-495a-a00f-99445a9840be" ], + "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/51904d86-271e-4e22-bd4e-b8a51ba154fb" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "808d7bf6-81f6-4afc-a96c-6eeb0c9d205f" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005943Z:808d7bf6-81f6-4afc-a96c-6eeb0c9d205f" ], + "x-ms-correlation-request-id": [ "48301b20-6618-45f3-b874-7fc6bc16af65" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061800Z:48301b20-6618-45f3-b874-7fc6bc16af65" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2310354201384F489897BE36BEC9EECC Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:43Z" ], - "Date": [ "Thu, 25 Sep 2025 00:59:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 9EF40E2F1D4847588159080BD884C7F8 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:18:00Z" ], + "Date": [ "Tue, 14 Oct 2025 06:18:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -86,20 +128,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01+3": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], + "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -110,39 +152,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "4c244d03-73a8-4ebc-9e6c-324f203f968d" ], - "x-ms-client-request-id": [ "8fa9390c-fa1a-4550-83be-ccb06d123a64" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "f4ef2c60-aaab-47aa-8bc6-4d939eac4702" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T005943Z:f4ef2c60-aaab-47aa-8bc6-4d939eac4702" ], + "x-ms-request-id": [ "222db80b-a30b-45ff-a271-f6e86c0bc871" ], + "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "170eb085-4543-4902-a9a4-d550ef5e3abe" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061801Z:170eb085-4543-4902-a9a4-d550ef5e3abe" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 48F4B6B9A4904C279C34FFBBD78FAA0C Ref B: SYD03EDGE0907 Ref C: 2025-09-25T00:59:43Z" ], - "Date": [ "Thu, 25 Sep 2025 00:59:43 GMT" ] + "X-MSEdge-Ref": [ "Ref A: AC6465C7713740E49FD41184D9A46218 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:18:00Z" ], + "Date": [ "Tue, 14 Oct 2025 06:18:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-4u63\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4u63\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"84f853a0-0906-49d8-8e0e-724a61037572\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-4u63/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4u63.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4u63.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-1lai\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-1lai\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"b8460287-80a8-43ee-af37-4db66d893126\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-1lai.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-1lai.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01+4": { + "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-4u63?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -153,21 +195,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26/frontdoorresults/testps-fd-4u63?api-version=2021-06-01\u0026t=638943588050806895\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50L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w_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=y410XdxiiLjrWCM64or0KGytcB-pFcs1LCeubDkQp0fNRvoKtcht46Dq6kDxo_PI9DbdoPdZbv05JrZ7Z_ufLjMQq0whk9vd2I8G2GhqWEUiy4ay7Oep57VDEqlNsnEBx-9B6yHBpBYvdUsi5zAWmPlwIV4eCQJJKLS_Rg_oWvBHzW583VreFJ6588zoqNCjygaSLepIC3dqEkEHW0P5YPMv4YJZB35rfQDJMG5NSMi6DZh4nh_7H762eieQU8-B1O4uRjPdU4EiY3QaXVIMyczyd9i_lWpYVTi-x2dZbIAjo1hPHzEBMNWCQePyvmSW-DvNJzeWgOhKVyqan9zNAQ\u0026h=RTYeAdTLx8iOvJ1KZuqg9CD2LE4Gm1KPQlgoFsq9r3k" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d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p2zhIR1aop8fhjjc2Htz6j5CL-ngeQp4JG_46Hs-zjyBoi9lGtUR9jTZyfNWKpldWPWG9hD0EN1U5XX5qWo3IcVh308_CvtdU8_JP29x8YCKPiQG6NEDmqlLiR4v7QrXL6Ok5VEvtzqkidXPTVWg2aYcjAiG99ZLQM1qpdRV-SwlhvKYN9mfWUFpA\u0026h=0Zi8sjE3VzImnCiklxC--MLioTy_LXOvaOPZsH5uQEU" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "ef5cf606-35da-4438-99ba-18358a9fdd4f" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22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adOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ee3868be-7524-4f74-a2a8-4f482ca8005e" ], + "x-ms-request-id": [ "570b1f1c-10fb-40f9-bdb4-90f5721a790c" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0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9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e3f06bf1-3b7c-403f-a4fa-395e0554d7ba" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "0284b969-35d4-4935-a3c5-a2e77c6abf15" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010005Z:0284b969-35d4-4935-a3c5-a2e77c6abf15" ], + "x-ms-correlation-request-id": [ "adbce328-116c-4b1c-9917-ce827cd469b0" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061822Z:adbce328-116c-4b1c-9917-ce827cd469b0" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 398A70B6B91B46F0A9296A09671BD260 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:00:03Z" ], - "Date": [ "Thu, 25 Sep 2025 01:00:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: BBDAC524935F43DFB86D91E5E505B5A4 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:18:21Z" ], + "Date": [ "Tue, 14 Oct 2025 06:18:22 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -177,20 +219,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d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oAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+5": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u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woL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD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K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u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qZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -201,17 +243,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a84c5d04-b46e-488b-ab8c-74abe19d3a4d" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d336181e-6832-4871-8c92-3be67f9d4cd4" ], + "x-ms-request-id": [ "3403f6a1-7f9f-46e4-9493-37c9e12e6c69" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/9398ab98-c3f8-4968-9780-259b8975461f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "044ddee7-62e4-44db-b6b5-aae7a4384f04" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010016Z:044ddee7-62e4-44db-b6b5-aae7a4384f04" ], + "x-ms-correlation-request-id": [ "37e6c65c-f8d1-429c-877c-b484da004ed7" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061833Z:37e6c65c-f8d1-429c-877c-b484da004ed7" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 63C65F8EB5744EA5875B30715CFEA40D Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:00:15Z" ], - "Date": [ "Thu, 25 Sep 2025 01:00:15 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 80F5C35E463C4086B3C818BB07E85B25 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:18:32Z" ], + "Date": [ "Tue, 14 Oct 2025 06:18:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -222,20 +264,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2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ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+6": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.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FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yD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mfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADC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oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -246,17 +288,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0eb617c6-9f76-4acd-bb16-767b80385f18" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3dd104a8-f736-4f0d-87aa-2be48fe84e2e" ], + "x-ms-request-id": [ "c1556cb2-a210-4e3e-8c00-cfe7b051ae67" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c42ecc9b-0a84-4ca7-86af-f908bb3fb264" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "aa8925f5-b560-42d5-92a3-9cf6bd34dda8" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010047Z:aa8925f5-b560-42d5-92a3-9cf6bd34dda8" ], + "x-ms-correlation-request-id": [ "827c6d1e-37b0-4ee5-915a-b52f1682c5d4" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061903Z:827c6d1e-37b0-4ee5-915a-b52f1682c5d4" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F5FF76CEA2B84C5E98F343D7FE3855AA Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:00:46Z" ], - "Date": [ "Thu, 25 Sep 2025 01:00:47 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 22E99ED09B5B4DB396D04526DF8D965F Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:19:03Z" ], + "Date": [ "Tue, 14 Oct 2025 06:19:03 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -267,20 +309,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D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hpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+7": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvb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U3IDKm0amgY_xtVwywcT-VPGF7VZHrEHKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvbWVsMDFwa2lpbnRj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FHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_T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4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -291,17 +333,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9c57caf4-470d-4c07-b5dd-459cfb8af694" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/78356fad-191b-4f14-a955-e32e5d24a7f4" ], + "x-ms-request-id": [ "7140cd6b-7705-4bc9-ab8e-e1b378f8aa76" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/42b8f093-44b1-4766-8b1e-462193bfd390" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "59a7db03-28a8-424a-a49f-d9ac823350c6" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010118Z:59a7db03-28a8-424a-a49f-d9ac823350c6" ], + "x-ms-correlation-request-id": [ "ba7b6077-cb69-43a0-94cd-a54022f19c90" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T061934Z:ba7b6077-cb69-43a0-94cd-a54022f19c90" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 89C87E54C33B4410AD3F2EA6A0AEE445 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:01:17Z" ], - "Date": [ "Thu, 25 Sep 2025 01:01:17 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 6AF4EE9C0F9F4FB9A28560405E594A92 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:19:34Z" ], + "Date": [ "Tue, 14 Oct 2025 06:19:33 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -312,20 +354,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3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bBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+8": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwz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PQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEz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ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvbWVsMDFwa2lpbnR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N4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -336,17 +378,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "eb37a91a-ea07-4158-a086-554772d83332" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/32a15357-19ba-469d-bcbd-e993614e2393" ], + "x-ms-request-id": [ "2b23fe79-9311-477a-a697-2b112c06483b" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0848a483-8ed6-4ead-bc4f-dc94443398a6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "bc5ca196-3f4a-4879-a9a7-c07e69314bff" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010149Z:bc5ca196-3f4a-4879-a9a7-c07e69314bff" ], + "x-ms-correlation-request-id": [ "02db8b1e-5bf1-40bc-83f4-56f6684dda4d" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062005Z:02db8b1e-5bf1-40bc-83f4-56f6684dda4d" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 34B4267CA52842F0920A676C9770A15E Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:01:48Z" ], - "Date": [ "Thu, 25 Sep 2025 01:01:48 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DA46C570C8B94DC5A2918F47096FC389 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:20:05Z" ], + "Date": [ "Tue, 14 Oct 2025 06:20:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -357,20 +399,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxW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ontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwO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jdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJ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PZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJ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"x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -381,17 +423,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b355393c-780b-4263-97b7-bfb24f759306" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e809b0bf-9bc6-4474-aba4-fc4d0629dceb" ], + "x-ms-request-id": [ "b49f6d21-18ab-4a98-b63a-154ddedf6e80" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/62761f44-ab02-4589-9fb2-c96a107d92ca" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ab0be8a3-347d-41b1-8279-a27b689c254e" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010220Z:ab0be8a3-347d-41b1-8279-a27b689c254e" ], + "x-ms-correlation-request-id": [ "4736e5fc-9221-4866-9e8a-85ba855557c1" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062036Z:4736e5fc-9221-4866-9e8a-85ba855557c1" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 6A72723C7A024F019CFC21CACBB41B2E Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:02:19Z" ], - "Date": [ "Thu, 25 Sep 2025 01:02:19 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 9D777D35ED844775853C9CC326307A18 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:20:35Z" ], + "Date": [ "Tue, 14 Oct 2025 06:20:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -402,20 +444,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN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QbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+10": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwN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+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxod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_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDt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AoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -426,62 +468,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6fa4ab74-b3fb-47ba-80c2-c197ba749afa" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0a597949-095f-420a-8fbb-8d2fd8783adf" ], + "x-ms-request-id": [ "6a9e4bb6-eb9b-49fd-a0e5-4b955b240b7a" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f19f757f-886c-4f08-8eaf-625c25d853ed" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "79a04d0d-83e9-42f6-a693-717894d5822d" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010250Z:79a04d0d-83e9-42f6-a693-717894d5822d" ], + "x-ms-correlation-request-id": [ "cbce74d0-4ce9-4628-854d-b92dedb19292" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062107Z:cbce74d0-4ce9-4628-854d-b92dedb19292" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 9616FB60285D487BB0635FE1A3FED4BB Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:02:50Z" ], - "Date": [ "Thu, 25 Sep 2025 01:02:49 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "62" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzACh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hnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI+11": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poL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4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "CommandName": [ "Remove-AzFrontDoor" ], - "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9811e606-e9a8-431e-9ffc-022922626db1" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ee48663f-5711-4061-9213-ea88f49c9f27" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "b0af6446-cf1b-4706-9e8e-9651ed6c152f" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010321Z:b0af6446-cf1b-4706-9e8e-9651ed6c152f" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 48FBAC0A242E44EC82C7A750D229A526 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:03:20Z" ], - "Date": [ "Thu, 25 Sep 2025 01:03:20 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E1635D90BC0447E89A04124CA430A771 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:06Z" ], + "Date": [ "Tue, 14 Oct 2025 06:21:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -492,20 +489,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcN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HZI+12": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCC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4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/4b22d113-31b9-4a2b-b182-3e9e15d6de26?api-version=2021-06-01\u0026t=638943588050650627\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3l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0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=AQbu7fE3HvmsMl929P-lLN8O3xU8BeDlSHJ6Msh8E7JfHhnQ_i3G-gkAGDThn-b3cbBb7YffsQZqMqQlAcKMIITnHpQ5rKzZGMDgx7bXp4Hc4hU7ToFHLVzTeu53QTQxGHOkObdtQJICOHqXuNFiTkpdZfYhQ16qeVpmoAI9mGS-E2YWmNHDkEQVhadS0s_k5JGo91LzgoUPCzjOd1LmjmXXN2EKg3VeBUPvhBTAcpQS2_aC3J54wvkClGb2tFEtzX0J29an1HYax8iZXlRDvX-slKGwoTAvsNHvrrxYdXDYlrBf_USqLhw1AQzoYihN3Zfn9je-sPZWD7tk1NQnYg\u0026h=rWZXMjExbN6d55jD5sC40spBp5hTWqxc2aI2_m2JHZI", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYD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x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -516,17 +513,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "626b548f-e1b3-460f-9f13-3b297cc4ee6a" ], - "x-ms-client-request-id": [ "c50703c3-a77e-45c8-b818-35a0c634b45a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2217dbec-f3d3-4c23-b5db-4badf9cb6887" ], + "x-ms-request-id": [ "8095ccdc-7b3d-455d-8890-fe7203a20455" ], + "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b9eb6aed-95a9-494e-9960-520a61e8d71c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "6be608a0-e4c5-4a1f-b3d1-786fe2f1d671" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010322Z:6be608a0-e4c5-4a1f-b3d1-786fe2f1d671" ], + "x-ms-correlation-request-id": [ "e206da55-90ab-4d10-ae76-7cfcdc208fd5" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062108Z:e206da55-90ab-4d10-ae76-7cfcdc208fd5" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 94B51D45012A4181B218D4D83742907C Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:03:21Z" ], - "Date": [ "Thu, 25 Sep 2025 01:03:21 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D3699C62C6B348EF99D039CB68DF9B9F Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:07Z" ], + "Date": [ "Tue, 14 Oct 2025 06:21:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json index 7eef55eae345..1d5f3eec9fc8 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01+1": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,41 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1f160e65-6fb4-494c-91ab-751d1280762d" ], - "x-ms-client-request-id": [ "5c92d242-360c-4be6-8cf3-7887da4c0c41" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/australiaeast/5bbf54aa-0b70-4a60-aef5-d048b0cb6fa3" ], + "x-ms-request-id": [ "354f93fe-cfe1-4800-b2ab-c3bec0ab02b1" ], + "x-ms-client-request-id": [ "1571b319-ce8f-44af-a161-9a43cbdc254d" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/bf706e88-8729-41a3-a445-754675e17d94" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "1fd44222-5609-4f64-a526-c298b3c6dbbd" ], - "x-ms-routing-request-id": [ "AUSTRALIAEAST:20250925T010329Z:1fd44222-5609-4f64-a526-c298b3c6dbbd" ], + "x-ms-correlation-request-id": [ "dc95288d-5a11-4f76-8019-e9d1803a25d7" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062111Z:dc95288d-5a11-4f76-8019-e9d1803a25d7" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2BB60A13465E42AB8B9918085D2901E3 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:03:25Z" ], - "Date": [ "Thu, 25 Sep 2025 01:03:28 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DBCF117D9C9F488BBA0AEFFF6CA80F33 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:09Z" ], + "Date": [ "Tue, 14 Oct 2025 06:21:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01+2": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "5c92d242-360c-4be6-8cf3-7887da4c0c41" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "1571b319-ce8f-44af-a161-9a43cbdc254d" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -63,40 +63,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e30fa651-8829-4c92-be94-e60b6b0ad096" ], - "x-ms-client-request-id": [ "5c92d242-360c-4be6-8cf3-7887da4c0c41" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a0044b65-3fdd-4053-9bdb-0e33d16afc78" ], + "x-ms-request-id": [ "163215e8-a595-446f-89ce-62e2edbaf571" ], + "x-ms-client-request-id": [ "1571b319-ce8f-44af-a161-9a43cbdc254d" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3510b98b-515e-49fe-a2ba-536aa16a6cdf" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "aa2994a9-1ecc-4571-a71b-713f8513c0e9" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010400Z:aa2994a9-1ecc-4571-a71b-713f8513c0e9" ], + "x-ms-correlation-request-id": [ "80ba111d-8c99-4c28-ae7c-9912f8d0c1b5" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062142Z:80ba111d-8c99-4c28-ae7c-9912f8d0c1b5" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A9C8D67A8C494B6C9E00671E42011494 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:03:59Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:00 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8974AC1C6C7D4A6F985058500746EF4B Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:41Z" ], + "Date": [ "Tue, 14 Oct 2025 06:21:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01+3": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "496a37b6-f3e7-4423-aea1-d68fc026f601" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "157f2308-b883-4a14-9ca9-d1926cf9dad7" ], "CommandName": [ "Remove-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Remove-AzFrontDoorRulesEngine_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -108,17 +108,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a058d2a5-92a1-4b3a-8b6d-f71739681e59" ], - "x-ms-client-request-id": [ "496a37b6-f3e7-4423-aea1-d68fc026f601" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/07c4f9e4-e6db-4c5d-89d3-b23df451610a" ], + "x-ms-request-id": [ "05184b44-9789-4e17-b286-0b99059ee712" ], + "x-ms-client-request-id": [ "157f2308-b883-4a14-9ca9-d1926cf9dad7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f99a1c42-bc52-4b7c-ba95-936584ce032b" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "76d264c4-f798-4e2e-b977-d23d1c0d6a66" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010402Z:76d264c4-f798-4e2e-b977-d23d1c0d6a66" ], + "x-ms-correlation-request-id": [ "a3602c2f-dc3a-4f9d-9c2d-38ac5074e93e" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062143Z:a3602c2f-dc3a-4f9d-9c2d-38ac5074e93e" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 30EB9BDD8DAC4B8F862D97BAA68392F8 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:01Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:01 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 848113D4C18448F381543516FB610E55 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:42Z" ], + "Date": [ "Tue, 14 Oct 2025 06:21:43 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json index 5ee838329733..b67e78ee7294 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json @@ -1,8 +1,50 @@ { - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01+1": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "6883349f-0e5d-4991-8d09-80fb36e583ee" ], + "CommandName": [ "Get-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "f066184c-a26d-4905-a3a5-eef831601931" ], + "x-ms-correlation-request-id": [ "f066184c-a26d-4905-a3a5-eef831601931" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062143Z:f066184c-a26d-4905-a3a5-eef831601931" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B27680AE81D242FAB49762C4765638FF Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:43Z" ], + "Date": [ "Tue, 14 Oct 2025 06:21:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "257" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafwxgy\u0027 under resource group \u0027testps-rg-ahz7\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,41 +60,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "33de00c6-e97c-48f8-91cb-3725605a71d8" ], - "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7234f325-40d3-4525-a627-1016315a27a7" ], + "x-ms-request-id": [ "95a6759f-829d-4fcf-97aa-d6169b078722" ], + "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/83e4216c-8b9a-47c9-96b1-cdf14905bdf8" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "15c3d55a-93b2-4180-a020-b42ccea8eb9c" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010405Z:15c3d55a-93b2-4180-a020-b42ccea8eb9c" ], + "x-ms-correlation-request-id": [ "eca80b98-b203-4e57-ab85-a0bc5553dcc8" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062145Z:eca80b98-b203-4e57-ab85-a0bc5553dcc8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 01C327636ECF4CECBD97BCF43895FDC1 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:03Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 257CBB1DB3994B17BD6D8F8D44105742 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:44Z" ], + "Date": [ "Tue, 14 Oct 2025 06:21:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf1anu\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf1anu\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafwxgy\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafwxgy\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01+2": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -63,40 +105,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e786a10d-6c23-4140-aaa7-299b56206b4c" ], - "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], + "x-ms-request-id": [ "a4c52896-f426-47ca-8553-0b0412678f64" ], + "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "41a07392-7151-4a97-b276-1865252abc3a" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010436Z:41a07392-7151-4a97-b276-1865252abc3a" ], + "x-ms-correlation-request-id": [ "faad711a-2566-46f2-b3f3-21bbbcef0db9" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062216Z:faad711a-2566-46f2-b3f3-21bbbcef0db9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D84602DF74E04DA88095AC60DB623F99 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:36Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:35 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C0D4EF29B8714880B024CBE597FF5348 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:16Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf1anu\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf1anu\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafwxgy\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafwxgy\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01+3": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -107,39 +149,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8afb41ba-f703-4f9c-882e-813cfde4bf89" ], - "x-ms-client-request-id": [ "f4db919f-f6e0-46c3-accf-43ca50047e29" ], + "x-ms-request-id": [ "89bd7029-70c1-49dc-8726-99099c67bd78" ], + "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "b92c69d5-f87b-47b7-98fb-5fd12d12c76c" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010436Z:b92c69d5-f87b-47b7-98fb-5fd12d12c76c" ], + "x-ms-correlation-request-id": [ "27136018-d090-41cd-a844-3394f5fa1235" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062217Z:27136018-d090-41cd-a844-3394f5fa1235" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A774D12F6C4148C5A0B179344950351E Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:36Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:35 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 83E84745A06E46738E38D7AD490600C5 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:16Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf1anu\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf1anu\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafwxgy\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafwxgy\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01+4": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf1anu?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "48ccda96-a3ed-4f0f-b645-a7a1d07f1ec5" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "ac190c57-d65d-417b-8ed3-1c084fc35f22" ], "CommandName": [ "Remove-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Remove-AzFrontDoorWafPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -151,17 +193,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1ef7a5c2-f663-4dc6-8f94-946110f6e8af" ], - "x-ms-client-request-id": [ "48ccda96-a3ed-4f0f-b645-a7a1d07f1ec5" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2e374691-5657-4f11-bdd1-2ad7056a7eb2" ], + "x-ms-request-id": [ "50f9b648-e09e-44be-8c16-b42e8dfeb450" ], + "x-ms-client-request-id": [ "ac190c57-d65d-417b-8ed3-1c084fc35f22" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1205cd2c-b225-446a-b290-b2e32f2062b4" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "e41cb841-36e0-4e0c-b32a-84dd4abc383f" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010438Z:e41cb841-36e0-4e0c-b32a-84dd4abc383f" ], + "x-ms-correlation-request-id": [ "2f2886b2-cc1b-4431-9c2d-3f078b38a612" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062218Z:2f2886b2-cc1b-4431-9c2d-3f078b38a612" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 567A6EE333944B62A4491E80CB7C4529 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:36Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:37 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 278D80864DA24CB2849E6FBC7386EEDA Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:17Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:18 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json index 756f52f4ac38..723b72dcad53 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json @@ -1,9 +1,51 @@ { - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+1": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "9c036116-5c04-42ba-8be8-de7889106f9a" ], + "CommandName": [ "Get-AzFrontDoor" ], + "FullCommandName": [ "Get-AzFrontDoor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "5091c73c-6339-4c7e-924d-582baf8202aa" ], + "x-ms-correlation-request-id": [ "5091c73c-6339-4c7e-924d-582baf8202aa" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062219Z:5091c73c-6339-4c7e-924d-582baf8202aa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8B120486E001434D81BB702BFE70001D Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:19Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "229" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-5cpo\u0027 under resource group \u0027testps-rg-ahz7\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-m56z.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-5cpo.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -19,42 +61,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "12c17d48-8eb4-4574-96fa-1029587e41a9" ], - "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/080da621-4a64-4a2c-905d-fd91869312a9?api-version=2021-06-01\u0026t=638943590815223259\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLq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CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=HshJpC0Pnnw-MebxSUiNB98wvkSbDC2uo2I_UmAO6zh3QBrxY198IWg9fpTkFAsZwYWlo7_HgVHnRsZ_3TI15nNGfpuBon8qW87XKWxoc5mpIBS2FzOK8RiuALuY7GcwdB93y1djsj-VWZ3PZBlM1ONw1V34XilbS_NdGN_AB8xPHDuNsZY05a39D860gF5ljPcD2RdO1GBNLFPy-Z-87CKPT56FEvUEOnvl_AXUYUfhgbmoptRiorxkrJ4LNqrF7ARzpD6bCbEoU1Fw69GLjM_4PxHZ0O7yqSmLbPNvf8lZg8DWR2AcFUEEkUvN7p73tHC4cnLXEieFlEtnEMa_FA\u0026h=wWd2ParTMXm5qCJHP03J5aQ7A2KTjGaRGOKWTzGOj1A" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/82898d01-81e1-45b8-aded-c16dc7aa7239" ], + "x-ms-request-id": [ "b7818e54-316c-46a6-9ea6-821d0c021219" ], + "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/4f1ad18d-4e94-47da-825a-7db786b1f840?api-version=2021-06-01\u0026t=638960197419435666\u0026c=MIIIrzCCBpegAwI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ubb4iZewlX1CibC4g-p90okzrDz4-Ktyzn7XMCDm1uXnfLC1E4XQ37fK25eDuT-8lW3KxLW6-SRw5E_GtrIXO1SvRSvh1cf8MUytyfYvPOjg\u0026h=Tew2NRrd1L209N1tyCHCj45_IBv4vS3Au9ReFZKPd-4" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e4643262-7bf4-4e2d-af0d-d80713dbfa03" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "4b8b4754-16bb-4a83-bf37-9e1ab9210022" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010441Z:4b8b4754-16bb-4a83-bf37-9e1ab9210022" ], + "x-ms-correlation-request-id": [ "238243ab-f629-4c88-b527-e373130d21f9" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062221Z:238243ab-f629-4c88-b527-e373130d21f9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 9C85733D4B6E440C96097156431538A2 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:39Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:40 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4D367292893B4E62B45FE0E9EC80501F Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:19Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/080da621-4a64-4a2c-905d-fd91869312a9?api-version=2021-06-01\u0026t=638943590815223259\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0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Z0O7yqSmLbPNvf8lZg8DWR2AcFUEEkUvN7p73tHC4cnLXEieFlEtnEMa_FA\u0026h=wWd2ParTMXm5qCJHP03J5aQ7A2KTjGaRGOKWTzGOj1A+2": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/4f1ad18d-4e94-47da-825a-7db786b1f840?api-version=2021-06-01\u0026t=638960197419435666\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGC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9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=hjKZGNlo3KNHgF9lzTfFFwXqO_jMffsZ0c6CuZwsEyFIoTEvdAgLJEqeZWVKSwYuWdnwC2ph5vd_fgNtqFu0H4gWCw5zvEVaqF8OlHC1csI9uPBvmkLIDv0RUclXHGV5KmIIPpZasPNk7JpINkS2Y3kNXooUIla5IkjCtvRbKbIzojMki66y4Oh3WGjf7mX1uOCwrt4-OokAmL_N0k9-XF8UWhfSAKnViIk1mj4bD9Ubb4iZewlX1CibC4g-p90okzrDz4-Ktyzn7XMCDm1uXnfLC1E4XQ37fK25eDuT-8lW3KxLW6-SRw5E_GtrIXO1SvRSvh1cf8MUytyfYvPOjg\u0026h=Tew2NRrd1L209N1tyCHCj45_IBv4vS3Au9ReFZKPd-4+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/080da621-4a64-4a2c-905d-fd91869312a9?api-version=2021-06-01\u0026t=638943590815223259\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDD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Zk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=HshJpC0Pnnw-MebxSUiNB98wvkSbDC2uo2I_UmAO6zh3QBrxY198IWg9fpTkFAsZwYWlo7_HgVHnRsZ_3TI15nNGfpuBon8qW87XKWxoc5mpIBS2FzOK8RiuALuY7GcwdB93y1djsj-VWZ3PZBlM1ONw1V34XilbS_NdGN_AB8xPHDuNsZY05a39D860gF5ljPcD2RdO1GBNLFPy-Z-87CKPT56FEvUEOnvl_AXUYUfhgbmoptRiorxkrJ4LNqrF7ARzpD6bCbEoU1Fw69GLjM_4PxHZ0O7yqSmLbPNvf8lZg8DWR2AcFUEEkUvN7p73tHC4cnLXEieFlEtnEMa_FA\u0026h=wWd2ParTMXm5qCJHP03J5aQ7A2KTjGaRGOKWTzGOj1A", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/4f1ad18d-4e94-47da-825a-7db786b1f840?api-version=2021-06-01\u0026t=638960197419435666\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGR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YvPOjg\u0026h=Tew2NRrd1L209N1tyCHCj45_IBv4vS3Au9ReFZKPd-4", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -65,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "4dae0d58-cc98-42ea-8fc1-93f81a125ea7" ], - "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1376d080-7b8b-4b3c-94b8-c69b7d584ed6" ], + "x-ms-request-id": [ "b2da8321-16f4-4057-98b1-4435225716c3" ], + "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d88aab42-4ae2-4451-8ca3-0683de19645f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "04ab3a5a-0e1a-4de6-ad13-f940bbb3fdf0" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010452Z:04ab3a5a-0e1a-4de6-ad13-f940bbb3fdf0" ], + "x-ms-correlation-request-id": [ "5da5798c-483e-41ad-ba09-189ed0e6b9c8" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062232Z:5da5798c-483e-41ad-ba09-189ed0e6b9c8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C94E3CE3E0D942FBA55C954595234035 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:51Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:51 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B754FCB525694C209EAF74D12B50C2A7 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:32Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -86,20 +128,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+3": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -110,39 +152,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "205d65e2-8049-4276-af5a-8f9e14dd4bd5" ], - "x-ms-client-request-id": [ "af3a57ad-ec2b-4d1d-92fd-8f8a7abfd656" ], + "x-ms-request-id": [ "954bfb6c-ea7b-41ae-9775-007d555f0041" ], + "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e0dd96da-1ab3-4ca9-ad1a-4046612a4e9f" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010452Z:e0dd96da-1ab3-4ca9-ad1a-4046612a4e9f" ], + "x-ms-correlation-request-id": [ "cd9622a3-a7f9-47a9-ba65-3cf40bfa2d6f" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062233Z:cd9622a3-a7f9-47a9-ba65-3cf40bfa2d6f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E3D81C5D1100481D87E2B7FBB10AB0CD Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:52Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:51 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 07B8822B5F424B1C9B70BE0C9AF75644 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:32Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:33 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+4": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -154,31 +196,31 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "78b5464d-6ea8-4e7d-ac28-a968a622dec8" ], - "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "fa52df82-ccc0-4ab8-811d-4222f10fee29" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010453Z:fa52df82-ccc0-4ab8-811d-4222f10fee29" ], + "x-ms-request-id": [ "d48dc6bd-f5b3-4b09-9e0a-7374c2a435a6" ], + "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "8906103b-a075-416e-9526-85ab7f2e7d93" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062234Z:8906103b-a075-416e-9526-85ab7f2e7d93" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 63762563B7F9437F80CCB7F63AD32F7B Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:52Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:52 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B7088A1746FB42EF82DCD3103E69A9C7 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:33Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:34 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+5": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+6": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-m56z.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value3\",\r\n \"tag2\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-5cpo.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -192,45 +234,45 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/b4782ef6-de42-48cc-971e-42ba3a558f65/frontdoorresults/testps-fd-m56z?api-version=2021-06-01\u0026t=638943590946012690\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYD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9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/365b5f4b-9944-4001-9173-35dddab7edef/frontdoorresults/testps-fd-5cpo?api-version=2021-06-01\u0026t=638960197564899577\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2Vyd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cYXOm_QWSSHqsTtV25EGs1pHntT3Scfkee-raJS-AE8C9sypXJdOJHQazItnDYoMZ4sR7VQl3-FtoToev3vmGvXAMfHre0QY3RNigqHvaMVP1RPzhBv7JjZw4in66_IxUAYXOVDNf2x4UY8RGDrqBi4kpfyymtBpCiWwED-Wo7aFYek9b7y-nVg2ukxMt8ByWys3xyPOK2gdiHRikAloeIAU0tdwPXNEYc8M21jbp5ZmrtQy7BILHw\u0026h=blbY4oV2FuBouvlbKoXQIvIDPuNvV6gaUEKChL6Xsuw" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d4b6f329-e6dc-4dd5-a1b3-b6e6fef4c217" ], - "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/b4782ef6-de42-48cc-971e-42ba3a558f65?api-version=2021-06-01\u0026t=638943590945856437\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9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xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=ZHaYiY0oB0XzprCxcdky-mF0t4TcgngW4IIzyKO7P_pq9gSIaNFHbVOvmjb9KBdKln27rWgk5xsLTfvwRYJ-g5KBTdo1g6JRQC_BzhKO9RV1aouuVNEiBauj2h1Zsd-ujwvpk6lg6t3M83cq4-F3pcJ1iQY5rOw65Wh60h2mwQIg7qIvfleuiP7EdhWOSH6loBMeQzxfzdDLQiCWwCxyeXw-jqxRei3_CuV28VpaHTfCCbdelIYiZ7QLPsZvJMoOtybDsvANwhm-6_3xf6JQkvbciE-2vCtVDrFho_n19sXAqFPEEw513cZ2ZI2EQPny0_gHxBbibScCeOf65SG_8g\u0026h=UAZSLX_vXYpbRrw0hNkUpiOy-LsiJua4ygP10pe3PMo" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/10cc84cd-5bd9-49ff-a3c2-6c5e4d10df6d" ], + "x-ms-request-id": [ "a585daaa-4cd2-4de4-ad52-2e91fcb8f684" ], + "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microso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1sMhKIRF0IZ3OyPxH2oK6hNuYcMRlJRMGvlZ8jLrqqThm8qLJLotPbvMhvtf_Fl0f6XVA98nvivIlv0d6tPHqP5HI3A1raHQF6US1NHQSsFAd6D7lfbcF-vEzycMpswLEYOnJ1nw6rj4zukzSIXnlUOCx3mLV-1txxDjqlv-FVztZeAJ910APa1qTKA\u0026h=fjnQRO27__O4h03A21JJhBo6_065T1BHNugRHHZXOd4" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1630c10e-254c-4c10-adfc-6aebd9e15567" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "5053b757-baed-4e5b-a0ef-4c347d53e9d0" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010454Z:5053b757-baed-4e5b-a0ef-4c347d53e9d0" ], + "x-ms-correlation-request-id": [ "5b45760a-c28f-4cf0-b2bb-870d36f8c812" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062236Z:5b45760a-c28f-4cf0-b2bb-870d36f8c812" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: DFA1DA08E29A49FFA34F79E30C7DBAEE Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:04:53Z" ], - "Date": [ "Thu, 25 Sep 2025 01:04:53 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F10757907FD74F3C98D35B5E971C84CC Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:34Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/b4782ef6-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Ig7qIvfleuiP7EdhWOSH6loBMeQzxfzdDLQiCWwCxyeXw-jqxRei3_CuV28VpaHTfCCbdelIYiZ7QLPsZvJMoOtybDsvANwhm-6_3xf6JQkvbciE-2vCtVDrFho_n19sXAqFPEEw513cZ2ZI2EQPny0_gHxBbibScCeOf65SG_8g\u0026h=UAZSLX_vXYpbRrw0hNkUpiOy-LsiJua4ygP10pe3PMo+6": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/365b5f4b-9944-4001-9173-35dddab7edef?api-version=2021-06-01\u0026t=638960197564743283\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8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QN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=BNdJgcanOhLSul0yzdOxZ3gC51Pu4kaxsU1-k8OfTFuqXNiUkJUkts6-TFB0Xago0KhOnzehjtpOkMPB1abCIbFk29xToN0rV1oiuI8K59CqtGBky84s9DXaiEXvPy5JUSMDT5-07OjF2QHsvEKWmA59ZbZ1sMhKIRF0IZ3OyPxH2oK6hNuYcMRlJRMGvlZ8jLrqqThm8qLJLotPbvMhvtf_Fl0f6XVA98nvivIlv0d6tPHqP5HI3A1raHQF6US1NHQSsFAd6D7lfbcF-vEzycMpswLEYOnJ1nw6rj4zukzSIXnlUOCx3mLV-1txxDjqlv-FVztZeAJ910APa1qTKA\u0026h=fjnQRO27__O4h03A21JJhBo6_065T1BHNugRHHZXOd4+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdooroperationresults/b4782ef6-de42-48cc-971e-42ba3a558f65?api-version=2021-06-01\u0026t=638943590945856437\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCck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DHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=ZHaYiY0oB0XzprCxcdky-mF0t4TcgngW4IIzyKO7P_pq9gSIaNFHbVOvmjb9KBdKln27rWgk5xsLTfvwRYJ-g5KBTdo1g6JRQC_BzhKO9RV1aouuVNEiBauj2h1Zsd-ujwvpk6lg6t3M83cq4-F3pcJ1iQY5rOw65Wh60h2mwQIg7qIvfleuiP7EdhWOSH6loBMeQzxfzdDLQiCWwCxyeXw-jqxRei3_CuV28VpaHTfCCbdelIYiZ7QLPsZvJMoOtybDsvANwhm-6_3xf6JQkvbciE-2vCtVDrFho_n19sXAqFPEEw513cZ2ZI2EQPny0_gHxBbibScCeOf65SG_8g\u0026h=UAZSLX_vXYpbRrw0hNkUpiOy-LsiJua4ygP10pe3PMo", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/365b5f4b-9944-4001-9173-35dddab7edef?api-version=2021-06-01\u0026t=638960197564743283\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ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HQF6US1NHQSsFAd6D7lfbcF-vEzycMpswLEYOnJ1nw6rj4zukzSIXnlUOCx3mLV-1txxDjqlv-FVztZeAJ910APa1qTKA\u0026h=fjnQRO27__O4h03A21JJhBo6_065T1BHNugRHHZXOd4", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -241,17 +283,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "475ca67c-9eea-447d-bd25-6175831cfd10" ], - "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f3b90703-9ccf-471b-aa52-bb4ab7e12159" ], + "x-ms-request-id": [ "cdf212c1-c0fb-4223-9d51-109945ae89a0" ], + "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/737e4c40-80ec-43fb-862c-cea573c1942a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "cc1db867-574a-4a67-8625-b2275867ae03" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010505Z:cc1db867-574a-4a67-8625-b2275867ae03" ], + "x-ms-correlation-request-id": [ "f88356ae-3d88-46a8-bde6-1e29e1ae96db" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062247Z:f88356ae-3d88-46a8-bde6-1e29e1ae96db" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F7E0051E63D54FA98F9A34A047437323 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:04Z" ], - "Date": [ "Thu, 25 Sep 2025 01:05:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8133C00E3C1949319414A7405D24EDE0 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:46Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:47 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -262,20 +304,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01+7": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -286,23 +328,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b71484ea-dad1-4121-9497-ef1407149b60" ], - "x-ms-client-request-id": [ "7a18cd42-b4a9-4a87-b0e5-ab55b540f70d" ], + "x-ms-request-id": [ "1b8d07cb-f6de-4774-8ff5-2454fdf87e35" ], + "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "1d1ac933-d3bb-49b0-b41a-f2964cd29074" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010506Z:1d1ac933-d3bb-49b0-b41a-f2964cd29074" ], + "x-ms-correlation-request-id": [ "81fae4b5-028a-42fa-9018-97a4f44021f9" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062247Z:81fae4b5-028a-42fa-9018-97a4f44021f9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 52DEFC5EBCF3408393E766D1D35115D5 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:05Z" ], - "Date": [ "Thu, 25 Sep 2025 01:05:05 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E0EB7F53B6C6417DA9D2A4A0AD0624FE Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:47Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:47 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-m56z\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-m56z\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"21b773b0-bc6a-4d45-b15d-606f41ce76a7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-m56z/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/Frontdoors/testps-fd-m56z/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-m56z.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-m56z.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json index 5f63afb39b27..9a950396d189 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json @@ -1,17 +1,17 @@ { - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+1": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "b6045d7b-8e53-4155-a76a-afb544a93963" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "a7b49efa-357a-40a6-aa93-41e88475b198" ], "CommandName": [ "Get-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Get-AzFrontDoorRulesEngine_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,40 +23,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "df462b5e-94bb-4d68-995f-8b5f139670c2" ], - "x-ms-client-request-id": [ "b6045d7b-8e53-4155-a76a-afb544a93963" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/65d67efc-248e-41c5-a512-aea9709a137d" ], + "x-ms-request-id": [ "76b16f7c-dc22-410d-98d2-f73fee478af8" ], + "x-ms-client-request-id": [ "a7b49efa-357a-40a6-aa93-41e88475b198" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/85c0df5d-0c76-42e5-b2f6-f1789a13faa2" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "cf0dc448-3983-480a-a95c-b3c94fec43b8" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010507Z:cf0dc448-3983-480a-a95c-b3c94fec43b8" ], + "x-ms-correlation-request-id": [ "788e0ebf-b782-43b1-89f3-2e1b8b3fec15" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062249Z:788e0ebf-b782-43b1-89f3-2e1b8b3fec15" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 501F3B7A0FE1481AB35095C2AA7F7C50 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:06Z" ], - "Date": [ "Thu, 25 Sep 2025 01:05:06 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 34F6F7E2BE224D75927A0F9822FE502D Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:48Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+2": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -68,32 +68,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a1f8512c-6a31-414d-96a8-40dcd2030a54" ], - "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2d0d46a0-23ae-48e4-863a-2a16f27e118d" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e543322f-0863-4ca8-9a1d-5c3393d8d2a3" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010507Z:e543322f-0863-4ca8-9a1d-5c3393d8d2a3" ], + "x-ms-request-id": [ "23cb4a17-e193-485b-b5b8-5d915cdede7d" ], + "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6ba92ebb-4108-476b-98a6-07ce40d27713" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "a4a36083-2bdf-40da-b1d1-04822952dc74" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062249Z:a4a36083-2bdf-40da-b1d1-04822952dc74" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8347BEBA8D0140D5A19099383B5F8E18 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:07Z" ], - "Date": [ "Thu, 25 Sep 2025 01:05:06 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 098AB8508BD648238733D0D566F38B58 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:49Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+3": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -108,41 +108,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c6fb72ec-3a5e-4f27-b29d-cd17b0b15da1" ], - "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7095eafa-7138-44f7-8875-00068acbe020" ], + "x-ms-request-id": [ "1290ce85-e141-45c8-85ed-23387aed90bb" ], + "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/84e651d8-8d72-4e59-a967-76e258fe480c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "8f95b150-9273-4de9-976f-dd365ae8bd83" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010508Z:8f95b150-9273-4de9-976f-dd365ae8bd83" ], + "x-ms-correlation-request-id": [ "5cf06519-75e8-4d08-9fcf-69ae451c6f22" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062250Z:5cf06519-75e8-4d08-9fcf-69ae451c6f22" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: CC37AA7E9C0D465BAB96198BEBD3AD07 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:07Z" ], - "Date": [ "Thu, 25 Sep 2025 01:05:07 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 5302FFD12E784DC590A1978C51018C11 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:49Z" ], + "Date": [ "Tue, 14 Oct 2025 06:22:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01+4": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -153,24 +153,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "3c2f713a-1853-4edf-9c41-4e386044325f" ], - "x-ms-client-request-id": [ "82fc0a7c-eb02-4461-9dea-0a28e9e6feb0" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6a6f0d23-3085-49b5-b807-7ef189fbfafa" ], + "x-ms-request-id": [ "9a29f91a-fc8f-428f-94d0-d520cee7d067" ], + "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/4d7d0611-241b-46f8-a3a1-4017de8edaaa" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "14f3ce0d-f50c-4582-9047-f5bf51d82efd" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010539Z:14f3ce0d-f50c-4582-9047-f5bf51d82efd" ], + "x-ms-correlation-request-id": [ "988be7f9-342a-4531-a08f-2f07c52619bb" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062321Z:988be7f9-342a-4531-a08f-2f07c52619bb" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8B52A4955FD144C38E0742F57D83F7DC Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:38Z" ], - "Date": [ "Thu, 25 Sep 2025 01:05:39 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 76D5300C12BB4720893514D7857F1505 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:21Z" ], + "Date": [ "Tue, 14 Oct 2025 06:23:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoors/testps-fd-pczt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/frontDoors/testps-fd-pczt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json index 13cff68065f7..b0dbe1e3c451 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,61 @@ { - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+1": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "c1db2683-55c8-46ab-9461-215ec73dd39b" ], + "CommandName": [ "Get-AzFrontDoorWafPolicy" ], + "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "b9e61806-e385-421e-9591-97bc85329b40" ], + "x-ms-client-request-id": [ "c1db2683-55c8-46ab-9461-215ec73dd39b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "f812c63f-0655-45ac-af4f-aec36b6f405e" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062323Z:f812c63f-0655-45ac-af4f-aec36b6f405e" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2E6556C420DB4A49A9214311B1CA6C23 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:23Z" ], + "Date": [ "Tue, 14 Oct 2025 06:23:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,30 +67,30 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "970ca77c-7f47-4835-ae36-03731c828bff" ], - "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "a495de3e-43a4-4931-8014-d4cc98e7ce2f" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010541Z:a495de3e-43a4-4931-8014-d4cc98e7ce2f" ], + "x-ms-request-id": [ "57ea8eca-8c48-4d64-b2a6-8c07e474805a" ], + "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1097" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16497" ], + "x-ms-correlation-request-id": [ "aa9dd29c-17c0-465f-a2b3-cd7b9d9a9205" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062323Z:aa9dd29c-17c0-465f-a2b3-cd7b9d9a9205" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: BCC0F724EEF8480B9AA8ED33740CAB4B Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:41Z" ], - "Date": [ "Thu, 25 Sep 2025 01:05:41 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F8DEA115516F4286822EEF640B5F88D7 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:23Z" ], + "Date": [ "Tue, 14 Oct 2025 06:23:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+2": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [ ],\r\n \"ruleGroupOverrides\": [ ]\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -62,41 +106,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6b5f7651-1980-4b6e-bd8b-3bc96603b840" ], - "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/abb75872-11df-46e8-bdb3-daec9d4e61e6" ], + "x-ms-request-id": [ "59b00046-ef96-4e45-aedf-c5902b61c6de" ], + "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/38b76818-158c-4cda-9381-1523944df551" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "2f78b766-dfee-40d4-898c-e7a54a031cb4" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010543Z:2f78b766-dfee-40d4-898c-e7a54a031cb4" ], + "x-ms-correlation-request-id": [ "e8656260-396d-4932-a4f4-d5ee96a39763" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062325Z:e8656260-396d-4932-a4f4-d5ee96a39763" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: EF4F1E87538C40AF99811932571C2DA5 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:05:41Z" ], - "Date": [ "Thu, 25 Sep 2025 01:05:43 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 027A5B513669468F8CCE86D39FA28314 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:23Z" ], + "Date": [ "Tue, 14 Oct 2025 06:23:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+3": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -107,40 +151,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d97a12b9-ee1a-4d9b-9e5a-e0b18745a284" ], - "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], + "x-ms-request-id": [ "53007be0-6d15-4fd5-a95e-13130b2aba63" ], + "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "217abf7d-3d9f-4b5c-8c6f-e5bd66866af3" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010613Z:217abf7d-3d9f-4b5c-8c6f-e5bd66866af3" ], + "x-ms-correlation-request-id": [ "e130e70b-da66-4e19-9836-f1c37a7223a3" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062355Z:e130e70b-da66-4e19-9836-f1c37a7223a3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4A289DC9D8034E0CA872236FABC5975E Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:06:13Z" ], - "Date": [ "Thu, 25 Sep 2025 01:06:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4F80AE65458540E08D0B350CCD263891 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:55Z" ], + "Date": [ "Tue, 14 Oct 2025 06:23:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01+4": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ck7u/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqruo?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -151,23 +195,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c81c0b34-8423-40aa-94ab-ffb437ca6b0a" ], - "x-ms-client-request-id": [ "ab67497e-34a7-492d-8809-0cae1829efd7" ], + "x-ms-request-id": [ "a34cd519-f791-4ddf-9a00-97d2a91485d3" ], + "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "bead7fc4-6092-4395-b681-b788f0460bd7" ], - "x-ms-routing-request-id": [ "WESTUS:20250925T010614Z:bead7fc4-6092-4395-b681-b788f0460bd7" ], + "x-ms-correlation-request-id": [ "69f705c8-e0f2-4d5a-a9d6-893f3c01f3e9" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T062356Z:69f705c8-e0f2-4d5a-a9d6-893f3c01f3e9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 964BAE5B479D443B8D08155A838C90F2 Ref B: SYD03EDGE0907 Ref C: 2025-09-25T01:06:13Z" ], - "Date": [ "Thu, 25 Sep 2025 01:06:14 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 64EEBA34F86644B3AB14CDB57CE2C876 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:55Z" ], + "Date": [ "Tue, 14 Oct 2025 06:23:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ck7u/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqruo\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqruo\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json index c89dd06013bc..3e315f2d5b79 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/env.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -1,9 +1,9 @@ { + "WafPolicyName": "testpsWaf8alq", "RuleEngineName": "engine101", - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", - "WafPolicyName": "testpsWafqruo", "location": "westus", - "FrontDoorName": "testps-fd-pczt", - "ResourceGroupName": "testps-rg-ck7u", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47" + "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "ResourceGroupName": "testps-rg-ahz7", + "FrontDoorName": "testps-fd-p8vt" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 1824b418a583..37420be450fa 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{3C698510-398A-4853-B344-A0172F587AC6}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{2F771386-FCDE-4978-B7BA-AC7E5A28E036}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Debug|x64.ActiveCfg = Debug|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Debug|x64.Build.0 = Debug|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Debug|x86.ActiveCfg = Debug|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Debug|x86.Build.0 = Debug|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Release|Any CPU.Build.0 = Release|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Release|x64.ActiveCfg = Release|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Release|x64.Build.0 = Release|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Release|x86.ActiveCfg = Release|Any CPU - {3C698510-398A-4853-B344-A0172F587AC6}.Release|x86.Build.0 = Release|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|x64.ActiveCfg = Debug|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|x64.Build.0 = Debug|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|x86.ActiveCfg = Debug|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|x86.Build.0 = Debug|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|Any CPU.Build.0 = Release|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|x64.ActiveCfg = Release|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|x64.Build.0 = Release|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|x86.ActiveCfg = Release|Any CPU + {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {3C698510-398A-4853-B344-A0172F587AC6} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {2F771386-FCDE-4978-B7BA-AC7E5A28E036} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 6966ed8d4978..f044446b7435 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/9/29 +# Generated on: 2025/10/14 # @{ @@ -56,8 +56,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) # Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'FrontDoor.Autorest/bin/Az.FrontDoor.private.dll', - 'Microsoft.Azure.PowerShell.FrontDoor.Management.Sdk.dll' +RequiredAssemblies = 'FrontDoor.Autorest/bin/Az.FrontDoor.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. ScriptsToProcess = @() From 8e41b9cba70db17fcad49f0d4ad798ece4fbea3c Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Tue, 14 Oct 2025 20:15:30 +1100 Subject: [PATCH 16/30] run test --- .../test/Get-AzFrontDoor.Recording.json | 24 +- ...AzFrontDoorFrontendEndpoint.Recording.json | 22 +- ...WafManagedRuleSetDefinition.Recording.json | 20 +- .../Get-AzFrontDoorWafPolicy.Recording.json | 20 +- .../New-AzFrontDoorRulesEngine.Recording.json | 44 ++-- .../New-AzFrontDoorWafPolicy.Recording.json | 78 +++--- .../test/Remove-AzFrontDoor.Recording.json | 246 +++++++++--------- ...move-AzFrontDoorRulesEngine.Recording.json | 64 ++--- ...Remove-AzFrontDoorWafPolicy.Recording.json | 98 +++---- .../test/Set-AzFrontDoor.Recording.json | 172 ++++++------ .../Set-AzFrontDoorRulesEngine.Recording.json | 96 +++---- ...Update-AzFrontDoorWafPolicy.Recording.json | 108 ++++---- .../FrontDoor.Autorest/test/env.json | 10 +- 13 files changed, 501 insertions(+), 501 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json index 43b89c669eb0..804e5a2b48ef 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json @@ -1,13 +1,13 @@ { - "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt?api-version=2021-06-01+1": { + "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "83869694-96ee-4776-a068-565fdd4dabb4" ], + "x-ms-client-request-id": [ "6a89e711-f7a5-4b25-a7bb-7be11a84a8e3" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "4f99e0f8-66b8-4a7d-a1a1-7560afbc23f8" ], - "x-ms-client-request-id": [ "83869694-96ee-4776-a068-565fdd4dabb4" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "9cf5c64f-e8c3-4ebc-b505-09266e94d3c2" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061618Z:9cf5c64f-e8c3-4ebc-b505-09266e94d3c2" ], + "x-ms-request-id": [ "ce19b3fc-7228-47e7-bb61-341e266b3726" ], + "x-ms-client-request-id": [ "6a89e711-f7a5-4b25-a7bb-7be11a84a8e3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "1dbed1c0-9926-4fba-ac1d-60ddac6e2779" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090727Z:1dbed1c0-9926-4fba-ac1d-60ddac6e2779" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: DDC6B587E6184F27A0EAE9D5BB581FA2 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:18Z" ], - "Date": [ "Tue, 14 Oct 2025 06:16:18 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B476277840CF4587A7DDAC4D42507CFB Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:26Z" ], + "Date": [ "Tue, 14 Oct 2025 09:07:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "6398" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-p8vt\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"08084062-18bf-4ae6-b3de-268e5ffabb62\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-p8vt/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-p8vt.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-p8vt.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-xawq\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"a74cba9b-5d63-4753-a31f-feb7699abca7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-xawq.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-xawq.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json index 5d81b8659855..e36ac7963b95 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json @@ -1,13 +1,13 @@ { - "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/frontendEndpoints?api-version=2021-06-01+1": { + "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/frontendEndpoints?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/frontendEndpoints?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/frontendEndpoints?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "d627237b-7c1b-4aea-bcf1-4a8f3580ae07" ], + "x-ms-client-request-id": [ "fe00241d-5aa0-402c-aed3-4d0b4daa0493" ], "CommandName": [ "Get-AzFrontDoorFrontendEndpoint" ], "FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,24 +23,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "393cca04-eec9-49bf-93b0-fafebf21af02" ], - "x-ms-client-request-id": [ "d627237b-7c1b-4aea-bcf1-4a8f3580ae07" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/11da3809-0b64-4ba9-a89e-daf47f772447" ], + "x-ms-request-id": [ "48a59bed-14f3-487a-b151-c6caf174d73c" ], + "x-ms-client-request-id": [ "fe00241d-5aa0-402c-aed3-4d0b4daa0493" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a1ea8778-5ca1-43f4-bf19-2c2b05d0b43c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "758f2e42-c720-4185-9e43-639ff4161e40" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061620Z:758f2e42-c720-4185-9e43-639ff4161e40" ], + "x-ms-correlation-request-id": [ "c48a1a6e-b356-4309-bfb4-54c106692c09" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090729Z:c48a1a6e-b356-4309-bfb4-54c106692c09" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B532421F8E1D491E9E9FFC300FC16367 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:19Z" ], - "Date": [ "Tue, 14 Oct 2025 06:16:19 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 6F8F3B78294B4375BD6251880E0EBE1B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:28Z" ], + "Date": [ "Tue, 14 Oct 2025 09:07:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-p8vt.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-xawq.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json index 95caacddc528..c2c5fd9f48dd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json @@ -7,7 +7,7 @@ "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "a13a30bc-d71a-4b0e-b1d0-13d037a39b6e" ], + "x-ms-client-request-id": [ "4ea0d9dc-3d4d-48e1-afd1-5e4a671a2c9f" ], "CommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition" ], "FullCommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,17 +23,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "27c417a6-4f99-4097-984a-4aa1ef8fecf2" ], - "x-ms-client-request-id": [ "a13a30bc-d71a-4b0e-b1d0-13d037a39b6e" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f2841983-eb02-4e31-a760-e51a78529477" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "f77f4684-5c26-42f1-bbd3-86f3eb290962" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061621Z:f77f4684-5c26-42f1-bbd3-86f3eb290962" ], + "x-ms-request-id": [ "1a1f738c-e5bf-4172-94f0-cc2385960ff3" ], + "x-ms-client-request-id": [ "4ea0d9dc-3d4d-48e1-afd1-5e4a671a2c9f" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cee9e9f1-d3ea-4afe-a8c1-20ebc3739029" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "95648f7b-e4f4-48b6-9aac-eaea583d5009" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090731Z:95648f7b-e4f4-48b6-9aac-eaea583d5009" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8D00B97EAEF54C3FB5DBEE607D9B40CE Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:21Z" ], - "Date": [ "Tue, 14 Oct 2025 06:16:21 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 96A07EA43E8646FAA73C75D782A82FDF Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:30Z" ], + "Date": [ "Tue, 14 Oct 2025 09:07:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "162977" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json index 8fa64cfc7f2f..4e61966df893 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json @@ -1,13 +1,13 @@ { - "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+1": { + "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "a77ad8dd-57c1-4e5a-b60d-a70995efaef4" ], + "x-ms-client-request-id": [ "c179c599-cb28-4dd7-82a5-b84a13813c9a" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "87aab9b8-0a1b-4791-8c3a-9f3cfadf158e" ], - "x-ms-client-request-id": [ "a77ad8dd-57c1-4e5a-b60d-a70995efaef4" ], + "x-ms-request-id": [ "7175a89f-f3d1-47c4-9c3b-fdacfc841e43" ], + "x-ms-client-request-id": [ "c179c599-cb28-4dd7-82a5-b84a13813c9a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "3a6317ca-da87-4d36-a42c-b21842c324c5" ], - "x-ms-routing-request-id": [ "AUSTRALIAEAST:20251014T061624Z:3a6317ca-da87-4d36-a42c-b21842c324c5" ], + "x-ms-correlation-request-id": [ "518fc22f-09d4-473b-9d3d-42ebdf98a94a" ], + "x-ms-routing-request-id": [ "AUSTRALIAEAST:20251014T090733Z:518fc22f-09d4-473b-9d3d-42ebdf98a94a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A0034AB400DE4B90946EE1D542576557 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:22Z" ], - "Date": [ "Tue, 14 Oct 2025 06:16:23 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4B114541A29D429CB42F07DE48A304A6 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:31Z" ], + "Date": [ "Tue, 14 Oct 2025 09:07:33 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json index acfc3ce47d8a..a3d6e566f7c5 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+1": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,37 +18,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e7598043-10f0-49a2-8916-96ac8fed03f0" ], - "x-ms-client-request-id": [ "8cf9ea17-3535-41e9-859a-207bccf4aafb" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/329756c9-4e2b-411e-a551-68167b2e1a98" ], + "x-ms-request-id": [ "b659ae06-fc03-46d4-ab7a-aefc5cc7e9f8" ], + "x-ms-client-request-id": [ "02b88d32-95cc-4fbb-bae1-ddda27d41f27" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7dd632e6-958e-46b9-9d83-849c372321c3" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "985d097b-bf87-4e8a-bc33-9b27567894b1" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061633Z:985d097b-bf87-4e8a-bc33-9b27567894b1" ], + "x-ms-correlation-request-id": [ "7fc850b3-2e1f-4c0a-a32b-eba2e491ab26" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090742Z:7fc850b3-2e1f-4c0a-a32b-eba2e491ab26" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 98A8D492758E49709EA5C12D82720559 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:16:33Z" ], - "Date": [ "Tue, 14 Oct 2025 06:16:33 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D2048C4451E1403D90AE26EE02F2A0C6 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:42Z" ], + "Date": [ "Tue, 14 Oct 2025 09:07:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+2": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "8cf9ea17-3535-41e9-859a-207bccf4aafb" ], + "x-ms-client-request-id": [ "02b88d32-95cc-4fbb-bae1-ddda27d41f27" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -63,24 +63,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7fe79784-34be-4021-9692-00a9469a0179" ], - "x-ms-client-request-id": [ "8cf9ea17-3535-41e9-859a-207bccf4aafb" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/594b9b12-3e50-42ea-a3c1-257e53a70e6b" ], + "x-ms-request-id": [ "3bfb2de3-b76f-41a5-bbb0-fd661e9ec2fb" ], + "x-ms-client-request-id": [ "02b88d32-95cc-4fbb-bae1-ddda27d41f27" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d4680ed4-fa2a-443b-8f0b-049368ec926f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "f8f31226-662a-4047-be1e-d1b6d613369a" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061704Z:f8f31226-662a-4047-be1e-d1b6d613369a" ], + "x-ms-correlation-request-id": [ "39c23820-1872-4dcc-beef-3c4f467fd0da" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090813Z:39c23820-1872-4dcc-beef-3c4f467fd0da" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 04B49E0F5FFC4D07B28DA9D045059A21 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:04Z" ], - "Date": [ "Tue, 14 Oct 2025 06:17:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 671386FA06C0417FA37C18222571A7E8 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:13Z" ], + "Date": [ "Tue, 14 Oct 2025 09:08:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json index 982b0a106c74..2c14870190de 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json @@ -1,13 +1,13 @@ { - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01+1": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "73f329a2-3fa2-42f9-bd30-6ccb05fb393f" ], + "x-ms-client-request-id": [ "387012b3-2edf-4840-94be-3c61becf914a" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,28 +23,28 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "0e9e9316-053f-4705-b54c-552ae48fc95f" ], - "x-ms-correlation-request-id": [ "0e9e9316-053f-4705-b54c-552ae48fc95f" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061712Z:0e9e9316-053f-4705-b54c-552ae48fc95f" ], + "x-ms-request-id": [ "31ee8d53-ea55-4938-930d-8be56ec5ec2c" ], + "x-ms-correlation-request-id": [ "31ee8d53-ea55-4938-930d-8be56ec5ec2c" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090821Z:31ee8d53-ea55-4938-930d-8be56ec5ec2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D379E72FD215438CBEC45611DAFFE4AB Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:12Z" ], - "Date": [ "Tue, 14 Oct 2025 06:17:11 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 5B9366355BA14B11BEFB89904EF10700 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:21Z" ], + "Date": [ "Tue, 14 Oct 2025 09:08:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "257" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWaf6t4b\u0027 under resource group \u0027testps-rg-ahz7\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWaf4v2g\u0027 under resource group \u0027testps-rg-3fhp\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01+2": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -60,37 +60,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e07b4add-bc73-4903-bd04-4c09e066f521" ], - "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7c6c4d82-0789-4677-ac6d-af9e7e38d120" ], + "x-ms-request-id": [ "2ab524c6-66de-43a2-b22c-672b8a2e9666" ], + "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/19180361-9ecf-4503-b445-9ccd2bc106b7" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "0208674e-f966-4967-9d40-07f107fa499b" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061714Z:0208674e-f966-4967-9d40-07f107fa499b" ], + "x-ms-correlation-request-id": [ "84d95a51-ce0a-49ce-95de-d539f93565fd" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090823Z:84d95a51-ce0a-49ce-95de-d539f93565fd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A9A41EBF1B834E8B8319336C197A790C Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:12Z" ], - "Date": [ "Tue, 14 Oct 2025 06:17:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 97DEF278AC2943408D866D9A78B1B5E3 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:21Z" ], + "Date": [ "Tue, 14 Oct 2025 09:08:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf6t4b\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf6t4b\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf4v2g\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf4v2g\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01+3": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], + "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -105,36 +105,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8c396a4d-bf31-47b0-a187-b798194b5e7a" ], - "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], + "x-ms-request-id": [ "befdb8ad-8f5b-4d9a-a83d-ba95166fccd8" ], + "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "6fee8e92-1573-404e-9888-70d436df8087" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061745Z:6fee8e92-1573-404e-9888-70d436df8087" ], + "x-ms-correlation-request-id": [ "bfd35b15-f533-4a2d-af21-5ee47017ae6c" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090853Z:bfd35b15-f533-4a2d-af21-5ee47017ae6c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 1A07DA1DA55A4CC39AA6A4868829B7AB Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:44Z" ], - "Date": [ "Tue, 14 Oct 2025 06:17:44 GMT" ] + "X-MSEdge-Ref": [ "Ref A: CA0DC731CD2244F788D80F850C6A9C38 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:53Z" ], + "Date": [ "Tue, 14 Oct 2025 09:08:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf6t4b\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf6t4b\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf4v2g\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf4v2g\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01+4": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf6t4b?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], + "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -149,23 +149,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "232d47a5-0d20-42cb-8dc8-4a837d835745" ], - "x-ms-client-request-id": [ "f4013ea1-256b-43e9-b618-60d378419eb4" ], + "x-ms-request-id": [ "c896d4a9-67ef-4abb-a40f-ca248bde065d" ], + "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "900cbe0d-5c74-4fa7-8967-df6c5dfb4b12" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061745Z:900cbe0d-5c74-4fa7-8967-df6c5dfb4b12" ], + "x-ms-correlation-request-id": [ "0826686e-b919-40fc-b985-96e60e905b14" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090854Z:0826686e-b919-40fc-b985-96e60e905b14" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A806F544A8B64C29B43833A3A2A684E9 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:45Z" ], - "Date": [ "Tue, 14 Oct 2025 06:17:44 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 540965AB22D749E4B8D66802A5CA334A Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:54Z" ], + "Date": [ "Tue, 14 Oct 2025 09:08:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf6t4b\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf6t4b\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf4v2g\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf4v2g\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json index 5f8c5e12040e..6572b46ffa17 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json @@ -1,13 +1,13 @@ { - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01+1": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "1253325d-68ea-4ab9-82ff-9ea64e84e84d" ], + "x-ms-client-request-id": [ "0b60f8e2-ed4e-47d1-b10a-43995d171196" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,29 +23,29 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "284d17f9-dc8d-4567-bcde-ee40602d8499" ], - "x-ms-correlation-request-id": [ "284d17f9-dc8d-4567-bcde-ee40602d8499" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061747Z:284d17f9-dc8d-4567-bcde-ee40602d8499" ], + "x-ms-request-id": [ "3fa76b85-a1c5-4d90-8edd-36325dbf19d4" ], + "x-ms-correlation-request-id": [ "3fa76b85-a1c5-4d90-8edd-36325dbf19d4" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090856Z:3fa76b85-a1c5-4d90-8edd-36325dbf19d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 28711777B71840FEBC712D8A811E4395 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:46Z" ], - "Date": [ "Tue, 14 Oct 2025 06:17:46 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 38E2AAE4B582413F978A39F1FB27C5D9 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:56Z" ], + "Date": [ "Tue, 14 Oct 2025 09:08:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "229" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-1lai\u0027 under resource group \u0027testps-rg-ahz7\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-dker\u0027 under resource group \u0027testps-rg-3fhp\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01+2": { + "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-1lai.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-dker.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -61,38 +61,38 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "78a2ab6e-7d25-430a-bed0-8d247f3928ff" ], - "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ah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PJ7BQa4gJfXopIs5RXYLrUYLnQzsXnqXnyvTvKbaIYBUuWfLytGineJzYWgtHApihbObhZmxX6VH7b-c1RAbNilh8mwgJLUgCgF1ZIJYcRxfF4G3E3hA_SM_46ZJUUQVpkCHR5pcavhpxAbRzPxoY2RFw_iQLAgurowumOVZuvtDRmgrLLE0AVU_Na78ZHNMyw2bcmQN9Yfw\u0026h=1ONm3pSpVSZ9R_t5tUHvWNcjEKY39lYVcD9XP8fDN_k" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ed431853-afb4-451a-a4c9-cc1a4a25ca49" ], + "x-ms-request-id": [ "9985816a-3157-4210-a20b-25d88ed16011" ], + "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/9c2ba120-fa82-42e6-abf8-7b657850656a?api-version=2021-06-01\u0026t=638960297386328239\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKL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cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=dAsfZsBcOREyX9vqz_p884MgUGgQzGDGOlijUbRMgFwvVnFFS7337MvD9Z0NqPWZdt972S1WelCt5AH5cfMFNWfwP8XjgdQCGd2OGfrsFAyfIV7Ot7ANINY0N4Q1FaVmLJzGH8HgoS3fXR56RKmSciXOCBhoUF9wUPnfuz135S6wQm2s0EsaUq_bc1c_Tx-RN2VA6mghkm-R3PD2YBi431jaMut8sKKnpp5XGRR2d7f1mXnrt1H9naZGdVejd254oSaQcywaQC15yRxUm2_ohf2otxqteaXzdU0NGR3VVF_p1dM2eKw2i1rhD9ff9iTIXeZ0fOoe-y-tBTkPS6jI-A\u0026h=0WFxXgmXyaWJjgxOicZrmoeEiLtvLJAVL9l5nIlt6yY" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d0c69c2f-e96c-472d-b11d-e8d15d1817e0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "dd173e7e-6559-429b-a88d-6b5b195e43e8" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061749Z:dd173e7e-6559-429b-a88d-6b5b195e43e8" ], + "x-ms-correlation-request-id": [ "3d7d8236-cba2-46d2-ae68-162aa0cf1a14" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090858Z:3d7d8236-cba2-46d2-ae68-162aa0cf1a14" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: EE0DA24BC24A41CFA128FA77ADCD78BF Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:17:47Z" ], - "Date": [ "Tue, 14 Oct 2025 06:17:49 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 90905266257C47F7898C5B4EC15791ED Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:56Z" ], + "Date": [ "Tue, 14 Oct 2025 09:08:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-1lai\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-1lai\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"b8460287-80a8-43ee-af37-4db66d893126\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-1lai.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-1lai.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-dker\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-dker\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"6aad43fe-65f1-4a10-ad86-dae4e00762d5\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-dker.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-dker.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/91bc9918-75f4-4798-8452-b4ace8fd5399?api-version=2021-06-01\u0026t=638960194698471282\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ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_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=giu6gC1O37vpLvttSed4-AUXpWFIUwm6oph7krXZcHyTIFgaJZmbInVIuP4fbjSA9fRq1JJZ-EMZ3_7PEP2hiE4e7AVZBOTEkQcdaKFxCH0a9rsw_rJNCRZvoxT4UNbBZ1L1HXteLfPJ7BQa4gJfXopIs5RXYLrUYLnQzsXnqXnyvTvKbaIYBUuWfLytGineJzYWgtHApihbObhZmxX6VH7b-c1RAbNilh8mwgJLUgCgF1ZIJYcRxfF4G3E3hA_SM_46ZJUUQVpkCHR5pcavhpxAbRzPxoY2RFw_iQLAgurowumOVZuvtDRmgrLLE0AVU_Na78ZHNMyw2bcmQN9Yfw\u0026h=1ONm3pSpVSZ9R_t5tUHvWNcjEKY39lYVcD9XP8fDN_k+3": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/9c2ba120-fa82-42e6-abf8-7b657850656a?api-version=2021-06-01\u0026t=638960297386328239\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhc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+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/91bc9918-75f4-4798-8452-b4ace8fd5399?api-version=2021-06-01\u0026t=638960194698471282\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHR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uP4fbjSA9fRq1JJZ-EMZ3_7PEP2hiE4e7AVZBOTEkQcdaKFxCH0a9rsw_rJNCRZvoxT4UNbBZ1L1HXteLfPJ7BQa4gJfXopIs5RXYLrUYLnQzsXnqXnyvTvKbaIYBUuWfLytGineJzYWgtHApihbObhZmxX6VH7b-c1RAbNilh8mwgJLUgCgF1ZIJYcRxfF4G3E3hA_SM_46ZJUUQVpkCHR5pcavhpxAbRzPxoY2RFw_iQLAgurowumOVZuvtDRmgrLLE0AVU_Na78ZHNMyw2bcmQN9Yfw\u0026h=1ONm3pSpVSZ9R_t5tUHvWNcjEKY39lYVcD9XP8fDN_k", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/9c2ba120-fa82-42e6-abf8-7b657850656a?api-version=2021-06-01\u0026t=638960297386328239\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic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BwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=dAsfZsBcOREyX9vqz_p884MgUGgQzGDGOlijUbRMgFwvVnFFS7337MvD9Z0NqPWZdt972S1WelCt5AH5cfMFNWfwP8XjgdQCGd2OGfrsFAyfIV7Ot7ANINY0N4Q1FaVmLJzGH8HgoS3fXR56RKmSciXOCBhoUF9wUPnfuz135S6wQm2s0EsaUq_bc1c_Tx-RN2VA6mghkm-R3PD2YBi431jaMut8sKKnpp5XGRR2d7f1mXnrt1H9naZGdVejd254oSaQcywaQC15yRxUm2_ohf2otxqteaXzdU0NGR3VVF_p1dM2eKw2i1rhD9ff9iTIXeZ0fOoe-y-tBTkPS6jI-A\u0026h=0WFxXgmXyaWJjgxOicZrmoeEiLtvLJAVL9l5nIlt6yY", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], + "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -107,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f4abf3e5-b614-495a-a00f-99445a9840be" ], - "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/51904d86-271e-4e22-bd4e-b8a51ba154fb" ], + "x-ms-request-id": [ "c2e1a14c-90cf-4f8e-8af8-f5bec10e3ea4" ], + "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/94033c87-55fa-46f0-a8e5-6db8fdebfb28" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "48301b20-6618-45f3-b874-7fc6bc16af65" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061800Z:48301b20-6618-45f3-b874-7fc6bc16af65" ], + "x-ms-correlation-request-id": [ "31f6766c-f1d2-41f4-b652-40c2f6e70250" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090909Z:31f6766c-f1d2-41f4-b652-40c2f6e70250" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 9EF40E2F1D4847588159080BD884C7F8 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:18:00Z" ], - "Date": [ "Tue, 14 Oct 2025 06:18:00 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C2CCDFB304C04A398C2D250FF42EA7B1 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:09:08Z" ], + "Date": [ "Tue, 14 Oct 2025 09:09:09 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -128,16 +128,16 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01+4": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], + "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -152,35 +152,35 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "222db80b-a30b-45ff-a271-f6e86c0bc871" ], - "x-ms-client-request-id": [ "77c43eb7-994d-44b2-a152-1ed68881d993" ], + "x-ms-request-id": [ "7c9f12ae-7b15-4a7e-bf3e-62297696fd96" ], + "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "170eb085-4543-4902-a9a4-d550ef5e3abe" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061801Z:170eb085-4543-4902-a9a4-d550ef5e3abe" ], + "x-ms-correlation-request-id": [ "da2bcd39-613e-4641-82ba-ecbde2e550a2" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090909Z:da2bcd39-613e-4641-82ba-ecbde2e550a2" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: AC6465C7713740E49FD41184D9A46218 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:18:00Z" ], - "Date": [ "Tue, 14 Oct 2025 06:18:00 GMT" ] + "X-MSEdge-Ref": [ "Ref A: EF2009DAB6874D7FB43EED320344F26B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:09:09Z" ], + "Date": [ "Tue, 14 Oct 2025 09:09:09 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-1lai\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-1lai\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"b8460287-80a8-43ee-af37-4db66d893126\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-1lai/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-1lai.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-1lai.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-dker\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-dker\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"6aad43fe-65f1-4a10-ad86-dae4e00762d5\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-dker.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-dker.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01+5": { + "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-1lai?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -195,21 +195,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83/frontdoorresults/testps-fd-1lai?api-version=2021-06-01\u0026t=638960195026954345\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMB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Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=NnXRD0OzcruqPLHosrk3wc_u79DM7jaUuH2jMRpLWHdPrtzK6LamQ6uedfqdZsxFqJcwf1xnzCfEaQwjhsgZo21vb-HQ38mpJzo8aFTrCrXUJXzjUNfPLnWTZ9--AidYM5mQA-yhxXyn6RnPb5jQPQVwDXhTmp2zhIR1aop8fhjjc2Htz6j5CL-ngeQp4JG_46Hs-zjyBoi9lGtUR9jTZyfNWKpldWPWG9hD0EN1U5XX5qWo3IcVh308_CvtdU8_JP29x8YCKPiQG6NEDmqlLiR4v7QrXL6Ok5VEvtzqkidXPTVWg2aYcjAiG99ZLQM1qpdRV-SwlhvKYN9mfWUFpA\u0026h=0Zi8sjE3VzImnCiklxC--MLioTy_LXOvaOPZsH5uQEU" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6/frontdoorresults/testps-fd-dker?api-version=2021-06-01\u0026t=638960297712317926\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0g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Sol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=ZqpLUHP-B2tNwdrkN_IbLzldM3fDlqXDw3-afStdUSswqaLlUDt1GqsVu7d3tKG8HIgHYH7WoNJTJwfKPp8Ec5UOPvHQ7vJWymgFN71Z10gfRav6lbXknFhH1YooHgB_CqGb45jOcXWEkl-89lOeMi3o_3y2F3id67KxPMe-Caop-PMZ0ry7OlPAYhB0tco-W-4hAVVtni2pNDifgCgzxMx8_Gr4bjHIQ15SmJAU_UHI9zehwCWzqZsESeHqpDOydSsMp19NWH92eCO239C7MndBCv5o2rD-Kr5DWapnCpaaWcV0k20RFOGYqk8onCUvzbWsCC4sNxZf-hDCrVbooA\u0026h=BYA4K9s8Dc-sy9s1GTKT6vGgaPvppn_rcb1ZR4rpQzg" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "570b1f1c-10fb-40f9-bdb4-90f5721a790c" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-r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ifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e3f06bf1-3b7c-403f-a4fa-395e0554d7ba" ], + "x-ms-request-id": [ "849ba456-b282-4421-b684-1da2a0adb2a6" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQT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LxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/53671f07-486e-414a-bf87-d181e1ed9d26" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "adbce328-116c-4b1c-9917-ce827cd469b0" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061822Z:adbce328-116c-4b1c-9917-ce827cd469b0" ], + "x-ms-correlation-request-id": [ "bed45c6b-aa52-4c9b-80bf-195e31c6549a" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090931Z:bed45c6b-aa52-4c9b-80bf-195e31c6549a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: BBDAC524935F43DFB86D91E5E505B5A4 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:18:21Z" ], - "Date": [ "Tue, 14 Oct 2025 06:18:22 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C7C7B2F8741B414797B322FFD8EF59DA Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:09:29Z" ], + "Date": [ "Tue, 14 Oct 2025 09:09:31 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -219,16 +219,16 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8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biR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+6": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1V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PXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwP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Nw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxb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6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -243,17 +243,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "3403f6a1-7f9f-46e4-9493-37c9e12e6c69" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/9398ab98-c3f8-4968-9780-259b8975461f" ], + "x-ms-request-id": [ "c3176b77-2348-4471-bfb4-a601ef6a60d7" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/18137d01-c32f-4d04-b390-888ec86da76b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "37e6c65c-f8d1-429c-877c-b484da004ed7" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061833Z:37e6c65c-f8d1-429c-877c-b484da004ed7" ], + "x-ms-correlation-request-id": [ "2fd4e7ae-610d-4973-8b46-3a1cc65e9433" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T090941Z:2fd4e7ae-610d-4973-8b46-3a1cc65e9433" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 80F5C35E463C4086B3C818BB07E85B25 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:18:32Z" ], - "Date": [ "Tue, 14 Oct 2025 06:18:32 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E2831E45356D487EAEC0C273772478CE Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:09:41Z" ], + "Date": [ "Tue, 14 Oct 2025 09:09:41 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -264,16 +264,16 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwgg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O1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+7": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3S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7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0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Cpz90UYE-iqPHQ", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHR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oEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -288,17 +288,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c1556cb2-a210-4e3e-8c00-cfe7b051ae67" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c42ecc9b-0a84-4ca7-86af-f908bb3fb264" ], + "x-ms-request-id": [ "cd48c95b-e713-4439-b411-6ea71454785a" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cb4d205d-e241-4d3e-b68c-e203590e44e0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "827c6d1e-37b0-4ee5-915a-b52f1682c5d4" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061903Z:827c6d1e-37b0-4ee5-915a-b52f1682c5d4" ], + "x-ms-correlation-request-id": [ "1ed2a099-09cc-4adf-91c4-ee30d17166e6" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091012Z:1ed2a099-09cc-4adf-91c4-ee30d17166e6" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 22E99ED09B5B4DB396D04526DF8D965F Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:19:03Z" ], - "Date": [ "Tue, 14 Oct 2025 06:19:03 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B5C851BC46A343B0A978AB4189570641 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:10:12Z" ], + "Date": [ "Tue, 14 Oct 2025 09:10:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -309,16 +309,16 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZX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-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvbW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07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p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jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2Vt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0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -333,17 +333,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7140cd6b-7705-4bc9-ab8e-e1b378f8aa76" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/42b8f093-44b1-4766-8b1e-462193bfd390" ], + "x-ms-request-id": [ "f844cf2e-ae7c-4c13-a96d-3f4a3c3a9325" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1a6c9474-ef6a-4c83-b1be-b3402ff280b8" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ba7b6077-cb69-43a0-94cd-a54022f19c90" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T061934Z:ba7b6077-cb69-43a0-94cd-a54022f19c90" ], + "x-ms-correlation-request-id": [ "5bd44ab1-e412-4eeb-99e6-407355f14ae2" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091043Z:5bd44ab1-e412-4eeb-99e6-407355f14ae2" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 6AF4EE9C0F9F4FB9A28560405E594A92 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:19:34Z" ], - "Date": [ "Tue, 14 Oct 2025 06:19:33 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E1F392FFC49544468F5C3AB64CF79F34 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:10:42Z" ], + "Date": [ "Tue, 14 Oct 2025 09:10:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -354,16 +354,16 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV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SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+9": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADgg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2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=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N_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgj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yc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -378,17 +378,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "2b23fe79-9311-477a-a697-2b112c06483b" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0848a483-8ed6-4ead-bc4f-dc94443398a6" ], + "x-ms-request-id": [ "f2ff38d6-e29f-429d-9a8a-29af4676e7c8" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/5a4fd55d-4ce3-4e13-af58-57eba6ec0b88" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "02db8b1e-5bf1-40bc-83f4-56f6684dda4d" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062005Z:02db8b1e-5bf1-40bc-83f4-56f6684dda4d" ], + "x-ms-correlation-request-id": [ "2609c257-9c22-4d20-8fde-edb0e4aed026" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091113Z:2609c257-9c22-4d20-8fde-edb0e4aed026" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: DA46C570C8B94DC5A2918F47096FC389 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:20:05Z" ], - "Date": [ "Tue, 14 Oct 2025 06:20:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 19F96FC993194AE1875F80B439E2183B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:11:13Z" ], + "Date": [ "Tue, 14 Oct 2025 09:11:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -399,16 +399,16 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w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20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+10": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGC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9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yR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WxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKC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o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -423,17 +423,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b49f6d21-18ab-4a98-b63a-154ddedf6e80" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/62761f44-ab02-4589-9fb2-c96a107d92ca" ], + "x-ms-request-id": [ "f0a18983-a7b8-47cf-86a8-4be43cf18253" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/dce223de-2d94-4e9c-9ed2-8259a055f96d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "4736e5fc-9221-4866-9e8a-85ba855557c1" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062036Z:4736e5fc-9221-4866-9e8a-85ba855557c1" ], + "x-ms-correlation-request-id": [ "ead0727c-c818-4873-a6e6-ffb7bbdfdce8" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091144Z:ead0727c-c818-4873-a6e6-ffb7bbdfdce8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 9D777D35ED844775853C9CC326307A18 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:20:35Z" ], - "Date": [ "Tue, 14 Oct 2025 06:20:35 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4D8669D4B4D446D88C292AEC3DC33E4B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:11:44Z" ], + "Date": [ "Tue, 14 Oct 2025 09:11:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -444,16 +444,16 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkH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i0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+11": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMD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SDfRcw6n3wH8dM+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGg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BLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH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9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -468,17 +468,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6a9e4bb6-eb9b-49fd-a0e5-4b955b240b7a" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f19f757f-886c-4f08-8eaf-625c25d853ed" ], + "x-ms-request-id": [ "31b5272f-3969-41d9-a2cd-63b55ef84e83" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3f86bae5-2fa9-4569-b482-a8cfc7513591" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "cbce74d0-4ce9-4628-854d-b92dedb19292" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062107Z:cbce74d0-4ce9-4628-854d-b92dedb19292" ], + "x-ms-correlation-request-id": [ "7cce3c8a-c4f5-4839-be4c-65d1b7f444b8" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091215Z:7cce3c8a-c4f5-4839-be4c-65d1b7f444b8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E1635D90BC0447E89A04124CA430A771 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:06Z" ], - "Date": [ "Tue, 14 Oct 2025 06:21:07 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 3609F65EDFE44FA3A5E84891218064E4 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:15Z" ], + "Date": [ "Tue, 14 Oct 2025 09:12:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -489,16 +489,16 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvbWVsMDF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8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ+12": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQ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VjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/e4a58e63-157c-4805-9d5b-0ee8bc9e4b83?api-version=2021-06-01\u0026t=638960195026797517\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZ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VPGF7VZHrEHKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=PQUyO1CCIDDyne-vVwMVsSmrmbw2xW1dBLic4h6XW09PoZJdqy2CxPjdkowV0iOisADvruPrgn24kS2Wc9bFA3QxPvojYNvK8XgJB8R8_fQCi0-K8yVDZJHYN4aqIlHWTjsnUifmQ6mW_JpINPclQ5FDDTQ-uojsLLUCrZV34EH6jZBTijyYZUG_MKXVJfUs5woaLRODHN_2zvzniNr9TlRqenShfU-nqZcDwzjQUvp1yglvpHDJbiLEI47VxkM1Bd5z9TYMisq3LcYYb8qigbfzB2bwd20ZP5iyeBlRuuFN8wX3iCJVZv1m0MR-b5rQ_W8ymDaQ3KYDHQR7zc1eew\u0026h=B7F6vZUZe6Q7kKNb6S-2Wkipa6nB7Cpz90UYE-iqPHQ", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/front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agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -513,17 +513,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8095ccdc-7b3d-455d-8890-fe7203a20455" ], - "x-ms-client-request-id": [ "678c592c-99e5-40f5-a844-2a2dc30b3072" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b9eb6aed-95a9-494e-9960-520a61e8d71c" ], + "x-ms-request-id": [ "8bb42389-845f-441f-9331-f27fdf512af5" ], + "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7972a7ee-3712-4669-a3eb-035857481a08" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e206da55-90ab-4d10-ae76-7cfcdc208fd5" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062108Z:e206da55-90ab-4d10-ae76-7cfcdc208fd5" ], + "x-ms-correlation-request-id": [ "be359131-c1e0-45e3-9046-ad9bbcc6abd6" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091216Z:be359131-c1e0-45e3-9046-ad9bbcc6abd6" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D3699C62C6B348EF99D039CB68DF9B9F Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:07Z" ], - "Date": [ "Tue, 14 Oct 2025 06:21:08 GMT" ] + "X-MSEdge-Ref": [ "Ref A: BC4ED4A85650458B89C2296459DF3F72 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:15Z" ], + "Date": [ "Tue, 14 Oct 2025 09:12:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json index 1d5f3eec9fc8..002c89267f09 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01+1": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,37 +18,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "354f93fe-cfe1-4800-b2ab-c3bec0ab02b1" ], - "x-ms-client-request-id": [ "1571b319-ce8f-44af-a161-9a43cbdc254d" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/bf706e88-8729-41a3-a445-754675e17d94" ], + "x-ms-request-id": [ "1466f722-74f6-4636-beb4-c854cdce7b34" ], + "x-ms-client-request-id": [ "a4ffc108-e8ba-457d-a8d3-b7ddb7110f97" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f2a0fc63-d405-44e5-8c78-d8f9fb6abac7" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "dc95288d-5a11-4f76-8019-e9d1803a25d7" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062111Z:dc95288d-5a11-4f76-8019-e9d1803a25d7" ], + "x-ms-correlation-request-id": [ "45c43ebd-072c-4fb1-8914-410167303559" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091218Z:45c43ebd-072c-4fb1-8914-410167303559" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: DBCF117D9C9F488BBA0AEFFF6CA80F33 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:09Z" ], - "Date": [ "Tue, 14 Oct 2025 06:21:11 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A0AC8B439FCD4767B88D86918681008B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:18Z" ], + "Date": [ "Tue, 14 Oct 2025 09:12:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01+2": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "1571b319-ce8f-44af-a161-9a43cbdc254d" ], + "x-ms-client-request-id": [ "a4ffc108-e8ba-457d-a8d3-b7ddb7110f97" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -63,36 +63,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "163215e8-a595-446f-89ce-62e2edbaf571" ], - "x-ms-client-request-id": [ "1571b319-ce8f-44af-a161-9a43cbdc254d" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3510b98b-515e-49fe-a2ba-536aa16a6cdf" ], + "x-ms-request-id": [ "229952ac-3dff-477f-9ba8-ececd85b3b01" ], + "x-ms-client-request-id": [ "a4ffc108-e8ba-457d-a8d3-b7ddb7110f97" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/fa1aca52-ad02-4780-a1a1-80676ca58572" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "80ba111d-8c99-4c28-ae7c-9912f8d0c1b5" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062142Z:80ba111d-8c99-4c28-ae7c-9912f8d0c1b5" ], + "x-ms-correlation-request-id": [ "6af30862-25e1-4f64-bbb1-eade38e1388a" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091249Z:6af30862-25e1-4f64-bbb1-eade38e1388a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8974AC1C6C7D4A6F985058500746EF4B Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:41Z" ], - "Date": [ "Tue, 14 Oct 2025 06:21:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F8186429BC5840669FCC7BCFADF91AFB Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:49Z" ], + "Date": [ "Tue, 14 Oct 2025 09:12:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01+3": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "157f2308-b883-4a14-9ca9-d1926cf9dad7" ], + "x-ms-client-request-id": [ "5cd5df69-2e4f-4583-97d4-f040ffada2a6" ], "CommandName": [ "Remove-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Remove-AzFrontDoorRulesEngine_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -108,17 +108,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "05184b44-9789-4e17-b286-0b99059ee712" ], - "x-ms-client-request-id": [ "157f2308-b883-4a14-9ca9-d1926cf9dad7" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f99a1c42-bc52-4b7c-ba95-936584ce032b" ], + "x-ms-request-id": [ "eb7a7e80-af78-47d7-a1fd-157820c07846" ], + "x-ms-client-request-id": [ "5cd5df69-2e4f-4583-97d4-f040ffada2a6" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6baf8e9b-d24c-490b-945e-e1d8ff3b01dc" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "a3602c2f-dc3a-4f9d-9c2d-38ac5074e93e" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062143Z:a3602c2f-dc3a-4f9d-9c2d-38ac5074e93e" ], + "x-ms-correlation-request-id": [ "c3fd8934-adda-4b08-a7c8-7f7432e76380" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091250Z:c3fd8934-adda-4b08-a7c8-7f7432e76380" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 848113D4C18448F381543516FB610E55 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:42Z" ], - "Date": [ "Tue, 14 Oct 2025 06:21:43 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 374FC9D122734E42BAA77B0E2324C4FA Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:49Z" ], + "Date": [ "Tue, 14 Oct 2025 09:12:49 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json index b67e78ee7294..6a03f229844c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json @@ -1,13 +1,13 @@ { - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+1": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "6883349f-0e5d-4991-8d09-80fb36e583ee" ], + "x-ms-client-request-id": [ "b52c3ddd-9bc8-49e7-9b53-b9a501dbce48" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,28 +23,28 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "f066184c-a26d-4905-a3a5-eef831601931" ], - "x-ms-correlation-request-id": [ "f066184c-a26d-4905-a3a5-eef831601931" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062143Z:f066184c-a26d-4905-a3a5-eef831601931" ], + "x-ms-request-id": [ "a9983fb7-667e-4a8e-8401-620ad5d5aa2e" ], + "x-ms-correlation-request-id": [ "a9983fb7-667e-4a8e-8401-620ad5d5aa2e" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091251Z:a9983fb7-667e-4a8e-8401-620ad5d5aa2e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B27680AE81D242FAB49762C4765638FF Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:43Z" ], - "Date": [ "Tue, 14 Oct 2025 06:21:43 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 06F05102DA024EEC9329F256D0BED5DA Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:51Z" ], + "Date": [ "Tue, 14 Oct 2025 09:12:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "257" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafwxgy\u0027 under resource group \u0027testps-rg-ahz7\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafqdpz\u0027 under resource group \u0027testps-rg-3fhp\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+2": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -60,37 +60,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "95a6759f-829d-4fcf-97aa-d6169b078722" ], - "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/83e4216c-8b9a-47c9-96b1-cdf14905bdf8" ], + "x-ms-request-id": [ "0e589328-1081-442e-9270-0340c5ca1427" ], + "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/039f0c7c-6369-4947-b0e3-5cffbf4e66d7" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "eca80b98-b203-4e57-ab85-a0bc5553dcc8" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062145Z:eca80b98-b203-4e57-ab85-a0bc5553dcc8" ], + "x-ms-correlation-request-id": [ "6f0ee4a9-6dbe-4294-863c-8e548ad7181c" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091253Z:6f0ee4a9-6dbe-4294-863c-8e548ad7181c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 257CBB1DB3994B17BD6D8F8D44105742 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:21:44Z" ], - "Date": [ "Tue, 14 Oct 2025 06:21:45 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D8B056F839C442838B4255C7FDDC3F9F Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:51Z" ], + "Date": [ "Tue, 14 Oct 2025 09:12:52 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafwxgy\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafwxgy\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqdpz\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqdpz\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+3": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], + "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -105,36 +105,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a4c52896-f426-47ca-8553-0b0412678f64" ], - "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], + "x-ms-request-id": [ "b4dce9da-435e-4fa3-9091-d2e429e5c253" ], + "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "faad711a-2566-46f2-b3f3-21bbbcef0db9" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062216Z:faad711a-2566-46f2-b3f3-21bbbcef0db9" ], + "x-ms-correlation-request-id": [ "3b380d86-da93-4f97-bc8b-56e20f22c5f5" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091324Z:3b380d86-da93-4f97-bc8b-56e20f22c5f5" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C0D4EF29B8714880B024CBE597FF5348 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:16Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:16 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 25E7E5A122B54CB0B9209F12C6361DB8 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:23Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafwxgy\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafwxgy\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqdpz\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqdpz\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+4": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], + "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -149,35 +149,35 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "89bd7029-70c1-49dc-8726-99099c67bd78" ], - "x-ms-client-request-id": [ "1504ca42-7d96-482c-8daa-45cee47b00e7" ], + "x-ms-request-id": [ "77496f43-516e-45f3-afd7-c71490701846" ], + "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "27136018-d090-41cd-a844-3394f5fa1235" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062217Z:27136018-d090-41cd-a844-3394f5fa1235" ], + "x-ms-correlation-request-id": [ "73fc23c1-fae3-48ec-af49-6afcf5a3c046" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091324Z:73fc23c1-fae3-48ec-af49-6afcf5a3c046" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 83E84745A06E46738E38D7AD490600C5 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:16Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:17 GMT" ] + "X-MSEdge-Ref": [ "Ref A: CC31A28DB7B044E295388093792862C7 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:24Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafwxgy\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafwxgy\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqdpz\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqdpz\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01+5": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafwxgy?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "ac190c57-d65d-417b-8ed3-1c084fc35f22" ], + "x-ms-client-request-id": [ "9e301d46-4622-4155-98cc-89468bf18518" ], "CommandName": [ "Remove-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Remove-AzFrontDoorWafPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -193,17 +193,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "50f9b648-e09e-44be-8c16-b42e8dfeb450" ], - "x-ms-client-request-id": [ "ac190c57-d65d-417b-8ed3-1c084fc35f22" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1205cd2c-b225-446a-b290-b2e32f2062b4" ], + "x-ms-request-id": [ "afef5168-b3be-49fe-bd72-c29e91fc53d1" ], + "x-ms-client-request-id": [ "9e301d46-4622-4155-98cc-89468bf18518" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d2d14173-112f-40ef-8200-e5c13584bd8e" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "2f2886b2-cc1b-4431-9c2d-3f078b38a612" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062218Z:2f2886b2-cc1b-4431-9c2d-3f078b38a612" ], + "x-ms-correlation-request-id": [ "6877096c-24cc-431b-b6ea-21836afddf16" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091325Z:6877096c-24cc-431b-b6ea-21836afddf16" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 278D80864DA24CB2849E6FBC7386EEDA Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:17Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:18 GMT" ] + "X-MSEdge-Ref": [ "Ref A: FF9512DB0CBF4838B9DC46119EF0B60D Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:24Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:25 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json index 723b72dcad53..e50f01be343e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json @@ -1,13 +1,13 @@ { - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+1": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "9c036116-5c04-42ba-8be8-de7889106f9a" ], + "x-ms-client-request-id": [ "3632993e-8ae6-458a-bff7-cddf1eb5ff72" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,29 +23,29 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "5091c73c-6339-4c7e-924d-582baf8202aa" ], - "x-ms-correlation-request-id": [ "5091c73c-6339-4c7e-924d-582baf8202aa" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062219Z:5091c73c-6339-4c7e-924d-582baf8202aa" ], + "x-ms-request-id": [ "c4826da8-0e22-4935-a924-9360c1d3dd53" ], + "x-ms-correlation-request-id": [ "c4826da8-0e22-4935-a924-9360c1d3dd53" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091326Z:c4826da8-0e22-4935-a924-9360c1d3dd53" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8B120486E001434D81BB702BFE70001D Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:19Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:19 GMT" ] + "X-MSEdge-Ref": [ "Ref A: FDC9F6EC95E54B4DBBD8AC36764E1E84 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:26Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "229" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-5cpo\u0027 under resource group \u0027testps-rg-ahz7\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-v92w\u0027 under resource group \u0027testps-rg-3fhp\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+2": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-5cpo.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-v92w.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -61,38 +61,38 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b7818e54-316c-46a6-9ea6-821d0c021219" ], - "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/4f1ad18d-4e94-47da-825a-7db786b1f840?api-version=2021-06-01\u0026t=638960197419435666\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBg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XMCDm1uXnfLC1E4XQ37fK25eDuT-8lW3KxLW6-SRw5E_GtrIXO1SvRSvh1cf8MUytyfYvPOjg\u0026h=Tew2NRrd1L209N1tyCHCj45_IBv4vS3Au9ReFZKPd-4" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e4643262-7bf4-4e2d-af0d-d80713dbfa03" ], + "x-ms-request-id": [ "b3c684f9-a74f-43fc-8ef2-9253a5d12769" ], + "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/504f9b9a-b0cb-4101-a741-ee7c1106fba9?api-version=2021-06-01\u0026t=638960300093800384\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB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qHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=P5BVjGsAjITbEyQCDKEOQiFcVF-IsUaXFDVfOvfNMtDD5uXDAOW1zZ4AkO4cvzL8XuXlk8IU0DnmhRkpwDcr5XG4cYRwWDl-H2X9WFEa9tlfc6o0YEW7Gkt3kgoTGK4qudSqr0o97L0wtVF-PwM9UBPo8rzF5dHbSW1wV_QdlFIQZliCiiHZ21CZKFGJ42IcpRACCJgOKKeB-WQmHzrmgZZJm8A61genCU8FFHa-Saa_UmekqSGJkvPEZktMn1H3hzopkx-pieUWEuFtQKJno-lKi7qMVIm74nbwAIvBNL8isMefMrMDE9aMsgFhRSpMZSz6bHS6u7CydzPkcYtxhw\u0026h=--NAfuYp5QqlrsTZJLwTIkErHI3iRHS893ccxdWIsrg" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6bf9bc05-9f42-4856-9c71-a0df22e25e38" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "238243ab-f629-4c88-b527-e373130d21f9" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062221Z:238243ab-f629-4c88-b527-e373130d21f9" ], + "x-ms-correlation-request-id": [ "734e7969-da26-441f-b7c1-6c2b359a2a78" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091329Z:734e7969-da26-441f-b7c1-6c2b359a2a78" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4D367292893B4E62B45FE0E9EC80501F Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:19Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:21 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 403C0DD4566547258863695A9AE53A22 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:26Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/4f1ad18d-4e94-47da-825a-7db786b1f840?api-version=2021-06-01\u0026t=638960197419435666\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3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uL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=hjKZGNlo3KNHgF9lzTfFFwXqO_jMffsZ0c6CuZwsEyFIoTEvdAgLJEqeZWVKSwYuWdnwC2ph5vd_fgNtqFu0H4gWCw5zvEVaqF8OlHC1csI9uPBvmkLIDv0RUclXHGV5KmIIPpZasPNk7JpINkS2Y3kNXooUIla5IkjCtvRbKbIzojMki66y4Oh3WGjf7mX1uOCwrt4-OokAmL_N0k9-XF8UWhfSAKnViIk1mj4bD9Ubb4iZewlX1CibC4g-p90okzrDz4-Ktyzn7XMCDm1uXnfLC1E4XQ37fK25eDuT-8lW3KxLW6-SRw5E_GtrIXO1SvRSvh1cf8MUytyfYvPOjg\u0026h=Tew2NRrd1L209N1tyCHCj45_IBv4vS3Au9ReFZKPd-4+3": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/504f9b9a-b0cb-4101-a741-ee7c1106fba9?api-version=2021-06-01\u0026t=638960300093800384\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5t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HKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=P5BVjGsAjITbEyQCDKEOQiFcVF-IsUaXFDVfOvfNMtDD5uXDAOW1zZ4AkO4cvzL8XuXlk8IU0DnmhRkpwDcr5XG4cYRwWDl-H2X9WFEa9tlfc6o0YEW7Gkt3kgoTGK4qudSqr0o97L0wtVF-PwM9UBPo8rzF5dHbSW1wV_QdlFIQZliCiiHZ21CZKFGJ42IcpRACCJgOKKeB-WQmHzrmgZZJm8A61genCU8FFHa-Saa_UmekqSGJkvPEZktMn1H3hzopkx-pieUWEuFtQKJno-lKi7qMVIm74nbwAIvBNL8isMefMrMDE9aMsgFhRSpMZSz6bHS6u7CydzPkcYtxhw\u0026h=--NAfuYp5QqlrsTZJLwTIkErHI3iRHS893ccxdWIsrg+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network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kNXooUIla5IkjCtvRbKbIzojMki66y4Oh3WGjf7mX1uOCwrt4-OokAmL_N0k9-XF8UWhfSAKnViIk1mj4bD9Ubb4iZewlX1CibC4g-p90okzrDz4-Ktyzn7XMCDm1uXnfLC1E4XQ37fK25eDuT-8lW3KxLW6-SRw5E_GtrIXO1SvRSvh1cf8MUytyfYvPOjg\u0026h=Tew2NRrd1L209N1tyCHCj45_IBv4vS3Au9ReFZKPd-4", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/504f9b9a-b0cb-4101-a741-ee7c1106fba9?api-version=2021-06-01\u0026t=638960300093800384\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-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_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=P5BVjGsAjITbEyQCDKEOQiFcVF-IsUaXFDVfOvfNMtDD5uXDAOW1zZ4AkO4cvzL8XuXlk8IU0DnmhRkpwDcr5XG4cYRwWDl-H2X9WFEa9tlfc6o0YEW7Gkt3kgoTGK4qudSqr0o97L0wtVF-PwM9UBPo8rzF5dHbSW1wV_QdlFIQZliCiiHZ21CZKFGJ42IcpRACCJgOKKeB-WQmHzrmgZZJm8A61genCU8FFHa-Saa_UmekqSGJkvPEZktMn1H3hzopkx-pieUWEuFtQKJno-lKi7qMVIm74nbwAIvBNL8isMefMrMDE9aMsgFhRSpMZSz6bHS6u7CydzPkcYtxhw\u0026h=--NAfuYp5QqlrsTZJLwTIkErHI3iRHS893ccxdWIsrg", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], + "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -107,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b2da8321-16f4-4057-98b1-4435225716c3" ], - "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d88aab42-4ae2-4451-8ca3-0683de19645f" ], + "x-ms-request-id": [ "c406255e-d18b-4ae0-9f69-115c843d50c4" ], + "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e6ceef5a-1ec4-4afd-9b26-408445de0956" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "5da5798c-483e-41ad-ba09-189ed0e6b9c8" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062232Z:5da5798c-483e-41ad-ba09-189ed0e6b9c8" ], + "x-ms-correlation-request-id": [ "01508f77-010d-4aab-aace-f670cc9e8366" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091339Z:01508f77-010d-4aab-aace-f670cc9e8366" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B754FCB525694C209EAF74D12B50C2A7 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:32Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:32 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C41300F17AD84AA7A041E6341A919E03 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:39Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -128,16 +128,16 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+4": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], + "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -152,35 +152,35 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "954bfb6c-ea7b-41ae-9775-007d555f0041" ], - "x-ms-client-request-id": [ "1b6cf005-5d43-4603-bd5e-d6dbf60f386d" ], + "x-ms-request-id": [ "bc44559b-ddf3-4ac8-b296-f7bf988a49c9" ], + "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "cd9622a3-a7f9-47a9-ba65-3cf40bfa2d6f" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062233Z:cd9622a3-a7f9-47a9-ba65-3cf40bfa2d6f" ], + "x-ms-correlation-request-id": [ "9be2b879-0aee-4ad9-92c9-c95f8cd10467" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091340Z:9be2b879-0aee-4ad9-92c9-c95f8cd10467" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 07B8822B5F424B1C9B70BE0C9AF75644 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:32Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:33 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D334F50BC6684D059EA6A286910877D7 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:39Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+5": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], + "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -196,31 +196,31 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d48dc6bd-f5b3-4b09-9e0a-7374c2a435a6" ], - "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "8906103b-a075-416e-9526-85ab7f2e7d93" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062234Z:8906103b-a075-416e-9526-85ab7f2e7d93" ], + "x-ms-request-id": [ "34d7bada-6e1e-4c60-bfb2-350c47b7b5f3" ], + "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "75cd63dc-784a-416d-bc3c-76fb8a4718cd" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091340Z:75cd63dc-784a-416d-bc3c-76fb8a4718cd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B7088A1746FB42EF82DCD3103E69A9C7 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:33Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:34 GMT" ] + "X-MSEdge-Ref": [ "Ref A: CB51C77BE05548A19A8E43FC34A821A9 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:40Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+6": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+6": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value3\",\r\n \"tag2\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-5cpo.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value3\",\r\n \"tag2\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-v92w.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -234,41 +234,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/365b5f4b-9944-4001-9173-35dddab7edef/frontdoorresults/testps-fd-5cpo?api-version=2021-06-01\u0026t=638960197564899577\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2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F7VZHrEHKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=ZuTTJs3S8TqzkOc_nAqaI8K6ilVJg6LtcnCTd_nq5i4ft8H05KVPjj9PDUNzSDRUEAWb9l9WBlHhskLkHYzEC7MVm0UulXxdcYXOm_QWSSHqsTtV25EGs1pHntT3Scfkee-raJS-AE8C9sypXJdOJHQazItnDYoMZ4sR7VQl3-FtoToev3vmGvXAMfHre0QY3RNigqHvaMVP1RPzhBv7JjZw4in66_IxUAYXOVDNf2x4UY8RGDrqBi4kpfyymtBpCiWwED-Wo7aFYek9b7y-nVg2ukxMt8ByWys3xyPOK2gdiHRikAloeIAU0tdwPXNEYc8M21jbp5ZmrtQy7BILHw\u0026h=blbY4oV2FuBouvlbKoXQIvIDPuNvV6gaUEKChL6Xsuw" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/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Knrjtvq6bppbYbPK1WkUExowiG0cjfAuPeRCS8uVzhI-3ydYWRL9MLNqV6j_I-KquobFqVBCgJ-Jb0OYIlhcCvY_yIyKHSHFKTaYD3U74o07ppZizyQsSGlB7wc49r0q7m4oM86OCNPiBlHenL4SvpJO-wVZjOmjpZtqaC3CnKpeHnmpRfu5yHCMlNC-PVmOFgHA\u0026h=opl2utipMoH17EOreE7a0Qsk6ShdYwuQkBaxqyEoPTM" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a585daaa-4cd2-4de4-ad52-2e91fcb8f684" ], - "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/365b5f4b-9944-4001-9173-35dddab7edef?api-version=2021-06-01\u0026t=638960197564743283\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaD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OgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=BNdJgcanOhLSul0yzdOxZ3gC51Pu4kaxsU1-k8OfTFuqXNiUkJUkts6-TFB0Xago0KhOnzehjtpOkMPB1abCIbFk29xToN0rV1oiuI8K59CqtGBky84s9DXaiEXvPy5JUSMDT5-07OjF2QHsvEKWmA59ZbZ1sMhKIRF0IZ3OyPxH2oK6hNuYcMRlJRMGvlZ8jLrqqThm8qLJLotPbvMhvtf_Fl0f6XVA98nvivIlv0d6tPHqP5HI3A1raHQF6US1NHQSsFAd6D7lfbcF-vEzycMpswLEYOnJ1nw6rj4zukzSIXnlUOCx3mLV-1txxDjqlv-FVztZeAJ910APa1qTKA\u0026h=fjnQRO27__O4h03A21JJhBo6_065T1BHNugRHHZXOd4" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1630c10e-254c-4c10-adfc-6aebd9e15567" ], + "x-ms-request-id": [ "6bc5ada4-dad5-405e-a28b-8831b3574daf" ], + "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/7457da67-11e1-415b-acaf-4bda3c9cde0c?api-version=2021-06-01\u0026t=638960300228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yG623ZTKIRvb9xseplXrYWTmi6fjFGlDcdBoHdc9IzByYxGytAW1J7mGGhXJxpcN9ZKLUo_wfNweDZ0WypJMbR2oms8MVKmjr0DuZ86viGB-wPWHb-uQ\u0026h=pRxQDzutFjBmnMFpIbX6gIw6jLpMZmfGi1UehGPYYBg" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/06babbd9-da7c-404a-b3d3-9e8166343bc6" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "5b45760a-c28f-4cf0-b2bb-870d36f8c812" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062236Z:5b45760a-c28f-4cf0-b2bb-870d36f8c812" ], + "x-ms-correlation-request-id": [ "b561a21e-4459-4cba-9990-e7ecd7852e78" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091342Z:b561a21e-4459-4cba-9990-e7ecd7852e78" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F10757907FD74F3C98D35B5E971C84CC Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:34Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:36 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 7AF274328ABA4EC3A6C48BD4C73A3DAC Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:40Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/365b5f4b-9944-4001-9173-35dddab7edef?api-version=2021-06-01\u0026t=638960197564743283\u0026c=MIIIrzCCBpegAwIBAgITUQ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I3A1raHQF6US1NHQSsFAd6D7lfbcF-vEzycMpswLEYOnJ1nw6rj4zukzSIXnlUOCx3mLV-1txxDjqlv-FVztZeAJ910APa1qTKA\u0026h=fjnQRO27__O4h03A21JJhBo6_065T1BHNugRHHZXOd4+7": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/7457da67-11e1-415b-acaf-4bda3c9cde0c?api-version=2021-06-01\u0026t=638960300228746028\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEw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VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=GE89H0UOqlgRapNqZvIQMusKDL8MxEnAQHlICq5Npc8m2RDd4ctaOOa3K4jJty_otredaDoavunSVhZsI-H3NwXoLAUokM1XThhlQxxnHD-kStGVsVthqC40CK9tufFjPZSWenR3uWYp1qDos8D1-csqqXDVT2G_5E4c1kmd7otd-MZKhsiwmkvDww3sfnOrD7xf3MJgBWrCuhKhyo8lS5amPRV7xwJq1NyG623ZTKIRvb9xseplXrYWTmi6fjFGlDcdBoHdc9IzByYxGytAW1J7mGGhXJxpcN9ZKLUo_wfNweDZ0WypJMbR2oms8MVKmjr0DuZ86viGB-wPWHb-uQ\u0026h=pRxQDzutFjBmnMFpIbX6gIw6jLpMZmfGi1UehGPYYBg+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdooroperationresults/365b5f4b-9944-4001-9173-35dddab7edef?api-version=2021-06-01\u0026t=638960197564743283\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvY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1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=BNdJgcanOhLSul0yzdOxZ3gC51Pu4kaxsU1-k8OfTFuqXNiUkJUkts6-TFB0Xago0KhOnzehjtpOkMPB1abCIbFk29xToN0rV1oiuI8K59CqtGBky84s9DXaiEXvPy5JUSMDT5-07OjF2QHsvEKWmA59ZbZ1sMhKIRF0IZ3OyPxH2oK6hNuYcMRlJRMGvlZ8jLrqqThm8qLJLotPbvMhvtf_Fl0f6XVA98nvivIlv0d6tPHqP5HI3A1raHQF6US1NHQSsFAd6D7lfbcF-vEzycMpswLEYOnJ1nw6rj4zukzSIXnlUOCx3mLV-1txxDjqlv-FVztZeAJ910APa1qTKA\u0026h=fjnQRO27__O4h03A21JJhBo6_065T1BHNugRHHZXOd4", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/7457da67-11e1-415b-acaf-4bda3c9cde0c?api-version=2021-06-01\u0026t=638960300228746028\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZP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0026h=pRxQDzutFjBmnMFpIbX6gIw6jLpMZmfGi1UehGPYYBg", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], + "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -283,17 +283,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "cdf212c1-c0fb-4223-9d51-109945ae89a0" ], - "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/737e4c40-80ec-43fb-862c-cea573c1942a" ], + "x-ms-request-id": [ "13ddfaa0-3da7-4ac8-95ba-a615fbf8c5a6" ], + "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6163eb53-79a2-42a9-9533-36eb2725499f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "f88356ae-3d88-46a8-bde6-1e29e1ae96db" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062247Z:f88356ae-3d88-46a8-bde6-1e29e1ae96db" ], + "x-ms-correlation-request-id": [ "a34858ce-cb64-48c0-94b6-60c728715f18" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091353Z:a34858ce-cb64-48c0-94b6-60c728715f18" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8133C00E3C1949319414A7405D24EDE0 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:46Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:47 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 892D9E7EB9DC402EA09003F60C9764F5 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:53Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:52 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -304,16 +304,16 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01+8": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], + "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -328,23 +328,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1b8d07cb-f6de-4774-8ff5-2454fdf87e35" ], - "x-ms-client-request-id": [ "84446034-a6d4-416a-a073-a89336a15d2c" ], + "x-ms-request-id": [ "b1483bf4-8306-49ee-81cf-27242746524f" ], + "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "81fae4b5-028a-42fa-9018-97a4f44021f9" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062247Z:81fae4b5-028a-42fa-9018-97a4f44021f9" ], + "x-ms-correlation-request-id": [ "592dd965-0a15-4dff-9ac6-86af13e3cd3c" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091353Z:592dd965-0a15-4dff-9ac6-86af13e3cd3c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E0EB7F53B6C6417DA9D2A4A0AD0624FE Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:47Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:47 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8A3B135705234B8394A43EA0178F8A83 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:53Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-5cpo\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-5cpo\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3753659c-1dc2-4ce3-bf5e-1bdea4204d3c\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-5cpo/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/Frontdoors/testps-fd-5cpo/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-5cpo.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-5cpo.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json index 9a950396d189..61b3e563436f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json @@ -1,13 +1,13 @@ { - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+1": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "a7b49efa-357a-40a6-aa93-41e88475b198" ], + "x-ms-client-request-id": [ "2fa53ab0-b350-412a-b315-4be82967e1ff" ], "CommandName": [ "Get-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Get-AzFrontDoorRulesEngine_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,36 +23,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "76b16f7c-dc22-410d-98d2-f73fee478af8" ], - "x-ms-client-request-id": [ "a7b49efa-357a-40a6-aa93-41e88475b198" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/85c0df5d-0c76-42e5-b2f6-f1789a13faa2" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "788e0ebf-b782-43b1-89f3-2e1b8b3fec15" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062249Z:788e0ebf-b782-43b1-89f3-2e1b8b3fec15" ], + "x-ms-request-id": [ "c5960f5f-4320-4321-8be5-da58f07850ab" ], + "x-ms-client-request-id": [ "2fa53ab0-b350-412a-b315-4be82967e1ff" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/48356e90-842a-42fd-b241-cc676979033f" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "ef575379-2b4b-4e98-8fbf-a1516e30b05a" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091354Z:ef575379-2b4b-4e98-8fbf-a1516e30b05a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 34F6F7E2BE224D75927A0F9822FE502D Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:48Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:49 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 424C508C04284502A4578D6BD71B3766 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:54Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+2": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], + "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -68,32 +68,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "23cb4a17-e193-485b-b5b8-5d915cdede7d" ], - "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6ba92ebb-4108-476b-98a6-07ce40d27713" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "a4a36083-2bdf-40da-b1d1-04822952dc74" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062249Z:a4a36083-2bdf-40da-b1d1-04822952dc74" ], + "x-ms-request-id": [ "0740b403-2e09-4a6f-a701-afdb37649030" ], + "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/4f804dfa-64a9-41f3-be3e-33b011a2a62a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "9983f935-45f0-4dcd-af3e-ca3a25b56cfc" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091355Z:9983f935-45f0-4dcd-af3e-ca3a25b56cfc" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 098AB8508BD648238733D0D566F38B58 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:49Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:49 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C6D8DDD89516417AB99ABE9BE6080D33 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:54Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+3": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -108,37 +108,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1290ce85-e141-45c8-85ed-23387aed90bb" ], - "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/84e651d8-8d72-4e59-a967-76e258fe480c" ], + "x-ms-request-id": [ "e6178485-46b2-49d9-af87-b689112649b8" ], + "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/75f40a87-3058-46cf-877a-bdbe47665352" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "5cf06519-75e8-4d08-9fcf-69ae451c6f22" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062250Z:5cf06519-75e8-4d08-9fcf-69ae451c6f22" ], + "x-ms-correlation-request-id": [ "94b0df77-ed51-4c85-b308-0fddf6111112" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091356Z:94b0df77-ed51-4c85-b308-0fddf6111112" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 5302FFD12E784DC590A1978C51018C11 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:22:49Z" ], - "Date": [ "Tue, 14 Oct 2025 06:22:50 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F5BE86433F7446C1917FAA6D795C1488 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:55Z" ], + "Date": [ "Tue, 14 Oct 2025 09:13:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01+4": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], + "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -153,24 +153,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9a29f91a-fc8f-428f-94d0-d520cee7d067" ], - "x-ms-client-request-id": [ "7fe50cb8-03b5-4213-b195-89848ab31777" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/4d7d0611-241b-46f8-a3a1-4017de8edaaa" ], + "x-ms-request-id": [ "57d5c4fc-81ad-40bd-8822-ab86ccd144de" ], + "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/45d382cb-e961-4cd4-9e92-ec687bf77991" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "988be7f9-342a-4531-a08f-2f07c52619bb" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062321Z:988be7f9-342a-4531-a08f-2f07c52619bb" ], + "x-ms-correlation-request-id": [ "e7b1199b-ad43-4ae9-b591-63de7b37e311" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091426Z:e7b1199b-ad43-4ae9-b591-63de7b37e311" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 76D5300C12BB4720893514D7857F1505 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:21Z" ], - "Date": [ "Tue, 14 Oct 2025 06:23:21 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2E3A2449BECB42D1B068726597EBFDBE Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:14:26Z" ], + "Date": [ "Tue, 14 Oct 2025 09:14:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoors/testps-fd-p8vt/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/frontDoors/testps-fd-p8vt/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json index b0dbe1e3c451..d891ca226485 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json @@ -1,13 +1,13 @@ { - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+1": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "c1db2683-55c8-46ab-9461-215ec73dd39b" ], + "x-ms-client-request-id": [ "79a4dd41-4f71-4747-9b0f-5e21aba96d7a" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,35 +23,35 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b9e61806-e385-421e-9591-97bc85329b40" ], - "x-ms-client-request-id": [ "c1db2683-55c8-46ab-9461-215ec73dd39b" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "f812c63f-0655-45ac-af4f-aec36b6f405e" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062323Z:f812c63f-0655-45ac-af4f-aec36b6f405e" ], + "x-ms-request-id": [ "4aa28548-40c3-40bf-acc5-75258da78c53" ], + "x-ms-client-request-id": [ "79a4dd41-4f71-4747-9b0f-5e21aba96d7a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "5e7013ca-61a0-4a21-9e00-6f09fe7bedbe" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091428Z:5e7013ca-61a0-4a21-9e00-6f09fe7bedbe" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2E6556C420DB4A49A9214311B1CA6C23 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:23Z" ], - "Date": [ "Tue, 14 Oct 2025 06:23:23 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 77D689B8D1324A8DB7672346C348C8C2 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:14:28Z" ], + "Date": [ "Tue, 14 Oct 2025 09:14:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+2": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], + "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -67,30 +67,30 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "57ea8eca-8c48-4d64-b2a6-8c07e474805a" ], - "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1097" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16497" ], - "x-ms-correlation-request-id": [ "aa9dd29c-17c0-465f-a2b3-cd7b9d9a9205" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062323Z:aa9dd29c-17c0-465f-a2b3-cd7b9d9a9205" ], + "x-ms-request-id": [ "67a34f22-6e0b-414e-8a5d-63685432657d" ], + "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "19024821-1502-40fa-9473-8ecc1800c09e" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091428Z:19024821-1502-40fa-9473-8ecc1800c09e" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F8DEA115516F4286822EEF640B5F88D7 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:23Z" ], - "Date": [ "Tue, 14 Oct 2025 06:23:23 GMT" ] + "X-MSEdge-Ref": [ "Ref A: EF9CC61073724C01864D526659E2B518 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:14:28Z" ], + "Date": [ "Tue, 14 Oct 2025 09:14:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+3": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [ ],\r\n \"ruleGroupOverrides\": [ ]\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -106,37 +106,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "59b00046-ef96-4e45-aedf-c5902b61c6de" ], - "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/38b76818-158c-4cda-9381-1523944df551" ], + "x-ms-request-id": [ "30d5add5-6696-40f3-a983-364a42a684a9" ], + "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/abdc3644-2713-435a-807c-61424d39afc5" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "e8656260-396d-4932-a4f4-d5ee96a39763" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062325Z:e8656260-396d-4932-a4f4-d5ee96a39763" ], + "x-ms-correlation-request-id": [ "57907008-7901-4fb0-a6b4-d029d7265105" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091429Z:57907008-7901-4fb0-a6b4-d029d7265105" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 027A5B513669468F8CCE86D39FA28314 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:23Z" ], - "Date": [ "Tue, 14 Oct 2025 06:23:24 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 0B954E059270429D8E75F67FD05D924E Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:14:28Z" ], + "Date": [ "Tue, 14 Oct 2025 09:14:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+4": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], + "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -151,36 +151,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "53007be0-6d15-4fd5-a95e-13130b2aba63" ], - "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], + "x-ms-request-id": [ "587d5a47-5c7d-4bd2-a61f-300a3943d1f5" ], + "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e130e70b-da66-4e19-9836-f1c37a7223a3" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062355Z:e130e70b-da66-4e19-9836-f1c37a7223a3" ], + "x-ms-correlation-request-id": [ "d3195d05-ff39-439a-9ae2-50e869f50224" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091500Z:d3195d05-ff39-439a-9ae2-50e869f50224" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4F80AE65458540E08D0B350CCD263891 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:55Z" ], - "Date": [ "Tue, 14 Oct 2025 06:23:55 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 62DF93273BD34D01AA8E35A37CE8FF35 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:15:00Z" ], + "Date": [ "Tue, 14 Oct 2025 09:14:59 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01+5": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-ahz7/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf8alq?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], + "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -195,23 +195,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a34cd519-f791-4ddf-9a00-97d2a91485d3" ], - "x-ms-client-request-id": [ "ddf8a6bc-a6d4-46ba-a72c-359b1e5fab99" ], + "x-ms-request-id": [ "046dbdab-1511-49bd-94fe-1159fc1e6c82" ], + "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "69f705c8-e0f2-4d5a-a9d6-893f3c01f3e9" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T062356Z:69f705c8-e0f2-4d5a-a9d6-893f3c01f3e9" ], + "x-ms-correlation-request-id": [ "29f428f8-5ce1-4c62-a70c-c9b5cee9eb4b" ], + "x-ms-routing-request-id": [ "WESTUS:20251014T091500Z:29f428f8-5ce1-4c62-a70c-c9b5cee9eb4b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 64EEBA34F86644B3AB14CDB57CE2C876 Ref B: SYD03EDGE1114 Ref C: 2025-10-14T06:23:55Z" ], - "Date": [ "Tue, 14 Oct 2025 06:23:56 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2BAB0C7198B04EFA800682E60A4FD693 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:15:00Z" ], + "Date": [ "Tue, 14 Oct 2025 09:15:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-ahz7/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf8alq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf8alq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json index 3e315f2d5b79..e2d2c89f3d93 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/env.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -1,9 +1,9 @@ { - "WafPolicyName": "testpsWaf8alq", + "FrontDoorName": "testps-fd-xawq", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "WafPolicyName": "testpsWafve35", "RuleEngineName": "engine101", - "location": "westus", + "ResourceGroupName": "testps-rg-3fhp", "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "ResourceGroupName": "testps-rg-ahz7", - "FrontDoorName": "testps-fd-p8vt" + "location": "westus" } From 0c1a648e29ec64ab4c822e64474ef0e17ee2117b Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Thu, 16 Oct 2025 14:12:36 +1100 Subject: [PATCH 17/30] adjust test --- .../Properties/AssemblyInfo.cs | 2 - .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../FrontDoor.Autorest/generate-info.json | 2 +- .../test/Get-AzFrontDoor.Recording.json | 26 +- ...AzFrontDoorFrontendEndpoint.Recording.json | 24 +- ...WafManagedRuleSetDefinition.Recording.json | 18 +- .../Get-AzFrontDoorWafPolicy.Recording.json | 22 +- .../New-AzFrontDoorRulesEngine.Recording.json | 46 +-- .../New-AzFrontDoorWafPolicy.Recording.json | 84 ++--- .../test/New-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- .../test/Remove-AzFrontDoor.Recording.json | 315 ++++++++++-------- .../test/Remove-AzFrontDoor.Tests.ps1 | 2 +- ...move-AzFrontDoorRulesEngine.Recording.json | 72 ++-- ...Remove-AzFrontDoorWafPolicy.Recording.json | 114 +++---- .../Remove-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- .../test/Set-AzFrontDoor.Recording.json | 200 +++++------ .../test/Set-AzFrontDoor.Tests.ps1 | 2 +- .../Set-AzFrontDoorRulesEngine.Recording.json | 104 +++--- ...Update-AzFrontDoorWafPolicy.Recording.json | 116 +++---- .../FrontDoor.Autorest/test/env.json | 16 +- .../FrontDoor.Autorest/test/utils.ps1 | 12 + src/FrontDoor/FrontDoor.sln | 28 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- 23 files changed, 636 insertions(+), 577 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs index 02d0834c87ca..b6db8e525a56 100644 --- a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -24,5 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - - diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index e3a5fa1a2427..9baf18626cdb 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: cb2bcf1e-c71e-46a2-a176-6cbf613eed22 +Module Guid: 018547c3-e57b-41b4-9c6a-3b90d42ffbc6 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index a3dbfb9bcc0f..95479e0b6dcd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "a4bafc59-e86f-4d43-b13c-9d19f8a09ece" + "generate_Id": "29afd54b-d755-4c72-8b5d-b60eb006a04e" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json index 804e5a2b48ef..11b2c0520e88 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq?api-version=2021-06-01+1": { + "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "6a89e711-f7a5-4b25-a7bb-7be11a84a8e3" ], + "x-ms-client-request-id": [ "94ef4686-223b-4aeb-97ba-97653a30b4a2" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "ce19b3fc-7228-47e7-bb61-341e266b3726" ], - "x-ms-client-request-id": [ "6a89e711-f7a5-4b25-a7bb-7be11a84a8e3" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "1dbed1c0-9926-4fba-ac1d-60ddac6e2779" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090727Z:1dbed1c0-9926-4fba-ac1d-60ddac6e2779" ], + "x-ms-request-id": [ "4ee2130d-0c4b-4c57-a811-2d646894ea3a" ], + "x-ms-client-request-id": [ "94ef4686-223b-4aeb-97ba-97653a30b4a2" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "9f9bf196-29a8-4cc8-85fb-11568e27b6da" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025541Z:9f9bf196-29a8-4cc8-85fb-11568e27b6da" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B476277840CF4587A7DDAC4D42507CFB Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:26Z" ], - "Date": [ "Tue, 14 Oct 2025 09:07:27 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D17EAA81580E43A98A04A4F1550537E8 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:41Z" ], + "Date": [ "Thu, 16 Oct 2025 02:55:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "6398" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-xawq\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"a74cba9b-5d63-4753-a31f-feb7699abca7\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-xawq/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-xawq.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-xawq.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-zycv\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"6a7250f4-9a3f-4ede-bd1b-2506419b7ddd\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-zycv.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-zycv.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json index e36ac7963b95..537df3e3da25 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/frontendEndpoints?api-version=2021-06-01+1": { + "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/frontendEndpoints?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/frontendEndpoints?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/frontendEndpoints?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "fe00241d-5aa0-402c-aed3-4d0b4daa0493" ], + "x-ms-client-request-id": [ "cf2c63e8-ea66-4908-841e-08d09b008898" ], "CommandName": [ "Get-AzFrontDoorFrontendEndpoint" ], "FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,24 +23,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "48a59bed-14f3-487a-b151-c6caf174d73c" ], - "x-ms-client-request-id": [ "fe00241d-5aa0-402c-aed3-4d0b4daa0493" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a1ea8778-5ca1-43f4-bf19-2c2b05d0b43c" ], + "x-ms-request-id": [ "ea8286b2-a349-4bf8-8138-de4b93026200" ], + "x-ms-client-request-id": [ "cf2c63e8-ea66-4908-841e-08d09b008898" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/77801922-4f08-4d30-bd28-d574b358fa03" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "c48a1a6e-b356-4309-bfb4-54c106692c09" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090729Z:c48a1a6e-b356-4309-bfb4-54c106692c09" ], + "x-ms-correlation-request-id": [ "08192854-25c2-43bf-a130-5b72d7545828" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025543Z:08192854-25c2-43bf-a130-5b72d7545828" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 6F8F3B78294B4375BD6251880E0EBE1B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:28Z" ], - "Date": [ "Tue, 14 Oct 2025 09:07:29 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D977608724C1440E8A26E326019FBF55 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:42Z" ], + "Date": [ "Thu, 16 Oct 2025 02:55:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-xawq.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-zycv.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json index c2c5fd9f48dd..55cfbf5ac5b2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json @@ -7,11 +7,11 @@ "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "4ea0d9dc-3d4d-48e1-afd1-5e4a671a2c9f" ], + "x-ms-client-request-id": [ "b783472b-758b-4890-be89-47b8d0de4220" ], "CommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition" ], "FullCommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,17 +23,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1a1f738c-e5bf-4172-94f0-cc2385960ff3" ], - "x-ms-client-request-id": [ "4ea0d9dc-3d4d-48e1-afd1-5e4a671a2c9f" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cee9e9f1-d3ea-4afe-a8c1-20ebc3739029" ], + "x-ms-request-id": [ "e66b1141-cf72-42d2-b5cb-cb52b3d14ead" ], + "x-ms-client-request-id": [ "b783472b-758b-4890-be89-47b8d0de4220" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/599f3173-46ba-4e7e-bb34-e46e68bf86ea" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "95648f7b-e4f4-48b6-9aac-eaea583d5009" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090731Z:95648f7b-e4f4-48b6-9aac-eaea583d5009" ], + "x-ms-correlation-request-id": [ "a72d2a54-650b-4162-806f-e288ae98fbcf" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025545Z:a72d2a54-650b-4162-806f-e288ae98fbcf" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 96A07EA43E8646FAA73C75D782A82FDF Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:30Z" ], - "Date": [ "Tue, 14 Oct 2025 09:07:31 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C330B9EAA86444FB8B490DAAEC877EE9 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:44Z" ], + "Date": [ "Thu, 16 Oct 2025 02:55:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "162977" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json index 4e61966df893..568664cb80f3 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+1": { + "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "c179c599-cb28-4dd7-82a5-b84a13813c9a" ], + "x-ms-client-request-id": [ "c2287543-b12b-4ce8-9842-3cd978314d01" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7175a89f-f3d1-47c4-9c3b-fdacfc841e43" ], - "x-ms-client-request-id": [ "c179c599-cb28-4dd7-82a5-b84a13813c9a" ], + "x-ms-request-id": [ "fd0781c9-738b-4c57-8f9a-eb89f116d5fc" ], + "x-ms-client-request-id": [ "c2287543-b12b-4ce8-9842-3cd978314d01" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "518fc22f-09d4-473b-9d3d-42ebdf98a94a" ], - "x-ms-routing-request-id": [ "AUSTRALIAEAST:20251014T090733Z:518fc22f-09d4-473b-9d3d-42ebdf98a94a" ], + "x-ms-correlation-request-id": [ "65fff7b6-6e37-4daf-b209-3f783fee0a90" ], + "x-ms-routing-request-id": [ "AUSTRALIAEAST:20251016T025547Z:65fff7b6-6e37-4daf-b209-3f783fee0a90" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4B114541A29D429CB42F07DE48A304A6 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:31Z" ], - "Date": [ "Tue, 14 Oct 2025 09:07:33 GMT" ] + "X-MSEdge-Ref": [ "Ref A: AAFE5EA192B64E29B7588A819F5EEA99 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:46Z" ], + "Date": [ "Thu, 16 Oct 2025 02:55:46 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json index a3d6e566f7c5..bbdc72d2d2ea 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+1": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,41 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b659ae06-fc03-46d4-ab7a-aefc5cc7e9f8" ], - "x-ms-client-request-id": [ "02b88d32-95cc-4fbb-bae1-ddda27d41f27" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7dd632e6-958e-46b9-9d83-849c372321c3" ], + "x-ms-request-id": [ "eb668b51-e679-4360-be12-9adbe9feb692" ], + "x-ms-client-request-id": [ "236d50b9-1a3b-4c76-8760-cf601d2b67d0" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3300355b-5be3-455a-923c-47801adc1ae2" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "7fc850b3-2e1f-4c0a-a32b-eba2e491ab26" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090742Z:7fc850b3-2e1f-4c0a-a32b-eba2e491ab26" ], + "x-ms-correlation-request-id": [ "9bfe6a29-1af5-4dec-8e2d-965a427e59fa" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025559Z:9bfe6a29-1af5-4dec-8e2d-965a427e59fa" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D2048C4451E1403D90AE26EE02F2A0C6 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:42Z" ], - "Date": [ "Tue, 14 Oct 2025 09:07:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 964563143D854FD9A991CDBD604E0BBA Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:58Z" ], + "Date": [ "Thu, 16 Oct 2025 02:55:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+2": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "02b88d32-95cc-4fbb-bae1-ddda27d41f27" ], + "x-ms-client-request-id": [ "236d50b9-1a3b-4c76-8760-cf601d2b67d0" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -63,24 +63,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "3bfb2de3-b76f-41a5-bbb0-fd661e9ec2fb" ], - "x-ms-client-request-id": [ "02b88d32-95cc-4fbb-bae1-ddda27d41f27" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d4680ed4-fa2a-443b-8f0b-049368ec926f" ], + "x-ms-request-id": [ "630077ee-d4c0-4fa1-b56d-e545d708b9f5" ], + "x-ms-client-request-id": [ "236d50b9-1a3b-4c76-8760-cf601d2b67d0" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b984f307-fddb-44ee-92b6-c8262cdd57f8" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "39c23820-1872-4dcc-beef-3c4f467fd0da" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090813Z:39c23820-1872-4dcc-beef-3c4f467fd0da" ], + "x-ms-correlation-request-id": [ "cd1144ca-9046-4414-ac8d-79e96d9d0226" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025629Z:cd1144ca-9046-4414-ac8d-79e96d9d0226" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 671386FA06C0417FA37C18222571A7E8 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:13Z" ], - "Date": [ "Tue, 14 Oct 2025 09:08:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8B8E85594C9443AEA41B84166C208BEC Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:56:29Z" ], + "Date": [ "Thu, 16 Oct 2025 02:56:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json index 2c14870190de..b7c848ad4d7d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01+1": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "387012b3-2edf-4840-94be-3c61becf914a" ], + "x-ms-client-request-id": [ "dc5ab563-227e-462f-a7af-c620a583c98c" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,28 +23,28 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "31ee8d53-ea55-4938-930d-8be56ec5ec2c" ], - "x-ms-correlation-request-id": [ "31ee8d53-ea55-4938-930d-8be56ec5ec2c" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090821Z:31ee8d53-ea55-4938-930d-8be56ec5ec2c" ], + "x-ms-request-id": [ "e39c3b51-b0ab-4458-a733-ae4ad4bae148" ], + "x-ms-correlation-request-id": [ "e39c3b51-b0ab-4458-a733-ae4ad4bae148" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025639Z:e39c3b51-b0ab-4458-a733-ae4ad4bae148" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 5B9366355BA14B11BEFB89904EF10700 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:21Z" ], - "Date": [ "Tue, 14 Oct 2025 09:08:21 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 1255F5DE89334670ACDAD9E9E232F3FC Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:56:39Z" ], + "Date": [ "Thu, 16 Oct 2025 02:56:38 GMT" ] }, "ContentHeaders": { "Content-Length": [ "257" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWaf4v2g\u0027 under resource group \u0027testps-rg-3fhp\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafdwo0\u0027 under resource group \u0027testps-rg-woz4\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01+2": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -60,41 +60,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "2ab524c6-66de-43a2-b22c-672b8a2e9666" ], - "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/19180361-9ecf-4503-b445-9ccd2bc106b7" ], + "x-ms-request-id": [ "acf1c9c7-5502-4539-aca9-51ad57d36ea1" ], + "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/74e6af5e-f612-4fe1-ab89-788c75ee7b38" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "84d95a51-ce0a-49ce-95de-d539f93565fd" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090823Z:84d95a51-ce0a-49ce-95de-d539f93565fd" ], + "x-ms-correlation-request-id": [ "4c1a8317-4e42-4490-9e5a-8184e3adde61" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025640Z:4c1a8317-4e42-4490-9e5a-8184e3adde61" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 97DEF278AC2943408D866D9A78B1B5E3 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:21Z" ], - "Date": [ "Tue, 14 Oct 2025 09:08:23 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8F4F6C95AAD649E4984BCE14A42F8E6C Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:56:39Z" ], + "Date": [ "Thu, 16 Oct 2025 02:56:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf4v2g\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf4v2g\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafdwo0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafdwo0\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01+3": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], + "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -105,40 +105,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "befdb8ad-8f5b-4d9a-a83d-ba95166fccd8" ], - "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], + "x-ms-request-id": [ "15e28a0c-725f-4ad9-8f11-28e5a8aff28b" ], + "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "bfd35b15-f533-4a2d-af21-5ee47017ae6c" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090853Z:bfd35b15-f533-4a2d-af21-5ee47017ae6c" ], + "x-ms-correlation-request-id": [ "52575c7b-4e52-4352-a5b9-53305d9839d2" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025711Z:52575c7b-4e52-4352-a5b9-53305d9839d2" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: CA0DC731CD2244F788D80F850C6A9C38 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:53Z" ], - "Date": [ "Tue, 14 Oct 2025 09:08:53 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4683D1CA8C1641A989B37E3582B6EFAE Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:11Z" ], + "Date": [ "Thu, 16 Oct 2025 02:57:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf4v2g\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf4v2g\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafdwo0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafdwo0\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01+4": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf4v2g?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], + "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -149,23 +149,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c896d4a9-67ef-4abb-a40f-ca248bde065d" ], - "x-ms-client-request-id": [ "be1c8d47-2c29-4de7-9de6-0212a74ce087" ], + "x-ms-request-id": [ "c0513e97-49e8-40b0-8ee5-258d596187d0" ], + "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "0826686e-b919-40fc-b985-96e60e905b14" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090854Z:0826686e-b919-40fc-b985-96e60e905b14" ], + "x-ms-correlation-request-id": [ "10111e29-936b-40cf-96f3-58d3cf46c172" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025712Z:10111e29-936b-40cf-96f3-58d3cf46c172" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 540965AB22D749E4B8D66802A5CA334A Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:54Z" ], - "Date": [ "Tue, 14 Oct 2025 09:08:54 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B7E7E49C4BF94B6AA2790B2B83E888C8 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:12Z" ], + "Date": [ "Thu, 16 Oct 2025 02:57:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf4v2g\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf4v2g\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafdwo0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafdwo0\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 index 0243f5e29163..859e7be7a259 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Tests.ps1 @@ -16,7 +16,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafPolicy')) Describe 'New-AzFrontDoorWafPolicy' { It 'CreateExpanded' { - $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) + $wafName = $env.WafPolicyNameForCreate $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action Block -Priority 2 diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json index 6572b46ffa17..4ed561ffab0c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01+1": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "0b60f8e2-ed4e-47d1-b10a-43995d171196" ], + "x-ms-client-request-id": [ "6edf7462-79d1-456c-9d69-119a7c96697c" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,29 +23,29 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "3fa76b85-a1c5-4d90-8edd-36325dbf19d4" ], - "x-ms-correlation-request-id": [ "3fa76b85-a1c5-4d90-8edd-36325dbf19d4" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090856Z:3fa76b85-a1c5-4d90-8edd-36325dbf19d4" ], + "x-ms-request-id": [ "b41d86eb-9615-4ae5-82bc-66f033a7bba8" ], + "x-ms-correlation-request-id": [ "b41d86eb-9615-4ae5-82bc-66f033a7bba8" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025714Z:b41d86eb-9615-4ae5-82bc-66f033a7bba8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 38E2AAE4B582413F978A39F1FB27C5D9 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:56Z" ], - "Date": [ "Tue, 14 Oct 2025 09:08:56 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4B972E00C24343A48E3A12669AC46381 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:14Z" ], + "Date": [ "Thu, 16 Oct 2025 02:57:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "229" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-dker\u0027 under resource group \u0027testps-rg-3fhp\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-uzv9\u0027 under resource group \u0027testps-rg-woz4\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01+2": { + "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-dker.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-uzv9.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -61,42 +61,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9985816a-3157-4210-a20b-25d88ed16011" ], - "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/9c2ba120-fa82-42e6-abf8-7b657850656a?api-version=2021-06-01\u0026t=638960297386328239\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS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q-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=dAsfZsBcOREyX9vqz_p884MgUGgQzGDGOlijUbRMgFwvVnFFS7337MvD9Z0NqPWZdt972S1WelCt5AH5cfMFNWfwP8XjgdQCGd2OGfrsFAyfIV7Ot7ANINY0N4Q1FaVmLJzGH8HgoS3fXR56RKmSciXOCBhoUF9wUPnfuz135S6wQm2s0EsaUq_bc1c_Tx-RN2VA6mghkm-R3PD2YBi431jaMut8sKKnpp5XGRR2d7f1mXnrt1H9naZGdVejd254oSaQcywaQC15yRxUm2_ohf2otxqteaXzdU0NGR3VVF_p1dM2eKw2i1rhD9ff9iTIXeZ0fOoe-y-tBTkPS6jI-A\u0026h=0WFxXgmXyaWJjgxOicZrmoeEiLtvLJAVL9l5nIlt6yY" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d0c69c2f-e96c-472d-b11d-e8d15d1817e0" ], + "x-ms-request-id": [ "db1155bf-990c-47d4-b0af-bd66477573bf" ], + "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers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gVdJjDoq4372kz_R9rCSEbjh6lm0LZx-IAmiULK4izrs3addF8Ir4FcDFm6d8cc1e4aw12ycFNzH6B8px3vmNKyDp6Pjgo1UigFMfVsB5uF5mns_wnW_0BVQoAEbz8NCDHQnN9aVUEuO4_GjBIndBYTTbDcOBLY-tuHsm2k91OkgXyjdclwfYPIpTPLNqgLj9SCw\u0026h=u4MIrSdBbbPO57iJqwv_xFejOI4jOpNStylzhesHSD8" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f408b30e-c89c-4ff9-8452-ebc50796c61a" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "3d7d8236-cba2-46d2-ae68-162aa0cf1a14" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090858Z:3d7d8236-cba2-46d2-ae68-162aa0cf1a14" ], + "x-ms-correlation-request-id": [ "f97e6ed1-748a-4f76-88f4-bec01820536a" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025716Z:f97e6ed1-748a-4f76-88f4-bec01820536a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 90905266257C47F7898C5B4EC15791ED Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:08:56Z" ], - "Date": [ "Tue, 14 Oct 2025 09:08:58 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 1F58806A339440679D89565307483CD1 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:14Z" ], + "Date": [ "Thu, 16 Oct 2025 02:57:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-dker\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-dker\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"6aad43fe-65f1-4a10-ad86-dae4e00762d5\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-dker.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-dker.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-uzv9\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-uzv9\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"d78ce0a4-3c84-425c-9ddc-edbd0728d406\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-uzv9.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-uzv9.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/9c2ba120-fa82-42e6-abf8-7b657850656a?api-version=2021-06-01\u0026t=638960297386328239\u0026c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p5XGRR2d7f1mXnrt1H9naZGdVejd254oSaQcywaQC15yRxUm2_ohf2otxqteaXzdU0NGR3VVF_p1dM2eKw2i1rhD9ff9iTIXeZ0fOoe-y-tBTkPS6jI-A\u0026h=0WFxXgmXyaWJjgxOicZrmoeEiLtvLJAVL9l5nIlt6yY+3": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/61adadbe-ef3a-40bc-92e3-740b3adf59cb?api-version=2021-06-01\u0026t=638961802368856985\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQ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Jf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=ZopObJ6sHdgl7azP0_QxpCDftje1JEXrxrmk5W2snzEVDMh1_DMF7uC6I317gDqLNossIe40eQMOHW_2rNZAuZSK8hb_nWFFQt-Jifxyvoo24rgfR9V0RVMt1zDl0WyoTEepsSJhGlz7t4Vm1-gVdJjDoq4372kz_R9rCSEbjh6lm0LZx-IAmiULK4izrs3addF8Ir4FcDFm6d8cc1e4aw12ycFNzH6B8px3vmNKyDp6Pjgo1UigFMfVsB5uF5mns_wnW_0BVQoAEbz8NCDHQnN9aVUEuO4_GjBIndBYTTbDcOBLY-tuHsm2k91OkgXyjdclwfYPIpTPLNqgLj9SCw\u0026h=u4MIrSdBbbPO57iJqwv_xFejOI4jOpNStylzhesHSD8+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/9c2ba120-fa82-42e6-abf8-7b657850656a?api-version=2021-06-01\u0026t=638960297386328239\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7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R1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=dAsfZsBcOREyX9vqz_p884MgUGgQzGDGOlijUbRMgFwvVnFFS7337MvD9Z0NqPWZdt972S1WelCt5AH5cfMFNWfwP8XjgdQCGd2OGfrsFAyfIV7Ot7ANINY0N4Q1FaVmLJzGH8HgoS3fXR56RKmSciXOCBhoUF9wUPnfuz135S6wQm2s0EsaUq_bc1c_Tx-RN2VA6mghkm-R3PD2YBi431jaMut8sKKnpp5XGRR2d7f1mXnrt1H9naZGdVejd254oSaQcywaQC15yRxUm2_ohf2otxqteaXzdU0NGR3VVF_p1dM2eKw2i1rhD9ff9iTIXeZ0fOoe-y-tBTkPS6jI-A\u0026h=0WFxXgmXyaWJjgxOicZrmoeEiLtvLJAVL9l5nIlt6yY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/61adadbe-ef3a-40bc-92e3-740b3adf59cb?api-version=2021-06-01\u0026t=638961802368856985\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZ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Y-tuHsm2k91OkgXyjdclwfYPIpTPLNqgLj9SCw\u0026h=u4MIrSdBbbPO57iJqwv_xFejOI4jOpNStylzhesHSD8", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], + "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -107,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c2e1a14c-90cf-4f8e-8af8-f5bec10e3ea4" ], - "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/94033c87-55fa-46f0-a8e5-6db8fdebfb28" ], + "x-ms-request-id": [ "d75f853e-ce2e-4325-8510-25f6388819bd" ], + "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f77db44c-83de-4081-bccf-132efb0e4c06" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "31f6766c-f1d2-41f4-b652-40c2f6e70250" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090909Z:31f6766c-f1d2-41f4-b652-40c2f6e70250" ], + "x-ms-correlation-request-id": [ "302620ef-1538-4014-9f11-d46f1ec26669" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025727Z:302620ef-1538-4014-9f11-d46f1ec26669" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C2CCDFB304C04A398C2D250FF42EA7B1 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:09:08Z" ], - "Date": [ "Tue, 14 Oct 2025 09:09:09 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4069F1CDCFE54F2494515216B926DE92 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:27Z" ], + "Date": [ "Thu, 16 Oct 2025 02:57:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -128,20 +128,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01+4": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], + "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -152,39 +152,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7c9f12ae-7b15-4a7e-bf3e-62297696fd96" ], - "x-ms-client-request-id": [ "7ea41ad2-0e0a-4474-8821-b7df8f6a60cc" ], + "x-ms-request-id": [ "800b53f1-4e3f-4130-b846-7dacbcdeeaee" ], + "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "da2bcd39-613e-4641-82ba-ecbde2e550a2" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090909Z:da2bcd39-613e-4641-82ba-ecbde2e550a2" ], + "x-ms-correlation-request-id": [ "93b271f8-cb23-43ac-8019-81ca5dc5a8e3" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025727Z:93b271f8-cb23-43ac-8019-81ca5dc5a8e3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: EF2009DAB6874D7FB43EED320344F26B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:09:09Z" ], - "Date": [ "Tue, 14 Oct 2025 09:09:09 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 1829E5126D3949E4BFD3F4F6CD86884F Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:27Z" ], + "Date": [ "Thu, 16 Oct 2025 02:57:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-dker\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-dker\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"6aad43fe-65f1-4a10-ad86-dae4e00762d5\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-dker/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-dker.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-dker.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-uzv9\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-uzv9\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"d78ce0a4-3c84-425c-9ddc-edbd0728d406\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-uzv9.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-uzv9.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01+5": { + "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-dker?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -195,21 +195,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6/frontdoorresults/testps-fd-dker?api-version=2021-06-01\u0026t=638960297712317926\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQ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ZqpLUHP-B2tNwdrkN_IbLzldM3fDlqXDw3-afStdUSswqaLlUDt1GqsVu7d3tKG8HIgHYH7WoNJTJwfKPp8Ec5UOPvHQ7vJWymgFN71Z10gfRav6lbXknFhH1YooHgB_CqGb45jOcXWEkl-89lOeMi3o_3y2F3id67KxPMe-Caop-PMZ0ry7OlPAYhB0tco-W-4hAVVtni2pNDifgCgzxMx8_Gr4bjHIQ15SmJAU_UHI9zehwCWzqZsESeHqpDOydSsMp19NWH92eCO239C7MndBCv5o2rD-Kr5DWapnCpaaWcV0k20RFOGYqk8onCUvzbWsCC4sNxZf-hDCrVbooA\u0026h=BYA4K9s8Dc-sy9s1GTKT6vGgaPvppn_rcb1ZR4rpQzg" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b/frontdoorresults/testps-fd-uzv9?api-version=2021-06-01\u0026t=638961802690529488\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTi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gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=q9MM7yA3VUFcjKkTJQKYIS1VycIxRYp-FOmpiq47IyG0jdttfYHiawigxNDuKCH6EmGfvM5cPxepZAl3FKO_bMEe4OSkGqwhQ_omHTniwHZT70tIy30DjipOxu4JualtB0UkscBcPcwXTdh5YmL6Q-S4KJ5MNw5lWB0SJWoR26pY_OANiRg0WFWz2okdjX1TLkIAWkNGaY7kj9W-El_Oz6KCHrePA94yAm4y6TGzhDOKCJ4vb3AfqzdyBx5ZwRK14Q22U4nb_EbVmz9NixYBrKuP-iVe7Icg6fonRu3U1S4x_RWJQxggb6VoyTT6WCmMMziY0Soi7i2V1_yrFGJOuA\u0026h=JcgDktrMRMgbct-CMJkYBlb6bhYjyg7s7mvLWFC6UTw" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "849ba456-b282-4421-b684-1da2a0adb2a6" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1V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PXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/53671f07-486e-414a-bf87-d181e1ed9d26" ], + "x-ms-request-id": [ "4d7a1f32-b425-48d4-9995-1402c148ea92" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDt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AoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a3c3be13-6ff1-4e07-9344-598a7f2db2b1" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "bed45c6b-aa52-4c9b-80bf-195e31c6549a" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090931Z:bed45c6b-aa52-4c9b-80bf-195e31c6549a" ], + "x-ms-correlation-request-id": [ "99b298ce-7f33-4227-ae40-23f002155e2f" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025749Z:99b298ce-7f33-4227-ae40-23f002155e2f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C7C7B2F8741B414797B322FFD8EF59DA Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:09:29Z" ], - "Date": [ "Tue, 14 Oct 2025 09:09:31 GMT" ] + "X-MSEdge-Ref": [ "Ref A: BDF3051EA04F43DBAF4C6B0E9D1E70FA Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:47Z" ], + "Date": [ "Thu, 16 Oct 2025 02:57:48 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -219,20 +219,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3l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0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+6": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwM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.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGt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lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQ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VjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -243,17 +243,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c3176b77-2348-4471-bfb4-a601ef6a60d7" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/18137d01-c32f-4d04-b390-888ec86da76b" ], + "x-ms-request-id": [ "5d014640-54c4-4b8b-abcb-b4ce9c96eff7" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e3e19ac3-8f8e-404a-973d-ddd533322fc7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "2fd4e7ae-610d-4973-8b46-3a1cc65e9433" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T090941Z:2fd4e7ae-610d-4973-8b46-3a1cc65e9433" ], + "x-ms-correlation-request-id": [ "132c0ba3-2835-4b32-bcf2-111ef272449e" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025759Z:132c0ba3-2835-4b32-bcf2-111ef272449e" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E2831E45356D487EAEC0C273772478CE Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:09:41Z" ], - "Date": [ "Tue, 14 Oct 2025 09:09:41 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F6D473428C834AC883E2C935F7FE6087 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:59Z" ], + "Date": [ "Thu, 16 Oct 2025 02:57:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -264,20 +264,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzA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xZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+7": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfx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Fzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAY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b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvbWVsMDFwa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LUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -288,17 +288,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "cd48c95b-e713-4439-b411-6ea71454785a" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cb4d205d-e241-4d3e-b68c-e203590e44e0" ], + "x-ms-request-id": [ "0f3f1875-2224-435b-b8ec-447dbfd5a25b" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/bd5b360a-52f9-42a5-8837-2c9125d3583f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "1ed2a099-09cc-4adf-91c4-ee30d17166e6" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091012Z:1ed2a099-09cc-4adf-91c4-ee30d17166e6" ], + "x-ms-correlation-request-id": [ "3660802a-fba6-434b-9b8f-2b2d0b7889b6" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025830Z:3660802a-fba6-434b-9b8f-2b2d0b7889b6" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B5C851BC46A343B0A978AB4189570641 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:10:12Z" ], - "Date": [ "Tue, 14 Oct 2025 09:10:12 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 55735B61ECFB4BFABCFF15EC0EF2357F Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:58:30Z" ], + "Date": [ "Thu, 16 Oct 2025 02:58:30 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -309,20 +309,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwN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8dM+8": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUF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igZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3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WGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdG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UrJU3IDKm0amgY_xtVwywcT-VPGF7VZHrEHKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -333,17 +333,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f844cf2e-ae7c-4c13-a96d-3f4a3c3a9325" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/1a6c9474-ef6a-4c83-b1be-b3402ff280b8" ], + "x-ms-request-id": [ "08b7d899-a471-4539-b50c-b1debeec7c1b" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cddc3cdc-899e-407c-9d73-6b0ea422dce4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "5bd44ab1-e412-4eeb-99e6-407355f14ae2" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091043Z:5bd44ab1-e412-4eeb-99e6-407355f14ae2" ], + "x-ms-correlation-request-id": [ "bc96c4f4-6759-4647-b873-066b855de804" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025901Z:bc96c4f4-6759-4647-b873-066b855de804" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E1F392FFC49544468F5C3AB64CF79F34 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:10:42Z" ], - "Date": [ "Tue, 14 Oct 2025 09:10:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D6B80DDACE7045B895F77FCCBE2BAA79 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:59:00Z" ], + "Date": [ "Thu, 16 Oct 2025 02:59:01 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -354,20 +354,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6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ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+9": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNM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{ "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3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nWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2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WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -378,17 +378,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f2ff38d6-e29f-429d-9a8a-29af4676e7c8" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/5a4fd55d-4ce3-4e13-af58-57eba6ec0b88" ], + "x-ms-request-id": [ "970c1ce3-04fa-4b09-bfc6-df050fd72901" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/74d5876a-4553-4dde-a846-aad3beab8756" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "2609c257-9c22-4d20-8fde-edb0e4aed026" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091113Z:2609c257-9c22-4d20-8fde-edb0e4aed026" ], + "x-ms-correlation-request-id": [ "6b268cc9-55bb-4b4d-b00d-7db5db4c0d0b" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T025931Z:6b268cc9-55bb-4b4d-b00d-7db5db4c0d0b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 19F96FC993194AE1875F80B439E2183B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:11:13Z" ], - "Date": [ "Tue, 14 Oct 2025 09:11:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 126A08CAA2D34CA4A210096CD47F36A7 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:59:31Z" ], + "Date": [ "Thu, 16 Oct 2025 02:59:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -399,20 +399,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggr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fidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+10": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCk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Ui0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxM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estUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC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fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -423,17 +423,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f0a18983-a7b8-47cf-86a8-4be43cf18253" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/dce223de-2d94-4e9c-9ed2-8259a055f96d" ], + "x-ms-request-id": [ "42675482-38bd-4cef-921a-55bf32130903" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0b5513e1-f3a9-4048-bcd5-225813543464" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ead0727c-c818-4873-a6e6-ffb7bbdfdce8" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091144Z:ead0727c-c818-4873-a6e6-ffb7bbdfdce8" ], + "x-ms-correlation-request-id": [ "60964aa9-21e9-4364-b9bc-6933fdf8e5be" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030003Z:60964aa9-21e9-4364-b9bc-6933fdf8e5be" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4D8669D4B4D446D88C292AEC3DC33E4B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:11:44Z" ], - "Date": [ "Tue, 14 Oct 2025 09:11:44 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D984506B0D90408E9EA9BCED9FAEA0F4 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:00:02Z" ], + "Date": [ "Thu, 16 Oct 2025 03:00:03 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -444,20 +444,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQ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xs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+11": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwgg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6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9T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JaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=c1bjVZ_hfidd4keUjvdHTskPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAx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r03GvcKMMKXsPqS9r4NAOXfLjlf7xqYiwUCShYUrJU3IDKm0amgY_xtVwywcT-VPGF7VZHrEHKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -468,17 +468,62 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "31b5272f-3969-41d9-a2cd-63b55ef84e83" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3f86bae5-2fa9-4569-b482-a8cfc7513591" ], + "x-ms-request-id": [ "76281e93-97c1-4cf2-a9a3-afb2f40c725c" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2bcc0ab6-091f-4ac2-8828-25a10e365e9b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "7cce3c8a-c4f5-4839-be4c-65d1b7f444b8" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091215Z:7cce3c8a-c4f5-4839-be4c-65d1b7f444b8" ], + "x-ms-correlation-request-id": [ "4897b207-98a9-443c-97cc-5bdaf602ed32" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030033Z:4897b207-98a9-443c-97cc-5bdaf602ed32" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 3609F65EDFE44FA3A5E84891218064E4 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:15Z" ], - "Date": [ "Tue, 14 Oct 2025 09:12:15 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 3C3F4D85EA514E2C878F05D4A7AA5EC2 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:00:33Z" ], + "Date": [ "Thu, 16 Oct 2025 03:00:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHF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FBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsF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UeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "7cd71d53-9ba0-4952-b3f3-5ad60ab5236f" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b6bbc380-239d-4781-ab3d-7adb52a01f36" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "54ac9feb-896f-4805-aa30-d413c1065c1b" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030104Z:54ac9feb-896f-4805-aa30-d413c1065c1b" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 80EE4549EEF2445487FAD376946C1192 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:04Z" ], + "Date": [ "Thu, 16 Oct 2025 03:01:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -489,20 +534,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQS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skPLtGtUJqujGW4OiNT9coZEuKxZKZhcoEsX6FFnWdf8InC1Chp_fzRLzXBaLIW53lCUeDmV6a-DTa_cQaW_07RHpDugkRZOCSp7ktatDJb2Y9vDzQlDplqh7ZLDNwz6QujkCPXE1agbuem-JBGNNrxJMMR_OcMfEW4F7PRGQqnehfxCSRH7cAvy5g4jQ9IiyCiFaPzb4WGy8Y0gb0Gdeom4h-SMS4e-0IJkDSwZHh00KqV9jcVPXO1ADXuD_mR_boFdq9yP1TDWsDU8IgqBjw0nzJt1BbJI7dpIEujVWNkw-y7o5Ne-WClKUOe_6C_fQ\u0026h=GHnxs52XZcH7vpfNcHMKM7zbUc5ROSDfRcw6n3wH8dM+12": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-K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QZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/e99c429a-3930-4ff6-abbb-69de6921f3a6?api-version=2021-06-01\u0026t=638960297712161558\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYw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.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW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AR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -513,17 +558,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8bb42389-845f-441f-9331-f27fdf512af5" ], - "x-ms-client-request-id": [ "11dd9cab-de56-470b-95a3-cacc6ec1b21c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7972a7ee-3712-4669-a3eb-035857481a08" ], + "x-ms-request-id": [ "88c3d2bd-1665-484b-ba10-0b82b02dc754" ], + "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e88febed-25d7-460c-8b94-f000e871d52c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "be359131-c1e0-45e3-9046-ad9bbcc6abd6" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091216Z:be359131-c1e0-45e3-9046-ad9bbcc6abd6" ], + "x-ms-correlation-request-id": [ "a8143247-9092-463f-a701-46c35412daa6" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030105Z:a8143247-9092-463f-a701-46c35412daa6" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: BC4ED4A85650458B89C2296459DF3F72 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:15Z" ], - "Date": [ "Tue, 14 Oct 2025 09:12:16 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C9090A5F5F4E47F0B48211EC4D1CCDBE Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:05Z" ], + "Date": [ "Thu, 16 Oct 2025 03:01:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 index 5af4659f3280..c3073b61e791 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Tests.ps1 @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoor')) Describe 'Remove-AzFrontDoor' { It 'Delete' { { - $frontDoorName = 'testps-fd-' + (RandomString -allChars $false -len 4) + $frontDoorName = $env.FrontDoorNameForDelete $tags = @{"tag1" = "value1"; "tag2" = "value2"} $hostName = "$frontDoorName.azurefd.net" $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule2" -FrontDoorName $frontDoorName -ResourceGroupName $env.ResourceGroupName -FrontendEndpointName "frontendEndpoint2" -BackendPoolName "backendPool2" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json index 002c89267f09..173c632b7a29 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01+1": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,41 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1466f722-74f6-4636-beb4-c854cdce7b34" ], - "x-ms-client-request-id": [ "a4ffc108-e8ba-457d-a8d3-b7ddb7110f97" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f2a0fc63-d405-44e5-8c78-d8f9fb6abac7" ], + "x-ms-request-id": [ "0ce6d704-117e-42a2-85bc-9c7c65200b45" ], + "x-ms-client-request-id": [ "fbdd05f8-acde-4a39-93ac-964062892be6" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2a6e43f3-1d02-4f6b-8e17-951efacfa75c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "45c43ebd-072c-4fb1-8914-410167303559" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091218Z:45c43ebd-072c-4fb1-8914-410167303559" ], + "x-ms-correlation-request-id": [ "07198ab1-1574-4125-835c-030d42d27efe" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030108Z:07198ab1-1574-4125-835c-030d42d27efe" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A0AC8B439FCD4767B88D86918681008B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:18Z" ], - "Date": [ "Tue, 14 Oct 2025 09:12:18 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 205626A08E084B12BA42D7B9E4564ED3 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:07Z" ], + "Date": [ "Thu, 16 Oct 2025 03:01:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01+2": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "a4ffc108-e8ba-457d-a8d3-b7ddb7110f97" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "fbdd05f8-acde-4a39-93ac-964062892be6" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -63,40 +63,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "229952ac-3dff-477f-9ba8-ececd85b3b01" ], - "x-ms-client-request-id": [ "a4ffc108-e8ba-457d-a8d3-b7ddb7110f97" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/fa1aca52-ad02-4780-a1a1-80676ca58572" ], + "x-ms-request-id": [ "9bf68cb1-b022-4b73-bf05-d6bb4ddcde46" ], + "x-ms-client-request-id": [ "fbdd05f8-acde-4a39-93ac-964062892be6" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/608c337c-74aa-4169-befa-11c6101cc505" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "6af30862-25e1-4f64-bbb1-eade38e1388a" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091249Z:6af30862-25e1-4f64-bbb1-eade38e1388a" ], + "x-ms-correlation-request-id": [ "2034587b-087b-4259-ad70-b85d7816644b" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030139Z:2034587b-087b-4259-ad70-b85d7816644b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F8186429BC5840669FCC7BCFADF91AFB Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:49Z" ], - "Date": [ "Tue, 14 Oct 2025 09:12:49 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2007834DA7AA433D91750918B68F4756 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:38Z" ], + "Date": [ "Thu, 16 Oct 2025 03:01:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01+3": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "5cd5df69-2e4f-4583-97d4-f040ffada2a6" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "dfa20101-5d4d-4cfc-bb3e-95aafcbc17b8" ], "CommandName": [ "Remove-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Remove-AzFrontDoorRulesEngine_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -108,17 +108,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "eb7a7e80-af78-47d7-a1fd-157820c07846" ], - "x-ms-client-request-id": [ "5cd5df69-2e4f-4583-97d4-f040ffada2a6" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6baf8e9b-d24c-490b-945e-e1d8ff3b01dc" ], + "x-ms-request-id": [ "2d51fbe6-51af-4a8a-ab61-abad42aa60b1" ], + "x-ms-client-request-id": [ "dfa20101-5d4d-4cfc-bb3e-95aafcbc17b8" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0f8ab87e-d233-4c4e-b8d4-d527e037eade" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "c3fd8934-adda-4b08-a7c8-7f7432e76380" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091250Z:c3fd8934-adda-4b08-a7c8-7f7432e76380" ], + "x-ms-correlation-request-id": [ "26d3a2c7-60c8-4ad3-80af-3e83612266d2" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030140Z:26d3a2c7-60c8-4ad3-80af-3e83612266d2" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 374FC9D122734E42BAA77B0E2324C4FA Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:49Z" ], - "Date": [ "Tue, 14 Oct 2025 09:12:49 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 51DCEF39698541A2A217137A18999923 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:39Z" ], + "Date": [ "Thu, 16 Oct 2025 03:01:40 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json index 6a03f229844c..2ba7a54baf19 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+1": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "b52c3ddd-9bc8-49e7-9b53-b9a501dbce48" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "6c8bac8a-2423-4b4a-b60b-9cf5fbd82b63" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,28 +23,28 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "a9983fb7-667e-4a8e-8401-620ad5d5aa2e" ], - "x-ms-correlation-request-id": [ "a9983fb7-667e-4a8e-8401-620ad5d5aa2e" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091251Z:a9983fb7-667e-4a8e-8401-620ad5d5aa2e" ], + "x-ms-request-id": [ "b798cdf2-3662-4978-b9a3-f9c285521729" ], + "x-ms-correlation-request-id": [ "b798cdf2-3662-4978-b9a3-f9c285521729" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030142Z:b798cdf2-3662-4978-b9a3-f9c285521729" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 06F05102DA024EEC9329F256D0BED5DA Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:51Z" ], - "Date": [ "Tue, 14 Oct 2025 09:12:50 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 30979857B82740D0A69314BC4E0A91A6 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:41Z" ], + "Date": [ "Thu, 16 Oct 2025 03:01:41 GMT" ] }, "ContentHeaders": { "Content-Length": [ "257" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafqdpz\u0027 under resource group \u0027testps-rg-3fhp\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafi7nt\u0027 under resource group \u0027testps-rg-woz4\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+2": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -60,41 +60,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0e589328-1081-442e-9270-0340c5ca1427" ], - "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/039f0c7c-6369-4947-b0e3-5cffbf4e66d7" ], + "x-ms-request-id": [ "c2b066f1-5ec2-4394-aa4d-1040f0b4f310" ], + "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/12435e3f-526b-4047-a26c-bbc386651edf" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "6f0ee4a9-6dbe-4294-863c-8e548ad7181c" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091253Z:6f0ee4a9-6dbe-4294-863c-8e548ad7181c" ], + "x-ms-correlation-request-id": [ "3a7278af-6b00-434a-a6b3-319033b1b72a" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030143Z:3a7278af-6b00-434a-a6b3-319033b1b72a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D8B056F839C442838B4255C7FDDC3F9F Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:12:51Z" ], - "Date": [ "Tue, 14 Oct 2025 09:12:52 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 0C01A28469504969AA6E93345DBF4089 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:42Z" ], + "Date": [ "Thu, 16 Oct 2025 03:01:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqdpz\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqdpz\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafi7nt\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafi7nt\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+3": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -105,40 +105,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b4dce9da-435e-4fa3-9091-d2e429e5c253" ], - "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], + "x-ms-request-id": [ "fe80c963-ac45-4c0e-8d0b-c776808428da" ], + "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "3b380d86-da93-4f97-bc8b-56e20f22c5f5" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091324Z:3b380d86-da93-4f97-bc8b-56e20f22c5f5" ], + "x-ms-correlation-request-id": [ "8c9785f6-520c-4cf2-bb08-ef59d9deb8c3" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030214Z:8c9785f6-520c-4cf2-bb08-ef59d9deb8c3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 25E7E5A122B54CB0B9209F12C6361DB8 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:23Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:23 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 83DBCF7F59AF4F48B7D0A60690BCF625 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:14Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqdpz\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqdpz\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafi7nt\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafi7nt\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+4": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -149,39 +149,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "77496f43-516e-45f3-afd7-c71490701846" ], - "x-ms-client-request-id": [ "4572d1ae-521a-4d77-ad63-1b546f53bc1e" ], + "x-ms-request-id": [ "ad699d5f-9a5c-4469-af1a-63143c7a1255" ], + "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "73fc23c1-fae3-48ec-af49-6afcf5a3c046" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091324Z:73fc23c1-fae3-48ec-af49-6afcf5a3c046" ], + "x-ms-correlation-request-id": [ "9593096d-6e37-4efc-9355-a2d7886b27c3" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030214Z:9593096d-6e37-4efc-9355-a2d7886b27c3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: CC31A28DB7B044E295388093792862C7 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:24Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:24 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 7EEC04087FD845368674D8808C9A9DA6 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:14Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafqdpz\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafqdpz\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafi7nt\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafi7nt\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01+5": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafqdpz?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "9e301d46-4622-4155-98cc-89468bf18518" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "49d36261-c751-4486-8a81-18159c8a073c" ], "CommandName": [ "Remove-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Remove-AzFrontDoorWafPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -193,17 +193,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "afef5168-b3be-49fe-bd72-c29e91fc53d1" ], - "x-ms-client-request-id": [ "9e301d46-4622-4155-98cc-89468bf18518" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d2d14173-112f-40ef-8200-e5c13584bd8e" ], + "x-ms-request-id": [ "f7783547-55c6-4166-8b75-a4fa45a8c684" ], + "x-ms-client-request-id": [ "49d36261-c751-4486-8a81-18159c8a073c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/67a3a483-40b5-40c0-ae3a-1395a2ff0d0e" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "6877096c-24cc-431b-b6ea-21836afddf16" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091325Z:6877096c-24cc-431b-b6ea-21836afddf16" ], + "x-ms-correlation-request-id": [ "fcceb480-3a34-4af0-8b37-81fcbe8da58f" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030215Z:fcceb480-3a34-4af0-8b37-81fcbe8da58f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: FF9512DB0CBF4838B9DC46119EF0B60D Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:24Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:25 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 81EB4A06593642589214D38C1468D35E Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:15Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:15 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 index 583d5d03bfec..f1e1c7028495 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Tests.ps1 @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorWafPolicy') Describe 'Remove-AzFrontDoorWafPolicy' { It 'Delete' { { - $wafName = 'testpsWaf' + (RandomString -allChars $false -len 4) + $wafName = $env.WafPolicyNameForDelete $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action Block -Priority 2 diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json index e50f01be343e..66e4e40b0a8b 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+1": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "3632993e-8ae6-458a-bff7-cddf1eb5ff72" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "f3f6c735-84c6-4397-8944-8c8f721dc806" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,29 +23,29 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "c4826da8-0e22-4935-a924-9360c1d3dd53" ], - "x-ms-correlation-request-id": [ "c4826da8-0e22-4935-a924-9360c1d3dd53" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091326Z:c4826da8-0e22-4935-a924-9360c1d3dd53" ], + "x-ms-request-id": [ "0ba00057-2c2f-4808-97be-630e8fbec93a" ], + "x-ms-correlation-request-id": [ "0ba00057-2c2f-4808-97be-630e8fbec93a" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030216Z:0ba00057-2c2f-4808-97be-630e8fbec93a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: FDC9F6EC95E54B4DBBD8AC36764E1E84 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:26Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:25 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DB754146890A4995B816F6298FDB0259 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:16Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "229" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-v92w\u0027 under resource group \u0027testps-rg-3fhp\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-4gso\u0027 under resource group \u0027testps-rg-woz4\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+2": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-v92w.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-4gso.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -61,42 +61,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b3c684f9-a74f-43fc-8ef2-9253a5d12769" ], - "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/504f9b9a-b0cb-4101-a741-ee7c1106fba9?api-version=2021-06-01\u0026t=638960300093800384\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmK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k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=P5BVjGsAjITbEyQCDKEOQiFcVF-IsUaXFDVfOvfNMtDD5uXDAOW1zZ4AkO4cvzL8XuXlk8IU0DnmhRkpwDcr5XG4cYRwWDl-H2X9WFEa9tlfc6o0YEW7Gkt3kgoTGK4qudSqr0o97L0wtVF-PwM9UBPo8rzF5dHbSW1wV_QdlFIQZliCiiHZ21CZKFGJ42IcpRACCJgOKKeB-WQmHzrmgZZJm8A61genCU8FFHa-Saa_UmekqSGJkvPEZktMn1H3hzopkx-pieUWEuFtQKJno-lKi7qMVIm74nbwAIvBNL8isMefMrMDE9aMsgFhRSpMZSz6bHS6u7CydzPkcYtxhw\u0026h=--NAfuYp5QqlrsTZJLwTIkErHI3iRHS893ccxdWIsrg" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6bf9bc05-9f42-4856-9c71-a0df22e25e38" ], + "x-ms-request-id": [ "e9b7fa4e-4535-4bea-83d0-bd45d2340e2f" ], + "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/a066bbeb-c66d-4ecc-8f18-c2fb4d9b6716?api-version=2021-06-01\u0026t=638961805392669807\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ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291866/westus/0f6b64c0-8d8d-4d3a-af47-cc3a02e27dde" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "734e7969-da26-441f-b7c1-6c2b359a2a78" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091329Z:734e7969-da26-441f-b7c1-6c2b359a2a78" ], + "x-ms-correlation-request-id": [ "3b2ae244-1de7-465a-96d7-a88a5e9a7726" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030219Z:3b2ae244-1de7-465a-96d7-a88a5e9a7726" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 403C0DD4566547258863695A9AE53A22 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:26Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:28 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F05D2A45CA0640AC929DC845135A3A57 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:17Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/504f9b9a-b0cb-4101-a741-ee7c1106fba9?api-version=2021-06-01\u0026t=638960300093800384\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZ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-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=P5BVjGsAjITbEyQCDKEOQiFcVF-IsUaXFDVfOvfNMtDD5uXDAOW1zZ4AkO4cvzL8XuXlk8IU0DnmhRkpwDcr5XG4cYRwWDl-H2X9WFEa9tlfc6o0YEW7Gkt3kgoTGK4qudSqr0o97L0wtVF-PwM9UBPo8rzF5dHbSW1wV_QdlFIQZliCiiHZ21CZKFGJ42IcpRACCJgOKKeB-WQmHzrmgZZJm8A61genCU8FFHa-Saa_UmekqSGJkvPEZktMn1H3hzopkx-pieUWEuFtQKJno-lKi7qMVIm74nbwAIvBNL8isMefMrMDE9aMsgFhRSpMZSz6bHS6u7CydzPkcYtxhw\u0026h=--NAfuYp5QqlrsTZJLwTIkErHI3iRHS893ccxdWIsrg+3": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/a066bbeb-c66d-4ecc-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af16P_kRAEFwncMEsqf8GbJO9iEx3XZqgsTfDv91eWOdu7hWF35mVw9LD9_AvQsYisEhjL4ya4hgttihRKWnhNSckfitemUXic1iWORruMk8ugNSyL-WYeVmY823Z8C377ThRj5CZn0u6TWeqyWycVo1pv7ASc8rDNd-qdQ\u0026h=9NX8y1kHQuJ5pOJOmUh-M-8vMxillODCE6GHBn8gkV0+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/504f9b9a-b0cb-4101-a741-ee7c1106fba9?api-version=2021-06-01\u0026t=638960300093800384\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCA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GcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=P5BVjGsAjITbEyQCDKEOQiFcVF-IsUaXFDVfOvfNMtDD5uXDAOW1zZ4AkO4cvzL8XuXlk8IU0DnmhRkpwDcr5XG4cYRwWDl-H2X9WFEa9tlfc6o0YEW7Gkt3kgoTGK4qudSqr0o97L0wtVF-PwM9UBPo8rzF5dHbSW1wV_QdlFIQZliCiiHZ21CZKFGJ42IcpRACCJgOKKeB-WQmHzrmgZZJm8A61genCU8FFHa-Saa_UmekqSGJkvPEZktMn1H3hzopkx-pieUWEuFtQKJno-lKi7qMVIm74nbwAIvBNL8isMefMrMDE9aMsgFhRSpMZSz6bHS6u7CydzPkcYtxhw\u0026h=--NAfuYp5QqlrsTZJLwTIkErHI3iRHS893ccxdWIsrg", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/a066bbeb-c66d-4ecc-8f18-c2fb4d9b6716?api-version=2021-06-01\u0026t=638961805392669807\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ft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g8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=BraeLGNFFsbmEaLooiMtfg5HnQvFsbpPYuEwEQGIJmRO-4Vkp3Ug2ym3tq4l2P7W4kaF9VMOSmJU6qL54iPOfkrqVBGZJONbnrmFlCB1KUdrr8wnUfnmv5W0UAlkJjlvOt-t6WHvk63RKSU5CQofgybMifsGVxcSxrfTYgKe0B_UkXfaf16P_kRAEFwncMEsqf8GbJO9iEx3XZqgsTfDv91eWOdu7hWF35mVw9LD9_AvQsYisEhjL4ya4hgttihRKWnhNSckfitemUXic1iWORruMk8ugNSyL-WYeVmY823Z8C377ThRj5CZn0u6TWeqyWycVo1pv7ASc8rDNd-qdQ\u0026h=9NX8y1kHQuJ5pOJOmUh-M-8vMxillODCE6GHBn8gkV0", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -107,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c406255e-d18b-4ae0-9f69-115c843d50c4" ], - "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e6ceef5a-1ec4-4afd-9b26-408445de0956" ], + "x-ms-request-id": [ "6c69d73b-19c3-4897-9d72-004dffa110a5" ], + "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a5ce0718-83a1-46c5-a8da-ebb11ea76dd6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "01508f77-010d-4aab-aace-f670cc9e8366" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091339Z:01508f77-010d-4aab-aace-f670cc9e8366" ], + "x-ms-correlation-request-id": [ "4fce34ef-8b5b-4b5b-8770-255093cfcafb" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030229Z:4fce34ef-8b5b-4b5b-8770-255093cfcafb" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C41300F17AD84AA7A041E6341A919E03 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:39Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:39 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 9732D42A220F4C53A4DBFF4D8FBE8938 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:29Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -128,20 +128,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+4": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -152,39 +152,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "bc44559b-ddf3-4ac8-b296-f7bf988a49c9" ], - "x-ms-client-request-id": [ "cd956301-890c-464d-8b77-49f0125a9103" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9be2b879-0aee-4ad9-92c9-c95f8cd10467" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091340Z:9be2b879-0aee-4ad9-92c9-c95f8cd10467" ], + "x-ms-request-id": [ "1944178d-cf74-4884-aa11-22b575a79f69" ], + "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "09bdc902-5df2-442b-a4ee-2e6db1e00729" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030230Z:09bdc902-5df2-442b-a4ee-2e6db1e00729" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D334F50BC6684D059EA6A286910877D7 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:39Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:39 GMT" ] + "X-MSEdge-Ref": [ "Ref A: BAB5954BB07546BD8435FF7904949A50 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:29Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+5": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -196,31 +196,31 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "34d7bada-6e1e-4c60-bfb2-350c47b7b5f3" ], - "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "75cd63dc-784a-416d-bc3c-76fb8a4718cd" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091340Z:75cd63dc-784a-416d-bc3c-76fb8a4718cd" ], + "x-ms-request-id": [ "552cf795-f4e1-4e4a-8329-1456219b3aac" ], + "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "c565fe73-29e6-4c9d-9e7d-d6201259400c" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030231Z:c565fe73-29e6-4c9d-9e7d-d6201259400c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: CB51C77BE05548A19A8E43FC34A821A9 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:40Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:40 GMT" ] + "X-MSEdge-Ref": [ "Ref A: ED2E9252433C40B98B4F33C2E39F72F2 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:30Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:30 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+6": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+6": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value3\",\r\n \"tag2\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-v92w.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value3\",\r\n \"tag2\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-4gso.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -234,45 +234,45 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/7457da67-11e1-415b-acaf-4bda3c9cde0c/frontdoorresults/testps-fd-v92w?api-version=2021-06-01\u0026t=638960300228746028\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLq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CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=Je0jg1SeFp32NMkB6SakM8UPckuYsEBQ00mkCTouOR0C0VrJEIbSAFHVatE-D5J3sFsY5SNz9QsUnDvfKFM7ipdd7uTk2ExOEK92c9SrNzM54BNQkZ8XAKRNaMl6wDnOV4xOnBORl3rlAh7vo-Knrjtvq6bppbYbPK1WkUExowiG0cjfAuPeRCS8uVzhI-3ydYWRL9MLNqV6j_I-KquobFqVBCgJ-Jb0OYIlhcCvY_yIyKHSHFKTaYD3U74o07ppZizyQsSGlB7wc49r0q7m4oM86OCNPiBlHenL4SvpJO-wVZjOmjpZtqaC3CnKpeHnmpRfu5yHCMlNC-PVmOFgHA\u0026h=opl2utipMoH17EOreE7a0Qsk6ShdYwuQkBaxqyEoPTM" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/be7ac5ae-9705-449a-b1be-df62a96286d3/frontdoorresults/testps-fd-4gso?api-version=2021-06-01\u0026t=638961805525260793\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAY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Domains" ], - "x-ms-request-id": [ "6bc5ada4-dad5-405e-a28b-8831b3574daf" ], - "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/7457da67-11e1-415b-acaf-4bda3c9cde0c?api-version=2021-06-01\u0026t=638960300228746028\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjD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pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=GE89H0UOqlgRapNqZvIQMusKDL8MxEnAQHlICq5Npc8m2RDd4ctaOOa3K4jJty_otredaDoavunSVhZsI-H3NwXoLAUokM1XThhlQxxnHD-kStGVsVthqC40CK9tufFjPZSWenR3uWYp1qDos8D1-csqqXDVT2G_5E4c1kmd7otd-MZKhsiwmkvDww3sfnOrD7xf3MJgBWrCuhKhyo8lS5amPRV7xwJq1NyG623ZTKIRvb9xseplXrYWTmi6fjFGlDcdBoHdc9IzByYxGytAW1J7mGGhXJxpcN9ZKLUo_wfNweDZ0WypJMbR2oms8MVKmjr0DuZ86viGB-wPWHb-uQ\u0026h=pRxQDzutFjBmnMFpIbX6gIw6jLpMZmfGi1UehGPYYBg" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/06babbd9-da7c-404a-b3d3-9e8166343bc6" ], + "x-ms-request-id": [ "f6a9a55e-ffe1-4de2-aecc-957c9d31523a" ], + "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/be7ac5ae-9705-449a-b1be-df62a96286d3?api-version=2021-06-01\u0026t=638961805525104560\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ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6f2bd4c99576" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "b561a21e-4459-4cba-9990-e7ecd7852e78" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091342Z:b561a21e-4459-4cba-9990-e7ecd7852e78" ], + "x-ms-correlation-request-id": [ "fc67c244-954b-4538-a933-b93cfeaff505" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030232Z:fc67c244-954b-4538-a933-b93cfeaff505" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 7AF274328ABA4EC3A6C48BD4C73A3DAC Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:40Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 896319DD1BBB428E9A96DEEB29F20200 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:31Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/7457da67-11e1-415b-acaf-4bda3c9cde0c?api-version=2021-06-01\u0026t=638960300228746028\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD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K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=GE89H0UOqlgRapNqZvIQMusKDL8MxEnAQHlICq5Npc8m2RDd4ctaOOa3K4jJty_otredaDoavunSVhZsI-H3NwXoLAUokM1XThhlQxxnHD-kStGVsVthqC40CK9tufFjPZSWenR3uWYp1qDos8D1-csqqXDVT2G_5E4c1kmd7otd-MZKhsiwmkvDww3sfnOrD7xf3MJgBWrCuhKhyo8lS5amPRV7xwJq1NyG623ZTKIRvb9xseplXrYWTmi6fjFGlDcdBoHdc9IzByYxGytAW1J7mGGhXJxpcN9ZKLUo_wfNweDZ0WypJMbR2oms8MVKmjr0DuZ86viGB-wPWHb-uQ\u0026h=pRxQDzutFjBmnMFpIbX6gIw6jLpMZmfGi1UehGPYYBg+7": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/be7ac5ae-9705-449a-b1be-df62a96286d3?api-version=2021-06-01\u0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5JNkU-vTyujowyaMucJqO09CRXel9_AocaktkmzFtEHgD2ywSy81sj2GUEfYWTwW8MlD2PkhlO0YjasJuIXWr-mmEVuBpcQcIt__R3-Z2MO5_Fx5ZMGdXl1cngcjlRV-MN_A3kg\u0026h=zXoU4YzNSv6ReqUFMyBYxMGG1sg-SzVVbRTmE7VyB5c+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdooroperationresults/7457da67-11e1-415b-acaf-4bda3c9cde0c?api-version=2021-06-01\u0026t=638960300228746028\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGA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Fg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=GE89H0UOqlgRapNqZvIQMusKDL8MxEnAQHlICq5Npc8m2RDd4ctaOOa3K4jJty_otredaDoavunSVhZsI-H3NwXoLAUokM1XThhlQxxnHD-kStGVsVthqC40CK9tufFjPZSWenR3uWYp1qDos8D1-csqqXDVT2G_5E4c1kmd7otd-MZKhsiwmkvDww3sfnOrD7xf3MJgBWrCuhKhyo8lS5amPRV7xwJq1NyG623ZTKIRvb9xseplXrYWTmi6fjFGlDcdBoHdc9IzByYxGytAW1J7mGGhXJxpcN9ZKLUo_wfNweDZ0WypJMbR2oms8MVKmjr0DuZ86viGB-wPWHb-uQ\u0026h=pRxQDzutFjBmnMFpIbX6gIw6jLpMZmfGi1UehGPYYBg", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/be7ac5ae-9705-449a-b1be-df62a96286d3?api-version=2021-06-01\u0026t=638961805525104560\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde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ye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=louDhqybLpaO5w6gXfv0o963oKmZ7gbn-glTRuazYJche0IdcJyuOZ3G4vnzbcyyYJ0pb2gADjdYd4a_7lDIt0oJTgs7EVDVgnhSAsE9zsI-EEwWLDnY1Li8KWmXwqrRx-QfumUp-doPDLt6dgSoeZaD7SMWBDaR_GFHAlRSCSGe1EszH8VkpAn-Bnf5-P9-dMDSezUAn-CXSzE5JNkU-vTyujowyaMucJqO09CRXel9_AocaktkmzFtEHgD2ywSy81sj2GUEfYWTwW8MlD2PkhlO0YjasJuIXWr-mmEVuBpcQcIt__R3-Z2MO5_Fx5ZMGdXl1cngcjlRV-MN_A3kg\u0026h=zXoU4YzNSv6ReqUFMyBYxMGG1sg-SzVVbRTmE7VyB5c", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -283,17 +283,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "13ddfaa0-3da7-4ac8-95ba-a615fbf8c5a6" ], - "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6163eb53-79a2-42a9-9533-36eb2725499f" ], + "x-ms-request-id": [ "f566ddf1-056e-4351-91f6-4e962b02d6b1" ], + "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/888598c0-d059-4008-addf-f208bd3ea8cd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "a34858ce-cb64-48c0-94b6-60c728715f18" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091353Z:a34858ce-cb64-48c0-94b6-60c728715f18" ], + "x-ms-correlation-request-id": [ "72ed68f0-645b-4e15-bca3-28551f350b67" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030243Z:72ed68f0-645b-4e15-bca3-28551f350b67" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 892D9E7EB9DC402EA09003F60C9764F5 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:53Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:52 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2B435725A1C4453DB5A5D69A8390D669 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:42Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -304,20 +304,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01+8": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -328,23 +328,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b1483bf4-8306-49ee-81cf-27242746524f" ], - "x-ms-client-request-id": [ "08cc1a9e-55d9-4770-98ad-8e4e6d67be3e" ], + "x-ms-request-id": [ "7730260e-68d6-4af1-ac39-f253e4b5aaeb" ], + "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "592dd965-0a15-4dff-9ac6-86af13e3cd3c" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091353Z:592dd965-0a15-4dff-9ac6-86af13e3cd3c" ], + "x-ms-correlation-request-id": [ "716018e2-b110-4c61-a48b-c6e310f9bc26" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030243Z:716018e2-b110-4c61-a48b-c6e310f9bc26" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8A3B135705234B8394A43EA0178F8A83 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:53Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:53 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C46B484F79534A93A4E1B98DF90664C7 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:43Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-v92w\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-v92w\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"66c25b4a-eb08-4d74-b2d0-91000a81a18a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-v92w/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/Frontdoors/testps-fd-v92w/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-v92w.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-v92w.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 index af300aec2af8..c302b612d924 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Tests.ps1 @@ -16,7 +16,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Set-AzFrontDoor')) Describe 'Set-AzFrontDoor' { It 'UpdateExpanded' { - $FDName = 'testps-fd-' + (RandomString -allChars $false -len 4) + $FDName = $env.FrontDoorNameForUpdate $tags = @{"tag1" = "value1"; "tag2" = "value2"} $hostName = "$FDName.azurefd.net" $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $FDName -ResourceGroupName $env.ResourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json index 61b3e563436f..6796972d3915 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json @@ -1,17 +1,17 @@ { - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+1": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "2fa53ab0-b350-412a-b315-4be82967e1ff" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "28e56875-906d-4f14-8a63-e52346c7e8dd" ], "CommandName": [ "Get-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Get-AzFrontDoorRulesEngine_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,40 +23,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c5960f5f-4320-4321-8be5-da58f07850ab" ], - "x-ms-client-request-id": [ "2fa53ab0-b350-412a-b315-4be82967e1ff" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/48356e90-842a-42fd-b241-cc676979033f" ], + "x-ms-request-id": [ "cfa59082-d73c-4e96-ab2f-b12399a26b05" ], + "x-ms-client-request-id": [ "28e56875-906d-4f14-8a63-e52346c7e8dd" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e2ef6fd7-f2cc-473b-b736-a02caf66a8df" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ef575379-2b4b-4e98-8fbf-a1516e30b05a" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091354Z:ef575379-2b4b-4e98-8fbf-a1516e30b05a" ], + "x-ms-correlation-request-id": [ "33b6585e-c905-4a56-a714-0398aa106eac" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030244Z:33b6585e-c905-4a56-a714-0398aa106eac" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 424C508C04284502A4578D6BD71B3766 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:54Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:54 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 9D9CAEC4E80C49DB97A4394937CD78C7 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:44Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+2": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -68,32 +68,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0740b403-2e09-4a6f-a701-afdb37649030" ], - "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/4f804dfa-64a9-41f3-be3e-33b011a2a62a" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9983f935-45f0-4dcd-af3e-ca3a25b56cfc" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091355Z:9983f935-45f0-4dcd-af3e-ca3a25b56cfc" ], + "x-ms-request-id": [ "9eb7094e-a294-4c21-91a7-a773ba4674fb" ], + "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/19458bc5-4b5f-4a21-98e0-e1b54206820c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "3a05b14e-f4e4-4721-91df-93a78d86839b" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030244Z:3a05b14e-f4e4-4721-91df-93a78d86839b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C6D8DDD89516417AB99ABE9BE6080D33 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:54Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:54 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A1DCE8E29C514806AE744E5E995EC55A Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:44Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+3": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -108,41 +108,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e6178485-46b2-49d9-af87-b689112649b8" ], - "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/75f40a87-3058-46cf-877a-bdbe47665352" ], + "x-ms-request-id": [ "849860da-fcce-4399-8c45-0da885b76fc4" ], + "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/8785cc63-476d-48ab-ba18-14a5ff78b679" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "94b0df77-ed51-4c85-b308-0fddf6111112" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091356Z:94b0df77-ed51-4c85-b308-0fddf6111112" ], + "x-ms-correlation-request-id": [ "d4f72823-2616-43a4-8fe6-23dee9b3a24c" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030245Z:d4f72823-2616-43a4-8fe6-23dee9b3a24c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F5BE86433F7446C1917FAA6D795C1488 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:13:55Z" ], - "Date": [ "Tue, 14 Oct 2025 09:13:55 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8CAD9CE4ECAF4624B8E2918218B62658 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:45Z" ], + "Date": [ "Thu, 16 Oct 2025 03:02:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01+4": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -153,24 +153,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "57d5c4fc-81ad-40bd-8822-ab86ccd144de" ], - "x-ms-client-request-id": [ "0599f25e-1697-4739-a27f-5f35be77bade" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/45d382cb-e961-4cd4-9e92-ec687bf77991" ], + "x-ms-request-id": [ "6ee85285-8f49-49f1-8b80-22d32bccbd9a" ], + "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/06df823f-8a2b-4fe0-92f2-ac225372cd0e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e7b1199b-ad43-4ae9-b591-63de7b37e311" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091426Z:e7b1199b-ad43-4ae9-b591-63de7b37e311" ], + "x-ms-correlation-request-id": [ "df83667d-9da9-414e-a7bc-251da1848a4f" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030317Z:df83667d-9da9-414e-a7bc-251da1848a4f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2E3A2449BECB42D1B068726597EBFDBE Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:14:26Z" ], - "Date": [ "Tue, 14 Oct 2025 09:14:25 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 6CF677DCA28B4838A0E2BD21EA3690FC Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:16Z" ], + "Date": [ "Thu, 16 Oct 2025 03:03:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json index d891ca226485..113e998a9243 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+1": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "79a4dd41-4f71-4747-9b0f-5e21aba96d7a" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "c67379f8-04b5-4727-8e68-a601f8cf5d27" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,39 +23,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "4aa28548-40c3-40bf-acc5-75258da78c53" ], - "x-ms-client-request-id": [ "79a4dd41-4f71-4747-9b0f-5e21aba96d7a" ], + "x-ms-request-id": [ "8ce06263-8bee-4e05-9a3a-fa42a861b48d" ], + "x-ms-client-request-id": [ "c67379f8-04b5-4727-8e68-a601f8cf5d27" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "5e7013ca-61a0-4a21-9e00-6f09fe7bedbe" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091428Z:5e7013ca-61a0-4a21-9e00-6f09fe7bedbe" ], + "x-ms-correlation-request-id": [ "ece06478-bbb9-4b39-b71a-eb7b008bacb8" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030319Z:ece06478-bbb9-4b39-b71a-eb7b008bacb8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 77D689B8D1324A8DB7672346C348C8C2 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:14:28Z" ], - "Date": [ "Tue, 14 Oct 2025 09:14:27 GMT" ] + "X-MSEdge-Ref": [ "Ref A: AF1F70C7FDB944E98E96264D263C3FEA Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:18Z" ], + "Date": [ "Thu, 16 Oct 2025 03:03:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+2": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -67,30 +67,30 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "67a34f22-6e0b-414e-8a5d-63685432657d" ], - "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], + "x-ms-request-id": [ "92bc2334-c285-4205-835d-150c8e55214d" ], + "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "19024821-1502-40fa-9473-8ecc1800c09e" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091428Z:19024821-1502-40fa-9473-8ecc1800c09e" ], + "x-ms-correlation-request-id": [ "e431a62b-cb01-4753-930b-05d31155f9b3" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030319Z:e431a62b-cb01-4753-930b-05d31155f9b3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: EF9CC61073724C01864D526659E2B518 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:14:28Z" ], - "Date": [ "Tue, 14 Oct 2025 09:14:27 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 8CB4929559914914856839FD2C5315DC Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:19Z" ], + "Date": [ "Thu, 16 Oct 2025 03:03:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+3": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [ ],\r\n \"ruleGroupOverrides\": [ ]\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -106,41 +106,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "30d5add5-6696-40f3-a983-364a42a684a9" ], - "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/abdc3644-2713-435a-807c-61424d39afc5" ], + "x-ms-request-id": [ "68900e91-7249-479e-8021-4229959ce852" ], + "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cdb598b4-20fc-45ba-ac25-f0d83f0185d8" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "57907008-7901-4fb0-a6b4-d029d7265105" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091429Z:57907008-7901-4fb0-a6b4-d029d7265105" ], + "x-ms-correlation-request-id": [ "87720c8a-c328-4c11-aeea-8d939ca1a1b7" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030321Z:87720c8a-c328-4c11-aeea-8d939ca1a1b7" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 0B954E059270429D8E75F67FD05D924E Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:14:28Z" ], - "Date": [ "Tue, 14 Oct 2025 09:14:28 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 007D68739DCB453A83E83AC0876E674A Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:19Z" ], + "Date": [ "Thu, 16 Oct 2025 03:03:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+4": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -151,40 +151,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "587d5a47-5c7d-4bd2-a61f-300a3943d1f5" ], - "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], + "x-ms-request-id": [ "07ed84e0-5c9c-480b-ba5c-1b7f8ba2b0ec" ], + "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "d3195d05-ff39-439a-9ae2-50e869f50224" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091500Z:d3195d05-ff39-439a-9ae2-50e869f50224" ], + "x-ms-correlation-request-id": [ "516f49ef-e634-4995-87f5-da35236682f8" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030352Z:516f49ef-e634-4995-87f5-da35236682f8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 62DF93273BD34D01AA8E35A37CE8FF35 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:15:00Z" ], - "Date": [ "Tue, 14 Oct 2025 09:14:59 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 6BECA2E373B74D4C87E58AA795CFAE8C Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:52Z" ], + "Date": [ "Thu, 16 Oct 2025 03:03:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+5": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -195,23 +195,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "046dbdab-1511-49bd-94fe-1159fc1e6c82" ], - "x-ms-client-request-id": [ "6a03ae99-ed62-4f75-a20c-77fc4c8e91bf" ], + "x-ms-request-id": [ "fb470b66-48ec-412c-8a60-8602c03a31f1" ], + "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "29f428f8-5ce1-4c62-a70c-c9b5cee9eb4b" ], - "x-ms-routing-request-id": [ "WESTUS:20251014T091500Z:29f428f8-5ce1-4c62-a70c-c9b5cee9eb4b" ], + "x-ms-correlation-request-id": [ "9b8008f8-0e77-4b0f-92ec-02c4d19ef7cd" ], + "x-ms-routing-request-id": [ "WESTUS:20251016T030352Z:9b8008f8-0e77-4b0f-92ec-02c4d19ef7cd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2BAB0C7198B04EFA800682E60A4FD693 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:15:00Z" ], - "Date": [ "Tue, 14 Oct 2025 09:15:00 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C14A07D066124A36B309BDD28145D3EE Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:52Z" ], + "Date": [ "Thu, 16 Oct 2025 03:03:52 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1767" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json index e2d2c89f3d93..296d8dd5ce5b 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/env.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -1,9 +1,13 @@ { - "FrontDoorName": "testps-fd-xawq", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "WafPolicyName": "testpsWafve35", - "RuleEngineName": "engine101", - "ResourceGroupName": "testps-rg-3fhp", + "WafPolicyName": "testpsWafq3p2", + "FrontDoorName": "testps-fd-zycv", "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", - "location": "westus" + "FrontDoorNameForUpdate": "testps-fd-4gso", + "RuleEngineName": "engine101", + "WafPolicyNameForDelete": "testpsWafi7nt", + "ResourceGroupName": "testps-rg-woz4", + "FrontDoorNameForDelete": "testps-fd-uzv9", + "WafPolicyNameForCreate": "testpsWafdwo0", + "location": "westus", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/utils.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/utils.ps1 index 0deeb8607a27..a0e53977b987 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/utils.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/utils.ps1 @@ -108,6 +108,18 @@ function setupEnv() { $env.Add("WafPolicyName", $wafName) + # Generate names for other tests + $wafNameForCreate = 'testpsWaf' + (RandomString -allChars $false -len 4) + $env.Add("WafPolicyNameForCreate", $wafNameForCreate) + + $wafNameForDelete = 'testpsWaf' + (RandomString -allChars $false -len 4) + $env.Add("WafPolicyNameForDelete", $wafNameForDelete) + + $frontDoorNameForDelete = 'testps-fd-' + (RandomString -allChars $false -len 4) + $env.Add("FrontDoorNameForDelete", $frontDoorNameForDelete) + + $frontDoorNameForUpdate = 'testps-fd-' + (RandomString -allChars $false -len 4) + $env.Add("FrontDoorNameForUpdate", $frontDoorNameForUpdate) # Preload subscriptionId and tenant from context, which will be used in test # as default. You could change them if needed. diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 37420be450fa..c27f1cdedc69 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{2F771386-FCDE-4978-B7BA-AC7E5A28E036}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|x64.ActiveCfg = Debug|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|x64.Build.0 = Debug|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|x86.ActiveCfg = Debug|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Debug|x86.Build.0 = Debug|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|Any CPU.Build.0 = Release|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|x64.ActiveCfg = Release|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|x64.Build.0 = Release|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|x86.ActiveCfg = Release|Any CPU - {2F771386-FCDE-4978-B7BA-AC7E5A28E036}.Release|x86.Build.0 = Release|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|Any CPU.Build.0 = Debug|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|x64.ActiveCfg = Debug|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|x64.Build.0 = Debug|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|x86.ActiveCfg = Debug|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|x86.Build.0 = Debug|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|Any CPU.ActiveCfg = Release|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|Any CPU.Build.0 = Release|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|x64.ActiveCfg = Release|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|x64.Build.0 = Release|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|x86.ActiveCfg = Release|Any CPU + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {2F771386-FCDE-4978-B7BA-AC7E5A28E036} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index f044446b7435..ec20200dfef8 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/10/14 +# Generated on: 2025/10/16 # @{ From f194a7f5c8afb9659975442f234bd7a726bf0033 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Mon, 20 Oct 2025 18:46:06 +1100 Subject: [PATCH 18/30] remove test --- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../FrontDoor.Autorest/generate-info.json | 2 +- .../New-AzFrontDoorBackendObject.Tests.ps1 | 2 +- ...New-AzFrontDoorBackendPoolObject.Tests.ps1 | 2 +- ...ontDoorBackendPoolsSettingObject.Tests.ps1 | 2 +- ...zFrontDoorFrontendEndpointObject.Tests.ps1 | 2 +- ...ew-AzFrontDoorHeaderActionObject.Tests.ps1 | 2 +- ...rontDoorHealthProbeSettingObject.Tests.ps1 | 2 +- ...ntDoorLoadBalancingSettingObject.Tests.ps1 | 2 +- ...New-AzFrontDoorRoutingRuleObject.Tests.ps1 | 4 +-- ...FrontDoorRulesEngineActionObject.Tests.ps1 | 4 +-- ...fCustomRuleGroupByVariableObject.Tests.ps1 | 2 +- ...w-AzFrontDoorWafCustomRuleObject.Tests.ps1 | 2 +- ...ontDoorWafLogScrubbingRuleObject.Tests.ps1 | 2 +- ...DoorWafLogScrubbingSettingObject.Tests.ps1 | 2 +- ...oorWafManagedRuleExclusionObject.Tests.ps1 | 2 +- ...-AzFrontDoorWafManagedRuleObject.Tests.ps1 | 2 +- ...DoorWafManagedRuleOverrideObject.Tests.ps1 | 2 +- ...FrontDoorWafMatchConditionObject.Tests.ps1 | 2 +- ...ntDoorWafRuleGroupOverrideObject.Tests.ps1 | 2 +- src/FrontDoor/FrontDoor.sln | 28 +++++++++---------- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- 22 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 9baf18626cdb..4f83c518be46 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: 018547c3-e57b-41b4-9c6a-3b90d42ffbc6 +Module Guid: cf98442d-353b-4270-9299-8a4bb7c977e6 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 95479e0b6dcd..99a65c3803f2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "29afd54b-d755-4c72-8b5d-b60eb006a04e" + "generate_Id": "85da455b-7d46-4dd0-957d-bf82cf4d34f0" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendObject.Tests.ps1 index e0d6c15c4e77..c89a7010f215 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorBackendObject' } Describe 'New-AzFrontDoorBackendObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" $backend1.Address | Should -Be "contoso1.azurewebsites.net" $backend1.BackendHostHeader | Should -Be "contoso1.azurewebsites.net" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolObject.Tests.ps1 index 9bb354184115..54d9e94d7bda 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorBackendPoolObj } Describe 'New-AzFrontDoorBackendPoolObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $FDName = $env.FrontDoorName $resourceGroupName = $env.ResourceGroupName $subId = $env.SubscriptionId diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolsSettingObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolsSettingObject.Tests.ps1 index d0b94b99529a..77fdb9873eac 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolsSettingObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorBackendPoolsSettingObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorBackendPoolsSe } Describe 'New-AzFrontDoorBackendPoolsSettingObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 $backendPoolsSetting1.SendRecvTimeoutInSeconds | Should -Be 33 $backendPoolsSetting1.EnforceCertificateNameCheck | Should -Be "Enabled" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorFrontendEndpointObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorFrontendEndpointObject.Tests.ps1 index 874e02329f70..320bd195b049 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorFrontendEndpointObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorFrontendEndpointObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorFrontendEndpoi } Describe 'New-AzFrontDoorFrontendEndpointObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $FDName = $env.FrontDoorName $hostName = "$FDName.azurefd.net" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHeaderActionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHeaderActionObject.Tests.ps1 index b9c7b246999e..2b729ca27c18 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHeaderActionObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHeaderActionObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorHeaderActionOb } Describe 'New-AzFrontDoorHeaderActionObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" $headerActions.HeaderActionType | Should -Be "Append" $headerActions.HeaderName | Should -Be "X-Content-Type-Options" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHealthProbeSettingObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHealthProbeSettingObject.Tests.ps1 index 02f7040e1d68..d27632f1a179 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHealthProbeSettingObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorHealthProbeSettingObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorHealthProbeSet } Describe 'New-AzFrontDoorHealthProbeSettingObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" $healthProbeSetting1.Name | Should -Be "healthProbeSetting1" $healthProbeSetting1.EnabledState | Should -Be "Enabled" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorLoadBalancingSettingObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorLoadBalancingSettingObject.Tests.ps1 index c8cc141988ab..993d62ca6cfc 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorLoadBalancingSettingObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorLoadBalancingSettingObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorLoadBalancingS } Describe 'New-AzFrontDoorLoadBalancingSettingObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" $loadBalancingSetting1.Name | Should -Be "loadbalancingsetting1" $loadBalancingSetting1.SampleSize | Should -Be 4 diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRoutingRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRoutingRuleObject.Tests.ps1 index ebed31df5d4e..57a9c45909cd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRoutingRuleObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRoutingRuleObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorRoutingRuleObj } Describe 'New-AzFrontDoorRoutingRuleObject' { - It 'ForwardingParameterSet' { + It 'ForwardingParameterSet' -skip { $FDName = $env.FrontDoorName $resourceGroupName = $env.ResourceGroupName $subId = $env.SubscriptionId @@ -30,7 +30,7 @@ Describe 'New-AzFrontDoorRoutingRuleObject' { $routingrule1.RouteConfiguration.ForwardingProtocol | Should -Be "MatchRequest" } - It 'RedirectParameterSet' { + It 'RedirectParameterSet' -skip { $FDName = $env.FrontDoorName $resourceGroupName = $env.ResourceGroupName $subId = $env.SubscriptionId diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineActionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineActionObject.Tests.ps1 index 17e4340ed902..17941afed76a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineActionObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngineActionObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorRulesEngineAct } Describe 'New-AzFrontDoorRulesEngineActionObject' { - It 'ForwardingParameterSet' { + It 'ForwardingParameterSet' -skip { $FDName = $env.FrontDoorName $resourceGroupName = $env.ResourceGroupName $subId = $env.SubscriptionId @@ -30,7 +30,7 @@ Describe 'New-AzFrontDoorRulesEngineActionObject' { $ruleEngineForwardAction.RouteConfigurationOverride.CacheConfiguration.QueryParameter | Should -Be $null $ruleEngineForwardAction.RouteConfigurationOverride.CacheConfiguration.CacheDuration | Should -Be $null } - It 'RedirectParameterSet' { + It 'RedirectParameterSet' -skip { $ruleEngineRedirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectProtocol "MatchRequest" -CustomHost "www.contoso.com" -RedirectType "Moved" $ruleEngineRedirectAction.RouteConfigurationOverride.RedirectProtocol | Should -Be "MatchRequest" $ruleEngineRedirectAction.RouteConfigurationOverride.RedirectType | Should -Be "Moved" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleGroupByVariableObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleGroupByVariableObject.Tests.ps1 index 8096c6560dad..66dcd5e2cd0a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleGroupByVariableObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleGroupByVariableObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafCustomRuleG } Describe 'New-AzFrontDoorWafCustomRuleGroupByVariableObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $groupBy = New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName "SocketAddr" $groupBy.VariableName | Should -Be "SocketAddr" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleObject.Tests.ps1 index 753de55830d0..3a1f7ace1ff6 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafCustomRuleObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafCustomRuleO } Describe 'New-AzFrontDoorWafCustomRuleObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" $customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action "Block" -Priority 2 $customRule1.Name | Should -Be "Rule1" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingRuleObject.Tests.ps1 index 5278b878c1fa..65991992bc75 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingRuleObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingRuleObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafLogScrubbin } Describe 'New-AzFrontDoorWafLogScrubbingRuleObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" $LogScrubbingRule.MatchVariable | Should -Be "RequestHeaderNames" $LogScrubbingRule.SelectorMatchOperator | Should -Be "EqualsAny" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingSettingObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingSettingObject.Tests.ps1 index ba2f1d63cbd3..ee681feb6e97 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingSettingObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafLogScrubbingSettingObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafLogScrubbin } Describe 'New-AzFrontDoorWafLogScrubbingSettingObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" $logscrubbingSetting = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @($LogScrubbingRule) $logscrubbingSetting.State | Should -Be "Enabled" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleExclusionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleExclusionObject.Tests.ps1 index b428467010fd..ea53ba285c78 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleExclusionObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleExclusionObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafManagedRule } Describe 'New-AzFrontDoorWafManagedRuleExclusionObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" $exclusionRule.Variable | Should -Be "QueryStringArgNames" $exclusionRule.Operator | Should -Be "Equals" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleObject.Tests.ps1 index 6fbd9ab407c1..5d95faf0d976 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafManagedRule } Describe 'New-AzFrontDoorWafManagedRuleObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInGroup" $exclusionSet = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInSet" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleOverrideObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleOverrideObject.Tests.ps1 index 96a194bff4d2..0c65f55e701b 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleOverrideObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafManagedRuleOverrideObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafManagedRule } Describe 'New-AzFrontDoorWafManagedRuleOverrideObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action "Log" -Exclusion $exclusionRule $ruleOverride.RuleId | Should -Be "942100" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafMatchConditionObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafMatchConditionObject.Tests.ps1 index 4001f04bd543..38d2a262191b 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafMatchConditionObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafMatchConditionObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafMatchCondit } Describe 'New-AzFrontDoorWafMatchConditionObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" $matchCondition1.MatchVariable | Should -Be "RequestHeader" $matchCondition1.OperatorProperty | Should -Be "Contains" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafRuleGroupOverrideObject.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafRuleGroupOverrideObject.Tests.ps1 index b17a02cf51b1..ab3227b3142e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafRuleGroupOverrideObject.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafRuleGroupOverrideObject.Tests.ps1 @@ -15,7 +15,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorWafRuleGroupOv } Describe 'New-AzFrontDoorWafRuleGroupOverrideObject' { - It '__AllParameterSets' { + It '__AllParameterSets' -skip { $exclusionRule = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInRule" $exclusionGroup = New-AzFrontDoorWafManagedRuleExclusionObject -Variable "QueryStringArgNames" -Operator "Equals" -Selector "ExcludeInGroup" $ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action "Log" -Exclusion $exclusionRule diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index c27f1cdedc69..8f98904f8c6d 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|Any CPU.Build.0 = Debug|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|x64.ActiveCfg = Debug|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|x64.Build.0 = Debug|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|x86.ActiveCfg = Debug|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Debug|x86.Build.0 = Debug|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|Any CPU.ActiveCfg = Release|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|Any CPU.Build.0 = Release|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|x64.ActiveCfg = Release|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|x64.Build.0 = Release|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|x86.ActiveCfg = Release|Any CPU - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29}.Release|x86.Build.0 = Release|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|x64.ActiveCfg = Debug|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|x64.Build.0 = Debug|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|x86.ActiveCfg = Debug|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|x86.Build.0 = Debug|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|Any CPU.Build.0 = Release|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|x64.ActiveCfg = Release|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|x64.Build.0 = Release|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|x86.ActiveCfg = Release|Any CPU + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {79FFDE1B-F151-4F6E-A2CA-2315ACF6BD29} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index ec20200dfef8..e605905349a7 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/10/16 +# Generated on: 2025/10/20 # @{ From 206ca0b8daad8170d4b7d15f6dfe9db9cd8cd45b Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 22 Oct 2025 11:15:44 +1100 Subject: [PATCH 19/30] fix some breaking changes --- .../FrontDoor.Autorest/Az.FrontDoor.csproj | 11 + .../Az.FrontDoor.format.ps1xml | 2299 +++++ .../FrontDoor.Autorest/Az.FrontDoor.psd1 | 23 + .../FrontDoor.Autorest/Az.FrontDoor.psm1 | 119 + .../Properties/AssemblyInfo.cs | 26 + .../FrontDoor.Autorest/check-dependencies.ps1 | 65 + .../Disable-AzFrontDoorCustomDomainHttps.ps1 | 265 + .../Enable-AzFrontDoorCustomDomainHttps.ps1 | 345 + .../exports/Get-AzFrontDoor.ps1 | 230 + .../Get-AzFrontDoorFrontendEndpoint.ps1 | 254 + .../exports/Get-AzFrontDoorRulesEngine.ps1 | 252 + ...AzFrontDoorWafManagedRuleSetDefinition.ps1 | 186 + .../exports/Get-AzFrontDoorWafPolicy.ps1 | 228 + .../exports/New-AzFrontDoor.ps1 | 361 + .../exports/New-AzFrontDoorBackendObject.ps1 | 192 + .../New-AzFrontDoorBackendPoolObject.ps1 | 176 + ...w-AzFrontDoorBackendPoolsSettingObject.ps1 | 134 + ...ew-AzFrontDoorCacheConfigurationObject.ps1 | 145 + ...FrontDoorForwardingConfigurationObject.ps1 | 156 + .../New-AzFrontDoorFrontendEndpointObject.ps1 | 204 + .../New-AzFrontDoorHeaderActionObject.ps1 | 137 + ...ew-AzFrontDoorHealthProbeSettingObject.ps1 | 164 + ...-AzFrontDoorLoadBalancingSettingObject.ps1 | 147 + .../New-AzFrontDoorPolicySettingsObject.ps1 | 193 + ...AzFrontDoorRedirectConfigurationObject.ps1 | 163 + .../New-AzFrontDoorRoutingRuleObject.ps1 | 299 + .../exports/New-AzFrontDoorRulesEngine.ps1 | 262 + ...New-AzFrontDoorRulesEngineActionObject.ps1 | 319 + ...ontDoorRulesEngineMatchConditionObject.ps1 | 158 + .../New-AzFrontDoorRulesEngineRuleObject.ps1 | 196 + ...DoorWafCustomRuleGroupByVariableObject.ps1 | 124 + .../New-AzFrontDoorWafCustomRuleObject.ps1 | 193 + ...w-AzFrontDoorWafLogScrubbingRuleObject.ps1 | 145 + ...zFrontDoorWafLogScrubbingSettingObject.ps1 | 142 + ...FrontDoorWafManagedRuleExclusionObject.ps1 | 137 + .../New-AzFrontDoorWafManagedRuleObject.ps1 | 176 + ...zFrontDoorWafManagedRuleOverrideObject.ps1 | 153 + ...New-AzFrontDoorWafMatchConditionObject.ps1 | 159 + .../exports/New-AzFrontDoorWafPolicy.ps1 | 371 + ...-AzFrontDoorWafRuleGroupOverrideObject.ps1 | 157 + .../exports/ProxyCmdletDefinitions.ps1 | 8392 ++++++++++++++++ .../FrontDoor.Autorest/exports/README.md | 20 + .../exports/Remove-AzFrontDoor.ps1 | 245 + .../exports/Remove-AzFrontDoorContent.ps1 | 285 + .../exports/Remove-AzFrontDoorRulesEngine.ps1 | 264 + .../exports/Remove-AzFrontDoorWafPolicy.ps1 | 241 + .../exports/Set-AzFrontDoor.ps1 | 392 + .../exports/Set-AzFrontDoorRulesEngine.ps1 | 250 + .../exports/Update-AzFrontDoorWafPolicy.ps1 | 392 + .../FrontDoor.Autorest/generate-info.json | 3 + .../FrontDoor.Autorest/generated/Module.cs | 202 + .../generated/api/FrontDoor.cs | 8616 +++++++++++++++++ .../AzureAsyncOperationResult.PowerShell.cs | 222 + ...AzureAsyncOperationResult.TypeConverter.cs | 147 + .../api/Models/AzureAsyncOperationResult.cs | 159 + .../Models/AzureAsyncOperationResult.json.cs | 116 + .../api/Models/Backend.PowerShell.cs | 252 + .../api/Models/Backend.TypeConverter.cs | 146 + .../generated/api/Models/Backend.cs | 326 + .../generated/api/Models/Backend.json.cs | 131 + .../api/Models/BackendPool.PowerShell.cs | 236 + .../api/Models/BackendPool.TypeConverter.cs | 147 + .../generated/api/Models/BackendPool.cs | 194 + .../generated/api/Models/BackendPool.json.cs | 117 + .../BackendPoolListResult.PowerShell.cs | 176 + .../BackendPoolListResult.TypeConverter.cs | 147 + .../api/Models/BackendPoolListResult.cs | 82 + .../api/Models/BackendPoolListResult.json.cs | 124 + .../BackendPoolProperties.PowerShell.cs | 204 + .../BackendPoolProperties.TypeConverter.cs | 147 + .../api/Models/BackendPoolProperties.cs | 104 + .../api/Models/BackendPoolProperties.json.cs | 113 + .../BackendPoolUpdateParameters.PowerShell.cs | 196 + ...ckendPoolUpdateParameters.TypeConverter.cs | 147 + .../api/Models/BackendPoolUpdateParameters.cs | 112 + .../BackendPoolUpdateParameters.json.cs | 120 + .../Models/BackendPoolsSettings.PowerShell.cs | 172 + .../BackendPoolsSettings.TypeConverter.cs | 147 + .../api/Models/BackendPoolsSettings.cs | 88 + .../api/Models/BackendPoolsSettings.json.cs | 110 + .../Models/CacheConfiguration.PowerShell.cs | 190 + .../CacheConfiguration.TypeConverter.cs | 147 + .../api/Models/CacheConfiguration.cs | 129 + .../api/Models/CacheConfiguration.json.cs | 116 + .../CheckNameAvailabilityInput.PowerShell.cs | 172 + ...heckNameAvailabilityInput.TypeConverter.cs | 147 + .../api/Models/CheckNameAvailabilityInput.cs | 76 + .../Models/CheckNameAvailabilityInput.json.cs | 110 + .../CheckNameAvailabilityOutput.PowerShell.cs | 180 + ...eckNameAvailabilityOutput.TypeConverter.cs | 147 + .../api/Models/CheckNameAvailabilityOutput.cs | 105 + .../CheckNameAvailabilityOutput.json.cs | 121 + .../CustomHttpsConfiguration.PowerShell.cs | 236 + .../CustomHttpsConfiguration.TypeConverter.cs | 147 + .../api/Models/CustomHttpsConfiguration.cs | 216 + .../Models/CustomHttpsConfiguration.json.cs | 116 + .../api/Models/CustomRule.PowerShell.cs | 228 + .../api/Models/CustomRule.TypeConverter.cs | 146 + .../generated/api/Models/CustomRule.cs | 232 + .../generated/api/Models/CustomRule.json.cs | 138 + .../api/Models/CustomRuleList.PowerShell.cs | 164 + .../Models/CustomRuleList.TypeConverter.cs | 147 + .../generated/api/Models/CustomRuleList.cs | 54 + .../api/Models/CustomRuleList.json.cs | 116 + .../Models/DefaultErrorResponse.PowerShell.cs | 184 + .../DefaultErrorResponse.TypeConverter.cs | 147 + .../api/Models/DefaultErrorResponse.cs | 91 + .../api/Models/DefaultErrorResponse.json.cs | 111 + .../DefaultErrorResponseError.PowerShell.cs | 172 + ...DefaultErrorResponseError.TypeConverter.cs | 147 + .../api/Models/DefaultErrorResponseError.cs | 80 + .../Models/DefaultErrorResponseError.json.cs | 116 + .../generated/api/Models/Error.PowerShell.cs | 194 + .../api/Models/Error.TypeConverter.cs | 146 + .../generated/api/Models/Error.cs | 124 + .../generated/api/Models/Error.json.cs | 121 + .../api/Models/ErrorDetails.PowerShell.cs | 178 + .../api/Models/ErrorDetails.TypeConverter.cs | 147 + .../generated/api/Models/ErrorDetails.cs | 86 + .../generated/api/Models/ErrorDetails.json.cs | 111 + .../api/Models/ErrorResponse.PowerShell.cs | 176 + .../api/Models/ErrorResponse.TypeConverter.cs | 147 + .../generated/api/Models/ErrorResponse.cs | 85 + .../api/Models/ErrorResponse.json.cs | 119 + .../ForwardingConfiguration.PowerShell.cs | 204 + .../ForwardingConfiguration.TypeConverter.cs | 147 + .../api/Models/ForwardingConfiguration.cs | 154 + .../Models/ForwardingConfiguration.json.cs | 116 + .../api/Models/FrontDoor.PowerShell.cs | 320 + .../api/Models/FrontDoor.TypeConverter.cs | 146 + .../generated/api/Models/FrontDoor.cs | 368 + .../generated/api/Models/FrontDoor.json.cs | 111 + ...rCertificateSourceParameters.PowerShell.cs | 166 + ...rtificateSourceParameters.TypeConverter.cs | 150 + .../FrontDoorCertificateSourceParameters.cs | 62 + ...ontDoorCertificateSourceParameters.json.cs | 109 + .../Models/FrontDoorIdentity.PowerShell.cs | 210 + .../Models/FrontDoorIdentity.TypeConverter.cs | 157 + .../generated/api/Models/FrontDoorIdentity.cs | 180 + .../api/Models/FrontDoorIdentity.json.cs | 119 + .../Models/FrontDoorListResult.PowerShell.cs | 176 + .../FrontDoorListResult.TypeConverter.cs | 147 + .../api/Models/FrontDoorListResult.cs | 82 + .../api/Models/FrontDoorListResult.json.cs | 124 + .../Models/FrontDoorProperties.PowerShell.cs | 268 + .../FrontDoorProperties.TypeConverter.cs | 147 + .../api/Models/FrontDoorProperties.cs | 227 + .../api/Models/FrontDoorProperties.json.cs | 146 + ...PropertiesExtendedProperties.PowerShell.cs | 165 + ...pertiesExtendedProperties.TypeConverter.cs | 150 + .../FrontDoorPropertiesExtendedProperties.cs | 35 + ...PropertiesExtendedProperties.dictionary.cs | 75 + ...ntDoorPropertiesExtendedProperties.json.cs | 110 + .../FrontDoorUpdateParameters.PowerShell.cs | 220 + ...FrontDoorUpdateParameters.TypeConverter.cs | 147 + .../api/Models/FrontDoorUpdateParameters.cs | 202 + .../Models/FrontDoorUpdateParameters.json.cs | 162 + .../api/Models/FrontendEndpoint.PowerShell.cs | 340 + .../Models/FrontendEndpoint.TypeConverter.cs | 147 + .../generated/api/Models/FrontendEndpoint.cs | 440 + .../api/Models/FrontendEndpoint.json.cs | 117 + .../Models/FrontendEndpointLink.PowerShell.cs | 164 + .../FrontendEndpointLink.TypeConverter.cs | 147 + .../api/Models/FrontendEndpointLink.cs | 54 + .../api/Models/FrontendEndpointLink.json.cs | 108 + .../FrontendEndpointProperties.PowerShell.cs | 310 + ...rontendEndpointProperties.TypeConverter.cs | 147 + .../api/Models/FrontendEndpointProperties.cs | 336 + .../Models/FrontendEndpointProperties.json.cs | 127 + ...tendEndpointUpdateParameters.PowerShell.cs | 196 + ...dEndpointUpdateParameters.TypeConverter.cs | 148 + .../FrontendEndpointUpdateParameters.cs | 137 + .../FrontendEndpointUpdateParameters.json.cs | 114 + ...pplicationFirewallPolicyLink.PowerShell.cs | 169 + ...icationFirewallPolicyLink.TypeConverter.cs | 153 + ...ametersWebApplicationFirewallPolicyLink.cs | 56 + ...rsWebApplicationFirewallPolicyLink.json.cs | 111 + .../FrontendEndpointsListResult.PowerShell.cs | 176 + ...ontendEndpointsListResult.TypeConverter.cs | 147 + .../api/Models/FrontendEndpointsListResult.cs | 82 + .../FrontendEndpointsListResult.json.cs | 124 + .../api/Models/GroupByVariable.PowerShell.cs | 164 + .../Models/GroupByVariable.TypeConverter.cs | 147 + .../generated/api/Models/GroupByVariable.cs | 56 + .../api/Models/GroupByVariable.json.cs | 108 + .../api/Models/HeaderAction.PowerShell.cs | 180 + .../api/Models/HeaderAction.TypeConverter.cs | 147 + .../generated/api/Models/HeaderAction.cs | 102 + .../generated/api/Models/HeaderAction.json.cs | 112 + ...ealthProbeSettingsListResult.PowerShell.cs | 176 + ...thProbeSettingsListResult.TypeConverter.cs | 147 + .../Models/HealthProbeSettingsListResult.cs | 82 + .../HealthProbeSettingsListResult.json.cs | 124 + .../HealthProbeSettingsModel.PowerShell.cs | 236 + .../HealthProbeSettingsModel.TypeConverter.cs | 147 + .../api/Models/HealthProbeSettingsModel.cs | 239 + .../Models/HealthProbeSettingsModel.json.cs | 117 + ...ealthProbeSettingsProperties.PowerShell.cs | 206 + ...thProbeSettingsProperties.TypeConverter.cs | 147 + .../Models/HealthProbeSettingsProperties.cs | 105 + .../HealthProbeSettingsProperties.json.cs | 115 + ...robeSettingsUpdateParameters.PowerShell.cs | 198 + ...eSettingsUpdateParameters.TypeConverter.cs | 149 + .../HealthProbeSettingsUpdateParameters.cs | 155 + ...ealthProbeSettingsUpdateParameters.json.cs | 117 + ...tCertificateSourceParameters.PowerShell.cs | 190 + ...rtificateSourceParameters.TypeConverter.cs | 149 + .../KeyVaultCertificateSourceParameters.cs | 103 + ...eyVaultCertificateSourceParameters.json.cs | 113 + ...ificateSourceParametersVault.PowerShell.cs | 169 + ...cateSourceParametersVault.TypeConverter.cs | 151 + ...eyVaultCertificateSourceParametersVault.cs | 56 + ...ltCertificateSourceParametersVault.json.cs | 110 + ...dBalancingSettingsListResult.PowerShell.cs | 176 + ...lancingSettingsListResult.TypeConverter.cs | 148 + .../Models/LoadBalancingSettingsListResult.cs | 82 + .../LoadBalancingSettingsListResult.json.cs | 124 + .../LoadBalancingSettingsModel.PowerShell.cs | 220 + ...oadBalancingSettingsModel.TypeConverter.cs | 147 + .../api/Models/LoadBalancingSettingsModel.cs | 190 + .../Models/LoadBalancingSettingsModel.json.cs | 117 + ...dBalancingSettingsProperties.PowerShell.cs | 190 + ...lancingSettingsProperties.TypeConverter.cs | 148 + .../Models/LoadBalancingSettingsProperties.cs | 94 + .../LoadBalancingSettingsProperties.json.cs | 115 + ...cingSettingsUpdateParameters.PowerShell.cs | 185 + ...gSettingsUpdateParameters.TypeConverter.cs | 150 + .../LoadBalancingSettingsUpdateParameters.cs | 100 + ...dBalancingSettingsUpdateParameters.json.cs | 113 + .../ManagedRuleDefinition.PowerShell.cs | 188 + .../ManagedRuleDefinition.TypeConverter.cs | 147 + .../api/Models/ManagedRuleDefinition.cs | 130 + .../api/Models/ManagedRuleDefinition.json.cs | 126 + .../Models/ManagedRuleExclusion.PowerShell.cs | 180 + .../ManagedRuleExclusion.TypeConverter.cs | 147 + .../api/Models/ManagedRuleExclusion.cs | 104 + .../api/Models/ManagedRuleExclusion.json.cs | 112 + .../ManagedRuleGroupDefinition.PowerShell.cs | 180 + ...anagedRuleGroupDefinition.TypeConverter.cs | 147 + .../api/Models/ManagedRuleGroupDefinition.cs | 103 + .../Models/ManagedRuleGroupDefinition.json.cs | 129 + .../ManagedRuleGroupOverride.PowerShell.cs | 180 + .../ManagedRuleGroupOverride.TypeConverter.cs | 147 + .../api/Models/ManagedRuleGroupOverride.cs | 100 + .../Models/ManagedRuleGroupOverride.json.cs | 128 + .../Models/ManagedRuleOverride.PowerShell.cs | 188 + .../ManagedRuleOverride.TypeConverter.cs | 147 + .../api/Models/ManagedRuleOverride.cs | 124 + .../api/Models/ManagedRuleOverride.json.cs | 122 + .../api/Models/ManagedRuleSet.PowerShell.cs | 196 + .../Models/ManagedRuleSet.TypeConverter.cs | 147 + .../generated/api/Models/ManagedRuleSet.cs | 136 + .../api/Models/ManagedRuleSet.json.cs | 132 + .../ManagedRuleSetDefinition.PowerShell.cs | 244 + .../ManagedRuleSetDefinition.TypeConverter.cs | 147 + .../api/Models/ManagedRuleSetDefinition.cs | 193 + .../Models/ManagedRuleSetDefinition.json.cs | 110 + ...ManagedRuleSetDefinitionList.PowerShell.cs | 172 + ...agedRuleSetDefinitionList.TypeConverter.cs | 147 + .../Models/ManagedRuleSetDefinitionList.cs | 77 + .../ManagedRuleSetDefinitionList.json.cs | 121 + ...dRuleSetDefinitionProperties.PowerShell.cs | 198 + ...leSetDefinitionProperties.TypeConverter.cs | 149 + .../ManagedRuleSetDefinitionProperties.cs | 149 + ...ManagedRuleSetDefinitionProperties.json.cs | 140 + .../Models/ManagedRuleSetList.PowerShell.cs | 164 + .../ManagedRuleSetList.TypeConverter.cs | 147 + .../api/Models/ManagedRuleSetList.cs | 54 + .../api/Models/ManagedRuleSetList.json.cs | 116 + .../api/Models/MatchCondition.PowerShell.cs | 204 + .../Models/MatchCondition.TypeConverter.cs | 147 + .../generated/api/Models/MatchCondition.cs | 166 + .../api/Models/MatchCondition.json.cs | 134 + .../api/Models/PolicySettings.PowerShell.cs | 228 + .../Models/PolicySettings.TypeConverter.cs | 147 + .../generated/api/Models/PolicySettings.cs | 252 + .../api/Models/PolicySettings.json.cs | 124 + .../PolicySettingsLogScrubbing.PowerShell.cs | 172 + ...olicySettingsLogScrubbing.TypeConverter.cs | 147 + .../api/Models/PolicySettingsLogScrubbing.cs | 76 + .../Models/PolicySettingsLogScrubbing.json.cs | 118 + .../api/Models/PurgeParameters.PowerShell.cs | 164 + .../Models/PurgeParameters.TypeConverter.cs | 147 + .../generated/api/Models/PurgeParameters.cs | 60 + .../api/Models/PurgeParameters.json.cs | 116 + .../RedirectConfiguration.PowerShell.cs | 212 + .../RedirectConfiguration.TypeConverter.cs | 147 + .../api/Models/RedirectConfiguration.cs | 208 + .../api/Models/RedirectConfiguration.json.cs | 120 + .../api/Models/Resource.PowerShell.cs | 196 + .../api/Models/Resource.TypeConverter.cs | 146 + .../generated/api/Models/Resource.cs | 143 + .../generated/api/Models/Resource.json.cs | 123 + .../api/Models/ResourceTags.PowerShell.cs | 160 + .../api/Models/ResourceTags.TypeConverter.cs | 147 + .../generated/api/Models/ResourceTags.cs | 35 + .../api/Models/ResourceTags.dictionary.cs | 75 + .../generated/api/Models/ResourceTags.json.cs | 109 + .../Models/RouteConfiguration.PowerShell.cs | 164 + .../RouteConfiguration.TypeConverter.cs | 147 + .../api/Models/RouteConfiguration.cs | 51 + .../api/Models/RouteConfiguration.json.cs | 127 + .../api/Models/RoutingRule.PowerShell.cs | 270 + .../api/Models/RoutingRule.TypeConverter.cs | 147 + .../generated/api/Models/RoutingRule.cs | 276 + .../generated/api/Models/RoutingRule.json.cs | 119 + .../api/Models/RoutingRuleLink.PowerShell.cs | 164 + .../Models/RoutingRuleLink.TypeConverter.cs | 147 + .../generated/api/Models/RoutingRuleLink.cs | 54 + .../api/Models/RoutingRuleLink.json.cs | 108 + .../RoutingRuleListResult.PowerShell.cs | 176 + .../RoutingRuleListResult.TypeConverter.cs | 147 + .../api/Models/RoutingRuleListResult.cs | 82 + .../api/Models/RoutingRuleListResult.json.cs | 124 + .../RoutingRuleProperties.PowerShell.cs | 236 + .../RoutingRuleProperties.TypeConverter.cs | 147 + .../api/Models/RoutingRuleProperties.cs | 124 + .../api/Models/RoutingRuleProperties.json.cs | 113 + .../RoutingRuleUpdateParameters.PowerShell.cs | 228 + ...utingRuleUpdateParameters.TypeConverter.cs | 147 + .../api/Models/RoutingRuleUpdateParameters.cs | 206 + .../RoutingRuleUpdateParameters.json.cs | 144 + ...pplicationFirewallPolicyLink.PowerShell.cs | 171 + ...icationFirewallPolicyLink.TypeConverter.cs | 153 + ...ametersWebApplicationFirewallPolicyLink.cs | 58 + ...rsWebApplicationFirewallPolicyLink.json.cs | 113 + .../api/Models/RulesEngine.PowerShell.cs | 208 + .../api/Models/RulesEngine.TypeConverter.cs | 147 + .../generated/api/Models/RulesEngine.cs | 163 + .../generated/api/Models/RulesEngine.json.cs | 126 + .../Models/RulesEngineAction.PowerShell.cs | 180 + .../Models/RulesEngineAction.TypeConverter.cs | 147 + .../generated/api/Models/RulesEngineAction.cs | 94 + .../api/Models/RulesEngineAction.json.cs | 128 + .../RulesEngineListResult.PowerShell.cs | 176 + .../RulesEngineListResult.TypeConverter.cs | 147 + .../api/Models/RulesEngineListResult.cs | 82 + .../api/Models/RulesEngineListResult.json.cs | 124 + .../RulesEngineMatchCondition.PowerShell.cs | 204 + ...RulesEngineMatchCondition.TypeConverter.cs | 147 + .../api/Models/RulesEngineMatchCondition.cs | 169 + .../Models/RulesEngineMatchCondition.json.cs | 134 + .../RulesEngineProperties.PowerShell.cs | 174 + .../RulesEngineProperties.TypeConverter.cs | 147 + .../api/Models/RulesEngineProperties.cs | 84 + .../api/Models/RulesEngineProperties.json.cs | 115 + .../api/Models/RulesEngineRule.PowerShell.cs | 202 + .../Models/RulesEngineRule.TypeConverter.cs | 147 + .../generated/api/Models/RulesEngineRule.cs | 168 + .../api/Models/RulesEngineRule.json.cs | 128 + .../RulesEngineUpdateParameters.PowerShell.cs | 164 + ...lesEngineUpdateParameters.TypeConverter.cs | 147 + .../api/Models/RulesEngineUpdateParameters.cs | 54 + .../RulesEngineUpdateParameters.json.cs | 116 + .../Models/SecurityPolicyLink.PowerShell.cs | 164 + .../SecurityPolicyLink.TypeConverter.cs | 147 + .../api/Models/SecurityPolicyLink.cs | 54 + .../api/Models/SecurityPolicyLink.json.cs | 108 + .../generated/api/Models/Sku.PowerShell.cs | 164 + .../generated/api/Models/Sku.TypeConverter.cs | 146 + .../generated/api/Models/Sku.cs | 56 + .../generated/api/Models/Sku.json.cs | 106 + .../api/Models/SubResource.PowerShell.cs | 164 + .../api/Models/SubResource.TypeConverter.cs | 147 + .../generated/api/Models/SubResource.cs | 54 + .../generated/api/Models/SubResource.json.cs | 108 + .../api/Models/TagsObject.PowerShell.cs | 164 + .../api/Models/TagsObject.TypeConverter.cs | 146 + .../generated/api/Models/TagsObject.cs | 54 + .../generated/api/Models/TagsObject.json.cs | 106 + .../api/Models/TagsObjectTags.PowerShell.cs | 160 + .../Models/TagsObjectTags.TypeConverter.cs | 147 + .../generated/api/Models/TagsObjectTags.cs | 35 + .../api/Models/TagsObjectTags.dictionary.cs | 75 + .../api/Models/TagsObjectTags.json.cs | 109 + .../ValidateCustomDomainInput.PowerShell.cs | 164 + ...ValidateCustomDomainInput.TypeConverter.cs | 147 + .../api/Models/ValidateCustomDomainInput.cs | 54 + .../Models/ValidateCustomDomainInput.json.cs | 108 + .../ValidateCustomDomainOutput.PowerShell.cs | 180 + ...alidateCustomDomainOutput.TypeConverter.cs | 147 + .../api/Models/ValidateCustomDomainOutput.cs | 103 + .../Models/ValidateCustomDomainOutput.json.cs | 121 + ...WebApplicationFirewallPolicy.PowerShell.cs | 308 + ...ApplicationFirewallPolicy.TypeConverter.cs | 147 + .../Models/WebApplicationFirewallPolicy.cs | 321 + .../WebApplicationFirewallPolicy.json.cs | 114 + ...pplicationFirewallPolicyList.PowerShell.cs | 176 + ...icationFirewallPolicyList.TypeConverter.cs | 148 + .../WebApplicationFirewallPolicyList.cs | 88 + .../WebApplicationFirewallPolicyList.json.cs | 124 + ...tionFirewallPolicyProperties.PowerShell.cs | 241 + ...nFirewallPolicyProperties.TypeConverter.cs | 151 + .../WebApplicationFirewallPolicyProperties.cs | 235 + ...pplicationFirewallPolicyProperties.json.cs | 162 + ...cationFirewallScrubbingRules.PowerShell.cs | 190 + ...ionFirewallScrubbingRules.TypeConverter.cs | 150 + .../WebApplicationFirewallScrubbingRules.cs | 135 + ...bApplicationFirewallScrubbingRules.json.cs | 115 + ...bleAzFrontDoorCustomDomainHttps_Disable.cs | 580 ++ ...oorCustomDomainHttps_DisableViaIdentity.cs | 544 ++ ...DomainHttps_DisableViaIdentityFrontDoor.cs | 559 ++ ...ableAzFrontDoorCustomDomainHttps_Enable.cs | 596 ++ ...ontDoorCustomDomainHttps_EnableExpanded.cs | 663 ++ ...DoorCustomDomainHttps_EnableViaIdentity.cs | 560 ++ ...omDomainHttps_EnableViaIdentityExpanded.cs | 629 ++ ...mDomainHttps_EnableViaIdentityFrontDoor.cs | 575 ++ ...ttps_EnableViaIdentityFrontDoorExpanded.cs | 642 ++ ...CustomDomainHttps_EnableViaJsonFilePath.cs | 600 ++ ...orCustomDomainHttps_EnableViaJsonString.cs | 596 ++ .../GetAzFrontDoorFrontendEndpoint_Get.cs | 528 + ...rontDoorFrontendEndpoint_GetViaIdentity.cs | 492 + ...rontendEndpoint_GetViaIdentityFrontDoor.cs | 504 + .../GetAzFrontDoorFrontendEndpoint_List.cs | 538 + .../cmdlets/GetAzFrontDoorRulesEngine_Get.cs | 527 + ...etAzFrontDoorRulesEngine_GetViaIdentity.cs | 491 + ...DoorRulesEngine_GetViaIdentityFrontDoor.cs | 503 + .../cmdlets/GetAzFrontDoorRulesEngine_List.cs | 537 + ...ontDoorWafManagedRuleSetDefinition_List.cs | 509 + .../cmdlets/GetAzFrontDoorWafPolicy_Get.cs | 511 + .../GetAzFrontDoorWafPolicy_GetViaIdentity.cs | 485 + .../cmdlets/GetAzFrontDoorWafPolicy_List.cs | 523 + .../cmdlets/GetAzFrontDoorWafPolicy_List1.cs | 509 + .../generated/cmdlets/GetAzFrontDoor_Get.cs | 513 + .../cmdlets/GetAzFrontDoor_GetViaIdentity.cs | 487 + .../generated/cmdlets/GetAzFrontDoor_List.cs | 509 + .../generated/cmdlets/GetAzFrontDoor_List1.cs | 523 + ...ewAzFrontDoorRulesEngine_CreateExpanded.cs | 598 ++ ...ntDoorRulesEngine_CreateViaJsonFilePath.cs | 596 ++ ...rontDoorRulesEngine_CreateViaJsonString.cs | 594 ++ .../NewAzFrontDoorWafPolicy_CreateExpanded.cs | 658 ++ ...rontDoorWafPolicy_CreateViaJsonFilePath.cs | 580 ++ ...zFrontDoorWafPolicy_CreateViaJsonString.cs | 578 ++ .../cmdlets/NewAzFrontDoor_CreateExpanded.cs | 706 ++ .../NewAzFrontDoor_CreateViaJsonFilePath.cs | 582 ++ .../NewAzFrontDoor_CreateViaJsonString.cs | 580 ++ .../cmdlets/RemoveAzFrontDoorContent_Purge.cs | 580 ++ .../RemoveAzFrontDoorContent_PurgeExpanded.cs | 583 ++ ...moveAzFrontDoorContent_PurgeViaIdentity.cs | 555 ++ ...ontDoorContent_PurgeViaIdentityExpanded.cs | 558 ++ ...AzFrontDoorContent_PurgeViaJsonFilePath.cs | 582 ++ ...veAzFrontDoorContent_PurgeViaJsonString.cs | 580 ++ .../RemoveAzFrontDoorRulesEngine_Delete.cs | 615 ++ ...zFrontDoorRulesEngine_DeleteViaIdentity.cs | 578 ++ ...rRulesEngine_DeleteViaIdentityFrontDoor.cs | 591 ++ .../RemoveAzFrontDoorWafPolicy_Delete.cs | 546 ++ ...eAzFrontDoorWafPolicy_DeleteViaIdentity.cs | 520 + .../cmdlets/RemoveAzFrontDoor_Delete.cs | 600 ++ .../RemoveAzFrontDoor_DeleteViaIdentity.cs | 574 ++ ...etAzFrontDoorRulesEngine_UpdateExpanded.cs | 599 ++ ...tAzFrontDoorRulesEngine_UpdateExpanded1.cs | 608 ++ ...ntDoorRulesEngine_UpdateViaJsonFilePath.cs | 597 ++ ...rontDoorRulesEngine_UpdateViaJsonString.cs | 595 ++ .../SetAzFrontDoorWafPolicy_UpdateExpanded.cs | 658 ++ ...rontDoorWafPolicy_UpdateViaJsonFilePath.cs | 580 ++ ...zFrontDoorWafPolicy_UpdateViaJsonString.cs | 578 ++ .../cmdlets/SetAzFrontDoor_UpdateExpanded.cs | 701 ++ .../SetAzFrontDoor_UpdateViaJsonFilePath.cs | 582 ++ .../SetAzFrontDoor_UpdateViaJsonString.cs | 580 ++ .../TestAzFrontDoorCustomDomain_Validate.cs | 527 + ...zFrontDoorCustomDomain_ValidateExpanded.cs | 527 + ...ontDoorCustomDomain_ValidateViaIdentity.cs | 505 + ...ustomDomain_ValidateViaIdentityExpanded.cs | 505 + ...oorCustomDomain_ValidateViaJsonFilePath.cs | 529 + ...tDoorCustomDomain_ValidateViaJsonString.cs | 527 + ...rNameAvailabilityWithSubscription_Check.cs | 497 + ...ilabilityWithSubscription_CheckExpanded.cs | 510 + ...tyWithSubscription_CheckViaJsonFilePath.cs | 500 + ...lityWithSubscription_CheckViaJsonString.cs | 498 + .../TestAzFrontDoorNameAvailability_Check.cs | 475 + ...FrontDoorNameAvailability_CheckExpanded.cs | 487 + ...orNameAvailability_CheckViaJsonFilePath.cs | 477 + ...DoorNameAvailability_CheckViaJsonString.cs | 475 + ...dateAzFrontDoorWafPolicy_UpdateExpanded.cs | 692 ++ ...DoorWafPolicy_UpdateViaIdentityExpanded.cs | 668 ++ .../UpdateAzFrontDoor_UpdateExpanded.cs | 747 ++ ...teAzFrontDoor_UpdateViaIdentityExpanded.cs | 723 ++ .../generated/runtime/AsyncCommandRuntime.cs | 832 ++ .../generated/runtime/AsyncJob.cs | 270 + .../runtime/AsyncOperationResponse.cs | 176 + .../Attributes/ExternalDocsAttribute.cs | 30 + .../PSArgumentCompleterAttribute.cs | 52 + .../BuildTime/Cmdlets/ExportCmdletSurface.cs | 113 + .../BuildTime/Cmdlets/ExportExampleStub.cs | 74 + .../BuildTime/Cmdlets/ExportFormatPs1xml.cs | 103 + .../BuildTime/Cmdlets/ExportHelpMarkdown.cs | 56 + .../BuildTime/Cmdlets/ExportModelSurface.cs | 117 + .../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 180 + .../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 193 + .../BuildTime/Cmdlets/ExportTestStub.cs | 197 + .../BuildTime/Cmdlets/GetCommonParameter.cs | 52 + .../BuildTime/Cmdlets/GetModuleGuid.cs | 31 + .../BuildTime/Cmdlets/GetScriptCmdlet.cs | 54 + .../runtime/BuildTime/CollectionExtensions.cs | 20 + .../runtime/BuildTime/MarkdownRenderer.cs | 122 + .../runtime/BuildTime/Models/PsFormatTypes.cs | 138 + .../BuildTime/Models/PsHelpMarkdownOutputs.cs | 199 + .../runtime/BuildTime/Models/PsHelpTypes.cs | 211 + .../BuildTime/Models/PsMarkdownTypes.cs | 329 + .../BuildTime/Models/PsProxyOutputs.cs | 681 ++ .../runtime/BuildTime/Models/PsProxyTypes.cs | 549 ++ .../runtime/BuildTime/PsAttributes.cs | 136 + .../runtime/BuildTime/PsExtensions.cs | 176 + .../generated/runtime/BuildTime/PsHelpers.cs | 105 + .../runtime/BuildTime/StringExtensions.cs | 24 + .../runtime/BuildTime/XmlExtensions.cs | 28 + .../generated/runtime/CmdInfoHandler.cs | 40 + .../generated/runtime/Context.cs | 33 + .../Conversions/ConversionException.cs | 17 + .../runtime/Conversions/IJsonConverter.cs | 13 + .../Conversions/Instances/BinaryConverter.cs | 24 + .../Conversions/Instances/BooleanConverter.cs | 13 + .../Instances/DateTimeConverter.cs | 18 + .../Instances/DateTimeOffsetConverter.cs | 15 + .../Conversions/Instances/DecimalConverter.cs | 16 + .../Conversions/Instances/DoubleConverter.cs | 13 + .../Conversions/Instances/EnumConverter.cs | 30 + .../Conversions/Instances/GuidConverter.cs | 15 + .../Instances/HashSet'1Converter.cs | 27 + .../Conversions/Instances/Int16Converter.cs | 13 + .../Conversions/Instances/Int32Converter.cs | 13 + .../Conversions/Instances/Int64Converter.cs | 13 + .../Instances/JsonArrayConverter.cs | 13 + .../Instances/JsonObjectConverter.cs | 13 + .../Conversions/Instances/SingleConverter.cs | 13 + .../Conversions/Instances/StringConverter.cs | 13 + .../Instances/TimeSpanConverter.cs | 15 + .../Conversions/Instances/UInt16Converter.cs | 13 + .../Conversions/Instances/UInt32Converter.cs | 13 + .../Conversions/Instances/UInt64Converter.cs | 13 + .../Conversions/Instances/UriConverter.cs | 15 + .../runtime/Conversions/JsonConverter.cs | 21 + .../Conversions/JsonConverterAttribute.cs | 18 + .../Conversions/JsonConverterFactory.cs | 91 + .../Conversions/StringLikeConverter.cs | 45 + .../Customizations/IJsonSerializable.cs | 263 + .../runtime/Customizations/JsonArray.cs | 13 + .../runtime/Customizations/JsonBoolean.cs | 16 + .../runtime/Customizations/JsonNode.cs | 21 + .../runtime/Customizations/JsonNumber.cs | 78 + .../runtime/Customizations/JsonObject.cs | 183 + .../runtime/Customizations/JsonString.cs | 34 + .../runtime/Customizations/XNodeArray.cs | 44 + .../generated/runtime/Debugging.cs | 28 + .../generated/runtime/DictionaryExtensions.cs | 33 + .../generated/runtime/EventData.cs | 78 + .../generated/runtime/EventDataExtensions.cs | 94 + .../generated/runtime/EventListener.cs | 247 + .../generated/runtime/Events.cs | 27 + .../generated/runtime/EventsExtensions.cs | 27 + .../generated/runtime/Extensions.cs | 117 + .../Extensions/StringBuilderExtensions.cs | 23 + .../Helpers/Extensions/TypeExtensions.cs | 61 + .../generated/runtime/Helpers/Seperator.cs | 11 + .../generated/runtime/Helpers/TypeDetails.cs | 116 + .../generated/runtime/Helpers/XHelper.cs | 75 + .../generated/runtime/HttpPipeline.cs | 88 + .../generated/runtime/HttpPipelineMocking.ps1 | 110 + .../generated/runtime/IAssociativeArray.cs | 24 + .../generated/runtime/IHeaderSerializable.cs | 14 + .../generated/runtime/ISendAsync.cs | 413 + .../generated/runtime/InfoAttribute.cs | 38 + .../generated/runtime/InputHandler.cs | 22 + .../generated/runtime/Iso/IsoDate.cs | 214 + .../generated/runtime/JsonType.cs | 18 + .../generated/runtime/MessageAttribute.cs | 353 + .../runtime/MessageAttributeHelper.cs | 184 + .../generated/runtime/Method.cs | 19 + .../generated/runtime/Models/JsonMember.cs | 83 + .../generated/runtime/Models/JsonModel.cs | 89 + .../runtime/Models/JsonModelCache.cs | 19 + .../runtime/Nodes/Collections/JsonArray.cs | 65 + .../Nodes/Collections/XImmutableArray.cs | 62 + .../runtime/Nodes/Collections/XList.cs | 64 + .../runtime/Nodes/Collections/XNodeArray.cs | 73 + .../runtime/Nodes/Collections/XSet.cs | 60 + .../generated/runtime/Nodes/JsonBoolean.cs | 42 + .../generated/runtime/Nodes/JsonDate.cs | 173 + .../generated/runtime/Nodes/JsonNode.cs | 250 + .../generated/runtime/Nodes/JsonNumber.cs | 109 + .../generated/runtime/Nodes/JsonObject.cs | 172 + .../generated/runtime/Nodes/JsonString.cs | 42 + .../generated/runtime/Nodes/XBinary.cs | 40 + .../generated/runtime/Nodes/XNull.cs | 15 + .../Parser/Exceptions/ParseException.cs | 24 + .../generated/runtime/Parser/JsonParser.cs | 180 + .../generated/runtime/Parser/JsonToken.cs | 66 + .../generated/runtime/Parser/JsonTokenizer.cs | 177 + .../generated/runtime/Parser/Location.cs | 43 + .../runtime/Parser/Readers/SourceReader.cs | 130 + .../generated/runtime/Parser/TokenReader.cs | 39 + .../generated/runtime/PipelineMocking.cs | 262 + .../runtime/Properties/Resources.Designer.cs | 5655 +++++++++++ .../runtime/Properties/Resources.resx | 1747 ++++ .../generated/runtime/Response.cs | 27 + .../runtime/Serialization/JsonSerializer.cs | 350 + .../Serialization/PropertyTransformation.cs | 21 + .../Serialization/SerializationOptions.cs | 65 + .../generated/runtime/SerializationMode.cs | 18 + .../runtime/TypeConverterExtensions.cs | 261 + .../runtime/UndeclaredResponseException.cs | 112 + .../generated/runtime/Writers/JsonWriter.cs | 223 + .../generated/runtime/delegates.cs | 23 + .../internal/Az.FrontDoor.internal.psm1 | 38 + .../Enable-AzFrontDoorCustomDomainHttps.ps1 | 334 + .../Get-AzFrontDoorFrontendEndpoint.ps1 | 208 + .../internal/New-AzFrontDoor.ps1 | 321 + .../internal/New-AzFrontDoorWafPolicy.ps1 | 282 + .../internal/ProxyCmdletDefinitions.ps1 | 3015 ++++++ .../FrontDoor.Autorest/internal/README.md | 14 + .../internal/Set-AzFrontDoor.ps1 | 323 + .../internal/Set-AzFrontDoorRulesEngine.ps1 | 222 + .../internal/Set-AzFrontDoorWafPolicy.ps1 | 284 + .../internal/Test-AzFrontDoorCustomDomain.ps1 | 226 + .../Test-AzFrontDoorNameAvailability.ps1 | 175 + ...ntDoorNameAvailabilityWithSubscription.ps1 | 190 + .../internal/Update-AzFrontDoor.ps1 | 323 + .../internal/Update-AzFrontDoorWafPolicy.ps1 | 292 + .../FrontDoor.Autorest/resources/README.md | 11 + .../FrontDoor.Autorest/test-module.ps1 | 98 + .../Properties/AssemblyInfo.cs | 4 + src/FrontDoor/FrontDoor.Autorest/README.md | 23 +- ...ontDoorWebApplicationFirewallPolicies.json | 2 +- .../frontDoors-frontendEndpoints.json | 43 - .../Enable-AzFrontDoorCustomDomainHttps.ps1 | 5 + .../Get-AzFrontDoorFrontendEndpoint.ps1 | 158 + .../New-AzFrontDoorRoutingRuleObject.ps1 | 34 +- ...New-AzFrontDoorRulesEngineActionObject.ps1 | 38 +- .../New-AzFrontDoorWafCustomRuleObject.ps1 | 2 +- ...zFrontDoorWafManagedRuleOverrideObject.ps1 | 6 +- .../custom/New-AzFrontDoorWafPolicy.ps1 | 26 +- .../custom/Set-AzFrontDoor.ps1 | 26 + .../custom/Update-AzFrontDoorWafPolicy.ps1 | 47 +- .../New-AzFrontDoorPolicySettingsObject.ps1 | 6 + .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../Enable-AzFrontDoorCustomDomainHttps.md | 15 +- .../docs/Get-AzFrontDoorFrontendEndpoint.md | 91 +- .../New-AzFrontDoorPolicySettingsObject.md | 19 +- .../docs/New-AzFrontDoorRoutingRuleObject.md | 6 +- .../New-AzFrontDoorRulesEngineActionObject.md | 6 +- .../New-AzFrontDoorWafCustomRuleObject.md | 4 +- ...AzFrontDoorWafManagedRuleOverrideObject.md | 4 +- .../docs/New-AzFrontDoorWafPolicy.md | 28 +- .../docs/Remove-AzFrontDoorContent.md | 42 +- .../docs/Set-AzFrontDoor.md | 55 +- .../docs/Set-AzFrontDoorRulesEngine.md | 26 +- .../docs/Update-AzFrontDoorWafPolicy.md | 70 +- .../Get-AzFrontDoorFrontendEndpoint.md | 70 +- .../examples/Set-AzFrontDoorRulesEngine.md | 28 +- .../FrontDoor.Autorest/generate-info.json | 2 +- .../test/Get-AzFrontDoor.Recording.json | 26 +- ...AzFrontDoorFrontendEndpoint.Recording.json | 30 +- ...WafManagedRuleSetDefinition.Recording.json | 22 +- .../Get-AzFrontDoorWafPolicy.Recording.json | 24 +- .../New-AzFrontDoorRulesEngine.Recording.json | 46 +- .../New-AzFrontDoorWafPolicy.Recording.json | 94 +- .../test/Remove-AzFrontDoor.Recording.json | 290 +- ...move-AzFrontDoorRulesEngine.Recording.json | 68 +- ...Remove-AzFrontDoorWafPolicy.Recording.json | 116 +- .../test/Set-AzFrontDoor.Recording.json | 184 +- .../Set-AzFrontDoorRulesEngine.Recording.json | 94 +- ...Update-AzFrontDoorWafPolicy.Recording.json | 126 +- .../Update-AzFrontDoorWafPolicy.Tests.ps1 | 4 +- .../FrontDoor.Autorest/test/env.json | 18 +- src/FrontDoor/FrontDoor.sln | 28 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- .../Enable-AzFrontDoorCustomDomainHttps.md | 15 +- .../help/Get-AzFrontDoorFrontendEndpoint.md | 115 +- .../New-AzFrontDoorPolicySettingsObject.md | 19 +- .../New-AzFrontDoorWafCustomRuleObject.md | 2 +- ...AzFrontDoorWafManagedRuleOverrideObject.md | 4 +- .../help/New-AzFrontDoorWafPolicy.md | 31 +- .../help/Remove-AzFrontDoorContent.md | 38 +- .../FrontDoor/help/Set-AzFrontDoor.md | 60 +- .../help/Set-AzFrontDoorRulesEngine.md | 26 +- .../help/Update-AzFrontDoorWafPolicy.md | 88 +- 676 files changed, 151570 insertions(+), 1061 deletions(-) create mode 100644 generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.csproj create mode 100644 generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.format.ps1xml create mode 100644 generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psd1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psm1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/check-dependencies.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolsSettingObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorCacheConfigurationObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorForwardingConfigurationObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorFrontendEndpointObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHeaderActionObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHealthProbeSettingObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorLoadBalancingSettingObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorPolicySettingsObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRedirectConfigurationObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRoutingRuleObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineActionObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineRuleObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafMatchConditionObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/README.md create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generate-info.json create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/Module.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/FrontDoor.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.dictionary.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.dictionary.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.dictionary.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.PowerShell.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.TypeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.json.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_Disable.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_Enable.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_Get.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_List.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_Get.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_List.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafManagedRuleSetDefinition_List.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_Get.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_GetViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List1.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_Get.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_GetViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List1.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_Purge.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentityExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_Delete.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_Delete.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_DeleteViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_Delete.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_DeleteViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded1.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_Validate.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentity.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_Check.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_Check.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonFilePath.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateViaIdentityExpanded.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncCommandRuntime.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncJob.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncOperationResponse.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsAttributes.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsHelpers.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/StringExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/XmlExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/CmdInfoHandler.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Context.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/ConversionException.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/IJsonConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/StringLikeConverter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/IJsonSerializable.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonArray.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonBoolean.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNode.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNumber.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonObject.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/XNodeArray.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Debugging.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/DictionaryExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventData.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventDataExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventListener.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Events.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventsExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Extensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Seperator.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/TypeDetails.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/XHelper.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipeline.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipelineMocking.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IAssociativeArray.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IHeaderSerializable.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/ISendAsync.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InfoAttribute.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InputHandler.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Iso/IsoDate.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/JsonType.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttribute.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttributeHelper.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Method.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonMember.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModel.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModelCache.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XList.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XSet.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonBoolean.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonDate.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNode.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNumber.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonObject.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonString.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XBinary.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XNull.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonParser.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonToken.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonTokenizer.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Location.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Readers/SourceReader.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/TokenReader.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/PipelineMocking.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.Designer.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.resx create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Response.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/JsonSerializer.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/PropertyTransformation.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/SerializationOptions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/SerializationMode.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/TypeConverterExtensions.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/UndeclaredResponseException.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Writers/JsonWriter.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/delegates.cs create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Az.FrontDoor.internal.psm1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Enable-AzFrontDoorCustomDomainHttps.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Get-AzFrontDoorFrontendEndpoint.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoor.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoorWafPolicy.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/ProxyCmdletDefinitions.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/README.md create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoor.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorRulesEngine.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorWafPolicy.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorCustomDomain.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailability.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailabilityWithSubscription.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoor.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoorWafPolicy.ps1 create mode 100644 generated/FrontDoor/FrontDoor.Autorest/resources/README.md create mode 100644 generated/FrontDoor/FrontDoor.Autorest/test-module.ps1 create mode 100644 src/FrontDoor/FrontDoor.Autorest/custom/Get-AzFrontDoorFrontendEndpoint.ps1 diff --git a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.csproj b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.csproj new file mode 100644 index 000000000000..445e036c70db --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.csproj @@ -0,0 +1,11 @@ + + + FrontDoor + FrontDoor + FrontDoor.Autorest + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor + + + + + diff --git a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.format.ps1xml b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.format.ps1xml new file mode 100644 index 000000000000..b4e6f414f6d8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.format.ps1xml @@ -0,0 +1,2299 @@ + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.AzureAsyncOperationResult + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.AzureAsyncOperationResult#Multiple + + + + + + + + + + + + Status + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend#Multiple + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Address + + + BackendHostHeader + + + EnabledState + + + HttpPort + + + HttpsPort + + + Priority + + + PrivateEndpointStatus + + + PrivateLinkAlias + + + PrivateLinkApprovalMessage + + + PrivateLinkLocation + + + PrivateLinkResourceId + + + Weight + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool#Multiple + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolListResult + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties#Multiple + + + + + + + + + + + + + + + + + + HealthProbeSettingId + + + LoadBalancingSettingId + + + ResourceState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings#Multiple + + + + + + + + + + + + + + + EnforceCertificateNameCheck + + + SendRecvTimeoutInSeconds + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration#Multiple + + + + + + + + + + + + + + + + + + DynamicCompression + + + QueryParameter + + + QueryParameterStripDirective + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityInput + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityInput#Multiple + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput#Multiple + + + + + + + + + + + + + + + + + + Message + + + NameAvailability + + + Reason + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration#Multiple + + + + + + + + + + + + + + + + + + CertificateSource + + + MinimumTlsVersion + + + ProtocolType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule#Multiple + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Action + + + EnabledState + + + Name + + + Priority + + + RateLimitDurationInMinutes + + + RateLimitThreshold + + + RuleType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError#Multiple + + + + + + + + + + + + + + + Code + + + Message + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error#Multiple + + + + + + + + + + + + + + + + + + + + + Code + + + InnerError + + + Message + + + Target + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetails + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetails#Multiple + + + + + + + + + + + + + + + + + + Code + + + Message + + + Target + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse#Multiple + + + + + + + + + + + + + + + Code + + + Message + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration#Multiple + + + + + + + + + + + + + + + + + + OdataType + + + CustomForwardingPath + + + ForwardingProtocol + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor#Multiple + + + + + + + + + + + + + + + + + + Location + + + Name + + + ResourceGroupName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters#Multiple + + + + + + + + + + + + CertificateType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorIdentity + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorIdentity#Multiple + + + + + + + + + + + + + + + + + + + + + + + + + + + FrontDoorName + + + FrontendEndpointName + + + PolicyName + + + ResourceGroupName + + + RulesEngineName + + + SubscriptionId + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties#Multiple + + + + + + + + + + + + + + + + + + + + + + + + + + + EnabledState + + + FriendlyName + + + Cname + + + FrontdoorId + + + ProvisioningState + + + ResourceState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties#Multiple + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorUpdateParameters + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorUpdateParameters#Multiple + + + + + + + + + + + + + + + EnabledState + + + FriendlyName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint#Multiple + + + + + + + + + + + + + + + Name + + + ResourceGroupName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties#Multiple + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + HostName + + + SessionAffinityEnabledState + + + SessionAffinityTtlSecond + + + WebApplicationFirewallPolicyLinkId + + + CustomHttpsProvisioningState + + + CustomHttpsProvisioningSubstate + + + ResourceState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointsListResult + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointsListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParameters + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParameters#Multiple + + + + + + + + + + + + + + + + + + HostName + + + SessionAffinityEnabledState + + + SessionAffinityTtlSecond + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable#Multiple + + + + + + + + + + + + VariableName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction#Multiple + + + + + + + + + + + + + + + + + + HeaderActionType + + + HeaderName + + + Value + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsListResult + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel#Multiple + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties#Multiple + + + + + + + + + + + + + + + + + + + + + + + + + + + EnabledState + + + HealthProbeMethod + + + IntervalInSecond + + + Path + + + Protocol + + + ResourceState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsUpdateParameters + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsUpdateParameters#Multiple + + + + + + + + + + + + + + + + + + + + + + + + EnabledState + + + HealthProbeMethod + + + IntervalInSecond + + + Path + + + Protocol + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters#Multiple + + + + + + + + + + + + + + + SecretName + + + SecretVersion + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsListResult + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel#Multiple + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties#Multiple + + + + + + + + + + + + + + + + + + + + + AdditionalLatencyMillisecond + + + SampleSize + + + SuccessfulSamplesRequired + + + ResourceState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsUpdateParameters + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsUpdateParameters#Multiple + + + + + + + + + + + + + + + + + + AdditionalLatencyMillisecond + + + SampleSize + + + SuccessfulSamplesRequired + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinition + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinition#Multiple + + + + + + + + + + + + + + + + + + + + + DefaultAction + + + DefaultState + + + Description + + + RuleId + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion#Multiple + + + + + + + + + + + + + + + + + + Operator + + + Selector + + + Variable + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinition + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinition#Multiple + + + + + + + + + + + + + + + Description + + + RuleGroupName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride#Multiple + + + + + + + + + + + + RuleGroupName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride#Multiple + + + + + + + + + + + + + + + + + + Action + + + EnabledState + + + RuleId + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet#Multiple + + + + + + + + + + + + + + + RuleSetAction + + + Version + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinition + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinition#Multiple + + + + + + + + + + + + + + + Location + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionList + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionList#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties#Multiple + + + + + + + + + + + + + + + + + + + + + ProvisioningState + + + RuleSetId + + + RuleSetType + + + RuleSetVersion + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition#Multiple + + + + + + + + + + + + + + + + + + + + + MatchVariable + + + NegateCondition + + + OperatorProperty + + + Selector + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings#Multiple + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CaptchaExpirationInMinutes + + + CustomBlockResponseBody + + + CustomBlockResponseStatusCode + + + EnabledState + + + JavascriptChallengeExpirationInMinutes + + + Mode + + + RedirectUrl + + + RequestBodyCheck + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing#Multiple + + + + + + + + + + + + State + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration#Multiple + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OdataType + + + CustomFragment + + + CustomHost + + + CustomPath + + + CustomQueryString + + + RedirectProtocol + + + RedirectType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource#Multiple + + + + + + + + + + + + + + + Location + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags#Multiple + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration#Multiple + + + + + + + + + + + + OdataType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule#Multiple + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleListResult + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties#Multiple + + + + + + + + + + + + + + + + + + + + + EnabledState + + + RuleEngineId + + + WebApplicationFirewallPolicyLinkId + + + ResourceState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParameters + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParameters#Multiple + + + + + + + + + + + + EnabledState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine#Multiple + + + + + + + + + + + + + + + Name + + + ResourceGroupName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineListResult + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition#Multiple + + + + + + + + + + + + + + + + + + + + + MatchVariable + + + NegateCondition + + + Operator + + + Selector + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties#Multiple + + + + + + + + + + + + ResourceState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule#Multiple + + + + + + + + + + + + + + + + + + MatchProcessingBehavior + + + Name + + + Priority + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku#Multiple + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags#Multiple + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainInput + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainInput#Multiple + + + + + + + + + + + + HostName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainOutput + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainOutput#Multiple + + + + + + + + + + + + + + + + + + CustomDomainValidated + + + Message + + + Reason + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy#Multiple + + + + + + + + + + + + + + + + + + + + + Location + + + Name + + + Etag + + + ResourceGroupName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList#Multiple + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties#Multiple + + + + + + + + + + + + + + + ProvisioningState + + + ResourceState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules#Multiple + + + + + + + + + + + + + + + + + + + + + MatchVariable + + + Selector + + + SelectorMatchOperator + + + State + + + + + + + + \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psd1 b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psd1 new file mode 100644 index 000000000000..610df7a5fbf5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psd1 @@ -0,0 +1,23 @@ +@{ + GUID = 'cf98442d-353b-4270-9299-8a4bb7c977e6' + RootModule = './Az.FrontDoor.psm1' + ModuleVersion = '0.1.0' + CompatiblePSEditions = 'Core', 'Desktop' + Author = 'Microsoft Corporation' + CompanyName = 'Microsoft Corporation' + Copyright = 'Microsoft Corporation. All rights reserved.' + Description = 'Microsoft Azure PowerShell: FrontDoor cmdlets' + PowerShellVersion = '5.1' + DotNetFrameworkVersion = '4.7.2' + RequiredAssemblies = './bin/Az.FrontDoor.private.dll' + FormatsToProcess = './Az.FrontDoor.format.ps1xml' + FunctionsToExport = 'Disable-AzFrontDoorCustomDomainHttps', 'Enable-AzFrontDoorCustomDomainHttps', 'Get-AzFrontDoor', 'Get-AzFrontDoorFrontendEndpoint', 'Get-AzFrontDoorRulesEngine', 'Get-AzFrontDoorWafManagedRuleSetDefinition', 'Get-AzFrontDoorWafPolicy', 'New-AzFrontDoor', 'New-AzFrontDoorBackendObject', 'New-AzFrontDoorBackendPoolObject', 'New-AzFrontDoorBackendPoolsSettingObject', 'New-AzFrontDoorCacheConfigurationObject', 'New-AzFrontDoorForwardingConfigurationObject', 'New-AzFrontDoorFrontendEndpointObject', 'New-AzFrontDoorHeaderActionObject', 'New-AzFrontDoorHealthProbeSettingObject', 'New-AzFrontDoorLoadBalancingSettingObject', 'New-AzFrontDoorPolicySettingsObject', 'New-AzFrontDoorRedirectConfigurationObject', 'New-AzFrontDoorRoutingRuleObject', 'New-AzFrontDoorRulesEngine', 'New-AzFrontDoorRulesEngineActionObject', 'New-AzFrontDoorRulesEngineMatchConditionObject', 'New-AzFrontDoorRulesEngineRuleObject', 'New-AzFrontDoorWafCustomRuleGroupByVariableObject', 'New-AzFrontDoorWafCustomRuleObject', 'New-AzFrontDoorWafLogScrubbingRuleObject', 'New-AzFrontDoorWafLogScrubbingSettingObject', 'New-AzFrontDoorWafManagedRuleExclusionObject', 'New-AzFrontDoorWafManagedRuleObject', 'New-AzFrontDoorWafManagedRuleOverrideObject', 'New-AzFrontDoorWafMatchConditionObject', 'New-AzFrontDoorWafPolicy', 'New-AzFrontDoorWafRuleGroupOverrideObject', 'Remove-AzFrontDoor', 'Remove-AzFrontDoorContent', 'Remove-AzFrontDoorRulesEngine', 'Remove-AzFrontDoorWafPolicy', 'Set-AzFrontDoor', 'Set-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy' + PrivateData = @{ + PSData = @{ + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'FrontDoor' + LicenseUri = 'https://aka.ms/azps-license' + ProjectUri = 'https://github.com/Azure/azure-powershell' + ReleaseNotes = '' + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psm1 b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psm1 new file mode 100644 index 000000000000..a67ee4f5665c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psm1 @@ -0,0 +1,119 @@ +# region Generated + # ---------------------------------------------------------------------------------- + # Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. + # ---------------------------------------------------------------------------------- + # Load required Az.Accounts module + $accountsName = 'Az.Accounts' + $accountsModule = Get-Module -Name $accountsName + if(-not $accountsModule) { + $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' + if(Test-Path -Path $localAccountsPath) { + $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 + if($localAccounts) { + $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru + } + } + if(-not $accountsModule) { + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 + if($hasAdequateVersion) { + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru + } + } + } + + if(-not $accountsModule) { + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + } + Write-Information "Loaded Module '$($accountsModule.Name)'" + + # Load the private module dll + $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.FrontDoor.private.dll') + + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module]::Instance + + # Ask for the shared functionality table + $VTable = Register-AzModule + + # Tweaks the pipeline on module load + $instance.OnModuleLoad = $VTable.OnModuleLoad + + # Following two delegates are added for telemetry + $instance.GetTelemetryId = $VTable.GetTelemetryId + $instance.Telemetry = $VTable.Telemetry + + # Delegate to sanitize the output object + $instance.SanitizeOutput = $VTable.SanitizerHandler + + # Delegate to get the telemetry info + $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo + + # Tweaks the pipeline per call + $instance.OnNewRequest = $VTable.OnNewRequest + + # Gets shared parameter values + $instance.GetParameterValue = $VTable.GetParameterValue + + # Allows shared module to listen to events from this module + $instance.EventListener = $VTable.EventListener + + # Gets shared argument completers + $instance.ArgumentCompleter = $VTable.ArgumentCompleter + + # The name of the currently selected Azure profile + $instance.ProfileName = $VTable.ProfileName + + # Load the custom module + $customModulePath = Join-Path $PSScriptRoot './custom/Az.FrontDoor.custom.psm1' + if(Test-Path $customModulePath) { + $null = Import-Module -Name $customModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export proxy cmdlet scripts + $exportsPath = Join-Path $PSScriptRoot './exports' + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } + + # Finalize initialization of this module + $instance.Init(); + Write-Information "Loaded Module '$($instance.Name)'" +# endregion diff --git a/generated/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/generated/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..b6db8e525a56 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - FrontDoor")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.13.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/generated/FrontDoor/FrontDoor.Autorest/check-dependencies.ps1 b/generated/FrontDoor/FrontDoor.Autorest/check-dependencies.ps1 new file mode 100644 index 000000000000..90ca9867ae40 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/check-dependencies.ps1 @@ -0,0 +1,65 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- +param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) +$ErrorActionPreference = 'Stop' + +if(-not $NotIsolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated + return +} + +function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { + if($predicate) { + $module = Get-Module -ListAvailable -Name $moduleName + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) { + $null = New-Item -ItemType Directory -Force -Path $path + Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." + if ($requiredVersion) { + Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path + }elseif($versionMinimum) { + Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path + } else { + Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path + } + } + } +} + +$ProgressPreference = 'SilentlyContinue' +$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1 + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5' +DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' + +$tools = Join-Path $PSScriptRoot 'tools' +$resourceDir = Join-Path $tools 'Resources' +$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1' + +if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) { + Write-Host -ForegroundColor Green "Building local Resource module used for test..." + Set-Location $resourceDir + $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources + $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/ + Set-Location $HOME/.PSSharedModules/Resources + $null = .\build-module.ps1 + Set-Location $PSScriptRoot +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 new file mode 100644 index 000000000000..0941be857a9a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 @@ -0,0 +1,265 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Disables a frontendEndpoint for HTTPS traffic +.Description +Disables a frontendEndpoint for HTTPS traffic +.Example +Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" +.Example +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Disable-AzFrontDoorCustomDomainHttps -InputObject $frontendEndpointObj +.Example +Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/disable-azfrontdoorcustomdomainhttps +#> +function Disable-AzFrontDoorCustomDomainHttps { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Disable', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Disable', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Disable', Mandatory)] + [Parameter(ParameterSetName='DisableViaIdentityFrontDoor', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${FrontendEndpointName}, + + [Parameter(ParameterSetName='Disable', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Disable')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DisableViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='DisableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Disable = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_Disable'; + DisableViaIdentity = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_DisableViaIdentity'; + DisableViaIdentityFrontDoor = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor'; + } + if (('Disable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 new file mode 100644 index 000000000000..ce40fba14f81 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 @@ -0,0 +1,345 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Enables a frontendEndpoint for HTTPS traffic +.Description +Enables a frontendEndpoint for HTTPS traffic +.Example +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" +.Example +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" +.Example +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps +.Example +Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +.Example +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps +#> +function Enable-AzFrontDoorCustomDomainHttps { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='Enable', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${FrontendEndpointName}, + + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='Enable', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaJsonString')] + [Parameter(ParameterSetName='EnableViaJsonFilePath')] + [Parameter(ParameterSetName='Enable')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] + [System.String] + # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + ${MinimumTlsVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Key Vault secret representing the full certificate PFX + ${SecretName}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The version of the Key Vault secret representing the full certificate PFX + ${SecretVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${VaultId}, + + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Enable operation + ${JsonString}, + + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Enable operation + ${JsonFilePath}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + EnableExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaJsonString = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaJsonFilePath = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + Enable = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaIdentityFrontDoorExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaIdentityFrontDoor = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaIdentityExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaIdentity = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + ByResourceIdWithVaultParameterSet = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + } + if (('EnableExpanded', 'EnableViaJsonString', 'EnableViaJsonFilePath', 'Enable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('EnableExpanded', 'EnableViaIdentityFrontDoorExpanded', 'EnableViaIdentityExpanded', 'ByResourceIdWithVaultParameterSet') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('MinimumTlsVersion') ) { + $PSBoundParameters['MinimumTlsVersion'] = 1.2 + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 new file mode 100644 index 000000000000..9cf14242e146 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 @@ -0,0 +1,230 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. +.Description +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. +.Example +Get-AzFrontDoor +.Example +Get-AzFrontDoor -ResourceGroupName "rg1" +.Example +Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoor +#> +function Get-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.FrontDoor.private\Get-AzFrontDoor_Get'; + GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoor_GetViaIdentity'; + List = 'Az.FrontDoor.private\Get-AzFrontDoor_List'; + List1 = 'Az.FrontDoor.private\Get-AzFrontDoor_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 new file mode 100644 index 000000000000..f3c88710bd20 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 @@ -0,0 +1,254 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Description +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint +#> +function Get-AzFrontDoorFrontendEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='ByObjectParameterSet')] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] + [Alias('FrontendEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='ByObjectParameterSet', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Alias('FrontDoorObject')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + Get = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + ByObjectParameterSet = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + GetViaIdentityFrontDoor = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + GetViaIdentity = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + } + if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 new file mode 100644 index 000000000000..02314c9c2314 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 @@ -0,0 +1,252 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Gets a Rules Engine Configuration with the specified name within the specified Front Door. +.Example +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name rulesengine3 +.Example +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName +.Example +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistent + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorrulesengine +#> +function Get-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_Get'; + GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_GetViaIdentity'; + GetViaIdentityFrontDoor = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_GetViaIdentityFrontDoor'; + List = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 new file mode 100644 index 000000000000..6e2c20afd3f9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 @@ -0,0 +1,186 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Lists all available managed rule sets. +.Description +Lists all available managed rule sets. +.Example +Get-AzFrontDoorWafManagedRuleSetDefinition + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafmanagedrulesetdefinition +#> +function Get-AzFrontDoorWafManagedRuleSetDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.FrontDoor.private\Get-AzFrontDoorWafManagedRuleSetDefinition_List'; + } + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..05d695c8f499 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,228 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Retrieve protection policy with specified name within a resource group. +.Description +Retrieve protection policy with specified name within a resource group. +.Example +Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafpolicy +#> +function Get-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_Get'; + GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_GetViaIdentity'; + List = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_List'; + List1 = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 new file mode 100644 index 000000000000..b7069d238b20 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 @@ -0,0 +1,361 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Create a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor +#> +function New-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${DisableCertificateNameCheck}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.custom\New-AzFrontDoor'; + CreateViaJsonFilePath = 'Az.FrontDoor.custom\New-AzFrontDoor'; + CreateViaJsonString = 'Az.FrontDoor.custom\New-AzFrontDoor'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendObject.ps1 new file mode 100644 index 000000000000..5b6f4ae042fe --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendObject.ps1 @@ -0,0 +1,192 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for Backend. +.Description +Create an in-memory object for Backend. +.Example +New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject +#> +function New-AzFrontDoorBackendObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Location of the backend (IP address or FQDN). + ${Address}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The value to use as the host header sent to the backend. + # If blank or unspecified, this defaults to the incoming host. + ${BackendHostHeader}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to enable use of this backend. + # Permitted values are 'Enabled' or 'Disabled'. + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The HTTP TCP port number. + # Must be between 1 and 65535. + ${HttpPort}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The HTTPS TCP port number. + # Must be between 1 and 65535. + ${HttpsPort}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Priority to use for load balancing. + # Higher priorities will not be used for load balancing if any lower priority backend is healthy. + ${Priority}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The Alias of the Private Link resource. + # Populating this optional field indicates that this backend is 'Private'. + ${PrivateLinkAlias}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A custom message to be included in the approval request to connect to the Private Link. + ${PrivateLinkApprovalMessage}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The location of the Private Link resource. + # Required only if 'privateLinkResourceId' is populated. + ${PrivateLinkLocation}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The Resource Id of the Private Link resource. + # Populating this optional field indicates that this backend is 'Private'. + ${PrivateLinkResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Weight of this endpoint for load balancing purposes. + ${Weight} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolObject.ps1 new file mode 100644 index 000000000000..c4d23cdfcf23 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolObject.ps1 @@ -0,0 +1,176 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for BackendPool. +.Description +Create an in-memory object for BackendPool. +.Example +New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKEND : The set of backends for this pool. + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject +#> +function New-AzFrontDoorBackendPoolObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend[]] + # The set of backends for this pool. + ${Backend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${HealthProbeSettingsName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${LoadBalancingSettingsName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${FrontDoorName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${ResourceGroupName} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendPoolObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolsSettingObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolsSettingObject.ps1 new file mode 100644 index 000000000000..e8a944746cb8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolsSettingObject.ps1 @@ -0,0 +1,134 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for BackendPoolsSettings. +.Description +Create an in-memory object for BackendPoolsSettings. +.Example +New-AzFrontDoorBackendPoolsSettingObject +.Example +New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject +#> +function New-AzFrontDoorBackendPoolsSettingObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to enforce certificate name check on HTTPS requests to all backend pools. + # No effect on non-HTTPS requests. + ${EnforceCertificateNameCheck}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Send and receive timeout on forwarding request to the backend. + # When timeout is reached, the request fails and returns. + ${SendRecvTimeoutInSeconds} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendPoolsSettingObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorCacheConfigurationObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorCacheConfigurationObject.ps1 new file mode 100644 index 000000000000..9549ccfaa9cb --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorCacheConfigurationObject.ps1 @@ -0,0 +1,145 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for CacheConfiguration. +.Description +Create an in-memory object for CacheConfiguration. +.Example +New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -QueryParameterStripDirective "StripAllExcept" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorcacheconfigurationobject +#> +function New-AzFrontDoorCacheConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.TimeSpan] + # The duration for which the content needs to be cached. + # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + # HTTP requires the value to be no more than a year. + ${CacheDuration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to use dynamic compression for cached content. + ${DynamicCompression}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # query parameters to include or exclude (comma separated). + ${QueryParameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Treatment of URL query terms when forming the cache key. + ${QueryParameterStripDirective} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorCacheConfigurationObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorForwardingConfigurationObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorForwardingConfigurationObject.ps1 new file mode 100644 index 000000000000..e1cb163a2bae --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorForwardingConfigurationObject.ps1 @@ -0,0 +1,156 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ForwardingConfiguration. +.Description +Create an in-memory object for ForwardingConfiguration. +.Example +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "MatchRequest" +.Example +$cacheConfig = New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "HttpsOnly" -CustomForwardingPath "/api/v2" -CacheConfiguration $cacheConfig + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CACHECONFIGURATION : The caching configuration associated with this rule. + [CacheDuration ]: The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year + [DynamicCompression ]: Whether to use dynamic compression for cached content + [QueryParameter ]: query parameters to include or exclude (comma separated). + [QueryParameterStripDirective ]: Treatment of URL query terms when forming the cache key. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorforwardingconfigurationobject +#> +function New-AzFrontDoorForwardingConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${BackendPoolId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration] + # The caching configuration associated with this rule. + ${CacheConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A custom path used to rewrite resource paths matched by this rule. + # Leave empty to use incoming path. + ${CustomForwardingPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Protocol this rule will use when forwarding traffic to backends. + ${ForwardingProtocol} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorForwardingConfigurationObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorFrontendEndpointObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorFrontendEndpointObject.ps1 new file mode 100644 index 000000000000..62300ffa162e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorFrontendEndpointObject.ps1 @@ -0,0 +1,204 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for FrontendEndpoint. +.Description +Create an in-memory object for FrontendEndpoint. +.Example +New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName "frontendendpoint1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject +#> +function New-AzFrontDoorFrontendEndpointObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the source of the SSL certificate. + ${CertificateSource}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + ${MinimumTlsVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the type of the certificate used for secure connections to a frontendEndpoint. + ${CertificateType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The host name of the frontendEndpoint. + # Must be a domain name. + ${HostName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Key Vault secret representing the full certificate PFX. + ${SecretName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The version of the Key Vault secret representing the full certificate PFX. + ${SecretVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to allow session affinity on this host. + # Valid options are 'Enabled' or 'Disabled'. + ${SessionAffinityEnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # UNUSED. + # This field will be ignored. + # The TTL to use in seconds for session affinity, if applicable. + ${SessionAffinityTtlInSeconds}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Vault}, + + [Parameter()] + [Alias('WebApplicationFirewallPolicyLink')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${WebApplicationFirewallPolicyLinkId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The TLS extension protocol that is used for secure delivery + ${ProtocolType} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorFrontendEndpointObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHeaderActionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHeaderActionObject.ps1 new file mode 100644 index 000000000000..8eccaedec3e1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHeaderActionObject.ps1 @@ -0,0 +1,137 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for HeaderAction. +.Description +Create an in-memory object for HeaderAction. +.Example +New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorheaderactionobject +#> +function New-AzFrontDoorHeaderActionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Which type of manipulation to apply to the header. + ${HeaderActionType}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the header this action will apply to. + ${HeaderName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The value to update the given header name with. + # This value is not used if the actionType is Delete. + ${Value} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorHeaderActionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHealthProbeSettingObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHealthProbeSettingObject.ps1 new file mode 100644 index 000000000000..6d330fed79f6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHealthProbeSettingObject.ps1 @@ -0,0 +1,164 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for HealthProbeSettingsModel. +.Description +Create an in-memory object for HealthProbeSettingsModel. +.Example +New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject +#> +function New-AzFrontDoorHealthProbeSettingObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to enable health probes to be made against backends defined under backendPools. + # Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Configures which HTTP method to use to probe the backends defined under backendPools. + ${HealthProbeMethod}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The number of seconds between health probes. + ${IntervalInSeconds}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The path to use for the health probe. + # Default is /. + ${Path}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Protocol scheme to use for this probe. + ${Protocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorHealthProbeSettingObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorLoadBalancingSettingObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorLoadBalancingSettingObject.ps1 new file mode 100644 index 000000000000..99b78dfe9867 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorLoadBalancingSettingObject.ps1 @@ -0,0 +1,147 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for LoadBalancingSettingsModel. +.Description +Create an in-memory object for LoadBalancingSettingsModel. +.Example +New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject +#> +function New-AzFrontDoorLoadBalancingSettingObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The additional latency in milliseconds for probes to fall into the lowest latency bucket. + ${AdditionalLatencyInMilliseconds}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The number of samples to consider for load balancing decisions. + ${SampleSize}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The number of samples within the sample period that must succeed. + ${SuccessfulSamplesRequired}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorLoadBalancingSettingObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorPolicySettingsObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorPolicySettingsObject.ps1 new file mode 100644 index 000000000000..d78bc9c3c315 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorPolicySettingsObject.ps1 @@ -0,0 +1,193 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for PolicySettings. +.Description +Create an in-memory object for PolicySettings. +.Example +$logScrubbing = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @() +New-AzFrontDoorPolicySettingsObject -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Enabled" -CustomBlockResponseStatusCode 403 -CustomBlockResponseBody "PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+" -RedirectUrl "https://www.example.com/blocked" -JavascriptChallengeExpirationInMinutes 30 -LogScrubbingSetting $logScrubbing + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorpolicysettingsobject +#> +function New-AzFrontDoorPolicySettingsObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # 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. + ${CaptchaExpirationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If the action type is block, customer can override the response body. + # The body must be specified in base64 encoding. + ${CustomBlockResponseBody}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # If the action type is block, customer can override the response status code. + ${CustomBlockResponseStatusCode}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the policy is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # 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. + ${JavascriptChallengeExpirationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + # Defines rules that scrub sensitive fields in the Web Application Firewall logs. + ${LogScrubbingSetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if it is in detection mode or prevention mode at policy level. + ${Mode}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If action type is redirect, this field represents redirect URL for the client. + ${RedirectUrl}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if policy managed rules will inspect the request body content. + ${RequestBodyCheck} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorPolicySettingsObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRedirectConfigurationObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRedirectConfigurationObject.ps1 new file mode 100644 index 000000000000..114bb854b811 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRedirectConfigurationObject.ps1 @@ -0,0 +1,163 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RedirectConfiguration. +.Description +Create an in-memory object for RedirectConfiguration. +.Example +New-AzFrontDoorRedirectConfigurationObject -RedirectType "PermanentRedirect" -RedirectProtocol "HttpsOnly" -CustomHost "www.example.com" -CustomPath "/newpath" -CustomQueryString "source=frontdoor&campaign=redirect" -CustomFragment "section1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorredirectconfigurationobject +#> +function New-AzFrontDoorRedirectConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Fragment to add to the redirect URL. + # Fragment is the part of the URL that comes after #. + # Do not include the #. + ${CustomFragment}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Host to redirect. + # Leave empty to use the incoming host as the destination host. + ${CustomHost}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The full path to redirect. + # Path cannot be empty and must start with /. + # Leave empty to use the incoming path as destination path. + ${CustomPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The set of query strings to be placed in the redirect URL. + # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. + # Query string must be in = format. + # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + ${CustomQueryString}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The protocol of the destination to where the traffic is redirected. + ${RedirectProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The redirect type the rule will use when redirecting traffic. + ${RedirectType} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRedirectConfigurationObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRoutingRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRoutingRuleObject.ps1 new file mode 100644 index 000000000000..f458a6980abe --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRoutingRuleObject.ps1 @@ -0,0 +1,299 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RoutingRule. +.Description +Create an in-memory object for RoutingRule. +.Example +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" +.Example +$customHost = "www.contoso.com" +$customPath = "/images/contoso.png" +$queryString = "field1=value1&field2=value2" +$destinationFragment = "section-header-2" +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath -CustomQueryString $queryString -CustomFragment $destinationFragment + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +ROUTECONFIGURATION : + OdataType : +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject +#> +function New-AzFrontDoorRoutingRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule])] +[CmdletBinding(DefaultParameterSetName='ByFieldsWithForwardingParameterSet', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # Protocol schemes to match for this rule. + ${AcceptedProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to enable use of this rule. + # Permitted values are 'Enabled' or 'Disabled'. + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # Frontend endpoints associated with this rule. + ${FrontendEndpointName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource Group name. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Front Door to which this routing rule belongs. + ${FrontDoorName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # The route patterns of the rule. + ${PatternsToMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] + # + ${RouteConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${RuleEngineName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${WebApplicationFirewallPolicyLinkId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${BackendPoolName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.TimeSpan] + # The duration for which the content needs to be cached. + # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + # HTTP requires the value to be no more than a year. + ${CacheDuration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to use dynamic compression for cached content. + ${DynamicCompression}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # query parameters to include or exclude (comma separated). + ${QueryParameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Treatment of URL query terms when forming the cache key. + ${QueryParameterStripDirective}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A custom path used to rewrite resource paths matched by this rule. + # Leave empty to use incoming path. + ${CustomForwardingPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Protocol this rule will use when forwarding traffic to backends. + ${ForwardingProtocol}, + + [Parameter(ParameterSetName='ByFieldsWithForwardingParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Boolean] + ${EnableCaching}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Fragment to add to the redirect URL. + # Fragment is the part of the URL that comes after #. + # Do not include the #. + ${CustomFragment}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Host to redirect. + # Leave empty to use the incoming host as the destination host. + ${CustomHost}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The full path to redirect. + # Path cannot be empty and must start with /. + # Leave empty to use the incoming path as destination path. + ${CustomPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The set of query strings to be placed in the redirect URL. + # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. + # Query string must be in = format. + # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + ${CustomQueryString}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The protocol of the destination to where the traffic is redirected. + ${RedirectProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The redirect type the rule will use when redirecting traffic. + ${RedirectType} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + ByFieldsWithForwardingParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRoutingRuleObject'; + ByFieldsWithRedirectParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRoutingRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 new file mode 100644 index 000000000000..f345c9eab92a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 @@ -0,0 +1,262 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a new Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Create a new Rules Engine Configuration with the specified name within the specified Front Door. +.Example +New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +RULE : A list of rules that define a particular Rules Engine Configuration. + Action : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + Name : A name to refer to this specific rule. + Priority : A priority assigned to this rule. + [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms + [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengine +#> +function New-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] + # A list of rules that define a particular Rules Engine Configuration. + ${Rule}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateExpanded'; + CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateViaJsonFilePath'; + CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateViaJsonString'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineActionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineActionObject.ps1 new file mode 100644 index 000000000000..80f1b004b4a5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineActionObject.ps1 @@ -0,0 +1,319 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RulesEngineAction. +.Description +Create an in-memory object for RulesEngineAction. +.Example +$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" +$headerActions + +HeaderName HeaderActionType Value +---------- ---------------- ----- +X-Content-Type-Options Append nosniff + +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {X-Content-Type-Options} + +.Example +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true +$rulesEngineAction + +RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride +------------------- -------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineAction.RequestHeaderAction + +HeaderName HeaderActionType Value +---------- ---------------- ----- +headeraction1 Overwrite +headeraction2 Append + +$rulesEngineAction.ResponseHeaderAction +$rulesEngineAction.RouteConfigurationOverride + +CustomForwardingPath : +ForwardingProtocol : HttpsOnly +BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi + ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool +QueryParameterStripDirective : StripNone +DynamicCompression : Disabled +EnableCaching : True +.Example +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration + +$rulesEngineAction.RouteConfigurationOverride + +RedirectType : Moved +RedirectProtocol : MatchRequest +CustomHost : www.contoso.com +CustomPath : +CustomFragment : +CustomQueryString : + + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +REQUESTHEADERACTION : A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + +RESPONSEHEADERACTION : A list of header actions to apply from the response from AFD to the client. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + +ROUTECONFIGURATIONOVERRIDE : Override the route configuration. + OdataType : +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject +#> +function New-AzFrontDoorRulesEngineActionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction])] +[CmdletBinding(DefaultParameterSetName='ByFieldsWithForwardingParameterSet', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] + # A list of header actions to apply from the request from AFD to the origin. + ${RequestHeaderAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] + # A list of header actions to apply from the response from AFD to the client. + ${ResponseHeaderAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] + # Override the route configuration. + ${RouteConfigurationOverride}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${BackendPoolName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Front Door to which this routing rule belongs. + ${FrontDoorName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The resource group name that the RoutingRule will be created in. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.TimeSpan] + # The duration for which the content needs to be cached. + # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + # HTTP requires the value to be no more than a year. + ${CacheDuration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to use dynamic compression for cached content. + ${DynamicCompression}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # query parameters to include or exclude (comma separated). + ${QueryParameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Treatment of URL query terms when forming the cache key. + ${QueryParameterStripDirective}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A custom path used to rewrite resource paths matched by this rule. + # Leave empty to use incoming path. + ${CustomForwardingPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Protocol this rule will use when forwarding traffic to backends. + ${ForwardingProtocol}, + + [Parameter(ParameterSetName='ByFieldsWithForwardingParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Boolean] + ${EnableCaching}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Fragment to add to the redirect URL. + # Fragment is the part of the URL that comes after #. + # Do not include the #. + ${CustomFragment}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Host to redirect. + # Leave empty to use the incoming host as the destination host. + ${CustomHost}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The full path to redirect. + # Path cannot be empty and must start with /. + # Leave empty to use the incoming path as destination path. + ${CustomPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The set of query strings to be placed in the redirect URL. + # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. + # Query string must be in = format. + # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + ${CustomQueryString}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The protocol of the destination to where the traffic is redirected. + ${RedirectProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The redirect type the rule will use when redirecting traffic. + ${RedirectType} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + ByFieldsWithForwardingParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineActionObject'; + ByFieldsWithRedirectParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineActionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 new file mode 100644 index 000000000000..1371780d3be2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 @@ -0,0 +1,158 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RulesEngineMatchCondition. +.Description +Create an in-memory object for RulesEngineMatchCondition. +.Example +New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject +#> +function New-AzFrontDoorRulesEngineMatchConditionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # Match values to match against. + # The operator will apply to each value in here with OR semantics. + # If any of them match the variable with the given operator this match condition is considered a match. + ${MatchValue}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Match Variable. + ${MatchVariable}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes operator to apply to the match condition. + ${Operator}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Boolean] + # Describes if this is negate condition or not. + ${NegateCondition}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of selector in RequestHeader or RequestBody to be matched. + ${Selector}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # List of transforms. + ${Transform} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineMatchConditionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineRuleObject.ps1 new file mode 100644 index 000000000000..16aed7f6582e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineRuleObject.ps1 @@ -0,0 +1,196 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for RulesEngineRule. +.Description +Create an in-memory object for RulesEngineRule. +.Example +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition + +Name : rules1 +Priority : 0 +MatchProcessingBehavior : Stop +MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} +Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction + + +$rulesEngineRule1.Action + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineRule1.MatchCondition[0] + +RulesEngineMatchVariable : RequestHeader +RulesEngineMatchValue : {allowoverride} +Selector : Rules-Engine-Route-Forward +RulesEngineOperator : Equal +NegateCondition : False +Transforms : {Lowercase, Uppercase} +.Example +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +ACTION : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + +MATCHCONDITION : A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject +#> +function New-AzFrontDoorRulesEngineRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction] + # Actions to perform on the request and response if all of the match conditions are met. + ${Action}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A name to refer to this specific rule. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # A priority assigned to this rule. + # . + ${Priority}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition[]] + # A list of match conditions that must meet in order for the actions of this rule to run. + # Having no match conditions means the actions will always run. + ${MatchCondition}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If this rule is a match should the rules engine continue running the remaining rules or stop. + # If not present, defaults to Continue. + ${MatchProcessingBehavior} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 new file mode 100644 index 000000000000..f57cf718f9f1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 @@ -0,0 +1,124 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for GroupByVariable. +.Description +Create an in-memory object for GroupByVariable. +.Example +New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName SocketAddr + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomrulegroupbyvariableobject +#> +function New-AzFrontDoorWafCustomRuleGroupByVariableObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes the supported variable for group by. + ${VariableName} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafCustomRuleGroupByVariableObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleObject.ps1 new file mode 100644 index 000000000000..e17eb59dcc36 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleObject.ps1 @@ -0,0 +1,193 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for CustomRule. +.Description +Create an in-memory object for CustomRule. +.Example +New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +GROUPBY : Describes the list of variables to group the rate limit requests. + VariableName : Describes the supported variable for group by + +MATCHCONDITION : List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject +#> +function New-AzFrontDoorWafCustomRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes what action to be applied when rule matches. + ${Action}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition[]] + # List of match conditions. + ${MatchCondition}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Describes priority of the rule. + # Rules with a lower value will be evaluated before rules with a higher value. + ${Priority}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes type of rule. + ${RuleType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the custom rule is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter()] + [Alias('CustomRule')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable[]] + # Describes the list of variables to group the rate limit requests. + ${GroupBy}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes the name of the rule. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # Time window for resetting the rate limit count. + # Default is 1 minute. + ${RateLimitDurationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Number of allowed requests per client within the time window. + ${RateLimitThreshold} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafCustomRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 new file mode 100644 index 000000000000..67858352ab86 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 @@ -0,0 +1,145 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for WebApplicationFirewallScrubbingRules. +.Description +Create an in-memory object for WebApplicationFirewallScrubbingRules. +.Example +New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingruleobject +#> +function New-AzFrontDoorWafLogScrubbingRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The variable to be scrubbed from the logs. + ${MatchVariable}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + ${SelectorMatchOperator}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + ${Selector}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the state of a log scrubbing rule. + # Default value is enabled. + ${State} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafLogScrubbingRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 new file mode 100644 index 000000000000..4afca140b82e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 @@ -0,0 +1,142 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for PolicySettingsLogScrubbing. +.Description +Create an in-memory object for PolicySettingsLogScrubbing. +.Example +$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" +New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +SCRUBBINGRULE : List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingsettingobject +#> +function New-AzFrontDoorWafLogScrubbingSettingObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules[]] + # List of log scrubbing rules applied to the Web Application Firewall logs. + ${ScrubbingRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # State of the log scrubbing config. + # Default value is Enabled. + ${State} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafLogScrubbingSettingObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 new file mode 100644 index 000000000000..5afbcc515d74 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 @@ -0,0 +1,137 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ManagedRuleExclusion. +.Description +Create an in-memory object for ManagedRuleExclusion. +.Example +New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleexclusionobject +#> +function New-AzFrontDoorWafManagedRuleExclusionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + ${Operator}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Selector value for which elements in the collection this exclusion applies to. + ${Selector}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The variable type to be excluded. + ${Variable} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleExclusionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleObject.ps1 new file mode 100644 index 000000000000..75126f9336bb --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleObject.ps1 @@ -0,0 +1,176 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ManagedRuleSet. +.Description +Create an in-memory object for ManagedRuleSet. +.Example +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log +$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 + +$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log +$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3 + +New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +EXCLUSION : Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + +RULEGROUPOVERRIDE : Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleobject +#> +function New-AzFrontDoorWafManagedRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the rule set type to use. + ${Type}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the version of the rule set to use. + ${Version}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + # Describes the exclusions that are applied to all rules in the set. + ${Exclusion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride[]] + # Defines the rule group overrides to apply to the rule set. + ${RuleGroupOverride}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the rule set action. + ${RuleSetAction} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 new file mode 100644 index 000000000000..7afedfbf928c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 @@ -0,0 +1,153 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ManagedRuleOverride. +.Description +Create an in-memory object for ManagedRuleOverride. +.Example +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +EXCLUSION : Describes the exclusions that are applied to this specific rule. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject +#> +function New-AzFrontDoorWafManagedRuleOverrideObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Identifier for the managed rule. + ${RuleId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes the override action to be applied when rule matches. + ${Action}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the managed rule is in enabled or disabled state. + # Defaults to Disabled if not specified. + ${Disabled}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + # Describes the exclusions that are applied to this specific rule. + ${Exclusion} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleOverrideObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafMatchConditionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafMatchConditionObject.ps1 new file mode 100644 index 000000000000..dea40c16dc61 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafMatchConditionObject.ps1 @@ -0,0 +1,159 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for MatchCondition. +.Description +Create an in-memory object for MatchCondition. +.Example +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows" +.Example +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmatchconditionobject +#> +function New-AzFrontDoorWafMatchConditionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # List of possible match values. + ${MatchValue}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Request variable to compare with. + ${MatchVariable}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Comparison type to use for matching with the variable value. + ${OperatorProperty}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Boolean] + # Describes if the result of this condition should be negated. + ${NegateCondition}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. + # Default is null. + ${Selector}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # List of transforms. + ${Transform} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafMatchConditionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..9a4c89c990a2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,371 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create policy with specified rule set name within a resource group. +.Description +Create policy with specified rule set name within a resource group. +.Example +New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy +#> +function New-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If the action type is block, customer can override the response body. + # The body must be specified in base64 encoding. + ${CustomBlockResponseBody}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # If the action type is block, customer can override the response status code. + ${CustomBlockResponseStatusCode}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the policy is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # 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. + ${JavascriptChallengeExpirationInMinutes}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # 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. + ${CaptchaExpirationInMinutes}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + # Defines rules that scrub sensitive fields in the Web Application Firewall logs. + ${LogScrubbingSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Alias('ManagedRule')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if it is in detection mode or prevention mode at policy level. + ${Mode}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If action type is redirect, this field represents redirect URL for the client. + ${RedirectUrl}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if policy managed rules will inspect the request body content. + ${RequestBodyCheck}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Alias('Sku')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; + CreateViaJsonFilePath = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; + CreateViaJsonString = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 new file mode 100644 index 000000000000..9ce7306478ae --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 @@ -0,0 +1,157 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ManagedRuleGroupOverride. +.Description +Create an in-memory object for ManagedRuleGroupOverride. +.Example +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log + +New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +EXCLUSION : Describes the exclusions that are applied to all rules in the group. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + +MANAGEDRULEOVERRIDE : List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafrulegroupoverrideobject +#> +function New-AzFrontDoorWafRuleGroupOverrideObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes the managed rule group to override. + ${RuleGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + # Describes the exclusions that are applied to all rules in the group. + ${Exclusion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride[]] + # List of rules that will be disabled. + # If none specified, all rules in the group will be disabled. + ${ManagedRuleOverride} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafRuleGroupOverrideObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 new file mode 100644 index 000000000000..25cf173ea623 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -0,0 +1,8392 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Disables a frontendEndpoint for HTTPS traffic +.Description +Disables a frontendEndpoint for HTTPS traffic +.Example +Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" +.Example +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Disable-AzFrontDoorCustomDomainHttps -InputObject $frontendEndpointObj +.Example +Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/disable-azfrontdoorcustomdomainhttps +#> +function Disable-AzFrontDoorCustomDomainHttps { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Disable', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Disable', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Disable', Mandatory)] + [Parameter(ParameterSetName='DisableViaIdentityFrontDoor', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${FrontendEndpointName}, + + [Parameter(ParameterSetName='Disable', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Disable')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DisableViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='DisableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Disable = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_Disable'; + DisableViaIdentity = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_DisableViaIdentity'; + DisableViaIdentityFrontDoor = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor'; + } + if (('Disable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Gets a Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Gets a Rules Engine Configuration with the specified name within the specified Front Door. +.Example +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name rulesengine3 +.Example +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName +.Example +Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistent + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorrulesengine +#> +function Get-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_Get'; + GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_GetViaIdentity'; + GetViaIdentityFrontDoor = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_GetViaIdentityFrontDoor'; + List = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Lists all available managed rule sets. +.Description +Lists all available managed rule sets. +.Example +Get-AzFrontDoorWafManagedRuleSetDefinition + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafmanagedrulesetdefinition +#> +function Get-AzFrontDoorWafManagedRuleSetDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.FrontDoor.private\Get-AzFrontDoorWafManagedRuleSetDefinition_List'; + } + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Retrieve protection policy with specified name within a resource group. +.Description +Retrieve protection policy with specified name within a resource group. +.Example +Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafpolicy +#> +function Get-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_Get'; + GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_GetViaIdentity'; + List = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_List'; + List1 = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. +.Description +Gets a Front Door with the specified Front Door name under the specified subscription and resource group. +.Example +Get-AzFrontDoor +.Example +Get-AzFrontDoor -ResourceGroupName "rg1" +.Example +Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoor +#> +function Get-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.FrontDoor.private\Get-AzFrontDoor_Get'; + GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoor_GetViaIdentity'; + List = 'Az.FrontDoor.private\Get-AzFrontDoor_List'; + List1 = 'Az.FrontDoor.private\Get-AzFrontDoor_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create a new Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Create a new Rules Engine Configuration with the specified name within the specified Front Door. +.Example +New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +RULE : A list of rules that define a particular Rules Engine Configuration. + Action : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + Name : A name to refer to this specific rule. + Priority : A priority assigned to this rule. + [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms + [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengine +#> +function New-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] + # A list of rules that define a particular Rules Engine Configuration. + ${Rule}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateExpanded'; + CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateViaJsonFilePath'; + CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateViaJsonString'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Removes a content from Front Door. +.Description +Removes a content from Front Door. +.Example +Remove-AzFrontDoorContent -ResourceGroupName $ResourceGroupName -Name $FrontDoorName -ContentPath "/*" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CONTENTFILEPATH : Parameters required for content purge. + ContentPath >: The path to the content to be purged. Can describe a file path or a wild card directory. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorcontent +#> +function Remove-AzFrontDoorContent { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='PurgeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Purge', Mandatory)] + [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] + [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(ParameterSetName='Purge', Mandatory)] + [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] + [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Purge')] + [Parameter(ParameterSetName='PurgeExpanded')] + [Parameter(ParameterSetName='PurgeViaJsonFilePath')] + [Parameter(ParameterSetName='PurgeViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='PurgeViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PurgeViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='Purge', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PurgeViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters] + # Parameters required for content purge. + ${ContentFilePath}, + + [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] + [Parameter(ParameterSetName='PurgeViaIdentityExpanded', Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # The path to the content to be purged. + # Can describe a file path or a wild card directory. + ${ContentPath}, + + [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Purge operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Purge operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Purge = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_Purge'; + PurgeExpanded = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeExpanded'; + PurgeViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaIdentity'; + PurgeViaIdentityExpanded = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaIdentityExpanded'; + PurgeViaJsonFilePath = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaJsonFilePath'; + PurgeViaJsonString = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaJsonString'; + } + if (('Purge', 'PurgeExpanded', 'PurgeViaJsonFilePath', 'PurgeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes an existing Rules Engine Configuration with the specified parameters. +.Description +Deletes an existing Rules Engine Configuration with the specified parameters. +.Example +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $rulesEngine.Name -PassThru +.Example +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistentRulesEngine + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorrulesengine +#> +function Remove-AzFrontDoorRulesEngine { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityFrontDoor', Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='DeleteViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_Delete'; + DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_DeleteViaIdentity'; + DeleteViaIdentityFrontDoor = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes Policy +.Description +Deletes Policy +.Example +Remove-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorwafpolicy +#> +function Remove-AzFrontDoorWafPolicy { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.FrontDoor.private\Remove-AzFrontDoorWafPolicy_Delete'; + DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorWafPolicy_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes an existing Front Door with the specified parameters. +.Description +Deletes an existing Front Door with the specified parameters. +.Example +Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1" +.Example +Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor +.Example +Get-AzFrontDoor | Remove-AzFrontDoor +.Example +Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoor +#> +function Remove-AzFrontDoor { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.FrontDoor.private\Remove-AzFrontDoor_Delete'; + DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoor_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +RULE : A list of rules that define a particular Rules Engine Configuration. + Action : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + Name : A name to refer to this specific rule. + Priority : A priority assigned to this rule. + [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms + [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine +#> +function Set-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] + # A list of rules that define a particular Rules Engine Configuration. + ${Rule}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded1 = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateExpanded1'; + } + if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Enables a frontendEndpoint for HTTPS traffic +.Description +Enables a frontendEndpoint for HTTPS traffic +.Example +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" +.Example +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" +.Example +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps +.Example +Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +.Example +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps +#> +function Enable-AzFrontDoorCustomDomainHttps { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='Enable', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${FrontendEndpointName}, + + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='Enable', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaJsonString')] + [Parameter(ParameterSetName='EnableViaJsonFilePath')] + [Parameter(ParameterSetName='Enable')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] + [System.String] + # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + ${MinimumTlsVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Key Vault secret representing the full certificate PFX + ${SecretName}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The version of the Key Vault secret representing the full certificate PFX + ${SecretVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${VaultId}, + + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Enable operation + ${JsonString}, + + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Enable operation + ${JsonFilePath}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + EnableExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaJsonString = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaJsonFilePath = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + Enable = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaIdentityFrontDoorExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaIdentityFrontDoor = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaIdentityExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + EnableViaIdentity = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + ByResourceIdWithVaultParameterSet = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; + } + if (('EnableExpanded', 'EnableViaJsonString', 'EnableViaJsonFilePath', 'Enable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('EnableExpanded', 'EnableViaIdentityFrontDoorExpanded', 'EnableViaIdentityExpanded', 'ByResourceIdWithVaultParameterSet') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('MinimumTlsVersion') ) { + $PSBoundParameters['MinimumTlsVersion'] = 1.2 + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Description +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint +#> +function Get-AzFrontDoorFrontendEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='ByObjectParameterSet')] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] + [Alias('FrontendEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='ByObjectParameterSet', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Alias('FrontDoorObject')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + Get = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + ByObjectParameterSet = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + GetViaIdentityFrontDoor = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + GetViaIdentity = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; + } + if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Create a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor +#> +function New-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${DisableCertificateNameCheck}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.custom\New-AzFrontDoor'; + CreateViaJsonFilePath = 'Az.FrontDoor.custom\New-AzFrontDoor'; + CreateViaJsonString = 'Az.FrontDoor.custom\New-AzFrontDoor'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for Backend. +.Description +Create an in-memory object for Backend. +.Example +New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject +#> +function New-AzFrontDoorBackendObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Location of the backend (IP address or FQDN). + ${Address}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The value to use as the host header sent to the backend. + # If blank or unspecified, this defaults to the incoming host. + ${BackendHostHeader}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to enable use of this backend. + # Permitted values are 'Enabled' or 'Disabled'. + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The HTTP TCP port number. + # Must be between 1 and 65535. + ${HttpPort}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The HTTPS TCP port number. + # Must be between 1 and 65535. + ${HttpsPort}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Priority to use for load balancing. + # Higher priorities will not be used for load balancing if any lower priority backend is healthy. + ${Priority}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The Alias of the Private Link resource. + # Populating this optional field indicates that this backend is 'Private'. + ${PrivateLinkAlias}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A custom message to be included in the approval request to connect to the Private Link. + ${PrivateLinkApprovalMessage}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The location of the Private Link resource. + # Required only if 'privateLinkResourceId' is populated. + ${PrivateLinkLocation}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The Resource Id of the Private Link resource. + # Populating this optional field indicates that this backend is 'Private'. + ${PrivateLinkResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Weight of this endpoint for load balancing purposes. + ${Weight} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for BackendPool. +.Description +Create an in-memory object for BackendPool. +.Example +New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKEND : The set of backends for this pool. + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject +#> +function New-AzFrontDoorBackendPoolObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend[]] + # The set of backends for this pool. + ${Backend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${HealthProbeSettingsName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${LoadBalancingSettingsName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${FrontDoorName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${ResourceGroupName} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendPoolObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for BackendPoolsSettings. +.Description +Create an in-memory object for BackendPoolsSettings. +.Example +New-AzFrontDoorBackendPoolsSettingObject +.Example +New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject +#> +function New-AzFrontDoorBackendPoolsSettingObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to enforce certificate name check on HTTPS requests to all backend pools. + # No effect on non-HTTPS requests. + ${EnforceCertificateNameCheck}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Send and receive timeout on forwarding request to the backend. + # When timeout is reached, the request fails and returns. + ${SendRecvTimeoutInSeconds} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendPoolsSettingObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for CacheConfiguration. +.Description +Create an in-memory object for CacheConfiguration. +.Example +New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -QueryParameterStripDirective "StripAllExcept" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorcacheconfigurationobject +#> +function New-AzFrontDoorCacheConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.TimeSpan] + # The duration for which the content needs to be cached. + # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + # HTTP requires the value to be no more than a year. + ${CacheDuration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to use dynamic compression for cached content. + ${DynamicCompression}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # query parameters to include or exclude (comma separated). + ${QueryParameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Treatment of URL query terms when forming the cache key. + ${QueryParameterStripDirective} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorCacheConfigurationObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for ForwardingConfiguration. +.Description +Create an in-memory object for ForwardingConfiguration. +.Example +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "MatchRequest" +.Example +$cacheConfig = New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" +New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "HttpsOnly" -CustomForwardingPath "/api/v2" -CacheConfiguration $cacheConfig + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CACHECONFIGURATION : The caching configuration associated with this rule. + [CacheDuration ]: The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year + [DynamicCompression ]: Whether to use dynamic compression for cached content + [QueryParameter ]: query parameters to include or exclude (comma separated). + [QueryParameterStripDirective ]: Treatment of URL query terms when forming the cache key. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorforwardingconfigurationobject +#> +function New-AzFrontDoorForwardingConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${BackendPoolId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration] + # The caching configuration associated with this rule. + ${CacheConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A custom path used to rewrite resource paths matched by this rule. + # Leave empty to use incoming path. + ${CustomForwardingPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Protocol this rule will use when forwarding traffic to backends. + ${ForwardingProtocol} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorForwardingConfigurationObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for FrontendEndpoint. +.Description +Create an in-memory object for FrontendEndpoint. +.Example +New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName "frontendendpoint1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject +#> +function New-AzFrontDoorFrontendEndpointObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the source of the SSL certificate. + ${CertificateSource}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + ${MinimumTlsVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the type of the certificate used for secure connections to a frontendEndpoint. + ${CertificateType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The host name of the frontendEndpoint. + # Must be a domain name. + ${HostName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Key Vault secret representing the full certificate PFX. + ${SecretName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The version of the Key Vault secret representing the full certificate PFX. + ${SecretVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to allow session affinity on this host. + # Valid options are 'Enabled' or 'Disabled'. + ${SessionAffinityEnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # UNUSED. + # This field will be ignored. + # The TTL to use in seconds for session affinity, if applicable. + ${SessionAffinityTtlInSeconds}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Vault}, + + [Parameter()] + [Alias('WebApplicationFirewallPolicyLink')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${WebApplicationFirewallPolicyLinkId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The TLS extension protocol that is used for secure delivery + ${ProtocolType} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorFrontendEndpointObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for HeaderAction. +.Description +Create an in-memory object for HeaderAction. +.Example +New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorheaderactionobject +#> +function New-AzFrontDoorHeaderActionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Which type of manipulation to apply to the header. + ${HeaderActionType}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the header this action will apply to. + ${HeaderName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The value to update the given header name with. + # This value is not used if the actionType is Delete. + ${Value} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorHeaderActionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for HealthProbeSettingsModel. +.Description +Create an in-memory object for HealthProbeSettingsModel. +.Example +New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject +#> +function New-AzFrontDoorHealthProbeSettingObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to enable health probes to be made against backends defined under backendPools. + # Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Configures which HTTP method to use to probe the backends defined under backendPools. + ${HealthProbeMethod}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The number of seconds between health probes. + ${IntervalInSeconds}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The path to use for the health probe. + # Default is /. + ${Path}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Protocol scheme to use for this probe. + ${Protocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorHealthProbeSettingObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for LoadBalancingSettingsModel. +.Description +Create an in-memory object for LoadBalancingSettingsModel. +.Example +New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject +#> +function New-AzFrontDoorLoadBalancingSettingObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The additional latency in milliseconds for probes to fall into the lowest latency bucket. + ${AdditionalLatencyInMilliseconds}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The number of samples to consider for load balancing decisions. + ${SampleSize}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # The number of samples within the sample period that must succeed. + ${SuccessfulSamplesRequired}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorLoadBalancingSettingObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for PolicySettings. +.Description +Create an in-memory object for PolicySettings. +.Example +$logScrubbing = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @() +New-AzFrontDoorPolicySettingsObject -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Enabled" -CustomBlockResponseStatusCode 403 -CustomBlockResponseBody "PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+" -RedirectUrl "https://www.example.com/blocked" -JavascriptChallengeExpirationInMinutes 30 -LogScrubbingSetting $logScrubbing + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorpolicysettingsobject +#> +function New-AzFrontDoorPolicySettingsObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # 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. + ${CaptchaExpirationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If the action type is block, customer can override the response body. + # The body must be specified in base64 encoding. + ${CustomBlockResponseBody}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # If the action type is block, customer can override the response status code. + ${CustomBlockResponseStatusCode}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the policy is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # 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. + ${JavascriptChallengeExpirationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + # Defines rules that scrub sensitive fields in the Web Application Firewall logs. + ${LogScrubbingSetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if it is in detection mode or prevention mode at policy level. + ${Mode}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If action type is redirect, this field represents redirect URL for the client. + ${RedirectUrl}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if policy managed rules will inspect the request body content. + ${RequestBodyCheck} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorPolicySettingsObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for RedirectConfiguration. +.Description +Create an in-memory object for RedirectConfiguration. +.Example +New-AzFrontDoorRedirectConfigurationObject -RedirectType "PermanentRedirect" -RedirectProtocol "HttpsOnly" -CustomHost "www.example.com" -CustomPath "/newpath" -CustomQueryString "source=frontdoor&campaign=redirect" -CustomFragment "section1" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorredirectconfigurationobject +#> +function New-AzFrontDoorRedirectConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Fragment to add to the redirect URL. + # Fragment is the part of the URL that comes after #. + # Do not include the #. + ${CustomFragment}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Host to redirect. + # Leave empty to use the incoming host as the destination host. + ${CustomHost}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The full path to redirect. + # Path cannot be empty and must start with /. + # Leave empty to use the incoming path as destination path. + ${CustomPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The set of query strings to be placed in the redirect URL. + # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. + # Query string must be in = format. + # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + ${CustomQueryString}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The protocol of the destination to where the traffic is redirected. + ${RedirectProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The redirect type the rule will use when redirecting traffic. + ${RedirectType} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRedirectConfigurationObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for RoutingRule. +.Description +Create an in-memory object for RoutingRule. +.Example +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" +.Example +$customHost = "www.contoso.com" +$customPath = "/images/contoso.png" +$queryString = "field1=value1&field2=value2" +$destinationFragment = "section-header-2" +New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath -CustomQueryString $queryString -CustomFragment $destinationFragment + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +ROUTECONFIGURATION : + OdataType : +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject +#> +function New-AzFrontDoorRoutingRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule])] +[CmdletBinding(DefaultParameterSetName='ByFieldsWithForwardingParameterSet', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # Protocol schemes to match for this rule. + ${AcceptedProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to enable use of this rule. + # Permitted values are 'Enabled' or 'Disabled'. + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # Frontend endpoints associated with this rule. + ${FrontendEndpointName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource Group name. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Front Door to which this routing rule belongs. + ${FrontDoorName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # The route patterns of the rule. + ${PatternsToMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] + # + ${RouteConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${RuleEngineName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${WebApplicationFirewallPolicyLinkId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${Id}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${BackendPoolName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.TimeSpan] + # The duration for which the content needs to be cached. + # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + # HTTP requires the value to be no more than a year. + ${CacheDuration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to use dynamic compression for cached content. + ${DynamicCompression}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # query parameters to include or exclude (comma separated). + ${QueryParameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Treatment of URL query terms when forming the cache key. + ${QueryParameterStripDirective}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A custom path used to rewrite resource paths matched by this rule. + # Leave empty to use incoming path. + ${CustomForwardingPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Protocol this rule will use when forwarding traffic to backends. + ${ForwardingProtocol}, + + [Parameter(ParameterSetName='ByFieldsWithForwardingParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Boolean] + ${EnableCaching}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Fragment to add to the redirect URL. + # Fragment is the part of the URL that comes after #. + # Do not include the #. + ${CustomFragment}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Host to redirect. + # Leave empty to use the incoming host as the destination host. + ${CustomHost}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The full path to redirect. + # Path cannot be empty and must start with /. + # Leave empty to use the incoming path as destination path. + ${CustomPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The set of query strings to be placed in the redirect URL. + # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. + # Query string must be in = format. + # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + ${CustomQueryString}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The protocol of the destination to where the traffic is redirected. + ${RedirectProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The redirect type the rule will use when redirecting traffic. + ${RedirectType} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + ByFieldsWithForwardingParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRoutingRuleObject'; + ByFieldsWithRedirectParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRoutingRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for RulesEngineAction. +.Description +Create an in-memory object for RulesEngineAction. +.Example +$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" +$headerActions + +HeaderName HeaderActionType Value +---------- ---------------- ----- +X-Content-Type-Options Append nosniff + +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {X-Content-Type-Options} + +.Example +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true +$rulesEngineAction + +RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride +------------------- -------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineAction.RequestHeaderAction + +HeaderName HeaderActionType Value +---------- ---------------- ----- +headeraction1 Overwrite +headeraction2 Append + +$rulesEngineAction.ResponseHeaderAction +$rulesEngineAction.RouteConfigurationOverride + +CustomForwardingPath : +ForwardingProtocol : HttpsOnly +BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi + ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool +QueryParameterStripDirective : StripNone +DynamicCompression : Disabled +EnableCaching : True +.Example +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com +$rulesEngineAction + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration + +$rulesEngineAction.RouteConfigurationOverride + +RedirectType : Moved +RedirectProtocol : MatchRequest +CustomHost : www.contoso.com +CustomPath : +CustomFragment : +CustomQueryString : + + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +REQUESTHEADERACTION : A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + +RESPONSEHEADERACTION : A list of header actions to apply from the response from AFD to the client. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + +ROUTECONFIGURATIONOVERRIDE : Override the route configuration. + OdataType : +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject +#> +function New-AzFrontDoorRulesEngineActionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction])] +[CmdletBinding(DefaultParameterSetName='ByFieldsWithForwardingParameterSet', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] + # A list of header actions to apply from the request from AFD to the origin. + ${RequestHeaderAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] + # A list of header actions to apply from the response from AFD to the client. + ${ResponseHeaderAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] + # Override the route configuration. + ${RouteConfigurationOverride}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${BackendPoolName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Front Door to which this routing rule belongs. + ${FrontDoorName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The resource group name that the RoutingRule will be created in. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.TimeSpan] + # The duration for which the content needs to be cached. + # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + # HTTP requires the value to be no more than a year. + ${CacheDuration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Whether to use dynamic compression for cached content. + ${DynamicCompression}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # query parameters to include or exclude (comma separated). + ${QueryParameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Treatment of URL query terms when forming the cache key. + ${QueryParameterStripDirective}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A custom path used to rewrite resource paths matched by this rule. + # Leave empty to use incoming path. + ${CustomForwardingPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Protocol this rule will use when forwarding traffic to backends. + ${ForwardingProtocol}, + + [Parameter(ParameterSetName='ByFieldsWithForwardingParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Boolean] + ${EnableCaching}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Fragment to add to the redirect URL. + # Fragment is the part of the URL that comes after #. + # Do not include the #. + ${CustomFragment}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Host to redirect. + # Leave empty to use the incoming host as the destination host. + ${CustomHost}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The full path to redirect. + # Path cannot be empty and must start with /. + # Leave empty to use the incoming path as destination path. + ${CustomPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The set of query strings to be placed in the redirect URL. + # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. + # Query string must be in = format. + # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + ${CustomQueryString}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The protocol of the destination to where the traffic is redirected. + ${RedirectProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The redirect type the rule will use when redirecting traffic. + ${RedirectType} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + ByFieldsWithForwardingParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineActionObject'; + ByFieldsWithRedirectParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineActionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for RulesEngineMatchCondition. +.Description +Create an in-memory object for RulesEngineMatchCondition. +.Example +New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject +#> +function New-AzFrontDoorRulesEngineMatchConditionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # Match values to match against. + # The operator will apply to each value in here with OR semantics. + # If any of them match the variable with the given operator this match condition is considered a match. + ${MatchValue}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Match Variable. + ${MatchVariable}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes operator to apply to the match condition. + ${Operator}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Boolean] + # Describes if this is negate condition or not. + ${NegateCondition}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of selector in RequestHeader or RequestBody to be matched. + ${Selector}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # List of transforms. + ${Transform} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineMatchConditionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for RulesEngineRule. +.Description +Create an in-memory object for RulesEngineRule. +.Example +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition + +Name : rules1 +Priority : 0 +MatchProcessingBehavior : Stop +MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} +Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction + + +$rulesEngineRule1.Action + +RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride +-------------------- --------------------- -------------------------- +{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration + +$rulesEngineRule1.MatchCondition[0] + +RulesEngineMatchVariable : RequestHeader +RulesEngineMatchValue : {allowoverride} +Selector : Rules-Engine-Route-Forward +RulesEngineOperator : Equal +NegateCondition : False +Transforms : {Lowercase, Uppercase} +.Example +New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +ACTION : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + +MATCHCONDITION : A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject +#> +function New-AzFrontDoorRulesEngineRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction] + # Actions to perform on the request and response if all of the match conditions are met. + ${Action}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A name to refer to this specific rule. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # A priority assigned to this rule. + # . + ${Priority}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition[]] + # A list of match conditions that must meet in order for the actions of this rule to run. + # Having no match conditions means the actions will always run. + ${MatchCondition}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If this rule is a match should the rules engine continue running the remaining rules or stop. + # If not present, defaults to Continue. + ${MatchProcessingBehavior} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for GroupByVariable. +.Description +Create an in-memory object for GroupByVariable. +.Example +New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName SocketAddr + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomrulegroupbyvariableobject +#> +function New-AzFrontDoorWafCustomRuleGroupByVariableObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes the supported variable for group by. + ${VariableName} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafCustomRuleGroupByVariableObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for CustomRule. +.Description +Create an in-memory object for CustomRule. +.Example +New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +GROUPBY : Describes the list of variables to group the rate limit requests. + VariableName : Describes the supported variable for group by + +MATCHCONDITION : List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject +#> +function New-AzFrontDoorWafCustomRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes what action to be applied when rule matches. + ${Action}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition[]] + # List of match conditions. + ${MatchCondition}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Describes priority of the rule. + # Rules with a lower value will be evaluated before rules with a higher value. + ${Priority}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes type of rule. + ${RuleType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the custom rule is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter()] + [Alias('CustomRule')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable[]] + # Describes the list of variables to group the rate limit requests. + ${GroupBy}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes the name of the rule. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # Time window for resetting the rate limit count. + # Default is 1 minute. + ${RateLimitDurationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # Number of allowed requests per client within the time window. + ${RateLimitThreshold} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafCustomRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for WebApplicationFirewallScrubbingRules. +.Description +Create an in-memory object for WebApplicationFirewallScrubbingRules. +.Example +New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingruleobject +#> +function New-AzFrontDoorWafLogScrubbingRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The variable to be scrubbed from the logs. + ${MatchVariable}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + ${SelectorMatchOperator}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + ${Selector}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the state of a log scrubbing rule. + # Default value is enabled. + ${State} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafLogScrubbingRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for PolicySettingsLogScrubbing. +.Description +Create an in-memory object for PolicySettingsLogScrubbing. +.Example +$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" +New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +SCRUBBINGRULE : List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingsettingobject +#> +function New-AzFrontDoorWafLogScrubbingSettingObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules[]] + # List of log scrubbing rules applied to the Web Application Firewall logs. + ${ScrubbingRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # State of the log scrubbing config. + # Default value is Enabled. + ${State} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafLogScrubbingSettingObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for ManagedRuleExclusion. +.Description +Create an in-memory object for ManagedRuleExclusion. +.Example +New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleexclusionobject +#> +function New-AzFrontDoorWafManagedRuleExclusionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + ${Operator}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Selector value for which elements in the collection this exclusion applies to. + ${Selector}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The variable type to be excluded. + ${Variable} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleExclusionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for ManagedRuleSet. +.Description +Create an in-memory object for ManagedRuleSet. +.Example +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log +$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 + +$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log +$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3 + +New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +EXCLUSION : Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + +RULEGROUPOVERRIDE : Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleobject +#> +function New-AzFrontDoorWafManagedRuleObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the rule set type to use. + ${Type}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the version of the rule set to use. + ${Version}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + # Describes the exclusions that are applied to all rules in the set. + ${Exclusion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride[]] + # Defines the rule group overrides to apply to the rule set. + ${RuleGroupOverride}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the rule set action. + ${RuleSetAction} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for ManagedRuleOverride. +.Description +Create an in-memory object for ManagedRuleOverride. +.Example +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +EXCLUSION : Describes the exclusions that are applied to this specific rule. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject +#> +function New-AzFrontDoorWafManagedRuleOverrideObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Identifier for the managed rule. + ${RuleId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes the override action to be applied when rule matches. + ${Action}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the managed rule is in enabled or disabled state. + # Defaults to Disabled if not specified. + ${Disabled}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + # Describes the exclusions that are applied to this specific rule. + ${Exclusion} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleOverrideObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for MatchCondition. +.Description +Create an in-memory object for MatchCondition. +.Example +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows" +.Example +New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmatchconditionobject +#> +function New-AzFrontDoorWafMatchConditionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # List of possible match values. + ${MatchValue}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Request variable to compare with. + ${MatchVariable}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Comparison type to use for matching with the variable value. + ${OperatorProperty}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Boolean] + # Describes if the result of this condition should be negated. + ${NegateCondition}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. + # Default is null. + ${Selector}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # List of transforms. + ${Transform} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafMatchConditionObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create policy with specified rule set name within a resource group. +.Description +Create policy with specified rule set name within a resource group. +.Example +New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy +#> +function New-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If the action type is block, customer can override the response body. + # The body must be specified in base64 encoding. + ${CustomBlockResponseBody}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Int32] + # If the action type is block, customer can override the response status code. + ${CustomBlockResponseStatusCode}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the policy is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # 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. + ${JavascriptChallengeExpirationInMinutes}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # 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. + ${CaptchaExpirationInMinutes}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + # Defines rules that scrub sensitive fields in the Web Application Firewall logs. + ${LogScrubbingSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Alias('ManagedRule')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if it is in detection mode or prevention mode at policy level. + ${Mode}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If action type is redirect, this field represents redirect URL for the client. + ${RedirectUrl}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if policy managed rules will inspect the request body content. + ${RequestBodyCheck}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Alias('Sku')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; + CreateViaJsonFilePath = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; + CreateViaJsonString = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for ManagedRuleGroupOverride. +.Description +Create an in-memory object for ManagedRuleGroupOverride. +.Example +$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log +$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log + +New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +EXCLUSION : Describes the exclusions that are applied to all rules in the group. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + +MANAGEDRULEOVERRIDE : List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. +.Link +https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafrulegroupoverrideobject +#> +function New-AzFrontDoorWafRuleGroupOverrideObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes the managed rule group to override. + ${RuleGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] + # Describes the exclusions that are applied to all rules in the group. + ${Exclusion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride[]] + # List of rules that will be disabled. + # If none specified, all rules in the group will be disabled. + ${ManagedRuleOverride} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafRuleGroupOverrideObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor +#> +function Set-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${DisableCertificateNameCheck}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + ByResourceIdWithBackendPoolsSettingParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + ByResourceIdWithCertificateNameCheckParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + ByResourceIdParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + UpdateViaJsonFilePath = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + UpdateViaJsonString = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + } + if (('UpdateExpanded', 'ByResourceIdWithBackendPoolsSettingParameterSet', 'ByResourceIdWithCertificateNameCheckParameterSet', 'ByResourceIdParameterSet', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Update policy with specified rule set name within a resource group. +.Description +Update policy with specified rule set name within a resource group. +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy +#> +function Update-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter()] + [Alias('ManagedRule')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If the action type is block, customer can override the response body. + # The body must be specified in base64 encoding. + ${CustomBlockResponseBody}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # If the action type is block, customer can override the response status code. + ${CustomBlockResponseStatusCode}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the policy is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + # Defines rules that scrub sensitive fields in the Web Application Firewall logs. + ${LogScrubbingSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if it is in detection mode or prevention mode at policy level. + ${Mode}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If action type is redirect, this field represents redirect URL for the client. + ${RedirectUrl}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if policy managed rules will inspect the request body content. + ${RequestBodyCheck}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # 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. + ${JavascriptChallengeExpirationInMinutes}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # 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. + ${CaptchaExpirationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; + ByFieldsParameterSet = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; + UpdateViaIdentityExpanded = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/README.md b/generated/FrontDoor/FrontDoor.Autorest/exports/README.md new file mode 100644 index 000000000000..3748cd686dd4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/README.md @@ -0,0 +1,20 @@ +# Exports +This directory contains the cmdlets *exported by* `Az.FrontDoor`. No other cmdlets in this repository are directly exported. What that means is the `Az.FrontDoor` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. + +## Info +- Modifiable: no +- Generated: all +- Committed: no +- Packaged: yes + +## Details +The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.FrontDoor.private.dll`) and from the `..\custom\Az.FrontDoor.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [README.md](..\internal/README.md) in the `..\internal` folder. + +## Purpose +We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles. + +## Structure +The cmdlets generated here will flat in the directory (no sub-folders) as long as there are no Azure profiles specified for any cmdlets. Azure profiles (the `Profiles` attribute) is only applied when generating with the `--azure` attribute (or `azure: true` in the configuration). When Azure profiles are applied, the folder structure has a folder per profile. Each profile folder has only those cmdlets that apply to that profile. + +## Usage +When `./Az.FrontDoor.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message. \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 new file mode 100644 index 000000000000..78857110afac --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 @@ -0,0 +1,245 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes an existing Front Door with the specified parameters. +.Description +Deletes an existing Front Door with the specified parameters. +.Example +Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1" +.Example +Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor +.Example +Get-AzFrontDoor | Remove-AzFrontDoor +.Example +Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoor +#> +function Remove-AzFrontDoor { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.FrontDoor.private\Remove-AzFrontDoor_Delete'; + DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoor_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 new file mode 100644 index 000000000000..efad9ee27548 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 @@ -0,0 +1,285 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Removes a content from Front Door. +.Description +Removes a content from Front Door. +.Example +Remove-AzFrontDoorContent -ResourceGroupName $ResourceGroupName -Name $FrontDoorName -ContentPath "/*" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CONTENTFILEPATH : Parameters required for content purge. + ContentPath >: The path to the content to be purged. Can describe a file path or a wild card directory. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorcontent +#> +function Remove-AzFrontDoorContent { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='PurgeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Purge', Mandatory)] + [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] + [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(ParameterSetName='Purge', Mandatory)] + [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] + [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Purge')] + [Parameter(ParameterSetName='PurgeExpanded')] + [Parameter(ParameterSetName='PurgeViaJsonFilePath')] + [Parameter(ParameterSetName='PurgeViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='PurgeViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PurgeViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='Purge', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PurgeViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters] + # Parameters required for content purge. + ${ContentFilePath}, + + [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] + [Parameter(ParameterSetName='PurgeViaIdentityExpanded', Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String[]] + # The path to the content to be purged. + # Can describe a file path or a wild card directory. + ${ContentPath}, + + [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Purge operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Purge operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Purge = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_Purge'; + PurgeExpanded = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeExpanded'; + PurgeViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaIdentity'; + PurgeViaIdentityExpanded = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaIdentityExpanded'; + PurgeViaJsonFilePath = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaJsonFilePath'; + PurgeViaJsonString = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaJsonString'; + } + if (('Purge', 'PurgeExpanded', 'PurgeViaJsonFilePath', 'PurgeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 new file mode 100644 index 000000000000..5fddcee4cb2a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 @@ -0,0 +1,264 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes an existing Rules Engine Configuration with the specified parameters. +.Description +Deletes an existing Rules Engine Configuration with the specified parameters. +.Example +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $rulesEngine.Name -PassThru +.Example +Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistentRulesEngine + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorrulesengine +#> +function Remove-AzFrontDoorRulesEngine { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityFrontDoor', Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='DeleteViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_Delete'; + DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_DeleteViaIdentity'; + DeleteViaIdentityFrontDoor = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..b1775ed5bf18 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,241 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes Policy +.Description +Deletes Policy +.Example +Remove-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorwafpolicy +#> +function Remove-AzFrontDoorWafPolicy { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.FrontDoor.private\Remove-AzFrontDoorWafPolicy_Delete'; + DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorWafPolicy_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 new file mode 100644 index 000000000000..f4e0e16c1ad2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 @@ -0,0 +1,392 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor +#> +function Set-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${DisableCertificateNameCheck}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + ByResourceIdWithBackendPoolsSettingParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + ByResourceIdWithCertificateNameCheckParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + ByResourceIdParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + UpdateViaJsonFilePath = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + UpdateViaJsonString = 'Az.FrontDoor.custom\Set-AzFrontDoor'; + } + if (('UpdateExpanded', 'ByResourceIdWithBackendPoolsSettingParameterSet', 'ByResourceIdWithCertificateNameCheckParameterSet', 'ByResourceIdParameterSet', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 new file mode 100644 index 000000000000..7af7d56fbf7e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 @@ -0,0 +1,250 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +RULE : A list of rules that define a particular Rules Engine Configuration. + Action : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + Name : A name to refer to this specific rule. + Priority : A priority assigned to this rule. + [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms + [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine +#> +function Set-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] + # A list of rules that define a particular Rules Engine Configuration. + ${Rule}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded1 = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateExpanded1'; + } + if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..589c7fb1f7c6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,392 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update policy with specified rule set name within a resource group. +.Description +Update policy with specified rule set name within a resource group. +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy +#> +function Update-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter()] + [Alias('ManagedRule')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If the action type is block, customer can override the response body. + # The body must be specified in base64 encoding. + ${CustomBlockResponseBody}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # If the action type is block, customer can override the response status code. + ${CustomBlockResponseStatusCode}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if the policy is in enabled or disabled state. + # Defaults to Enabled if not specified. + ${EnabledState}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] + # Defines rules that scrub sensitive fields in the Web Application Firewall logs. + ${LogScrubbingSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if it is in detection mode or prevention mode at policy level. + ${Mode}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # If action type is redirect, this field represents redirect URL for the client. + ${RedirectUrl}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Describes if policy managed rules will inspect the request body content. + ${RequestBodyCheck}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # 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. + ${JavascriptChallengeExpirationInMinutes}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable[System.Int32]] + # 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. + ${CaptchaExpirationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." + exit + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; + ByFieldsParameterSet = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; + UpdateViaIdentityExpanded = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generate-info.json b/generated/FrontDoor/FrontDoor.Autorest/generate-info.json new file mode 100644 index 000000000000..c4aefc46ba83 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -0,0 +1,3 @@ +{ + "generate_Id": "93d25844-dd8f-4824-92fa-385f21ac3335" +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/Module.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/Module.cs new file mode 100644 index 000000000000..ea66dab43593 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/Module.cs @@ -0,0 +1,202 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using SendAsyncStepDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>; + using GetParameterDelegate = global::System.Func; + using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; + using ArgumentCompleterDelegate = global::System.Func; + using GetTelemetryIdDelegate = global::System.Func; + using TelemetryDelegate = global::System.Action; + using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; + using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; + using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; + using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using SanitizerDelegate = global::System.Action; + using GetTelemetryInfoDelegate = global::System.Func>; + + /// A class that contains the module-common code and data. + public partial class Module + { + /// The currently selected profile. + public string Profile = global::System.String.Empty; + + public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler(); + + private static bool _init = false; + + private static readonly global::System.Object _initLock = new global::System.Object(); + + private static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module _instance; + + /// the ISendAsync pipeline instance + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline _pipeline; + + /// the ISendAsync pipeline instance (when proxy is enabled) + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline _pipelineWithProxy; + + private static readonly global::System.Object _singletonLock = new global::System.Object(); + + public bool _useProxy = false; + + public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); + + /// Gets completion data for azure specific fields + public ArgumentCompleterDelegate ArgumentCompleter { get; set; } + + /// The instance of the Client API + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor ClientAPI { get; set; } + + /// A delegate that gets called for each signalled event + public EventListenerDelegate EventListener { get; set; } + + /// The delegate to call to get parameter data from a common module. + public GetParameterDelegate GetParameterValue { get; set; } + + /// The delegate to get the telemetry Id. + public GetTelemetryIdDelegate GetTelemetryId { get; set; } + + /// The delegate to get the telemetry info. + public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; } + + /// the singleton of this module class + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } + + /// The Name of this module + public string Name => @"Az.FrontDoor"; + + /// The delegate to call when this module is loaded (supporting a commmon module). + public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } + + /// The delegate to call before each new request (supporting a commmon module). + public NewRequestPipelineDelegate OnNewRequest { get; set; } + + /// The name of the currently selected Azure profile + public global::System.String ProfileName { get; set; } + + /// The ResourceID for this module (azure arm). + public string ResourceId => @"Az.FrontDoor"; + + /// The delegate to call in WriteObject to sanitize the output object. + public SanitizerDelegate SanitizeOutput { get; set; } + + /// The delegate for creating a telemetry. + public TelemetryDelegate Telemetry { get; set; } + + /// The from the cmdlet + /// The HttpPipeline for the request + + partial void AfterCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline pipeline); + + /// The from the cmdlet + /// The HttpPipeline for the request + + partial void BeforeCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline pipeline); + + partial void CustomInit(); + + /// Creates an instance of the HttpPipeline for each call. + /// The from the cmdlet + /// the cmdlet's correlation id. + /// the cmdlet's process record correlation id. + /// the cmdlet's parameterset name. + /// a dict for extensible parameters + /// An instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline for the remote call. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null, global::System.Collections.Generic.IDictionary extensibleParameters = null) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline pipeline = null; + BeforeCreatePipeline(invocationInfo, ref pipeline); + pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone(); + AfterCreatePipeline(invocationInfo, ref pipeline); + pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync); + OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } ); + return pipeline; + } + + /// Gets parameters from a common module. + /// The from the cmdlet + /// the cmdlet's correlation id. + /// The name of the parameter to get the value for. + /// + /// The parameter value from the common module. (Note: this should be type converted on the way back) + /// + public object GetParameter(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string parameterName) => GetParameterValue?.Invoke( ResourceId, Name, invocationInfo, correlationId,parameterName ); + + /// Initialization steps performed after the module is loaded. + public void Init() + { + if (_init == false) + { + lock (_initLock) { + if (_init == false) { + OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } ); + OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } ); + CustomInit(); + _init = true; + } + } + } + } + + /// Creates the module instance. + private Module() + { + // constructor + ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor(); + _handler.Proxy = _webProxy; + _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); + _pipelineWithProxy = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient(_handler))); + } + + /// The HTTP Proxy to use. + /// The HTTP Proxy Credentials + /// True if the proxy should use default credentials + public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials) + { + _useProxy = proxy != null; + if (proxy == null) + { + return; + } + // set the proxy configuration + _webProxy.Address = proxy; + _webProxy.BypassProxyOnLocal = false; + if (proxyUseDefaultCredentials) + { + _webProxy.Credentials = null; + _webProxy.UseDefaultCredentials = true; + } + else + { + _webProxy.UseDefaultCredentials = false; + _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); + } + } + + /// Called to dispatch events to the common module listener + /// The ID of the event + /// The cancellation token for the event + /// A delegate to get the detailed event data + /// The callback for the event dispatcher + /// The from the cmdlet + /// the cmdlet's parameterset name. + /// the cmdlet's correlation id. + /// the cmdlet's process record correlation id. + /// the exception that is being thrown (if available) + /// + /// A that will be complete when handling of the event is completed. + /// + public async global::System.Threading.Tasks.Task Signal(string id, global::System.Threading.CancellationToken token, global::System.Func getEventData, SignalDelegate signal, global::System.Management.Automation.InvocationInfo invocationInfo, string parameterSetName, string correlationId, string processRecordId, global::System.Exception exception) + { + using( NoSynchronizationContext ) + { + await EventListener?.Invoke(id,token,getEventData, signal, invocationInfo, parameterSetName, correlationId,processRecordId,exception); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/FrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/FrontDoor.cs new file mode 100644 index 000000000000..72dafbe8d07a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/FrontDoor.cs @@ -0,0 +1,8616 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Low-level API implementation for the FrontDoor service. + /// APIs to manage web application firewall rules. + /// + public partial class FrontDoor + { + + /// Removes a content from Front Door. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// The path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes + /// a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EndpointsPurgeContent(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/purge" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EndpointsPurgeContent_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Removes a content from Front Door. + /// + /// The path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes + /// a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EndpointsPurgeContentViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/purge" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EndpointsPurgeContent_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Removes a content from Front Door. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Json string supplied to the EndpointsPurgeContent operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EndpointsPurgeContentViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/purge" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EndpointsPurgeContent_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EndpointsPurgeContent_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// The path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes + /// a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EndpointsPurgeContent_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Check the availability of a Front Door resource name. + /// Input to check. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheck(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorNameAvailabilityCheck_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Check the availability of a Front Door resource name. + /// + /// Input to check. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.Network$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.Network'"); + } + + // replace URI parameters with values from identity + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorNameAvailabilityCheck_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Check the availability of a Front Door resource name. + /// + /// Input to check. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.Network$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.Network'"); + } + + // replace URI parameters with values from identity + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorNameAvailabilityCheckWithResult_Call (request, eventListener,sender); + } + } + + /// Check the availability of a Front Door resource name. + /// Json string supplied to the FrontDoorNameAvailabilityCheck operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckViaJsonString(global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorNameAvailabilityCheck_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Check the availability of a Front Door resource name. + /// Json string supplied to the FrontDoorNameAvailabilityCheck operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckViaJsonStringWithResult(global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorNameAvailabilityCheckWithResult_Call (request, eventListener,sender); + } + } + + /// Check the availability of a Front Door resource name. + /// Input to check. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckWithResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorNameAvailabilityCheckWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheck_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Input to check. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheck_Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Check the availability of a Front Door subdomain. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Input to check. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheck(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorNameAvailabilityWithSubscriptionCheck_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Check the availability of a Front Door subdomain. + /// + /// Input to check. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorNameAvailabilityWithSubscriptionCheck_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Check the availability of a Front Door subdomain. + /// + /// Input to check. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorNameAvailabilityWithSubscriptionCheckWithResult_Call (request, eventListener,sender); + } + } + + /// Check the availability of a Front Door subdomain. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Json string supplied to the FrontDoorNameAvailabilityWithSubscriptionCheck operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckViaJsonString(string subscriptionId, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorNameAvailabilityWithSubscriptionCheck_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Check the availability of a Front Door subdomain. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Json string supplied to the FrontDoorNameAvailabilityWithSubscriptionCheck operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckViaJsonStringWithResult(string subscriptionId, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorNameAvailabilityWithSubscriptionCheckWithResult_Call (request, eventListener,sender); + } + } + + /// Check the availability of a Front Door subdomain. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Input to check. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorNameAvailabilityWithSubscriptionCheckWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheck_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual + /// call, but you will get validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Input to check. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheck_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Front Door properties needed to create a new Front Door. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// Front Door properties needed to create a new Front Door. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// Front Door properties needed to create a new Front Door. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Json string supplied to the FrontDoorsCreateOrUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Json string supplied to the FrontDoorsCreateOrUpdate operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Front Door properties needed to create a new Front Door. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Front Door properties needed to create a new Front Door. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes an existing Front Door with the specified parameters. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsDelete(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); + } + } + + /// Deletes an existing Front Door with the specified parameters. + /// + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsDelete_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + } + } + + /// + /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsGet(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + /// + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsGetWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsGetWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsGetWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsGet_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + } + } + + /// Lists all of the Front Doors within an Azure subscription. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/frontDoors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsList_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the Front Doors within a resource group under a subscription. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsListByResourceGroup_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the Front Doors within a resource group under a subscription. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsListByResourceGroup_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the Front Doors within a resource group under a subscription. + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsListByResourceGroupWithResult_Call (request, eventListener,sender); + } + } + + /// Lists all of the Front Doors within a resource group under a subscription. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsListByResourceGroupWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroupWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + } + } + + /// Lists all of the Front Doors within an Azure subscription. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/frontDoors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/frontDoors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsList_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the Front Doors within an Azure subscription. + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/frontDoors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/frontDoors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsListWithResult_Call (request, eventListener,sender); + } + } + + /// Lists all of the Front Doors within an Azure subscription. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsListWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/frontDoors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsListWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Custom domain to be validated. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomain(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/validateCustomDomain" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsValidateCustomDomain_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// + /// Custom domain to be validated. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/validateCustomDomain" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsValidateCustomDomain_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// + /// Custom domain to be validated. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/validateCustomDomain" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsValidateCustomDomainWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Json string supplied to the FrontDoorsValidateCustomDomain operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/validateCustomDomain" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontDoorsValidateCustomDomain_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Json string supplied to the FrontDoorsValidateCustomDomain operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/validateCustomDomain" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsValidateCustomDomainWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Custom domain to be validated. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/validateCustomDomain" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontDoorsValidateCustomDomainWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomain_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Custom domain to be validated. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomain_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Disables a frontendEndpoint for HTTPS traffic + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Frontend endpoint which is unique within the Front Door. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsDisableHttps(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/frontendEndpoints/" + + global::System.Uri.EscapeDataString(frontendEndpointName) + + "/disableHttps" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsDisableHttps_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Disables a frontendEndpoint for HTTPS traffic + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsDisableHttpsViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var frontendEndpointName = _match.Groups["frontendEndpointName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/frontendEndpoints/" + + frontendEndpointName + + "/disableHttps" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsDisableHttps_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsDisableHttps_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Frontend endpoint which is unique within the Front Door. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsDisableHttps_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(frontendEndpointName),frontendEndpointName); + await eventListener.AssertMinimumLength(nameof(frontendEndpointName),frontendEndpointName,1); + await eventListener.AssertMaximumLength(nameof(frontendEndpointName),frontendEndpointName,255); + await eventListener.AssertRegEx(nameof(frontendEndpointName), frontendEndpointName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + } + } + + /// Enables a frontendEndpoint for HTTPS traffic + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Frontend endpoint which is unique within the Front Door. + /// The configuration specifying how to enable HTTPS + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttps(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/frontendEndpoints/" + + global::System.Uri.EscapeDataString(frontendEndpointName) + + "/enableHttps" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsEnableHttps_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// The configuration specifying how to enable HTTPS + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttpsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var frontendEndpointName = _match.Groups["frontendEndpointName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/frontendEndpoints/" + + frontendEndpointName + + "/enableHttps" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsEnableHttps_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Enables a frontendEndpoint for HTTPS traffic + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Frontend endpoint which is unique within the Front Door. + /// Json string supplied to the FrontendEndpointsEnableHttps operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttpsViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/frontendEndpoints/" + + global::System.Uri.EscapeDataString(frontendEndpointName) + + "/enableHttps" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsEnableHttps_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttps_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Frontend endpoint which is unique within the Front Door. + /// The configuration specifying how to enable HTTPS + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttps_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(frontendEndpointName),frontendEndpointName); + await eventListener.AssertMinimumLength(nameof(frontendEndpointName),frontendEndpointName,1); + await eventListener.AssertMaximumLength(nameof(frontendEndpointName),frontendEndpointName,255); + await eventListener.AssertRegEx(nameof(frontendEndpointName), frontendEndpointName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Gets a Frontend endpoint with the specified name within the specified Front Door. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Frontend endpoint which is unique within the Front Door. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsGet(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/frontendEndpoints/" + + global::System.Uri.EscapeDataString(frontendEndpointName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a Frontend endpoint with the specified name within the specified Front Door. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var frontendEndpointName = _match.Groups["frontendEndpointName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/frontendEndpoints/" + + frontendEndpointName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a Frontend endpoint with the specified name within the specified Front Door. + /// + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var frontendEndpointName = _match.Groups["frontendEndpointName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/frontendEndpoints/" + + frontendEndpointName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendEndpointsGetWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Gets a Frontend endpoint with the specified name within the specified Front Door. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Frontend endpoint which is unique within the Front Door. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsGetWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/frontendEndpoints/" + + global::System.Uri.EscapeDataString(frontendEndpointName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendEndpointsGetWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Frontend endpoint which is unique within the Front Door. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsGet_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(frontendEndpointName),frontendEndpointName); + await eventListener.AssertMinimumLength(nameof(frontendEndpointName),frontendEndpointName,1); + await eventListener.AssertMaximumLength(nameof(frontendEndpointName),frontendEndpointName,255); + await eventListener.AssertRegEx(nameof(frontendEndpointName), frontendEndpointName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + } + } + + /// Lists all of the frontend endpoints within a Front Door. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoor(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/frontendEndpoints" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsListByFrontDoor_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the frontend endpoints within a Front Door. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoorViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/frontendEndpoints" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendEndpointsListByFrontDoor_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the frontend endpoints within a Front Door. + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoorViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/frontendEndpoints" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendEndpointsListByFrontDoorWithResult_Call (request, eventListener,sender); + } + } + + /// Lists all of the frontend endpoints within a Front Door. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoorWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/frontendEndpoints" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendEndpointsListByFrontDoorWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoorWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoor_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoor_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + } + } + + /// Lists all available managed rule sets. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ManagedRuleSetsList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ManagedRuleSetsList_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all available managed rule sets. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ManagedRuleSetsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ManagedRuleSetsList_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all available managed rule sets. + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ManagedRuleSetsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.ManagedRuleSetsListWithResult_Call (request, eventListener,sender); + } + } + + /// Lists all available managed rule sets. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ManagedRuleSetsListWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.ManagedRuleSetsListWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ManagedRuleSetsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ManagedRuleSetsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ManagedRuleSetsList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// update policy with specified rule set name within a resource group. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// Policy to be created. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdate(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + global::System.Uri.EscapeDataString(policyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// update policy with specified rule set name within a resource group. + /// + /// Policy to be created. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var policyName = _match.Groups["policyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + policyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// update policy with specified rule set name within a resource group. + /// + /// Policy to be created. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var policyName = _match.Groups["policyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + policyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// update policy with specified rule set name within a resource group. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// Json string supplied to the PoliciesCreateOrUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string policyName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + global::System.Uri.EscapeDataString(policyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// update policy with specified rule set name within a resource group. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// Json string supplied to the PoliciesCreateOrUpdate operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string policyName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + global::System.Uri.EscapeDataString(policyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// update policy with specified rule set name within a resource group. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// Policy to be created. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + global::System.Uri.EscapeDataString(policyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// Policy to be created. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(policyName),policyName); + await eventListener.AssertMaximumLength(nameof(policyName),policyName,128); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes Policy + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesDelete(string subscriptionId, string resourceGroupName, string policyName, global::System.Func onOk, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + global::System.Uri.EscapeDataString(policyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesDelete_Call (request, onOk,onNoContent,eventListener,sender); + } + } + + /// Deletes Policy + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var policyName = _match.Groups["policyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + policyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesDelete_Call (request, onOk,onNoContent,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesDelete_Validate(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(policyName),policyName); + await eventListener.AssertMaximumLength(nameof(policyName),policyName,128); + } + } + + /// Retrieve protection policy with specified name within a resource group. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesGet(string subscriptionId, string resourceGroupName, string policyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + global::System.Uri.EscapeDataString(policyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Retrieve protection policy with specified name within a resource group. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var policyName = _match.Groups["policyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + policyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Retrieve protection policy with specified name within a resource group. + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var policyName = _match.Groups["policyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + policyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesGetWithResult_Call (request, eventListener,sender); + } + } + + /// Retrieve protection policy with specified name within a resource group. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesGetWithResult(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" + + global::System.Uri.EscapeDataString(policyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesGetWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// The name of the Web Application Firewall Policy. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesGet_Validate(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(policyName),policyName); + await eventListener.AssertMaximumLength(nameof(policyName),policyName,128); + } + } + + /// Lists all of the protection policies within a resource group. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesList(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesList_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the protection policies within a subscription. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesListBySubscription_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the protection policies within a subscription. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesListBySubscription_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the protection policies within a subscription. + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesListBySubscriptionWithResult_Call (request, eventListener,sender); + } + } + + /// Lists all of the protection policies within a subscription. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesListBySubscriptionWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesListBySubscriptionWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Lists all of the protection policies within a resource group. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PoliciesList_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the protection policies within a resource group. + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesListWithResult_Call (request, eventListener,sender); + } + } + + /// Lists all of the protection policies within a resource group. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PoliciesListWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.PoliciesListWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PoliciesList_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + } + } + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdate(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines/" + + global::System.Uri.EscapeDataString(rulesEngineName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var rulesEngineName = _match.Groups["rulesEngineName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/rulesEngines/" + + rulesEngineName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var rulesEngineName = _match.Groups["rulesEngineName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/rulesEngines/" + + rulesEngineName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.RulesEnginesCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// Json string supplied to the RulesEnginesCreateOrUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines/" + + global::System.Uri.EscapeDataString(rulesEngineName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// Json string supplied to the RulesEnginesCreateOrUpdate operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines/" + + global::System.Uri.EscapeDataString(rulesEngineName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.RulesEnginesCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines/" + + global::System.Uri.EscapeDataString(rulesEngineName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.RulesEnginesCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(rulesEngineName),rulesEngineName); + await eventListener.AssertMinimumLength(nameof(rulesEngineName),rulesEngineName,1); + await eventListener.AssertMaximumLength(nameof(rulesEngineName),rulesEngineName,90); + await eventListener.AssertRegEx(nameof(rulesEngineName), rulesEngineName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes an existing Rules Engine Configuration with the specified parameters. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesDelete(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines/" + + global::System.Uri.EscapeDataString(rulesEngineName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); + } + } + + /// Deletes an existing Rules Engine Configuration with the specified parameters. + /// + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var rulesEngineName = _match.Groups["rulesEngineName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/rulesEngines/" + + rulesEngineName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesDelete_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(rulesEngineName),rulesEngineName); + await eventListener.AssertMinimumLength(nameof(rulesEngineName),rulesEngineName,1); + await eventListener.AssertMaximumLength(nameof(rulesEngineName),rulesEngineName,90); + await eventListener.AssertRegEx(nameof(rulesEngineName), rulesEngineName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + } + } + + /// + /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesGet(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines/" + + global::System.Uri.EscapeDataString(rulesEngineName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var rulesEngineName = _match.Groups["rulesEngineName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/rulesEngines/" + + rulesEngineName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + var rulesEngineName = _match.Groups["rulesEngineName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/rulesEngines/" + + rulesEngineName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.RulesEnginesGetWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesGetWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines/" + + global::System.Uri.EscapeDataString(rulesEngineName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.RulesEnginesGetWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// Name of the Rules Engine which is unique within the Front Door. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesGet_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + await eventListener.AssertNotNull(nameof(rulesEngineName),rulesEngineName); + await eventListener.AssertMinimumLength(nameof(rulesEngineName),rulesEngineName,1); + await eventListener.AssertMaximumLength(nameof(rulesEngineName),rulesEngineName,90); + await eventListener.AssertRegEx(nameof(rulesEngineName), rulesEngineName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + } + } + + /// Lists all of the Rules Engine Configurations within a Front Door. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoor(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesListByFrontDoor_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the Rules Engine Configurations within a Front Door. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoorViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/rulesEngines" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.RulesEnginesListByFrontDoor_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the Rules Engine Configurations within a Front Door. + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoorViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var frontDoorName = _match.Groups["frontDoorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/frontDoors/" + + frontDoorName + + "/rulesEngines" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.RulesEnginesListByFrontDoorWithResult_Call (request, eventListener,sender); + } + } + + /// Lists all of the Rules Engine Configurations within a Front Door. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoorWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/frontDoors/" + + global::System.Uri.EscapeDataString(frontDoorName) + + "/rulesEngines" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.RulesEnginesListByFrontDoorWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoorWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoor_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The + /// subscription ID forms part of the URI for every service call. + /// Name of the Resource group within the Azure subscription. + /// Name of the Front Door which is globally unique. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoor_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); + await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); + await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); + await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); + await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.PowerShell.cs new file mode 100644 index 000000000000..ed5cec15d489 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.PowerShell.cs @@ -0,0 +1,222 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is + /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation + /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for + /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the + /// failed request and error information regarding the failure. + /// + [System.ComponentModel.TypeConverter(typeof(AzureAsyncOperationResultTypeConverter))] + public partial class AzureAsyncOperationResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureAsyncOperationResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorTypeConverter.ConvertFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InnerError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).InnerError = (string) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).InnerError, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureAsyncOperationResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorTypeConverter.ConvertFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InnerError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).InnerError = (string) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).InnerError, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureAsyncOperationResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureAsyncOperationResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is + /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation + /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for + /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the + /// failed request and error information regarding the failure. + [System.ComponentModel.TypeConverter(typeof(AzureAsyncOperationResultTypeConverter))] + public partial interface IAzureAsyncOperationResult + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.TypeConverter.cs new file mode 100644 index 000000000000..0cba430375f1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureAsyncOperationResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureAsyncOperationResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureAsyncOperationResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureAsyncOperationResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.cs new file mode 100644 index 000000000000..b08ce94a36c8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.cs @@ -0,0 +1,159 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is + /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation + /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for + /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the + /// failed request and error information regarding the failure. + /// + public partial class AzureAsyncOperationResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal + { + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Code = value ?? null; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Detail = value ?? null /* arrayOf */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError _error; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error()); set => this._error = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string InnerError { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).InnerError; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).InnerError = value ?? null; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Message = value ?? null; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error()); set { {_error = value;} } } + + /// Backing field for property. + private string _status; + + /// Status of the Azure async operation. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Status { get => this._status; set => this._status = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Target = value ?? null; } + + /// Creates an new instance. + public AzureAsyncOperationResult() + { + + } + } + /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is + /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation + /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for + /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the + /// failed request and error information regarding the failure. + public partial interface IAzureAsyncOperationResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails) })] + System.Collections.Generic.List Detail { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"innerError", + PossibleTypes = new [] { typeof(string) })] + string InnerError { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// Status of the Azure async operation. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Status of the Azure async operation.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("InProgress", "Succeeded", "Failed")] + string Status { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is + /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation + /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for + /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the + /// failed request and error information regarding the failure. + internal partial interface IAzureAsyncOperationResultInternal + + { + string Code { get; set; } + + System.Collections.Generic.List Detail { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError Error { get; set; } + + string InnerError { get; set; } + + string Message { get; set; } + /// Status of the Azure async operation. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("InProgress", "Succeeded", "Failed")] + string Status { get; set; } + + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.json.cs new file mode 100644 index 000000000000..9810473dea3f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is + /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation + /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for + /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the + /// failed request and error information regarding the failure. + /// + public partial class AzureAsyncOperationResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal AzureAsyncOperationResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error.FromJson(__jsonError) : _error;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new AzureAsyncOperationResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.PowerShell.cs new file mode 100644 index 000000000000..9b4991ce0958 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.PowerShell.cs @@ -0,0 +1,252 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Backend address of a frontDoor load balancer. + [System.ComponentModel.TypeConverter(typeof(BackendTypeConverter))] + public partial class Backend + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Backend(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Address")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Address = (string) content.GetValueForProperty("Address",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Address, global::System.Convert.ToString); + } + if (content.Contains("PrivateLinkAlias")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkAlias = (string) content.GetValueForProperty("PrivateLinkAlias",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkAlias, global::System.Convert.ToString); + } + if (content.Contains("PrivateLinkResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkResourceId = (string) content.GetValueForProperty("PrivateLinkResourceId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkResourceId, global::System.Convert.ToString); + } + if (content.Contains("PrivateLinkLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkLocation = (string) content.GetValueForProperty("PrivateLinkLocation",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkLocation, global::System.Convert.ToString); + } + if (content.Contains("PrivateEndpointStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateEndpointStatus = (string) content.GetValueForProperty("PrivateEndpointStatus",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateEndpointStatus, global::System.Convert.ToString); + } + if (content.Contains("PrivateLinkApprovalMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkApprovalMessage = (string) content.GetValueForProperty("PrivateLinkApprovalMessage",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkApprovalMessage, global::System.Convert.ToString); + } + if (content.Contains("HttpPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpPort = (int?) content.GetValueForProperty("HttpPort",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HttpsPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpsPort = (int?) content.GetValueForProperty("HttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpsPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Weight")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Weight = (int?) content.GetValueForProperty("Weight",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Weight, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("BackendHostHeader")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).BackendHostHeader = (string) content.GetValueForProperty("BackendHostHeader",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).BackendHostHeader, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Backend(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Address")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Address = (string) content.GetValueForProperty("Address",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Address, global::System.Convert.ToString); + } + if (content.Contains("PrivateLinkAlias")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkAlias = (string) content.GetValueForProperty("PrivateLinkAlias",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkAlias, global::System.Convert.ToString); + } + if (content.Contains("PrivateLinkResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkResourceId = (string) content.GetValueForProperty("PrivateLinkResourceId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkResourceId, global::System.Convert.ToString); + } + if (content.Contains("PrivateLinkLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkLocation = (string) content.GetValueForProperty("PrivateLinkLocation",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkLocation, global::System.Convert.ToString); + } + if (content.Contains("PrivateEndpointStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateEndpointStatus = (string) content.GetValueForProperty("PrivateEndpointStatus",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateEndpointStatus, global::System.Convert.ToString); + } + if (content.Contains("PrivateLinkApprovalMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkApprovalMessage = (string) content.GetValueForProperty("PrivateLinkApprovalMessage",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkApprovalMessage, global::System.Convert.ToString); + } + if (content.Contains("HttpPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpPort = (int?) content.GetValueForProperty("HttpPort",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HttpsPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpsPort = (int?) content.GetValueForProperty("HttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpsPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Weight")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Weight = (int?) content.GetValueForProperty("Weight",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Weight, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("BackendHostHeader")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).BackendHostHeader = (string) content.GetValueForProperty("BackendHostHeader",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).BackendHostHeader, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Backend(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Backend(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Backend address of a frontDoor load balancer. + [System.ComponentModel.TypeConverter(typeof(BackendTypeConverter))] + public partial interface IBackend + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.TypeConverter.cs new file mode 100644 index 000000000000..a1490b92321b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackendTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Backend.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Backend.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Backend.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.cs new file mode 100644 index 000000000000..ea10cd4d07a4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.cs @@ -0,0 +1,326 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Backend address of a frontDoor load balancer. + public partial class Backend : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal + { + + /// Backing field for property. + private string _address; + + /// Location of the backend (IP address or FQDN) + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Address { get => this._address; set => this._address = value; } + + /// Backing field for property. + private string _backendHostHeader; + + /// + /// The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string BackendHostHeader { get => this._backendHostHeader; set => this._backendHostHeader = value; } + + /// Backing field for property. + private string _enabledState; + + /// + /// Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string EnabledState { get => this._enabledState; set => this._enabledState = value; } + + /// Backing field for property. + private int? _httpPort; + + /// The HTTP TCP port number. Must be between 1 and 65535. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? HttpPort { get => this._httpPort; set => this._httpPort = value; } + + /// Backing field for property. + private int? _httpsPort; + + /// The HTTPS TCP port number. Must be between 1 and 65535. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? HttpsPort { get => this._httpsPort; set => this._httpsPort = value; } + + /// Internal Acessors for PrivateEndpointStatus + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal.PrivateEndpointStatus { get => this._privateEndpointStatus; set { {_privateEndpointStatus = value;} } } + + /// Backing field for property. + private int? _priority; + + /// + /// Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend + /// is healthy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? Priority { get => this._priority; set => this._priority = value; } + + /// Backing field for property. + private string _privateEndpointStatus; + + /// The Approval status for the connection to the Private Link + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string PrivateEndpointStatus { get => this._privateEndpointStatus; } + + /// Backing field for property. + private string _privateLinkAlias; + + /// + /// The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string PrivateLinkAlias { get => this._privateLinkAlias; set => this._privateLinkAlias = value; } + + /// Backing field for property. + private string _privateLinkApprovalMessage; + + /// + /// A custom message to be included in the approval request to connect to the Private Link + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string PrivateLinkApprovalMessage { get => this._privateLinkApprovalMessage; set => this._privateLinkApprovalMessage = value; } + + /// Backing field for property. + private string _privateLinkLocation; + + /// + /// The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string PrivateLinkLocation { get => this._privateLinkLocation; set => this._privateLinkLocation = value; } + + /// Backing field for property. + private string _privateLinkResourceId; + + /// + /// The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string PrivateLinkResourceId { get => this._privateLinkResourceId; set => this._privateLinkResourceId = value; } + + /// Backing field for property. + private int? _weight; + + /// Weight of this endpoint for load balancing purposes. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? Weight { get => this._weight; set => this._weight = value; } + + /// Creates an new instance. + public Backend() + { + + } + } + /// Backend address of a frontDoor load balancer. + public partial interface IBackend : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Location of the backend (IP address or FQDN) + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Location of the backend (IP address or FQDN)", + SerializedName = @"address", + PossibleTypes = new [] { typeof(string) })] + string Address { get; set; } + /// + /// The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host.", + SerializedName = @"backendHostHeader", + PossibleTypes = new [] { typeof(string) })] + string BackendHostHeader { get; set; } + /// + /// Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// The HTTP TCP port number. Must be between 1 and 65535. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The HTTP TCP port number. Must be between 1 and 65535.", + SerializedName = @"httpPort", + PossibleTypes = new [] { typeof(int) })] + int? HttpPort { get; set; } + /// The HTTPS TCP port number. Must be between 1 and 65535. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The HTTPS TCP port number. Must be between 1 and 65535.", + SerializedName = @"httpsPort", + PossibleTypes = new [] { typeof(int) })] + int? HttpsPort { get; set; } + /// + /// Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend + /// is healthy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int? Priority { get; set; } + /// The Approval status for the connection to the Private Link + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The Approval status for the connection to the Private Link", + SerializedName = @"privateEndpointStatus", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected", "Disconnected", "Timeout")] + string PrivateEndpointStatus { get; } + /// + /// The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private'", + SerializedName = @"privateLinkAlias", + PossibleTypes = new [] { typeof(string) })] + string PrivateLinkAlias { get; set; } + /// + /// A custom message to be included in the approval request to connect to the Private Link + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A custom message to be included in the approval request to connect to the Private Link", + SerializedName = @"privateLinkApprovalMessage", + PossibleTypes = new [] { typeof(string) })] + string PrivateLinkApprovalMessage { get; set; } + /// + /// The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated", + SerializedName = @"privateLinkLocation", + PossibleTypes = new [] { typeof(string) })] + string PrivateLinkLocation { get; set; } + /// + /// The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'", + SerializedName = @"privateLinkResourceId", + PossibleTypes = new [] { typeof(string) })] + string PrivateLinkResourceId { get; set; } + /// Weight of this endpoint for load balancing purposes. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Weight of this endpoint for load balancing purposes.", + SerializedName = @"weight", + PossibleTypes = new [] { typeof(int) })] + int? Weight { get; set; } + + } + /// Backend address of a frontDoor load balancer. + internal partial interface IBackendInternal + + { + /// Location of the backend (IP address or FQDN) + string Address { get; set; } + /// + /// The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + /// + string BackendHostHeader { get; set; } + /// + /// Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// The HTTP TCP port number. Must be between 1 and 65535. + int? HttpPort { get; set; } + /// The HTTPS TCP port number. Must be between 1 and 65535. + int? HttpsPort { get; set; } + /// + /// Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend + /// is healthy. + /// + int? Priority { get; set; } + /// The Approval status for the connection to the Private Link + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected", "Disconnected", "Timeout")] + string PrivateEndpointStatus { get; set; } + /// + /// The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + /// + string PrivateLinkAlias { get; set; } + /// + /// A custom message to be included in the approval request to connect to the Private Link + /// + string PrivateLinkApprovalMessage { get; set; } + /// + /// The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + /// + string PrivateLinkLocation { get; set; } + /// + /// The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + /// + string PrivateLinkResourceId { get; set; } + /// Weight of this endpoint for load balancing purposes. + int? Weight { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.json.cs new file mode 100644 index 000000000000..2377d058af35 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.json.cs @@ -0,0 +1,131 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Backend address of a frontDoor load balancer. + public partial class Backend + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal Backend(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_address = If( json?.PropertyT("address"), out var __jsonAddress) ? (string)__jsonAddress : (string)_address;} + {_privateLinkAlias = If( json?.PropertyT("privateLinkAlias"), out var __jsonPrivateLinkAlias) ? (string)__jsonPrivateLinkAlias : (string)_privateLinkAlias;} + {_privateLinkResourceId = If( json?.PropertyT("privateLinkResourceId"), out var __jsonPrivateLinkResourceId) ? (string)__jsonPrivateLinkResourceId : (string)_privateLinkResourceId;} + {_privateLinkLocation = If( json?.PropertyT("privateLinkLocation"), out var __jsonPrivateLinkLocation) ? (string)__jsonPrivateLinkLocation : (string)_privateLinkLocation;} + {_privateEndpointStatus = If( json?.PropertyT("privateEndpointStatus"), out var __jsonPrivateEndpointStatus) ? (string)__jsonPrivateEndpointStatus : (string)_privateEndpointStatus;} + {_privateLinkApprovalMessage = If( json?.PropertyT("privateLinkApprovalMessage"), out var __jsonPrivateLinkApprovalMessage) ? (string)__jsonPrivateLinkApprovalMessage : (string)_privateLinkApprovalMessage;} + {_httpPort = If( json?.PropertyT("httpPort"), out var __jsonHttpPort) ? (int?)__jsonHttpPort : _httpPort;} + {_httpsPort = If( json?.PropertyT("httpsPort"), out var __jsonHttpsPort) ? (int?)__jsonHttpsPort : _httpsPort;} + {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} + {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int?)__jsonPriority : _priority;} + {_weight = If( json?.PropertyT("weight"), out var __jsonWeight) ? (int?)__jsonWeight : _weight;} + {_backendHostHeader = If( json?.PropertyT("backendHostHeader"), out var __jsonBackendHostHeader) ? (string)__jsonBackendHostHeader : (string)_backendHostHeader;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new Backend(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._address)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._address.ToString()) : null, "address" ,container.Add ); + AddIf( null != (((object)this._privateLinkAlias)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateLinkAlias.ToString()) : null, "privateLinkAlias" ,container.Add ); + AddIf( null != (((object)this._privateLinkResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateLinkResourceId.ToString()) : null, "privateLinkResourceId" ,container.Add ); + AddIf( null != (((object)this._privateLinkLocation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateLinkLocation.ToString()) : null, "privateLinkLocation" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._privateEndpointStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateEndpointStatus.ToString()) : null, "privateEndpointStatus" ,container.Add ); + } + AddIf( null != (((object)this._privateLinkApprovalMessage)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateLinkApprovalMessage.ToString()) : null, "privateLinkApprovalMessage" ,container.Add ); + AddIf( null != this._httpPort ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._httpPort) : null, "httpPort" ,container.Add ); + AddIf( null != this._httpsPort ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._httpsPort) : null, "httpsPort" ,container.Add ); + AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); + AddIf( null != this._priority ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._priority) : null, "priority" ,container.Add ); + AddIf( null != this._weight ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._weight) : null, "weight" ,container.Add ); + AddIf( null != (((object)this._backendHostHeader)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._backendHostHeader.ToString()) : null, "backendHostHeader" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.PowerShell.cs new file mode 100644 index 000000000000..dd22991f888c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.PowerShell.cs @@ -0,0 +1,236 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// A backend pool is a collection of backends that can be routed to. + [System.ComponentModel.TypeConverter(typeof(BackendPoolTypeConverter))] + public partial class BackendPool + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal BackendPool(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("Backend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("LoadBalancingSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); + } + if (content.Contains("HealthProbeSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSettingId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackendPool(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("Backend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("LoadBalancingSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); + } + if (content.Contains("HealthProbeSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSettingId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackendPool(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackendPool(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// A backend pool is a collection of backends that can be routed to. + [System.ComponentModel.TypeConverter(typeof(BackendPoolTypeConverter))] + public partial interface IBackendPool + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.TypeConverter.cs new file mode 100644 index 000000000000..e1bec9caa844 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackendPoolTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackendPool.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackendPool.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackendPool.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.cs new file mode 100644 index 000000000000..b70b30ed2acf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.cs @@ -0,0 +1,194 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// A backend pool is a collection of backends that can be routed to. + public partial class BackendPool : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); + + /// The set of backends for this pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List Backend { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).Backend; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).Backend = value ?? null /* arrayOf */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string HealthProbeSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).HealthProbeSettingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).HealthProbeSettingId = value ?? null; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string LoadBalancingSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).LoadBalancingSettingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).LoadBalancingSettingId = value ?? null; } + + /// Internal Acessors for HealthProbeSetting + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).HealthProbeSetting = value ?? null /* model class */; } + + /// Internal Acessors for LoadBalancingSetting + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).LoadBalancingSetting = value ?? null /* model class */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties()); set { {_property = value;} } } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)Property).ResourceState = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties _property; + + /// Properties of the Front Door Backend Pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties()); set => this._property = value; } + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)Property).ResourceState; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public BackendPool() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__subResource), __subResource); + await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); + } + } + /// A backend pool is a collection of backends that can be routed to. + public partial interface IBackendPool : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource + { + /// The set of backends for this pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The set of backends for this pool", + SerializedName = @"backends", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend) })] + System.Collections.Generic.List Backend { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string HealthProbeSettingId { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string LoadBalancingSettingId { get; set; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// A backend pool is a collection of backends that can be routed to. + internal partial interface IBackendPoolInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal + { + /// The set of backends for this pool + System.Collections.Generic.List Backend { get; set; } + /// L7 health probe settings for a backend pool + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource HealthProbeSetting { get; set; } + /// Resource ID. + string HealthProbeSettingId { get; set; } + /// Load balancing settings for a backend pool + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource LoadBalancingSetting { get; set; } + /// Resource ID. + string LoadBalancingSettingId { get; set; } + /// Resource name. + string Name { get; set; } + /// Properties of the Front Door Backend Pool + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties Property { get; set; } + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// Resource type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.json.cs new file mode 100644 index 000000000000..141ce26f955c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.json.cs @@ -0,0 +1,117 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// A backend pool is a collection of backends that can be routed to. + public partial class BackendPool + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal BackendPool(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties.FromJson(__jsonProperties) : _property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPool(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __subResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.PowerShell.cs new file mode 100644 index 000000000000..08b5f3b2a361 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next + /// set of results. + /// + [System.ComponentModel.TypeConverter(typeof(BackendPoolListResultTypeConverter))] + public partial class BackendPoolListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal BackendPoolListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackendPoolListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackendPoolListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackendPoolListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next + /// set of results. + [System.ComponentModel.TypeConverter(typeof(BackendPoolListResultTypeConverter))] + public partial interface IBackendPoolListResult + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.TypeConverter.cs new file mode 100644 index 000000000000..7d460b42a384 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackendPoolListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackendPoolListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackendPoolListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackendPoolListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.cs new file mode 100644 index 000000000000..e9de398b89bf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.cs @@ -0,0 +1,82 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next + /// set of results. + /// + public partial class BackendPoolListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of BackendPool objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of Backend Pools within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public BackendPoolListResult() + { + + } + } + /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next + /// set of results. + public partial interface IBackendPoolListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// URL to get the next set of BackendPool objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to get the next set of BackendPool objects if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of Backend Pools within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of Backend Pools within a Front Door.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] + System.Collections.Generic.List Value { get; } + + } + /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next + /// set of results. + internal partial interface IBackendPoolListResultInternal + + { + /// URL to get the next set of BackendPool objects if there are any. + string NextLink { get; set; } + /// List of Backend Pools within a Front Door. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.json.cs new file mode 100644 index 000000000000..cf189863e888 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next + /// set of results. + /// + public partial class BackendPoolListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal BackendPoolListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPoolListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.PowerShell.cs new file mode 100644 index 000000000000..3aca1ca4915e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.PowerShell.cs @@ -0,0 +1,204 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// The JSON object that contains the properties required to create a Backend Pool. + [System.ComponentModel.TypeConverter(typeof(BackendPoolPropertiesTypeConverter))] + public partial class BackendPoolProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal BackendPoolProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("LoadBalancingSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); + } + if (content.Contains("HealthProbeSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId, global::System.Convert.ToString); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("Backend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackendPoolProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("LoadBalancingSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); + } + if (content.Contains("HealthProbeSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId, global::System.Convert.ToString); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("Backend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackendPoolProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackendPoolProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The JSON object that contains the properties required to create a Backend Pool. + [System.ComponentModel.TypeConverter(typeof(BackendPoolPropertiesTypeConverter))] + public partial interface IBackendPoolProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.TypeConverter.cs new file mode 100644 index 000000000000..969e1aca7965 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackendPoolPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackendPoolProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackendPoolProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackendPoolProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.cs new file mode 100644 index 000000000000..decd84ecd343 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.cs @@ -0,0 +1,104 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The JSON object that contains the properties required to create a Backend Pool. + public partial class BackendPoolProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters __backendPoolUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolUpdateParameters(); + + /// The set of backends for this pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List Backend { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).Backend; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).Backend = value ?? null /* arrayOf */; } + + /// L7 health probe settings for a backend pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSetting = value ?? null /* model class */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string HealthProbeSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSettingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSettingId = value ?? null; } + + /// Load balancing settings for a backend pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSetting = value ?? null /* model class */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string LoadBalancingSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSettingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSettingId = value ?? null; } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + + /// Internal Acessors for HealthProbeSetting + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal.HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSetting = value ?? null /* model class */; } + + /// Internal Acessors for LoadBalancingSetting + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal.LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSetting = value ?? null /* model class */; } + + /// Backing field for property. + private string _resourceState; + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceState { get => this._resourceState; } + + /// Creates an new instance. + public BackendPoolProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__backendPoolUpdateParameters), __backendPoolUpdateParameters); + await eventListener.AssertObjectIsValid(nameof(__backendPoolUpdateParameters), __backendPoolUpdateParameters); + } + } + /// The JSON object that contains the properties required to create a Backend Pool. + public partial interface IBackendPoolProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters + { + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + + } + /// The JSON object that contains the properties required to create a Backend Pool. + internal partial interface IBackendPoolPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal + { + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.json.cs new file mode 100644 index 000000000000..e175366dc9ed --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.json.cs @@ -0,0 +1,113 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The JSON object that contains the properties required to create a Backend Pool. + public partial class BackendPoolProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal BackendPoolProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __backendPoolUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolUpdateParameters(json); + {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPoolProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __backendPoolUpdateParameters?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.PowerShell.cs new file mode 100644 index 000000000000..fe15116c35bb --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.PowerShell.cs @@ -0,0 +1,196 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// A collection of backends that can be routed to. + [System.ComponentModel.TypeConverter(typeof(BackendPoolUpdateParametersTypeConverter))] + public partial class BackendPoolUpdateParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal BackendPoolUpdateParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("Backend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); + } + if (content.Contains("LoadBalancingSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); + } + if (content.Contains("HealthProbeSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackendPoolUpdateParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("Backend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); + } + if (content.Contains("LoadBalancingSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); + } + if (content.Contains("HealthProbeSettingId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackendPoolUpdateParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackendPoolUpdateParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// A collection of backends that can be routed to. + [System.ComponentModel.TypeConverter(typeof(BackendPoolUpdateParametersTypeConverter))] + public partial interface IBackendPoolUpdateParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.TypeConverter.cs new file mode 100644 index 000000000000..003857b6c020 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackendPoolUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackendPoolUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackendPoolUpdateParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackendPoolUpdateParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.cs new file mode 100644 index 000000000000..876d60f6c367 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.cs @@ -0,0 +1,112 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// A collection of backends that can be routed to. + public partial class BackendPoolUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _backend; + + /// The set of backends for this pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Backend { get => this._backend; set => this._backend = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource _healthProbeSetting; + + /// L7 health probe settings for a backend pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource HealthProbeSetting { get => (this._healthProbeSetting = this._healthProbeSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set => this._healthProbeSetting = value; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string HealthProbeSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)HealthProbeSetting).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)HealthProbeSetting).Id = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource _loadBalancingSetting; + + /// Load balancing settings for a backend pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource LoadBalancingSetting { get => (this._loadBalancingSetting = this._loadBalancingSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set => this._loadBalancingSetting = value; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string LoadBalancingSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)LoadBalancingSetting).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)LoadBalancingSetting).Id = value ?? null; } + + /// Internal Acessors for HealthProbeSetting + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal.HealthProbeSetting { get => (this._healthProbeSetting = this._healthProbeSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set { {_healthProbeSetting = value;} } } + + /// Internal Acessors for LoadBalancingSetting + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal.LoadBalancingSetting { get => (this._loadBalancingSetting = this._loadBalancingSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set { {_loadBalancingSetting = value;} } } + + /// Creates an new instance. + public BackendPoolUpdateParameters() + { + + } + } + /// A collection of backends that can be routed to. + public partial interface IBackendPoolUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// The set of backends for this pool + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The set of backends for this pool", + SerializedName = @"backends", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend) })] + System.Collections.Generic.List Backend { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string HealthProbeSettingId { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string LoadBalancingSettingId { get; set; } + + } + /// A collection of backends that can be routed to. + internal partial interface IBackendPoolUpdateParametersInternal + + { + /// The set of backends for this pool + System.Collections.Generic.List Backend { get; set; } + /// L7 health probe settings for a backend pool + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource HealthProbeSetting { get; set; } + /// Resource ID. + string HealthProbeSettingId { get; set; } + /// Load balancing settings for a backend pool + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource LoadBalancingSetting { get; set; } + /// Resource ID. + string LoadBalancingSettingId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.json.cs new file mode 100644 index 000000000000..a72422bae1e6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.json.cs @@ -0,0 +1,120 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// A collection of backends that can be routed to. + public partial class BackendPoolUpdateParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal BackendPoolUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_loadBalancingSetting = If( json?.PropertyT("loadBalancingSettings"), out var __jsonLoadBalancingSettings) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__jsonLoadBalancingSettings) : _loadBalancingSetting;} + {_healthProbeSetting = If( json?.PropertyT("healthProbeSettings"), out var __jsonHealthProbeSettings) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__jsonHealthProbeSettings) : _healthProbeSetting;} + {_backend = If( json?.PropertyT("backends"), out var __jsonBackends) ? If( __jsonBackends as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend.FromJson(__u) )) ))() : null : _backend;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPoolUpdateParameters(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._loadBalancingSetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._loadBalancingSetting.ToJson(null,serializationMode) : null, "loadBalancingSettings" ,container.Add ); + AddIf( null != this._healthProbeSetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._healthProbeSetting.ToJson(null,serializationMode) : null, "healthProbeSettings" ,container.Add ); + if (null != this._backend) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._backend ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("backends",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.PowerShell.cs new file mode 100644 index 000000000000..89c0c669dfa1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.PowerShell.cs @@ -0,0 +1,172 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Settings that apply to all backend pools. + [System.ComponentModel.TypeConverter(typeof(BackendPoolsSettingsTypeConverter))] + public partial class BackendPoolsSettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal BackendPoolsSettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EnforceCertificateNameCheck")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).EnforceCertificateNameCheck = (string) content.GetValueForProperty("EnforceCertificateNameCheck",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).EnforceCertificateNameCheck, global::System.Convert.ToString); + } + if (content.Contains("SendRecvTimeoutInSeconds")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).SendRecvTimeoutInSeconds = (int?) content.GetValueForProperty("SendRecvTimeoutInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).SendRecvTimeoutInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackendPoolsSettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EnforceCertificateNameCheck")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).EnforceCertificateNameCheck = (string) content.GetValueForProperty("EnforceCertificateNameCheck",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).EnforceCertificateNameCheck, global::System.Convert.ToString); + } + if (content.Contains("SendRecvTimeoutInSeconds")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).SendRecvTimeoutInSeconds = (int?) content.GetValueForProperty("SendRecvTimeoutInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).SendRecvTimeoutInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackendPoolsSettings(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackendPoolsSettings(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Settings that apply to all backend pools. + [System.ComponentModel.TypeConverter(typeof(BackendPoolsSettingsTypeConverter))] + public partial interface IBackendPoolsSettings + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.TypeConverter.cs new file mode 100644 index 000000000000..0001dd4d438f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackendPoolsSettingsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackendPoolsSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackendPoolsSettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackendPoolsSettings.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.cs new file mode 100644 index 000000000000..37ef5d410ebc --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.cs @@ -0,0 +1,88 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Settings that apply to all backend pools. + public partial class BackendPoolsSettings : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal + { + + /// Backing field for property. + private string _enforceCertificateNameCheck; + + /// + /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string EnforceCertificateNameCheck { get => this._enforceCertificateNameCheck; set => this._enforceCertificateNameCheck = value; } + + /// Backing field for property. + private int? _sendRecvTimeoutInSeconds; + + /// + /// Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? SendRecvTimeoutInSeconds { get => this._sendRecvTimeoutInSeconds; set => this._sendRecvTimeoutInSeconds = value; } + + /// Creates an new instance. + public BackendPoolsSettings() + { + + } + } + /// Settings that apply to all backend pools. + public partial interface IBackendPoolsSettings : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.", + SerializedName = @"enforceCertificateNameCheck", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnforceCertificateNameCheck { get; set; } + /// + /// Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.", + SerializedName = @"sendRecvTimeoutSeconds", + PossibleTypes = new [] { typeof(int) })] + int? SendRecvTimeoutInSeconds { get; set; } + + } + /// Settings that apply to all backend pools. + internal partial interface IBackendPoolsSettingsInternal + + { + /// + /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnforceCertificateNameCheck { get; set; } + /// + /// Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + /// + int? SendRecvTimeoutInSeconds { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.json.cs new file mode 100644 index 000000000000..b34b1188cd31 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.json.cs @@ -0,0 +1,110 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Settings that apply to all backend pools. + public partial class BackendPoolsSettings + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal BackendPoolsSettings(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_enforceCertificateNameCheck = If( json?.PropertyT("enforceCertificateNameCheck"), out var __jsonEnforceCertificateNameCheck) ? (string)__jsonEnforceCertificateNameCheck : (string)_enforceCertificateNameCheck;} + {_sendRecvTimeoutInSeconds = If( json?.PropertyT("sendRecvTimeoutSeconds"), out var __jsonSendRecvTimeoutSeconds) ? (int?)__jsonSendRecvTimeoutSeconds : _sendRecvTimeoutInSeconds;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPoolsSettings(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._enforceCertificateNameCheck)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enforceCertificateNameCheck.ToString()) : null, "enforceCertificateNameCheck" ,container.Add ); + AddIf( null != this._sendRecvTimeoutInSeconds ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._sendRecvTimeoutInSeconds) : null, "sendRecvTimeoutSeconds" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.PowerShell.cs new file mode 100644 index 000000000000..160d6ed60479 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.PowerShell.cs @@ -0,0 +1,190 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. + /// + [System.ComponentModel.TypeConverter(typeof(CacheConfigurationTypeConverter))] + public partial class CacheConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CacheConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("QueryParameterStripDirective")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameterStripDirective = (string) content.GetValueForProperty("QueryParameterStripDirective",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameterStripDirective, global::System.Convert.ToString); + } + if (content.Contains("QueryParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameter = (string) content.GetValueForProperty("QueryParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameter, global::System.Convert.ToString); + } + if (content.Contains("DynamicCompression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).DynamicCompression = (string) content.GetValueForProperty("DynamicCompression",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).DynamicCompression, global::System.Convert.ToString); + } + if (content.Contains("CacheDuration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).CacheDuration = (global::System.TimeSpan?) content.GetValueForProperty("CacheDuration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).CacheDuration, (v) => v is global::System.TimeSpan _v ? _v : global::System.Xml.XmlConvert.ToTimeSpan( v.ToString() )); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CacheConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("QueryParameterStripDirective")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameterStripDirective = (string) content.GetValueForProperty("QueryParameterStripDirective",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameterStripDirective, global::System.Convert.ToString); + } + if (content.Contains("QueryParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameter = (string) content.GetValueForProperty("QueryParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameter, global::System.Convert.ToString); + } + if (content.Contains("DynamicCompression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).DynamicCompression = (string) content.GetValueForProperty("DynamicCompression",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).DynamicCompression, global::System.Convert.ToString); + } + if (content.Contains("CacheDuration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).CacheDuration = (global::System.TimeSpan?) content.GetValueForProperty("CacheDuration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).CacheDuration, (v) => v is global::System.TimeSpan _v ? _v : global::System.Xml.XmlConvert.ToTimeSpan( v.ToString() )); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CacheConfiguration(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CacheConfiguration(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. + [System.ComponentModel.TypeConverter(typeof(CacheConfigurationTypeConverter))] + public partial interface ICacheConfiguration + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..91ae86bc31fe --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CacheConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CacheConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CacheConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CacheConfiguration.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.cs new file mode 100644 index 000000000000..72316800946d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.cs @@ -0,0 +1,129 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. + /// + public partial class CacheConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal + { + + /// Backing field for property. + private global::System.TimeSpan? _cacheDuration; + + /// + /// The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + /// HTTP requires the value to be no more than a year + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public global::System.TimeSpan? CacheDuration { get => this._cacheDuration; set => this._cacheDuration = value; } + + /// Backing field for property. + private string _dynamicCompression; + + /// Whether to use dynamic compression for cached content + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string DynamicCompression { get => this._dynamicCompression; set => this._dynamicCompression = value; } + + /// Backing field for property. + private string _queryParameter; + + /// query parameters to include or exclude (comma separated). + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string QueryParameter { get => this._queryParameter; set => this._queryParameter = value; } + + /// Backing field for property. + private string _queryParameterStripDirective; + + /// Treatment of URL query terms when forming the cache key. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string QueryParameterStripDirective { get => this._queryParameterStripDirective; set => this._queryParameterStripDirective = value; } + + /// Creates an new instance. + public CacheConfiguration() + { + + } + } + /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. + public partial interface ICacheConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + /// HTTP requires the value to be no more than a year + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year", + SerializedName = @"cacheDuration", + PossibleTypes = new [] { typeof(global::System.TimeSpan) })] + global::System.TimeSpan? CacheDuration { get; set; } + /// Whether to use dynamic compression for cached content + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to use dynamic compression for cached content", + SerializedName = @"dynamicCompression", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string DynamicCompression { get; set; } + /// query parameters to include or exclude (comma separated). + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"query parameters to include or exclude (comma separated).", + SerializedName = @"queryParameters", + PossibleTypes = new [] { typeof(string) })] + string QueryParameter { get; set; } + /// Treatment of URL query terms when forming the cache key. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Treatment of URL query terms when forming the cache key.", + SerializedName = @"queryParameterStripDirective", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + string QueryParameterStripDirective { get; set; } + + } + /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. + internal partial interface ICacheConfigurationInternal + + { + /// + /// The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + /// HTTP requires the value to be no more than a year + /// + global::System.TimeSpan? CacheDuration { get; set; } + /// Whether to use dynamic compression for cached content + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string DynamicCompression { get; set; } + /// query parameters to include or exclude (comma separated). + string QueryParameter { get; set; } + /// Treatment of URL query terms when forming the cache key. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] + string QueryParameterStripDirective { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.json.cs new file mode 100644 index 000000000000..297a50117d46 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. + /// + public partial class CacheConfiguration + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal CacheConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_queryParameterStripDirective = If( json?.PropertyT("queryParameterStripDirective"), out var __jsonQueryParameterStripDirective) ? (string)__jsonQueryParameterStripDirective : (string)_queryParameterStripDirective;} + {_queryParameter = If( json?.PropertyT("queryParameters"), out var __jsonQueryParameters) ? (string)__jsonQueryParameters : (string)_queryParameter;} + {_dynamicCompression = If( json?.PropertyT("dynamicCompression"), out var __jsonDynamicCompression) ? (string)__jsonDynamicCompression : (string)_dynamicCompression;} + {_cacheDuration = If( json?.PropertyT("cacheDuration"), out var __jsonCacheDuration) ? global::System.Xml.XmlConvert.ToTimeSpan( __jsonCacheDuration ) : _cacheDuration;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CacheConfiguration(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._queryParameterStripDirective)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._queryParameterStripDirective.ToString()) : null, "queryParameterStripDirective" ,container.Add ); + AddIf( null != (((object)this._queryParameter)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._queryParameter.ToString()) : null, "queryParameters" ,container.Add ); + AddIf( null != (((object)this._dynamicCompression)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._dynamicCompression.ToString()) : null, "dynamicCompression" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)(null != this._cacheDuration ? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(global::System.Xml.XmlConvert.ToString((global::System.TimeSpan)this._cacheDuration)): null), "cacheDuration" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.PowerShell.cs new file mode 100644 index 000000000000..3457179e3fa0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.PowerShell.cs @@ -0,0 +1,172 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Input of CheckNameAvailability API. + [System.ComponentModel.TypeConverter(typeof(CheckNameAvailabilityInputTypeConverter))] + public partial class CheckNameAvailabilityInput + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CheckNameAvailabilityInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CheckNameAvailabilityInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CheckNameAvailabilityInput(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CheckNameAvailabilityInput(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Input of CheckNameAvailability API. + [System.ComponentModel.TypeConverter(typeof(CheckNameAvailabilityInputTypeConverter))] + public partial interface ICheckNameAvailabilityInput + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.TypeConverter.cs new file mode 100644 index 000000000000..88e75cedb019 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CheckNameAvailabilityInputTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CheckNameAvailabilityInput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CheckNameAvailabilityInput.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CheckNameAvailabilityInput.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.cs new file mode 100644 index 000000000000..28fa8cccbe9f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.cs @@ -0,0 +1,76 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Input of CheckNameAvailability API. + public partial class CheckNameAvailabilityInput : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal + { + + /// Backing field for property. + private string _name; + + /// The resource name to validate. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _type; + + /// The type of the resource whose name is to be validated. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public CheckNameAvailabilityInput() + { + + } + } + /// Input of CheckNameAvailability API. + public partial interface ICheckNameAvailabilityInput : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// The resource name to validate. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The resource name to validate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The type of the resource whose name is to be validated. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The type of the resource whose name is to be validated.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] + string Type { get; set; } + + } + /// Input of CheckNameAvailability API. + internal partial interface ICheckNameAvailabilityInputInternal + + { + /// The resource name to validate. + string Name { get; set; } + /// The type of the resource whose name is to be validated. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.json.cs new file mode 100644 index 000000000000..bf629dda76e4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.json.cs @@ -0,0 +1,110 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Input of CheckNameAvailability API. + public partial class CheckNameAvailabilityInput + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal CheckNameAvailabilityInput(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CheckNameAvailabilityInput(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.PowerShell.cs new file mode 100644 index 000000000000..cb195f1926eb --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.PowerShell.cs @@ -0,0 +1,180 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Output of check name availability API. + [System.ComponentModel.TypeConverter(typeof(CheckNameAvailabilityOutputTypeConverter))] + public partial class CheckNameAvailabilityOutput + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CheckNameAvailabilityOutput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NameAvailability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).NameAvailability = (string) content.GetValueForProperty("NameAvailability",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).NameAvailability, global::System.Convert.ToString); + } + if (content.Contains("Reason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Reason, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CheckNameAvailabilityOutput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NameAvailability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).NameAvailability = (string) content.GetValueForProperty("NameAvailability",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).NameAvailability, global::System.Convert.ToString); + } + if (content.Contains("Reason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Reason, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CheckNameAvailabilityOutput(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CheckNameAvailabilityOutput(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Output of check name availability API. + [System.ComponentModel.TypeConverter(typeof(CheckNameAvailabilityOutputTypeConverter))] + public partial interface ICheckNameAvailabilityOutput + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.TypeConverter.cs new file mode 100644 index 000000000000..e2a5dfad45cc --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CheckNameAvailabilityOutputTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CheckNameAvailabilityOutput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CheckNameAvailabilityOutput.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CheckNameAvailabilityOutput.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.cs new file mode 100644 index 000000000000..ae697cd67a53 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.cs @@ -0,0 +1,105 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Output of check name availability API. + public partial class CheckNameAvailabilityOutput : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal + { + + /// Backing field for property. + private string _message; + + /// The detailed error message describing why the name is not available. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal.Message { get => this._message; set { {_message = value;} } } + + /// Internal Acessors for NameAvailability + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal.NameAvailability { get => this._nameAvailability; set { {_nameAvailability = value;} } } + + /// Internal Acessors for Reason + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal.Reason { get => this._reason; set { {_reason = value;} } } + + /// Backing field for property. + private string _nameAvailability; + + /// Indicates whether the name is available. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NameAvailability { get => this._nameAvailability; } + + /// Backing field for property. + private string _reason; + + /// The reason why the name is not available. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Reason { get => this._reason; } + + /// Creates an new instance. + public CheckNameAvailabilityOutput() + { + + } + } + /// Output of check name availability API. + public partial interface ICheckNameAvailabilityOutput : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// The detailed error message describing why the name is not available. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The detailed error message describing why the name is not available.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// Indicates whether the name is available. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Indicates whether the name is available.", + SerializedName = @"nameAvailability", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Available", "Unavailable")] + string NameAvailability { get; } + /// The reason why the name is not available. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The reason why the name is not available.", + SerializedName = @"reason", + PossibleTypes = new [] { typeof(string) })] + string Reason { get; } + + } + /// Output of check name availability API. + internal partial interface ICheckNameAvailabilityOutputInternal + + { + /// The detailed error message describing why the name is not available. + string Message { get; set; } + /// Indicates whether the name is available. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Available", "Unavailable")] + string NameAvailability { get; set; } + /// The reason why the name is not available. + string Reason { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.json.cs new file mode 100644 index 000000000000..6a3a927c5566 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.json.cs @@ -0,0 +1,121 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Output of check name availability API. + public partial class CheckNameAvailabilityOutput + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal CheckNameAvailabilityOutput(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_nameAvailability = If( json?.PropertyT("nameAvailability"), out var __jsonNameAvailability) ? (string)__jsonNameAvailability : (string)_nameAvailability;} + {_reason = If( json?.PropertyT("reason"), out var __jsonReason) ? (string)__jsonReason : (string)_reason;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CheckNameAvailabilityOutput(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._nameAvailability)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nameAvailability.ToString()) : null, "nameAvailability" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._reason)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._reason.ToString()) : null, "reason" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.PowerShell.cs new file mode 100644 index 000000000000..07612d12934e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.PowerShell.cs @@ -0,0 +1,236 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Https settings for a domain + [System.ComponentModel.TypeConverter(typeof(CustomHttpsConfigurationTypeConverter))] + public partial class CustomHttpsConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomHttpsConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyVaultCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("KeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("FrontDoorCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("FrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CertificateSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).CertificateSource = (string) content.GetValueForProperty("CertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).CertificateSource, global::System.Convert.ToString); + } + if (content.Contains("ProtocolType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).ProtocolType = (string) content.GetValueForProperty("ProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).ProtocolType, global::System.Convert.ToString); + } + if (content.Contains("MinimumTlsVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).MinimumTlsVersion, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterVault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); + } + if (content.Contains("KeyVaultCertificateSourceParameterSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretName = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretName, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterSecretVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretVersion = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretVersion, global::System.Convert.ToString); + } + if (content.Contains("VaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).VaultId, global::System.Convert.ToString); + } + if (content.Contains("FrontDoorCertificateSourceParameterCertificateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameterCertificateType = (string) content.GetValueForProperty("FrontDoorCertificateSourceParameterCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameterCertificateType, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomHttpsConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyVaultCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("KeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("FrontDoorCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("FrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CertificateSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).CertificateSource = (string) content.GetValueForProperty("CertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).CertificateSource, global::System.Convert.ToString); + } + if (content.Contains("ProtocolType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).ProtocolType = (string) content.GetValueForProperty("ProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).ProtocolType, global::System.Convert.ToString); + } + if (content.Contains("MinimumTlsVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).MinimumTlsVersion, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterVault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); + } + if (content.Contains("KeyVaultCertificateSourceParameterSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretName = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretName, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterSecretVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretVersion = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretVersion, global::System.Convert.ToString); + } + if (content.Contains("VaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).VaultId, global::System.Convert.ToString); + } + if (content.Contains("FrontDoorCertificateSourceParameterCertificateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameterCertificateType = (string) content.GetValueForProperty("FrontDoorCertificateSourceParameterCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameterCertificateType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomHttpsConfiguration(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomHttpsConfiguration(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Https settings for a domain + [System.ComponentModel.TypeConverter(typeof(CustomHttpsConfigurationTypeConverter))] + public partial interface ICustomHttpsConfiguration + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..80a4853c5e6a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomHttpsConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomHttpsConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomHttpsConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomHttpsConfiguration.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.cs new file mode 100644 index 000000000000..df79903beb66 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.cs @@ -0,0 +1,216 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Https settings for a domain + public partial class CustomHttpsConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal + { + + /// Backing field for property. + private string _certificateSource; + + /// Defines the source of the SSL certificate + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CertificateSource { get => this._certificateSource; set => this._certificateSource = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters _frontDoorCertificateSourceParameter; + + /// + /// Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters FrontDoorCertificateSourceParameter { get => (this._frontDoorCertificateSourceParameter = this._frontDoorCertificateSourceParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters()); set => this._frontDoorCertificateSourceParameter = value; } + + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string FrontDoorCertificateSourceParameterCertificateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)FrontDoorCertificateSourceParameter).CertificateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)FrontDoorCertificateSourceParameter).CertificateType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters _keyVaultCertificateSourceParameter; + + /// KeyVault certificate source parameters (if certificateSource=AzureKeyVault) + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters KeyVaultCertificateSourceParameter { get => (this._keyVaultCertificateSourceParameter = this._keyVaultCertificateSourceParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters()); set => this._keyVaultCertificateSourceParameter = value; } + + /// The name of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string KeyVaultCertificateSourceParameterSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).SecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).SecretName = value ?? null; } + + /// The version of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string KeyVaultCertificateSourceParameterSecretVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).SecretVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).SecretVersion = value ?? null; } + + /// Internal Acessors for FrontDoorCertificateSourceParameter + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal.FrontDoorCertificateSourceParameter { get => (this._frontDoorCertificateSourceParameter = this._frontDoorCertificateSourceParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters()); set { {_frontDoorCertificateSourceParameter = value;} } } + + /// Internal Acessors for KeyVaultCertificateSourceParameter + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal.KeyVaultCertificateSourceParameter { get => (this._keyVaultCertificateSourceParameter = this._keyVaultCertificateSourceParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters()); set { {_keyVaultCertificateSourceParameter = value;} } } + + /// Internal Acessors for KeyVaultCertificateSourceParameterVault + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal.KeyVaultCertificateSourceParameterVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).Vault; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).Vault = value ?? null /* model class */; } + + /// Internal Acessors for ProtocolType + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal.ProtocolType { get => this._protocolType; set { {_protocolType = value;} } } + + /// Backing field for property. + private string _minimumTlsVersion; + + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string MinimumTlsVersion { get => this._minimumTlsVersion; set => this._minimumTlsVersion = value; } + + /// Backing field for property. + private string _protocolType= @"ServerNameIndication"; + + /// Defines the TLS extension protocol that is used for secure delivery + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ProtocolType { get => this._protocolType; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string VaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).VaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).VaultId = value ?? null; } + + /// Creates an new instance. + public CustomHttpsConfiguration() + { + + } + } + /// Https settings for a domain + public partial interface ICustomHttpsConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Defines the source of the SSL certificate + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the source of the SSL certificate", + SerializedName = @"certificateSource", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + string CertificateSource { get; set; } + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", + SerializedName = @"certificateType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + string FrontDoorCertificateSourceParameterCertificateType { get; set; } + /// The name of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretName", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultCertificateSourceParameterSecretName { get; set; } + /// The version of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretVersion", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultCertificateSourceParameterSecretVersion { get; set; } + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", + SerializedName = @"minimumTlsVersion", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + string MinimumTlsVersion { get; set; } + /// Defines the TLS extension protocol that is used for secure delivery + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = true, + Read = true, + Create = true, + Update = true, + Description = @"Defines the TLS extension protocol that is used for secure delivery", + SerializedName = @"protocolType", + PossibleTypes = new [] { typeof(string) })] + string ProtocolType { get; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string VaultId { get; set; } + + } + /// Https settings for a domain + internal partial interface ICustomHttpsConfigurationInternal + + { + /// Defines the source of the SSL certificate + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + string CertificateSource { get; set; } + /// + /// Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters FrontDoorCertificateSourceParameter { get; set; } + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + string FrontDoorCertificateSourceParameterCertificateType { get; set; } + /// KeyVault certificate source parameters (if certificateSource=AzureKeyVault) + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters KeyVaultCertificateSourceParameter { get; set; } + /// The name of the Key Vault secret representing the full certificate PFX + string KeyVaultCertificateSourceParameterSecretName { get; set; } + /// The version of the Key Vault secret representing the full certificate PFX + string KeyVaultCertificateSourceParameterSecretVersion { get; set; } + /// The Key Vault containing the SSL certificate + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault KeyVaultCertificateSourceParameterVault { get; set; } + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + string MinimumTlsVersion { get; set; } + /// Defines the TLS extension protocol that is used for secure delivery + string ProtocolType { get; set; } + /// Resource ID. + string VaultId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.json.cs new file mode 100644 index 000000000000..e90bf8f06831 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Https settings for a domain + public partial class CustomHttpsConfiguration + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal CustomHttpsConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_keyVaultCertificateSourceParameter = If( json?.PropertyT("keyVaultCertificateSourceParameters"), out var __jsonKeyVaultCertificateSourceParameters) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters.FromJson(__jsonKeyVaultCertificateSourceParameters) : _keyVaultCertificateSourceParameter;} + {_frontDoorCertificateSourceParameter = If( json?.PropertyT("frontDoorCertificateSourceParameters"), out var __jsonFrontDoorCertificateSourceParameters) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters.FromJson(__jsonFrontDoorCertificateSourceParameters) : _frontDoorCertificateSourceParameter;} + {_certificateSource = If( json?.PropertyT("certificateSource"), out var __jsonCertificateSource) ? (string)__jsonCertificateSource : (string)_certificateSource;} + {_protocolType = If( json?.PropertyT("protocolType"), out var __jsonProtocolType) ? (string)__jsonProtocolType : (string)_protocolType;} + {_minimumTlsVersion = If( json?.PropertyT("minimumTlsVersion"), out var __jsonMinimumTlsVersion) ? (string)__jsonMinimumTlsVersion : (string)_minimumTlsVersion;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CustomHttpsConfiguration(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._keyVaultCertificateSourceParameter ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._keyVaultCertificateSourceParameter.ToJson(null,serializationMode) : null, "keyVaultCertificateSourceParameters" ,container.Add ); + AddIf( null != this._frontDoorCertificateSourceParameter ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._frontDoorCertificateSourceParameter.ToJson(null,serializationMode) : null, "frontDoorCertificateSourceParameters" ,container.Add ); + AddIf( null != (((object)this._certificateSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._certificateSource.ToString()) : null, "certificateSource" ,container.Add ); + AddIf( null != (((object)this._protocolType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._protocolType.ToString()) : null, "protocolType" ,container.Add ); + AddIf( null != (((object)this._minimumTlsVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._minimumTlsVersion.ToString()) : null, "minimumTlsVersion" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.PowerShell.cs new file mode 100644 index 000000000000..e2e761dce375 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.PowerShell.cs @@ -0,0 +1,228 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines contents of a web application rule + [System.ComponentModel.TypeConverter(typeof(CustomRuleTypeConverter))] + public partial class CustomRule + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomRule(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("RuleType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RuleType = (string) content.GetValueForProperty("RuleType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RuleType, global::System.Convert.ToString); + } + if (content.Contains("RateLimitDurationInMinutes")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitDurationInMinutes = (int?) content.GetValueForProperty("RateLimitDurationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitDurationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RateLimitThreshold")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitThreshold = (int?) content.GetValueForProperty("RateLimitThreshold",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("GroupBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).GroupBy = (System.Collections.Generic.List) content.GetValueForProperty("GroupBy",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).GroupBy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariableTypeConverter.ConvertFrom)); + } + if (content.Contains("MatchCondition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).MatchCondition = (System.Collections.Generic.List) content.GetValueForProperty("MatchCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).MatchCondition, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchConditionTypeConverter.ConvertFrom)); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Action, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomRule(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("RuleType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RuleType = (string) content.GetValueForProperty("RuleType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RuleType, global::System.Convert.ToString); + } + if (content.Contains("RateLimitDurationInMinutes")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitDurationInMinutes = (int?) content.GetValueForProperty("RateLimitDurationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitDurationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RateLimitThreshold")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitThreshold = (int?) content.GetValueForProperty("RateLimitThreshold",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("GroupBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).GroupBy = (System.Collections.Generic.List) content.GetValueForProperty("GroupBy",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).GroupBy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariableTypeConverter.ConvertFrom)); + } + if (content.Contains("MatchCondition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).MatchCondition = (System.Collections.Generic.List) content.GetValueForProperty("MatchCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).MatchCondition, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchConditionTypeConverter.ConvertFrom)); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Action, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomRule(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomRule(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines contents of a web application rule + [System.ComponentModel.TypeConverter(typeof(CustomRuleTypeConverter))] + public partial interface ICustomRule + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.TypeConverter.cs new file mode 100644 index 000000000000..2613b6f18197 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomRuleTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomRule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomRule.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomRule.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.cs new file mode 100644 index 000000000000..b74bfb97d844 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.cs @@ -0,0 +1,232 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines contents of a web application rule + public partial class CustomRule : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal + { + + /// Backing field for property. + private string _action; + + /// Describes what action to be applied when rule matches. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Action { get => this._action; set => this._action = value; } + + /// Backing field for property. + private string _enabledState; + + /// + /// Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string EnabledState { get => this._enabledState; set => this._enabledState = value; } + + /// Backing field for property. + private System.Collections.Generic.List _groupBy; + + /// Describes the list of variables to group the rate limit requests + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List GroupBy { get => this._groupBy; set => this._groupBy = value; } + + /// Backing field for property. + private System.Collections.Generic.List _matchCondition; + + /// List of match conditions. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List MatchCondition { get => this._matchCondition; set => this._matchCondition = value; } + + /// Backing field for property. + private string _name; + + /// Describes the name of the rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private int _priority; + + /// + /// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int Priority { get => this._priority; set => this._priority = value; } + + /// Backing field for property. + private int? _rateLimitDurationInMinutes; + + /// Time window for resetting the rate limit count. Default is 1 minute. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? RateLimitDurationInMinutes { get => this._rateLimitDurationInMinutes; set => this._rateLimitDurationInMinutes = value; } + + /// Backing field for property. + private int? _rateLimitThreshold; + + /// Number of allowed requests per client within the time window. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? RateLimitThreshold { get => this._rateLimitThreshold; set => this._rateLimitThreshold = value; } + + /// Backing field for property. + private string _ruleType; + + /// Describes type of rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleType { get => this._ruleType; set => this._ruleType = value; } + + /// Creates an new instance. + public CustomRule() + { + + } + } + /// Defines contents of a web application rule + public partial interface ICustomRule : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Describes what action to be applied when rule matches. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes what action to be applied when rule matches.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] + string Action { get; set; } + /// + /// Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string EnabledState { get; set; } + /// Describes the list of variables to group the rate limit requests + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes the list of variables to group the rate limit requests", + SerializedName = @"groupBy", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable) })] + System.Collections.Generic.List GroupBy { get; set; } + /// List of match conditions. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of match conditions.", + SerializedName = @"matchConditions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition) })] + System.Collections.Generic.List MatchCondition { get; set; } + /// Describes the name of the rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes the name of the rule.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// + /// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int Priority { get; set; } + /// Time window for resetting the rate limit count. Default is 1 minute. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Time window for resetting the rate limit count. Default is 1 minute.", + SerializedName = @"rateLimitDurationInMinutes", + PossibleTypes = new [] { typeof(int) })] + int? RateLimitDurationInMinutes { get; set; } + /// Number of allowed requests per client within the time window. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Number of allowed requests per client within the time window.", + SerializedName = @"rateLimitThreshold", + PossibleTypes = new [] { typeof(int) })] + int? RateLimitThreshold { get; set; } + /// Describes type of rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes type of rule.", + SerializedName = @"ruleType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] + string RuleType { get; set; } + + } + /// Defines contents of a web application rule + internal partial interface ICustomRuleInternal + + { + /// Describes what action to be applied when rule matches. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] + string Action { get; set; } + /// + /// Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string EnabledState { get; set; } + /// Describes the list of variables to group the rate limit requests + System.Collections.Generic.List GroupBy { get; set; } + /// List of match conditions. + System.Collections.Generic.List MatchCondition { get; set; } + /// Describes the name of the rule. + string Name { get; set; } + /// + /// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + /// + int Priority { get; set; } + /// Time window for resetting the rate limit count. Default is 1 minute. + int? RateLimitDurationInMinutes { get; set; } + /// Number of allowed requests per client within the time window. + int? RateLimitThreshold { get; set; } + /// Describes type of rule. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] + string RuleType { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.json.cs new file mode 100644 index 000000000000..818b89345a04 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.json.cs @@ -0,0 +1,138 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines contents of a web application rule + public partial class CustomRule + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal CustomRule(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int)__jsonPriority : _priority;} + {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} + {_ruleType = If( json?.PropertyT("ruleType"), out var __jsonRuleType) ? (string)__jsonRuleType : (string)_ruleType;} + {_rateLimitDurationInMinutes = If( json?.PropertyT("rateLimitDurationInMinutes"), out var __jsonRateLimitDurationInMinutes) ? (int?)__jsonRateLimitDurationInMinutes : _rateLimitDurationInMinutes;} + {_rateLimitThreshold = If( json?.PropertyT("rateLimitThreshold"), out var __jsonRateLimitThreshold) ? (int?)__jsonRateLimitThreshold : _rateLimitThreshold;} + {_groupBy = If( json?.PropertyT("groupBy"), out var __jsonGroupBy) ? If( __jsonGroupBy as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable.FromJson(__u) )) ))() : null : _groupBy;} + {_matchCondition = If( json?.PropertyT("matchConditions"), out var __jsonMatchConditions) ? If( __jsonMatchConditions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition.FromJson(__p) )) ))() : null : _matchCondition;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)_action;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CustomRule(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber(this._priority), "priority" ,container.Add ); + AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); + AddIf( null != (((object)this._ruleType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleType.ToString()) : null, "ruleType" ,container.Add ); + AddIf( null != this._rateLimitDurationInMinutes ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._rateLimitDurationInMinutes) : null, "rateLimitDurationInMinutes" ,container.Add ); + AddIf( null != this._rateLimitThreshold ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._rateLimitThreshold) : null, "rateLimitThreshold" ,container.Add ); + if (null != this._groupBy) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._groupBy ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("groupBy",__w); + } + if (null != this._matchCondition) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._matchCondition ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("matchConditions",__r); + } + AddIf( null != (((object)this._action)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._action.ToString()) : null, "action" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.PowerShell.cs new file mode 100644 index 000000000000..070497977945 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines contents of custom rules + [System.ComponentModel.TypeConverter(typeof(CustomRuleListTypeConverter))] + public partial class CustomRuleList + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomRuleList(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomRuleList(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomRuleList(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomRuleList(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines contents of custom rules + [System.ComponentModel.TypeConverter(typeof(CustomRuleListTypeConverter))] + public partial interface ICustomRuleList + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.TypeConverter.cs new file mode 100644 index 000000000000..1174ab73c742 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomRuleListTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomRuleList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomRuleList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomRuleList.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.cs new file mode 100644 index 000000000000..30ee33786e91 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines contents of custom rules + public partial class CustomRuleList : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _rule; + + /// List of rules + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Rule { get => this._rule; set => this._rule = value; } + + /// Creates an new instance. + public CustomRuleList() + { + + } + } + /// Defines contents of custom rules + public partial interface ICustomRuleList : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// List of rules + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of rules", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] + System.Collections.Generic.List Rule { get; set; } + + } + /// Defines contents of custom rules + internal partial interface ICustomRuleListInternal + + { + /// List of rules + System.Collections.Generic.List Rule { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.json.cs new file mode 100644 index 000000000000..bbc11df9068e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines contents of custom rules + public partial class CustomRuleList + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal CustomRuleList(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_rule = If( json?.PropertyT("rules"), out var __jsonRules) ? If( __jsonRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule.FromJson(__u) )) ))() : null : _rule;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CustomRuleList(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._rule) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._rule ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("rules",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.PowerShell.cs new file mode 100644 index 000000000000..374ed2e9d424 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.PowerShell.cs @@ -0,0 +1,184 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + /// + [System.ComponentModel.TypeConverter(typeof(DefaultErrorResponseTypeConverter))] + public partial class DefaultErrorResponse + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DefaultErrorResponse(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseErrorTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DefaultErrorResponse(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseErrorTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DefaultErrorResponse(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DefaultErrorResponse(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + [System.ComponentModel.TypeConverter(typeof(DefaultErrorResponseTypeConverter))] + public partial interface IDefaultErrorResponse + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.TypeConverter.cs new file mode 100644 index 000000000000..e5971b8230d4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DefaultErrorResponseTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DefaultErrorResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DefaultErrorResponse.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DefaultErrorResponse.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.cs new file mode 100644 index 000000000000..4600f4651e3e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.cs @@ -0,0 +1,91 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + /// + public partial class DefaultErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal + { + + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Code; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError _error; + + /// Error model. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError()); set => this._error = value; } + + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Message; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Code = value ?? null; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError()); set { {_error = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Message = value ?? null; } + + /// Creates an new instance. + public DefaultErrorResponse() + { + + } + } + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + public partial interface IDefaultErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Error message indicating why the operation failed.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + + } + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + internal partial interface IDefaultErrorResponseInternal + + { + /// Error code. + string Code { get; set; } + /// Error model. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError Error { get; set; } + /// Error message indicating why the operation failed. + string Message { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.json.cs new file mode 100644 index 000000000000..1144fc8bdb74 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.json.cs @@ -0,0 +1,111 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + /// + public partial class DefaultErrorResponse + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal DefaultErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError.FromJson(__jsonError) : _error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new DefaultErrorResponse(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.PowerShell.cs new file mode 100644 index 000000000000..9dadddf0f849 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.PowerShell.cs @@ -0,0 +1,172 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Error model. + [System.ComponentModel.TypeConverter(typeof(DefaultErrorResponseErrorTypeConverter))] + public partial class DefaultErrorResponseError + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DefaultErrorResponseError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DefaultErrorResponseError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DefaultErrorResponseError(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DefaultErrorResponseError(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Error model. + [System.ComponentModel.TypeConverter(typeof(DefaultErrorResponseErrorTypeConverter))] + public partial interface IDefaultErrorResponseError + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.TypeConverter.cs new file mode 100644 index 000000000000..f0c4b9122e93 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DefaultErrorResponseErrorTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DefaultErrorResponseError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DefaultErrorResponseError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DefaultErrorResponseError.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.cs new file mode 100644 index 000000000000..8d6164edc621 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.cs @@ -0,0 +1,80 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Error model. + public partial class DefaultErrorResponseError : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal + { + + /// Backing field for property. + private string _code; + + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private string _message; + + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal.Message { get => this._message; set { {_message = value;} } } + + /// Creates an new instance. + public DefaultErrorResponseError() + { + + } + } + /// Error model. + public partial interface IDefaultErrorResponseError : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Error message indicating why the operation failed.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + + } + /// Error model. + internal partial interface IDefaultErrorResponseErrorInternal + + { + /// Error code. + string Code { get; set; } + /// Error message indicating why the operation failed. + string Message { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.json.cs new file mode 100644 index 000000000000..2eb9842312a3 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Error model. + public partial class DefaultErrorResponseError + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal DefaultErrorResponseError(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new DefaultErrorResponseError(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.PowerShell.cs new file mode 100644 index 000000000000..de87e2561d82 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.PowerShell.cs @@ -0,0 +1,194 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(ErrorTypeConverter))] + public partial class Error + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Error(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Error(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Error(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InnerError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).InnerError = (string) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).InnerError, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Error(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InnerError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).InnerError = (string) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).InnerError, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + [System.ComponentModel.TypeConverter(typeof(ErrorTypeConverter))] + public partial interface IError + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.TypeConverter.cs new file mode 100644 index 000000000000..6b0eef667c49 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Error.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Error.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Error.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.cs new file mode 100644 index 000000000000..ecd00005bc18 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class Error : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal + { + + /// Backing field for property. + private string _code; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private System.Collections.Generic.List _detail; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Detail { get => this._detail; set => this._detail = value; } + + /// Backing field for property. + private string _innerError; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string InnerError { get => this._innerError; set => this._innerError = value; } + + /// Backing field for property. + private string _message; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Backing field for property. + private string _target; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Target { get => this._target; set => this._target = value; } + + /// Creates an new instance. + public Error() + { + + } + } + public partial interface IError : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails) })] + System.Collections.Generic.List Detail { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"innerError", + PossibleTypes = new [] { typeof(string) })] + string InnerError { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + internal partial interface IErrorInternal + + { + string Code { get; set; } + + System.Collections.Generic.List Detail { get; set; } + + string InnerError { get; set; } + + string Message { get; set; } + + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.json.cs new file mode 100644 index 000000000000..28f1eced034b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.json.cs @@ -0,0 +1,121 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class Error + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal Error(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)_target;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetails.FromJson(__u) )) ))() : null : _detail;} + {_innerError = If( json?.PropertyT("innerError"), out var __jsonInnerError) ? (string)__jsonInnerError : (string)_innerError;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new Error(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + if (null != this._detail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._detail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("details",__w); + } + AddIf( null != (((object)this._innerError)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._innerError.ToString()) : null, "innerError" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..90f2c43b1134 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.PowerShell.cs @@ -0,0 +1,178 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] + public partial class ErrorDetails + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorDetails(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] + public partial interface IErrorDetails + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.TypeConverter.cs new file mode 100644 index 000000000000..4cce53df4012 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorDetailsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorDetails.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.cs new file mode 100644 index 000000000000..f7b51a3eb16c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.cs @@ -0,0 +1,86 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class ErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal + { + + /// Backing field for property. + private string _code; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private string _message; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Backing field for property. + private string _target; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Target { get => this._target; set => this._target = value; } + + /// Creates an new instance. + public ErrorDetails() + { + + } + } + public partial interface IErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + internal partial interface IErrorDetailsInternal + + { + string Code { get; set; } + + string Message { get; set; } + + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.json.cs new file mode 100644 index 000000000000..e6410b7a9c74 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.json.cs @@ -0,0 +1,111 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class ErrorDetails + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)_target;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ErrorDetails(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs new file mode 100644 index 000000000000..eaa60481dd67 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + /// + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial class ErrorResponse + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorResponse(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorResponse(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorResponse(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ErrorResponse(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial interface IErrorResponse + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs new file mode 100644 index 000000000000..c7b3a918c69c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorResponseTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorResponse.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorResponse.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.cs new file mode 100644 index 000000000000..00f099c974cd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.cs @@ -0,0 +1,85 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + /// + public partial class ErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal + { + + /// Backing field for property. + private string _code; + + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private string _message; + + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal.Message { get => this._message; set { {_message = value;} } } + + /// Creates an new instance. + public ErrorResponse() + { + + } + } + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + public partial interface IErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Error message indicating why the operation failed.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + + } + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + internal partial interface IErrorResponseInternal + + { + /// Error code. + string Code { get; set; } + /// Error message indicating why the operation failed. + string Message { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.json.cs new file mode 100644 index 000000000000..b088bf889804 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.json.cs @@ -0,0 +1,119 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the + /// error message. + /// + public partial class ErrorResponse + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.PowerShell.cs new file mode 100644 index 000000000000..26126d70b8e8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.PowerShell.cs @@ -0,0 +1,204 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Describes Forwarding Route. + [System.ComponentModel.TypeConverter(typeof(ForwardingConfigurationTypeConverter))] + public partial class ForwardingConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ForwardingConfiguration(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ForwardingConfiguration(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ForwardingConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("BackendPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPool = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPool, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("CustomForwardingPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CustomForwardingPath = (string) content.GetValueForProperty("CustomForwardingPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CustomForwardingPath, global::System.Convert.ToString); + } + if (content.Contains("ForwardingProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).ForwardingProtocol = (string) content.GetValueForProperty("ForwardingProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).ForwardingProtocol, global::System.Convert.ToString); + } + if (content.Contains("CacheConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CacheConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration) content.GetValueForProperty("CacheConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CacheConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OdataType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); + } + if (content.Contains("BackendPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPoolId = (string) content.GetValueForProperty("BackendPoolId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPoolId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ForwardingConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("BackendPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPool = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPool, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("CustomForwardingPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CustomForwardingPath = (string) content.GetValueForProperty("CustomForwardingPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CustomForwardingPath, global::System.Convert.ToString); + } + if (content.Contains("ForwardingProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).ForwardingProtocol = (string) content.GetValueForProperty("ForwardingProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).ForwardingProtocol, global::System.Convert.ToString); + } + if (content.Contains("CacheConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CacheConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration) content.GetValueForProperty("CacheConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CacheConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OdataType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); + } + if (content.Contains("BackendPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPoolId = (string) content.GetValueForProperty("BackendPoolId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPoolId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Describes Forwarding Route. + [System.ComponentModel.TypeConverter(typeof(ForwardingConfigurationTypeConverter))] + public partial interface IForwardingConfiguration + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..661ad7852d48 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ForwardingConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ForwardingConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ForwardingConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ForwardingConfiguration.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.cs new file mode 100644 index 000000000000..acaa78495260 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.cs @@ -0,0 +1,154 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes Forwarding Route. + public partial class ForwardingConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration __routeConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource _backendPool; + + /// A reference to the BackendPool which this rule routes to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource BackendPool { get => (this._backendPool = this._backendPool ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set => this._backendPool = value; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string BackendPoolId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)BackendPool).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)BackendPool).Id = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration _cacheConfiguration; + + /// The caching configuration associated with this rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration CacheConfiguration { get => (this._cacheConfiguration = this._cacheConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration()); set => this._cacheConfiguration = value; } + + /// Backing field for property. + private string _customForwardingPath; + + /// + /// A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CustomForwardingPath { get => this._customForwardingPath; set => this._customForwardingPath = value; } + + /// Backing field for property. + private string _forwardingProtocol; + + /// Protocol this rule will use when forwarding traffic to backends. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ForwardingProtocol { get => this._forwardingProtocol; set => this._forwardingProtocol = value; } + + /// Internal Acessors for BackendPool + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal.BackendPool { get => (this._backendPool = this._backendPool ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set { {_backendPool = value;} } } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Constant] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string OdataType { get => "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration"; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)__routeConfiguration).OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration"; } + + /// Creates an new instance. + public ForwardingConfiguration() + { + this.__routeConfiguration.OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration"; + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__routeConfiguration), __routeConfiguration); + await eventListener.AssertObjectIsValid(nameof(__routeConfiguration), __routeConfiguration); + } + } + /// Describes Forwarding Route. + public partial interface IForwardingConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"ResourceGroupName", + PossibleTypes = new [] { typeof(string) })] + string BackendPoolId { get; set; } + /// The caching configuration associated with this rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The caching configuration associated with this rule.", + SerializedName = @"cacheConfiguration", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration CacheConfiguration { get; set; } + /// + /// A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.", + SerializedName = @"customForwardingPath", + PossibleTypes = new [] { typeof(string) })] + string CustomForwardingPath { get; set; } + /// Protocol this rule will use when forwarding traffic to backends. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Protocol this rule will use when forwarding traffic to backends.", + SerializedName = @"forwardingProtocol", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + string ForwardingProtocol { get; set; } + + } + /// Describes Forwarding Route. + internal partial interface IForwardingConfigurationInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal + { + /// A reference to the BackendPool which this rule routes to. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource BackendPool { get; set; } + /// Resource ID. + string BackendPoolId { get; set; } + /// The caching configuration associated with this rule. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration CacheConfiguration { get; set; } + /// + /// A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. + /// + string CustomForwardingPath { get; set; } + /// Protocol this rule will use when forwarding traffic to backends. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + string ForwardingProtocol { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.json.cs new file mode 100644 index 000000000000..753518058efd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes Forwarding Route. + public partial class ForwardingConfiguration + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ForwardingConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __routeConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration(json); + {_backendPool = If( json?.PropertyT("backendPool"), out var __jsonBackendPool) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__jsonBackendPool) : _backendPool;} + {_customForwardingPath = If( json?.PropertyT("customForwardingPath"), out var __jsonCustomForwardingPath) ? (string)__jsonCustomForwardingPath : (string)_customForwardingPath;} + {_forwardingProtocol = If( json?.PropertyT("forwardingProtocol"), out var __jsonForwardingProtocol) ? (string)__jsonForwardingProtocol : (string)_forwardingProtocol;} + {_cacheConfiguration = If( json?.PropertyT("cacheConfiguration"), out var __jsonCacheConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration.FromJson(__jsonCacheConfiguration) : _cacheConfiguration;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ForwardingConfiguration(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __routeConfiguration?.ToJson(container, serializationMode); + AddIf( null != this._backendPool ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._backendPool.ToJson(null,serializationMode) : null, "backendPool" ,container.Add ); + AddIf( null != (((object)this._customForwardingPath)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customForwardingPath.ToString()) : null, "customForwardingPath" ,container.Add ); + AddIf( null != (((object)this._forwardingProtocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._forwardingProtocol.ToString()) : null, "forwardingProtocol" ,container.Add ); + AddIf( null != this._cacheConfiguration ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._cacheConfiguration.ToJson(null,serializationMode) : null, "cacheConfiguration" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.PowerShell.cs new file mode 100644 index 000000000000..d33e1d4d2f3e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.PowerShell.cs @@ -0,0 +1,320 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + /// + [System.ComponentModel.TypeConverter(typeof(FrontDoorTypeConverter))] + public partial class FrontDoor + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontDoor(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontDoor(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontDoor(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RoutingRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPoolsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Cname")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Cname = (string) content.GetValueForProperty("Cname",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Cname, global::System.Convert.ToString); + } + if (content.Contains("FrontdoorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontdoorId = (string) content.GetValueForProperty("FrontdoorId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontdoorId, global::System.Convert.ToString); + } + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RulesEngine = (System.Collections.Generic.List) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RulesEngine, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); + } + if (content.Contains("ExtendedProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ExtendedProperty = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) content.GetValueForProperty("ExtendedProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ExtendedProperty, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedPropertiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontDoor(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RoutingRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPoolsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Cname")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Cname = (string) content.GetValueForProperty("Cname",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Cname, global::System.Convert.ToString); + } + if (content.Contains("FrontdoorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontdoorId = (string) content.GetValueForProperty("FrontdoorId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontdoorId, global::System.Convert.ToString); + } + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RulesEngine = (System.Collections.Generic.List) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RulesEngine, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); + } + if (content.Contains("ExtendedProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ExtendedProperty = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) content.GetValueForProperty("ExtendedProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ExtendedProperty, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedPropertiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + [System.ComponentModel.TypeConverter(typeof(FrontDoorTypeConverter))] + public partial interface IFrontDoor + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.TypeConverter.cs new file mode 100644 index 000000000000..c9fe48a5545d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontDoorTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontDoor.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontDoor.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontDoor.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.cs new file mode 100644 index 000000000000..afecd0e640ea --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.cs @@ -0,0 +1,368 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + /// + public partial class FrontDoor : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(); + + /// Backend pools available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List BackendPool { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).BackendPool; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).BackendPool = value ?? null /* arrayOf */; } + + /// Settings for all backendPools + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).BackendPoolsSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).BackendPoolsSetting = value ?? null /* model class */; } + + /// The host that each frontendEndpoint must CNAME to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Cname { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).Cname; } + + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).EnabledState = value ?? null; } + + /// Key-Value pair representing additional properties for frontdoor. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ExtendedProperty; } + + /// A friendly name for the frontDoor + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).FriendlyName = value ?? null; } + + /// The Id of the frontdoor. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string FrontdoorId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).FrontdoorId; } + + /// Frontend endpoints available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List FrontendEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).FrontendEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).FrontendEndpoint = value ?? null /* arrayOf */; } + + /// Health probe settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).HealthProbeSetting = value ?? null /* arrayOf */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; } + + /// Load balancing settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).LoadBalancingSetting = value ?? null /* arrayOf */; } + + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Cname + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.Cname { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).Cname; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).Cname = value ?? null; } + + /// Internal Acessors for ExtendedProperty + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.ExtendedProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ExtendedProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ExtendedProperty = value ?? null /* model class */; } + + /// Internal Acessors for FrontdoorId + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.FrontdoorId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).FrontdoorId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).FrontdoorId = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ResourceState = value ?? null; } + + /// Internal Acessors for RulesEngine + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).RulesEngine; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).RulesEngine = value ?? null /* arrayOf */; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id = value ?? null; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type = value ?? null; } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties _property; + + /// Properties of the Front Door Load Balancer + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties()); set => this._property = value; } + + /// Provisioning state of the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ProvisioningState; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// Resource status of the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ResourceState; } + + /// Routing rules associated with this Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List RoutingRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).RoutingRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).RoutingRule = value ?? null /* arrayOf */; } + + /// Rules Engine Configurations available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).RulesEngine; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag = value ?? null /* model class */; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public FrontDoor() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + public partial interface IFrontDoor : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource + { + /// Backend pools available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Backend pools available to routing rules.", + SerializedName = @"backendPools", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] + System.Collections.Generic.List BackendPool { get; set; } + /// Settings for all backendPools + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Settings for all backendPools", + SerializedName = @"backendPoolsSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get; set; } + /// The host that each frontendEndpoint must CNAME to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The host that each frontendEndpoint must CNAME to.", + SerializedName = @"cname", + PossibleTypes = new [] { typeof(string) })] + string Cname { get; } + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// Key-Value pair representing additional properties for frontdoor. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Key-Value pair representing additional properties for frontdoor.", + SerializedName = @"extendedProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get; } + /// A friendly name for the frontDoor + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A friendly name for the frontDoor", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The Id of the frontdoor. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The Id of the frontdoor.", + SerializedName = @"frontdoorId", + PossibleTypes = new [] { typeof(string) })] + string FrontdoorId { get; } + /// Frontend endpoints available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Frontend endpoints available to routing rules.", + SerializedName = @"frontendEndpoints", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] + System.Collections.Generic.List FrontendEndpoint { get; set; } + /// Health probe settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Health probe settings associated with this Front Door instance.", + SerializedName = @"healthProbeSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] + System.Collections.Generic.List HealthProbeSetting { get; set; } + /// Load balancing settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Load balancing settings associated with this Front Door instance.", + SerializedName = @"loadBalancingSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] + System.Collections.Generic.List LoadBalancingSetting { get; set; } + /// Provisioning state of the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning state of the Front Door.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// Resource status of the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status of the Front Door.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// Routing rules associated with this Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Routing rules associated with this Front Door.", + SerializedName = @"routingRules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] + System.Collections.Generic.List RoutingRule { get; set; } + /// Rules Engine Configurations available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Rules Engine Configurations available to routing rules.", + SerializedName = @"rulesEngines", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) })] + System.Collections.Generic.List RulesEngine { get; } + + } + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + internal partial interface IFrontDoorInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal + { + /// Backend pools available to routing rules. + System.Collections.Generic.List BackendPool { get; set; } + /// Settings for all backendPools + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get; set; } + /// The host that each frontendEndpoint must CNAME to. + string Cname { get; set; } + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// Key-Value pair representing additional properties for frontdoor. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get; set; } + /// A friendly name for the frontDoor + string FriendlyName { get; set; } + /// The Id of the frontdoor. + string FrontdoorId { get; set; } + /// Frontend endpoints available to routing rules. + System.Collections.Generic.List FrontendEndpoint { get; set; } + /// Health probe settings associated with this Front Door instance. + System.Collections.Generic.List HealthProbeSetting { get; set; } + /// Load balancing settings associated with this Front Door instance. + System.Collections.Generic.List LoadBalancingSetting { get; set; } + /// Properties of the Front Door Load Balancer + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties Property { get; set; } + /// Provisioning state of the Front Door. + string ProvisioningState { get; set; } + /// Resource status of the Front Door. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// Routing rules associated with this Front Door. + System.Collections.Generic.List RoutingRule { get; set; } + /// Rules Engine Configurations available to routing rules. + System.Collections.Generic.List RulesEngine { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.json.cs new file mode 100644 index 000000000000..f99831ba9b3a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.json.cs @@ -0,0 +1,111 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + /// + public partial class FrontDoor + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoor(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontDoor(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.PowerShell.cs new file mode 100644 index 000000000000..bcdafd4d5ff3 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.PowerShell.cs @@ -0,0 +1,166 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Parameters required for enabling SSL with Front Door-managed certificates + [System.ComponentModel.TypeConverter(typeof(FrontDoorCertificateSourceParametersTypeConverter))] + public partial class FrontDoorCertificateSourceParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontDoorCertificateSourceParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontDoorCertificateSourceParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontDoorCertificateSourceParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CertificateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)this).CertificateType = (string) content.GetValueForProperty("CertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)this).CertificateType, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontDoorCertificateSourceParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CertificateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)this).CertificateType = (string) content.GetValueForProperty("CertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)this).CertificateType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Parameters required for enabling SSL with Front Door-managed certificates + [System.ComponentModel.TypeConverter(typeof(FrontDoorCertificateSourceParametersTypeConverter))] + public partial interface IFrontDoorCertificateSourceParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.TypeConverter.cs new file mode 100644 index 000000000000..bb99efec06ee --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontDoorCertificateSourceParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontDoorCertificateSourceParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontDoorCertificateSourceParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontDoorCertificateSourceParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.cs new file mode 100644 index 000000000000..bba5797af228 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.cs @@ -0,0 +1,62 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Parameters required for enabling SSL with Front Door-managed certificates + public partial class FrontDoorCertificateSourceParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal + { + + /// Backing field for property. + private string _certificateType; + + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CertificateType { get => this._certificateType; set => this._certificateType = value; } + + /// Creates an new instance. + public FrontDoorCertificateSourceParameters() + { + + } + } + /// Parameters required for enabling SSL with Front Door-managed certificates + public partial interface IFrontDoorCertificateSourceParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", + SerializedName = @"certificateType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + string CertificateType { get; set; } + + } + /// Parameters required for enabling SSL with Front Door-managed certificates + internal partial interface IFrontDoorCertificateSourceParametersInternal + + { + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + string CertificateType { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.json.cs new file mode 100644 index 000000000000..8c8f41294ac0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.json.cs @@ -0,0 +1,109 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Parameters required for enabling SSL with Front Door-managed certificates + public partial class FrontDoorCertificateSourceParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorCertificateSourceParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontDoorCertificateSourceParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_certificateType = If( json?.PropertyT("certificateType"), out var __jsonCertificateType) ? (string)__jsonCertificateType : (string)_certificateType;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._certificateType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._certificateType.ToString()) : null, "certificateType" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.PowerShell.cs new file mode 100644 index 000000000000..cafc51312c11 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.PowerShell.cs @@ -0,0 +1,210 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(FrontDoorIdentityTypeConverter))] + public partial class FrontDoorIdentity + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontDoorIdentity(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontDoorIdentity(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontDoorIdentity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("ResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("PolicyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).PolicyName, global::System.Convert.ToString); + } + if (content.Contains("FrontDoorName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontDoorName = (string) content.GetValueForProperty("FrontDoorName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontDoorName, global::System.Convert.ToString); + } + if (content.Contains("FrontendEndpointName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontendEndpointName = (string) content.GetValueForProperty("FrontendEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontendEndpointName, global::System.Convert.ToString); + } + if (content.Contains("RulesEngineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).RulesEngineName = (string) content.GetValueForProperty("RulesEngineName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).RulesEngineName, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontDoorIdentity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("ResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("PolicyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).PolicyName, global::System.Convert.ToString); + } + if (content.Contains("FrontDoorName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontDoorName = (string) content.GetValueForProperty("FrontDoorName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontDoorName, global::System.Convert.ToString); + } + if (content.Contains("FrontendEndpointName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontendEndpointName = (string) content.GetValueForProperty("FrontendEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontendEndpointName, global::System.Convert.ToString); + } + if (content.Contains("RulesEngineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).RulesEngineName = (string) content.GetValueForProperty("RulesEngineName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).RulesEngineName, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + [System.ComponentModel.TypeConverter(typeof(FrontDoorIdentityTypeConverter))] + public partial interface IFrontDoorIdentity + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.TypeConverter.cs new file mode 100644 index 000000000000..257453404c85 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.TypeConverter.cs @@ -0,0 +1,157 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontDoorIdentityTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + // we allow string conversion too. + if (type == typeof(global::System.String)) + { + return true; + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + // support direct string to id type conversion. + if (type == typeof(global::System.String)) + { + return new FrontDoorIdentity { Id = sourceValue }; + } + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontDoorIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontDoorIdentity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontDoorIdentity.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.cs new file mode 100644 index 000000000000..3eab4a9d0df7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.cs @@ -0,0 +1,180 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class FrontDoorIdentity : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal + { + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// Backing field for property. + private string _id; + + /// Resource identity path + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Backing field for property. + private string _policyName; + + /// The name of the Web Application Firewall Policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string PolicyName { get => this._policyName; set => this._policyName = value; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _rulesEngineName; + + /// Name of the Rules Engine which is unique within the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RulesEngineName { get => this._rulesEngineName; set => this._rulesEngineName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Creates an new instance. + public FrontDoorIdentity() + { + + } + } + public partial interface IFrontDoorIdentity : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Name of the Front Door which is globally unique. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + string FrontDoorName { get; set; } + /// Name of the Frontend endpoint which is unique within the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + string FrontendEndpointName { get; set; } + /// Resource identity path + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource identity path", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// The name of the Web Application Firewall Policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + string PolicyName { get; set; } + /// Name of the Resource group within the Azure subscription. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + string ResourceGroupName { get; set; } + /// Name of the Rules Engine which is unique within the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + string RulesEngineName { get; set; } + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + string SubscriptionId { get; set; } + + } + internal partial interface IFrontDoorIdentityInternal + + { + /// Name of the Front Door which is globally unique. + string FrontDoorName { get; set; } + /// Name of the Frontend endpoint which is unique within the Front Door. + string FrontendEndpointName { get; set; } + /// Resource identity path + string Id { get; set; } + /// The name of the Web Application Firewall Policy. + string PolicyName { get; set; } + /// Name of the Resource group within the Azure subscription. + string ResourceGroupName { get; set; } + /// Name of the Rules Engine which is unique within the Front Door. + string RulesEngineName { get; set; } + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + string SubscriptionId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.json.cs new file mode 100644 index 000000000000..b10157fa445a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.json.cs @@ -0,0 +1,119 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class FrontDoorIdentity + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorIdentity(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontDoorIdentity(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;} + {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;} + {_policyName = If( json?.PropertyT("policyName"), out var __jsonPolicyName) ? (string)__jsonPolicyName : (string)_policyName;} + {_frontDoorName = If( json?.PropertyT("frontDoorName"), out var __jsonFrontDoorName) ? (string)__jsonFrontDoorName : (string)_frontDoorName;} + {_frontendEndpointName = If( json?.PropertyT("frontendEndpointName"), out var __jsonFrontendEndpointName) ? (string)__jsonFrontendEndpointName : (string)_frontendEndpointName;} + {_rulesEngineName = If( json?.PropertyT("rulesEngineName"), out var __jsonRulesEngineName) ? (string)__jsonRulesEngineName : (string)_rulesEngineName;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); + AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); + AddIf( null != (((object)this._policyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._policyName.ToString()) : null, "policyName" ,container.Add ); + AddIf( null != (((object)this._frontDoorName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._frontDoorName.ToString()) : null, "frontDoorName" ,container.Add ); + AddIf( null != (((object)this._frontendEndpointName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._frontendEndpointName.ToString()) : null, "frontendEndpointName" ,container.Add ); + AddIf( null != (((object)this._rulesEngineName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._rulesEngineName.ToString()) : null, "rulesEngineName" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.PowerShell.cs new file mode 100644 index 000000000000..507dd72af721 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set + /// of results. + /// + [System.ComponentModel.TypeConverter(typeof(FrontDoorListResultTypeConverter))] + public partial class FrontDoorListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontDoorListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontDoorListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontDoorListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontDoorListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set + /// of results. + [System.ComponentModel.TypeConverter(typeof(FrontDoorListResultTypeConverter))] + public partial interface IFrontDoorListResult + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.TypeConverter.cs new file mode 100644 index 000000000000..26346d6c3259 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontDoorListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontDoorListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontDoorListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontDoorListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.cs new file mode 100644 index 000000000000..fe281e33669b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.cs @@ -0,0 +1,82 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set + /// of results. + /// + public partial class FrontDoorListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of Front Door objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of Front Doors within a resource group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public FrontDoorListResult() + { + + } + } + /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set + /// of results. + public partial interface IFrontDoorListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// URL to get the next set of Front Door objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to get the next set of Front Door objects if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of Front Doors within a resource group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of Front Doors within a resource group.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor) })] + System.Collections.Generic.List Value { get; } + + } + /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set + /// of results. + internal partial interface IFrontDoorListResultInternal + + { + /// URL to get the next set of Front Door objects if there are any. + string NextLink { get; set; } + /// List of Front Doors within a resource group. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.json.cs new file mode 100644 index 000000000000..6e2804190ccf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set + /// of results. + /// + public partial class FrontDoorListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontDoorListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.PowerShell.cs new file mode 100644 index 000000000000..7bc39f3ff111 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.PowerShell.cs @@ -0,0 +1,268 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// The JSON object that contains the properties required to create an endpoint. + [System.ComponentModel.TypeConverter(typeof(FrontDoorPropertiesTypeConverter))] + public partial class FrontDoorProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontDoorProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontDoorProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontDoorProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Cname")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).Cname = (string) content.GetValueForProperty("Cname",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).Cname, global::System.Convert.ToString); + } + if (content.Contains("FrontdoorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).FrontdoorId = (string) content.GetValueForProperty("FrontdoorId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).FrontdoorId, global::System.Convert.ToString); + } + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).RulesEngine = (System.Collections.Generic.List) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).RulesEngine, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); + } + if (content.Contains("ExtendedProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ExtendedProperty = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) content.GetValueForProperty("ExtendedProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ExtendedProperty, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RoutingRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPoolsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontDoorProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Cname")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).Cname = (string) content.GetValueForProperty("Cname",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).Cname, global::System.Convert.ToString); + } + if (content.Contains("FrontdoorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).FrontdoorId = (string) content.GetValueForProperty("FrontdoorId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).FrontdoorId, global::System.Convert.ToString); + } + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).RulesEngine = (System.Collections.Generic.List) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).RulesEngine, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); + } + if (content.Contains("ExtendedProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ExtendedProperty = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) content.GetValueForProperty("ExtendedProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ExtendedProperty, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RoutingRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPoolsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The JSON object that contains the properties required to create an endpoint. + [System.ComponentModel.TypeConverter(typeof(FrontDoorPropertiesTypeConverter))] + public partial interface IFrontDoorProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.TypeConverter.cs new file mode 100644 index 000000000000..99a0bf120c41 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontDoorPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontDoorProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontDoorProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontDoorProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.cs new file mode 100644 index 000000000000..dd1acf72c8f9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.cs @@ -0,0 +1,227 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The JSON object that contains the properties required to create an endpoint. + public partial class FrontDoorProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters __frontDoorUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorUpdateParameters(); + + /// Backend pools available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List BackendPool { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).BackendPool; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).BackendPool = value ?? null /* arrayOf */; } + + /// Settings for all backendPools + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).BackendPoolsSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).BackendPoolsSetting = value ?? null /* model class */; } + + /// Backing field for property. + private string _cname; + + /// The host that each frontendEndpoint must CNAME to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Cname { get => this._cname; } + + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).EnabledState = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties _extendedProperty; + + /// Key-Value pair representing additional properties for frontdoor. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get => (this._extendedProperty = this._extendedProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties()); } + + /// A friendly name for the frontDoor + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).FriendlyName = value ?? null; } + + /// Backing field for property. + private string _frontdoorId; + + /// The Id of the frontdoor. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string FrontdoorId { get => this._frontdoorId; } + + /// Frontend endpoints available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List FrontendEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).FrontendEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).FrontendEndpoint = value ?? null /* arrayOf */; } + + /// Health probe settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).HealthProbeSetting = value ?? null /* arrayOf */; } + + /// Load balancing settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).LoadBalancingSetting = value ?? null /* arrayOf */; } + + /// Internal Acessors for Cname + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.Cname { get => this._cname; set { {_cname = value;} } } + + /// Internal Acessors for ExtendedProperty + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.ExtendedProperty { get => (this._extendedProperty = this._extendedProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties()); set { {_extendedProperty = value;} } } + + /// Internal Acessors for FrontdoorId + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.FrontdoorId { get => this._frontdoorId; set { {_frontdoorId = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + + /// Internal Acessors for RulesEngine + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.RulesEngine { get => this._rulesEngine; set { {_rulesEngine = value;} } } + + /// Backing field for property. + private string _provisioningState; + + /// Provisioning state of the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _resourceState; + + /// Resource status of the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceState { get => this._resourceState; } + + /// Routing rules associated with this Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List RoutingRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).RoutingRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).RoutingRule = value ?? null /* arrayOf */; } + + /// Backing field for property. + private System.Collections.Generic.List _rulesEngine; + + /// Rules Engine Configurations available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List RulesEngine { get => this._rulesEngine; } + + /// Creates an new instance. + public FrontDoorProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__frontDoorUpdateParameters), __frontDoorUpdateParameters); + await eventListener.AssertObjectIsValid(nameof(__frontDoorUpdateParameters), __frontDoorUpdateParameters); + } + } + /// The JSON object that contains the properties required to create an endpoint. + public partial interface IFrontDoorProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters + { + /// The host that each frontendEndpoint must CNAME to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The host that each frontendEndpoint must CNAME to.", + SerializedName = @"cname", + PossibleTypes = new [] { typeof(string) })] + string Cname { get; } + /// Key-Value pair representing additional properties for frontdoor. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Key-Value pair representing additional properties for frontdoor.", + SerializedName = @"extendedProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get; } + /// The Id of the frontdoor. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The Id of the frontdoor.", + SerializedName = @"frontdoorId", + PossibleTypes = new [] { typeof(string) })] + string FrontdoorId { get; } + /// Provisioning state of the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning state of the Front Door.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// Resource status of the Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status of the Front Door.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// Rules Engine Configurations available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Rules Engine Configurations available to routing rules.", + SerializedName = @"rulesEngines", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) })] + System.Collections.Generic.List RulesEngine { get; } + + } + /// The JSON object that contains the properties required to create an endpoint. + internal partial interface IFrontDoorPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal + { + /// The host that each frontendEndpoint must CNAME to. + string Cname { get; set; } + /// Key-Value pair representing additional properties for frontdoor. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get; set; } + /// The Id of the frontdoor. + string FrontdoorId { get; set; } + /// Provisioning state of the Front Door. + string ProvisioningState { get; set; } + /// Resource status of the Front Door. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// Rules Engine Configurations available to routing rules. + System.Collections.Generic.List RulesEngine { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.json.cs new file mode 100644 index 000000000000..9eee9048617b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.json.cs @@ -0,0 +1,146 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The JSON object that contains the properties required to create an endpoint. + public partial class FrontDoorProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontDoorProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __frontDoorUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorUpdateParameters(json); + {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_cname = If( json?.PropertyT("cname"), out var __jsonCname) ? (string)__jsonCname : (string)_cname;} + {_frontdoorId = If( json?.PropertyT("frontdoorId"), out var __jsonFrontdoorId) ? (string)__jsonFrontdoorId : (string)_frontdoorId;} + {_rulesEngine = If( json?.PropertyT("rulesEngines"), out var __jsonRulesEngines) ? If( __jsonRulesEngines as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(__u) )) ))() : null : _rulesEngine;} + {_extendedProperty = If( json?.PropertyT("extendedProperties"), out var __jsonExtendedProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties.FromJson(__jsonExtendedProperties) : _extendedProperty;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __frontDoorUpdateParameters?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._cname)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._cname.ToString()) : null, "cname" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._frontdoorId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._frontdoorId.ToString()) : null, "frontdoorId" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._rulesEngine) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._rulesEngine ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("rulesEngines",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != this._extendedProperty ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._extendedProperty.ToJson(null,serializationMode) : null, "extendedProperties" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.PowerShell.cs new file mode 100644 index 000000000000..cdc4144a91c5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.PowerShell.cs @@ -0,0 +1,165 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Key-Value pair representing additional properties for frontdoor. + [System.ComponentModel.TypeConverter(typeof(FrontDoorPropertiesExtendedPropertiesTypeConverter))] + public partial class FrontDoorPropertiesExtendedProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontDoorPropertiesExtendedProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontDoorPropertiesExtendedProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontDoorPropertiesExtendedProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontDoorPropertiesExtendedProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Key-Value pair representing additional properties for frontdoor. + [System.ComponentModel.TypeConverter(typeof(FrontDoorPropertiesExtendedPropertiesTypeConverter))] + public partial interface IFrontDoorPropertiesExtendedProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.TypeConverter.cs new file mode 100644 index 000000000000..df41c652515f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontDoorPropertiesExtendedPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontDoorPropertiesExtendedProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontDoorPropertiesExtendedProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontDoorPropertiesExtendedProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.cs new file mode 100644 index 000000000000..1827b54970f6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.cs @@ -0,0 +1,35 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Key-Value pair representing additional properties for frontdoor. + public partial class FrontDoorPropertiesExtendedProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedPropertiesInternal + { + + /// Creates an new instance. + public FrontDoorPropertiesExtendedProperties() + { + + } + } + /// Key-Value pair representing additional properties for frontdoor. + public partial interface IFrontDoorPropertiesExtendedProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray + { + + } + /// Key-Value pair representing additional properties for frontdoor. + internal partial interface IFrontDoorPropertiesExtendedPropertiesInternal + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.dictionary.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.dictionary.cs new file mode 100644 index 000000000000..4ecb2bf5f463 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.dictionary.cs @@ -0,0 +1,75 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class FrontDoorPropertiesExtendedProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.json.cs new file mode 100644 index 000000000000..22018b1d13d0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.json.cs @@ -0,0 +1,110 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Key-Value pair representing additional properties for frontdoor. + public partial class FrontDoorPropertiesExtendedProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorPropertiesExtendedProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + /// + internal FrontDoorPropertiesExtendedProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.PowerShell.cs new file mode 100644 index 000000000000..96a595fe4ffd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.PowerShell.cs @@ -0,0 +1,220 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// The properties needed to update a Front Door + [System.ComponentModel.TypeConverter(typeof(FrontDoorUpdateParametersTypeConverter))] + public partial class FrontDoorUpdateParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontDoorUpdateParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontDoorUpdateParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontDoorUpdateParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RoutingRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPoolsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontDoorUpdateParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RoutingRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("LoadBalancingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthProbeSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("BackendPoolsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties needed to update a Front Door + [System.ComponentModel.TypeConverter(typeof(FrontDoorUpdateParametersTypeConverter))] + public partial interface IFrontDoorUpdateParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.TypeConverter.cs new file mode 100644 index 000000000000..4d1ced16b3a2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontDoorUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontDoorUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontDoorUpdateParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontDoorUpdateParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.cs new file mode 100644 index 000000000000..7f1eb3ba49bc --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.cs @@ -0,0 +1,202 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The properties needed to update a Front Door + public partial class FrontDoorUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _backendPool; + + /// Backend pools available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List BackendPool { get => this._backendPool; set => this._backendPool = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings _backendPoolsSetting; + + /// Settings for all backendPools + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => (this._backendPoolsSetting = this._backendPoolsSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings()); set => this._backendPoolsSetting = value; } + + /// Backing field for property. + private string _enabledState; + + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string EnabledState { get => this._enabledState; set => this._enabledState = value; } + + /// Backing field for property. + private string _friendlyName; + + /// A friendly name for the frontDoor + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } + + /// Backing field for property. + private System.Collections.Generic.List _frontendEndpoint; + + /// Frontend endpoints available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List FrontendEndpoint { get => this._frontendEndpoint; set => this._frontendEndpoint = value; } + + /// Backing field for property. + private System.Collections.Generic.List _healthProbeSetting; + + /// Health probe settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List HealthProbeSetting { get => this._healthProbeSetting; set => this._healthProbeSetting = value; } + + /// Backing field for property. + private System.Collections.Generic.List _loadBalancingSetting; + + /// Load balancing settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List LoadBalancingSetting { get => this._loadBalancingSetting; set => this._loadBalancingSetting = value; } + + /// Backing field for property. + private System.Collections.Generic.List _routingRule; + + /// Routing rules associated with this Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List RoutingRule { get => this._routingRule; set => this._routingRule = value; } + + /// Creates an new instance. + public FrontDoorUpdateParameters() + { + + } + } + /// The properties needed to update a Front Door + public partial interface IFrontDoorUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Backend pools available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Backend pools available to routing rules.", + SerializedName = @"backendPools", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] + System.Collections.Generic.List BackendPool { get; set; } + /// Settings for all backendPools + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Settings for all backendPools", + SerializedName = @"backendPoolsSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get; set; } + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// A friendly name for the frontDoor + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A friendly name for the frontDoor", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// Frontend endpoints available to routing rules. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Frontend endpoints available to routing rules.", + SerializedName = @"frontendEndpoints", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] + System.Collections.Generic.List FrontendEndpoint { get; set; } + /// Health probe settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Health probe settings associated with this Front Door instance.", + SerializedName = @"healthProbeSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] + System.Collections.Generic.List HealthProbeSetting { get; set; } + /// Load balancing settings associated with this Front Door instance. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Load balancing settings associated with this Front Door instance.", + SerializedName = @"loadBalancingSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] + System.Collections.Generic.List LoadBalancingSetting { get; set; } + /// Routing rules associated with this Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Routing rules associated with this Front Door.", + SerializedName = @"routingRules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] + System.Collections.Generic.List RoutingRule { get; set; } + + } + /// The properties needed to update a Front Door + internal partial interface IFrontDoorUpdateParametersInternal + + { + /// Backend pools available to routing rules. + System.Collections.Generic.List BackendPool { get; set; } + /// Settings for all backendPools + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get; set; } + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// A friendly name for the frontDoor + string FriendlyName { get; set; } + /// Frontend endpoints available to routing rules. + System.Collections.Generic.List FrontendEndpoint { get; set; } + /// Health probe settings associated with this Front Door instance. + System.Collections.Generic.List HealthProbeSetting { get; set; } + /// Load balancing settings associated with this Front Door instance. + System.Collections.Generic.List LoadBalancingSetting { get; set; } + /// Routing rules associated with this Front Door. + System.Collections.Generic.List RoutingRule { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.json.cs new file mode 100644 index 000000000000..081efeb83598 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.json.cs @@ -0,0 +1,162 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The properties needed to update a Front Door + public partial class FrontDoorUpdateParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorUpdateParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontDoorUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)_friendlyName;} + {_routingRule = If( json?.PropertyT("routingRules"), out var __jsonRoutingRules) ? If( __jsonRoutingRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule.FromJson(__u) )) ))() : null : _routingRule;} + {_loadBalancingSetting = If( json?.PropertyT("loadBalancingSettings"), out var __jsonLoadBalancingSettings) ? If( __jsonLoadBalancingSettings as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel.FromJson(__p) )) ))() : null : _loadBalancingSetting;} + {_healthProbeSetting = If( json?.PropertyT("healthProbeSettings"), out var __jsonHealthProbeSettings) ? If( __jsonHealthProbeSettings as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel.FromJson(__k) )) ))() : null : _healthProbeSetting;} + {_backendPool = If( json?.PropertyT("backendPools"), out var __jsonBackendPools) ? If( __jsonBackendPools as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool.FromJson(__f) )) ))() : null : _backendPool;} + {_frontendEndpoint = If( json?.PropertyT("frontendEndpoints"), out var __jsonFrontendEndpoints) ? If( __jsonFrontendEndpoints as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __b) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint.FromJson(__a) )) ))() : null : _frontendEndpoint;} + {_backendPoolsSetting = If( json?.PropertyT("backendPoolsSettings"), out var __jsonBackendPoolsSettings) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings.FromJson(__jsonBackendPoolsSettings) : _backendPoolsSetting;} + {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._friendlyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._friendlyName.ToString()) : null, "friendlyName" ,container.Add ); + if (null != this._routingRule) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._routingRule ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("routingRules",__w); + } + if (null != this._loadBalancingSetting) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._loadBalancingSetting ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("loadBalancingSettings",__r); + } + if (null != this._healthProbeSetting) + { + var __m = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __n in this._healthProbeSetting ) + { + AddIf(__n?.ToJson(null, serializationMode) ,__m.Add); + } + container.Add("healthProbeSettings",__m); + } + if (null != this._backendPool) + { + var __h = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __i in this._backendPool ) + { + AddIf(__i?.ToJson(null, serializationMode) ,__h.Add); + } + container.Add("backendPools",__h); + } + if (null != this._frontendEndpoint) + { + var __c = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __d in this._frontendEndpoint ) + { + AddIf(__d?.ToJson(null, serializationMode) ,__c.Add); + } + container.Add("frontendEndpoints",__c); + } + AddIf( null != this._backendPoolsSetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._backendPoolsSetting.ToJson(null,serializationMode) : null, "backendPoolsSettings" ,container.Add ); + AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.PowerShell.cs new file mode 100644 index 000000000000..25e5d3d297df --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.PowerShell.cs @@ -0,0 +1,340 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// A frontend endpoint used for routing. + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointTypeConverter))] + public partial class FrontendEndpoint + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontendEndpoint(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontendEndpoint(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontendEndpoint(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).HostName, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityEnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityTtlInSeconds")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityTtlInSeconds = (int?) content.GetValueForProperty("SessionAffinityTtlInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityTtlInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CustomHttpsConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) content.GetValueForProperty("CustomHttpsConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningState = (string) content.GetValueForProperty("CustomHttpsProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsProvisioningSubstate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningSubstate = (string) content.GetValueForProperty("CustomHttpsProvisioningSubstate",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningSubstate, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsConfigurationKeyVaultCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationKeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CustomHttpsConfigurationFrontDoorCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationFrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CertificateSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateSource = (string) content.GetValueForProperty("CertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateSource, global::System.Convert.ToString); + } + if (content.Contains("ProtocolType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ProtocolType = (string) content.GetValueForProperty("ProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ProtocolType, global::System.Convert.ToString); + } + if (content.Contains("MinimumTlsVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).MinimumTlsVersion, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterVault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); + } + if (content.Contains("SecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretName = (string) content.GetValueForProperty("SecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretName, global::System.Convert.ToString); + } + if (content.Contains("SecretVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretVersion = (string) content.GetValueForProperty("SecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretVersion, global::System.Convert.ToString); + } + if (content.Contains("Vault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Vault = (string) content.GetValueForProperty("Vault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Vault, global::System.Convert.ToString); + } + if (content.Contains("CertificateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateType = (string) content.GetValueForProperty("CertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateType, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontendEndpoint(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).HostName, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityEnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityTtlInSeconds")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityTtlInSeconds = (int?) content.GetValueForProperty("SessionAffinityTtlInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityTtlInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CustomHttpsConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) content.GetValueForProperty("CustomHttpsConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningState = (string) content.GetValueForProperty("CustomHttpsProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsProvisioningSubstate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningSubstate = (string) content.GetValueForProperty("CustomHttpsProvisioningSubstate",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningSubstate, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsConfigurationKeyVaultCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationKeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CustomHttpsConfigurationFrontDoorCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationFrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CertificateSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateSource = (string) content.GetValueForProperty("CertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateSource, global::System.Convert.ToString); + } + if (content.Contains("ProtocolType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ProtocolType = (string) content.GetValueForProperty("ProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ProtocolType, global::System.Convert.ToString); + } + if (content.Contains("MinimumTlsVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).MinimumTlsVersion, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterVault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); + } + if (content.Contains("SecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretName = (string) content.GetValueForProperty("SecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretName, global::System.Convert.ToString); + } + if (content.Contains("SecretVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretVersion = (string) content.GetValueForProperty("SecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretVersion, global::System.Convert.ToString); + } + if (content.Contains("Vault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Vault = (string) content.GetValueForProperty("Vault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Vault, global::System.Convert.ToString); + } + if (content.Contains("CertificateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateType = (string) content.GetValueForProperty("CertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// A frontend endpoint used for routing. + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointTypeConverter))] + public partial interface IFrontendEndpoint + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.TypeConverter.cs new file mode 100644 index 000000000000..3577f2f19829 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontendEndpointTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontendEndpoint.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontendEndpoint.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontendEndpoint.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.cs new file mode 100644 index 000000000000..b5c3e3b280f0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.cs @@ -0,0 +1,440 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// A frontend endpoint used for routing. + public partial class FrontendEndpoint : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); + + /// Defines the source of the SSL certificate + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string CertificateSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationCertificateSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationCertificateSource = value ?? null; } + + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string CertificateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).FrontDoorCertificateSourceParameterCertificateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).FrontDoorCertificateSourceParameterCertificateType = value ?? null; } + + /// Provisioning status of Custom Https of the frontendEndpoint. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string CustomHttpsProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningState; } + + /// + /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string CustomHttpsProvisioningSubstate { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningSubstate; } + + /// The host name of the frontendEndpoint. Must be a domain name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).HostName = value ?? null; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } + + /// Internal Acessors for CustomHttpsConfiguration + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfiguration = value ?? null /* model class */; } + + /// + /// Internal Acessors for CustomHttpsConfigurationFrontDoorCertificateSourceParameter + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsConfigurationFrontDoorCertificateSourceParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationFrontDoorCertificateSourceParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = value ?? null /* model class */; } + + /// + /// Internal Acessors for CustomHttpsConfigurationKeyVaultCertificateSourceParameter + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsConfigurationKeyVaultCertificateSourceParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationKeyVaultCertificateSourceParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = value ?? null /* model class */; } + + /// Internal Acessors for CustomHttpsProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningState = value ?? null; } + + /// Internal Acessors for CustomHttpsProvisioningSubstate + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsProvisioningSubstate { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningSubstate; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningSubstate = value ?? null; } + + /// Internal Acessors for KeyVaultCertificateSourceParameterVault + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.KeyVaultCertificateSourceParameterVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterVault = value ?? null /* model class */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProtocolType + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.ProtocolType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationProtocolType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationProtocolType = value ?? null; } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).ResourceState = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.Type { get => this._type; set { {_type = value;} } } + + /// Internal Acessors for WebApplicationFirewallPolicyLink + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } + + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string MinimumTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationMinimumTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationMinimumTlsVersion = value ?? null; } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties _property; + + /// Properties of the Frontend endpoint + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties()); set => this._property = value; } + + /// Defines the TLS extension protocol that is used for secure delivery + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ProtocolType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationProtocolType; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).ResourceState; } + + /// The name of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string SecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterSecretName = value ?? null; } + + /// The version of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string SecretVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterSecretVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterSecretVersion = value ?? null; } + + /// + /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string SessionAffinityEnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).SessionAffinityEnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).SessionAffinityEnabledState = value ?? null; } + + /// + /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public int? SessionAffinityTtlInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).SessionAffinityTtlSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).SessionAffinityTtlSecond = value ?? default(int); } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Vault { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).VaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).VaultId = value ?? null; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).WebApplicationFirewallPolicyLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).WebApplicationFirewallPolicyLinkId = value ?? null; } + + /// Creates an new instance. + public FrontendEndpoint() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__subResource), __subResource); + await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); + } + } + /// A frontend endpoint used for routing. + public partial interface IFrontendEndpoint : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource + { + /// Defines the source of the SSL certificate + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the source of the SSL certificate", + SerializedName = @"certificateSource", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + string CertificateSource { get; set; } + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", + SerializedName = @"certificateType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + string CertificateType { get; set; } + /// Provisioning status of Custom Https of the frontendEndpoint. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning status of Custom Https of the frontendEndpoint.", + SerializedName = @"customHttpsProvisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabling", "Enabled", "Disabling", "Disabled", "Failed")] + string CustomHttpsProvisioningState { get; } + /// + /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.", + SerializedName = @"customHttpsProvisioningSubstate", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", "CertificateDeployed", "DeletingCertificate", "CertificateDeleted")] + string CustomHttpsProvisioningSubstate { get; } + /// The host name of the frontendEndpoint. Must be a domain name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The host name of the frontendEndpoint. Must be a domain name.", + SerializedName = @"hostName", + PossibleTypes = new [] { typeof(string) })] + string HostName { get; set; } + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", + SerializedName = @"minimumTlsVersion", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + string MinimumTlsVersion { get; set; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Defines the TLS extension protocol that is used for secure delivery + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = true, + Update = true, + Description = @"Defines the TLS extension protocol that is used for secure delivery", + SerializedName = @"protocolType", + PossibleTypes = new [] { typeof(string) })] + string ProtocolType { get; } + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// The name of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretName", + PossibleTypes = new [] { typeof(string) })] + string SecretName { get; set; } + /// The version of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretVersion", + PossibleTypes = new [] { typeof(string) })] + string SecretVersion { get; set; } + /// + /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'", + SerializedName = @"sessionAffinityEnabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string SessionAffinityEnabledState { get; set; } + /// + /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.", + SerializedName = @"sessionAffinityTtlSeconds", + PossibleTypes = new [] { typeof(int) })] + int? SessionAffinityTtlInSeconds { get; set; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Vault { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string WebApplicationFirewallPolicyLinkId { get; set; } + + } + /// A frontend endpoint used for routing. + internal partial interface IFrontendEndpointInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal + { + /// Defines the source of the SSL certificate + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + string CertificateSource { get; set; } + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + string CertificateType { get; set; } + /// The configuration specifying how to enable HTTPS + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get; set; } + /// + /// Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters CustomHttpsConfigurationFrontDoorCertificateSourceParameter { get; set; } + /// KeyVault certificate source parameters (if certificateSource=AzureKeyVault) + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters CustomHttpsConfigurationKeyVaultCertificateSourceParameter { get; set; } + /// Provisioning status of Custom Https of the frontendEndpoint. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabling", "Enabled", "Disabling", "Disabled", "Failed")] + string CustomHttpsProvisioningState { get; set; } + /// + /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", "CertificateDeployed", "DeletingCertificate", "CertificateDeleted")] + string CustomHttpsProvisioningSubstate { get; set; } + /// The host name of the frontendEndpoint. Must be a domain name. + string HostName { get; set; } + /// The Key Vault containing the SSL certificate + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault KeyVaultCertificateSourceParameterVault { get; set; } + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + string MinimumTlsVersion { get; set; } + /// Resource name. + string Name { get; set; } + /// Properties of the Frontend endpoint + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties Property { get; set; } + /// Defines the TLS extension protocol that is used for secure delivery + string ProtocolType { get; set; } + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// The name of the Key Vault secret representing the full certificate PFX + string SecretName { get; set; } + /// The version of the Key Vault secret representing the full certificate PFX + string SecretVersion { get; set; } + /// + /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string SessionAffinityEnabledState { get; set; } + /// + /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + /// + int? SessionAffinityTtlInSeconds { get; set; } + /// Resource type. + string Type { get; set; } + /// Resource ID. + string Vault { get; set; } + /// Defines the Web Application Firewall policy for each host (if applicable) + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get; set; } + /// Resource ID. + string WebApplicationFirewallPolicyLinkId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.json.cs new file mode 100644 index 000000000000..21c037a14d5b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.json.cs @@ -0,0 +1,117 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// A frontend endpoint used for routing. + public partial class FrontendEndpoint + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpoint(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontendEndpoint(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties.FromJson(__jsonProperties) : _property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __subResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.PowerShell.cs new file mode 100644 index 000000000000..16edc6a3f461 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines the Resource ID for a Frontend Endpoint. + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointLinkTypeConverter))] + public partial class FrontendEndpointLink + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontendEndpointLink(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontendEndpointLink(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontendEndpointLink(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontendEndpointLink(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines the Resource ID for a Frontend Endpoint. + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointLinkTypeConverter))] + public partial interface IFrontendEndpointLink + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.TypeConverter.cs new file mode 100644 index 000000000000..b90b70f77317 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontendEndpointLinkTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontendEndpointLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontendEndpointLink.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontendEndpointLink.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.cs new file mode 100644 index 000000000000..8934037de35a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the Resource ID for a Frontend Endpoint. + public partial class FrontendEndpointLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Creates an new instance. + public FrontendEndpointLink() + { + + } + } + /// Defines the Resource ID for a Frontend Endpoint. + public partial interface IFrontendEndpointLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// Defines the Resource ID for a Frontend Endpoint. + internal partial interface IFrontendEndpointLinkInternal + + { + /// Resource ID. + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.json.cs new file mode 100644 index 000000000000..d23f1858d84d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.json.cs @@ -0,0 +1,108 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the Resource ID for a Frontend Endpoint. + public partial class FrontendEndpointLink + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointLink(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontendEndpointLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.PowerShell.cs new file mode 100644 index 000000000000..0e9fecc0c98d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.PowerShell.cs @@ -0,0 +1,310 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// The JSON object that contains the properties required to create a frontend endpoint. + /// + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointPropertiesTypeConverter))] + public partial class FrontendEndpointProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontendEndpointProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontendEndpointProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontendEndpointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomHttpsConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) content.GetValueForProperty("CustomHttpsConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningState = (string) content.GetValueForProperty("CustomHttpsProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsProvisioningSubstate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningSubstate = (string) content.GetValueForProperty("CustomHttpsProvisioningSubstate",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningSubstate, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityEnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityTtlSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond = (int?) content.GetValueForProperty("SessionAffinityTtlSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CustomHttpsConfigurationKeyVaultCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationKeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CustomHttpsConfigurationFrontDoorCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationFrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CustomHttpsConfigurationCertificateSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationCertificateSource = (string) content.GetValueForProperty("CustomHttpsConfigurationCertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationCertificateSource, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsConfigurationProtocolType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationProtocolType = (string) content.GetValueForProperty("CustomHttpsConfigurationProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationProtocolType, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsConfigurationMinimumTlsVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationMinimumTlsVersion = (string) content.GetValueForProperty("CustomHttpsConfigurationMinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationMinimumTlsVersion, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterVault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); + } + if (content.Contains("KeyVaultCertificateSourceParameterSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretName = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretName, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterSecretVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretVersion = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretVersion, global::System.Convert.ToString); + } + if (content.Contains("VaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).VaultId, global::System.Convert.ToString); + } + if (content.Contains("FrontDoorCertificateSourceParameterCertificateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).FrontDoorCertificateSourceParameterCertificateType = (string) content.GetValueForProperty("FrontDoorCertificateSourceParameterCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).FrontDoorCertificateSourceParameterCertificateType, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontendEndpointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomHttpsConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) content.GetValueForProperty("CustomHttpsConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningState = (string) content.GetValueForProperty("CustomHttpsProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsProvisioningSubstate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningSubstate = (string) content.GetValueForProperty("CustomHttpsProvisioningSubstate",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningSubstate, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityEnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityTtlSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond = (int?) content.GetValueForProperty("SessionAffinityTtlSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CustomHttpsConfigurationKeyVaultCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationKeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CustomHttpsConfigurationFrontDoorCertificateSourceParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationFrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); + } + if (content.Contains("CustomHttpsConfigurationCertificateSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationCertificateSource = (string) content.GetValueForProperty("CustomHttpsConfigurationCertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationCertificateSource, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsConfigurationProtocolType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationProtocolType = (string) content.GetValueForProperty("CustomHttpsConfigurationProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationProtocolType, global::System.Convert.ToString); + } + if (content.Contains("CustomHttpsConfigurationMinimumTlsVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationMinimumTlsVersion = (string) content.GetValueForProperty("CustomHttpsConfigurationMinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationMinimumTlsVersion, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterVault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); + } + if (content.Contains("KeyVaultCertificateSourceParameterSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretName = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretName, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultCertificateSourceParameterSecretVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretVersion = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretVersion, global::System.Convert.ToString); + } + if (content.Contains("VaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).VaultId, global::System.Convert.ToString); + } + if (content.Contains("FrontDoorCertificateSourceParameterCertificateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).FrontDoorCertificateSourceParameterCertificateType = (string) content.GetValueForProperty("FrontDoorCertificateSourceParameterCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).FrontDoorCertificateSourceParameterCertificateType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The JSON object that contains the properties required to create a frontend endpoint. + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointPropertiesTypeConverter))] + public partial interface IFrontendEndpointProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.TypeConverter.cs new file mode 100644 index 000000000000..1aa764b016c5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontendEndpointPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontendEndpointProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontendEndpointProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontendEndpointProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.cs new file mode 100644 index 000000000000..78a7edd1f173 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.cs @@ -0,0 +1,336 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The JSON object that contains the properties required to create a frontend endpoint. + /// + public partial class FrontendEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters __frontendEndpointUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParameters(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfiguration; + + /// The configuration specifying how to enable HTTPS + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get => (this._customHttpsConfiguration = this._customHttpsConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration()); set => this._customHttpsConfiguration = value; } + + /// Defines the source of the SSL certificate + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string CustomHttpsConfigurationCertificateSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).CertificateSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).CertificateSource = value ?? null; } + + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string CustomHttpsConfigurationMinimumTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).MinimumTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).MinimumTlsVersion = value ?? null; } + + /// Defines the TLS extension protocol that is used for secure delivery + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string CustomHttpsConfigurationProtocolType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).ProtocolType; } + + /// Backing field for property. + private string _customHttpsProvisioningState; + + /// Provisioning status of Custom Https of the frontendEndpoint. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CustomHttpsProvisioningState { get => this._customHttpsProvisioningState; } + + /// Backing field for property. + private string _customHttpsProvisioningSubstate; + + /// + /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CustomHttpsProvisioningSubstate { get => this._customHttpsProvisioningSubstate; } + + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string FrontDoorCertificateSourceParameterCertificateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).FrontDoorCertificateSourceParameterCertificateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).FrontDoorCertificateSourceParameterCertificateType = value ?? null; } + + /// The host name of the frontendEndpoint. Must be a domain name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).HostName = value ?? null; } + + /// The name of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string KeyVaultCertificateSourceParameterSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterSecretName = value ?? null; } + + /// The version of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string KeyVaultCertificateSourceParameterSecretVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterSecretVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterSecretVersion = value ?? null; } + + /// Internal Acessors for CustomHttpsConfiguration + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsConfiguration { get => (this._customHttpsConfiguration = this._customHttpsConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration()); set { {_customHttpsConfiguration = value;} } } + + /// + /// Internal Acessors for CustomHttpsConfigurationFrontDoorCertificateSourceParameter + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsConfigurationFrontDoorCertificateSourceParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).FrontDoorCertificateSourceParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).FrontDoorCertificateSourceParameter = value ?? null /* model class */; } + + /// + /// Internal Acessors for CustomHttpsConfigurationKeyVaultCertificateSourceParameter + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsConfigurationKeyVaultCertificateSourceParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameter = value ?? null /* model class */; } + + /// Internal Acessors for CustomHttpsConfigurationProtocolType + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsConfigurationProtocolType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).ProtocolType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).ProtocolType = value ?? null; } + + /// Internal Acessors for CustomHttpsProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsProvisioningState { get => this._customHttpsProvisioningState; set { {_customHttpsProvisioningState = value;} } } + + /// Internal Acessors for CustomHttpsProvisioningSubstate + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsProvisioningSubstate { get => this._customHttpsProvisioningSubstate; set { {_customHttpsProvisioningSubstate = value;} } } + + /// Internal Acessors for KeyVaultCertificateSourceParameterVault + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.KeyVaultCertificateSourceParameterVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterVault = value ?? null /* model class */; } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + + /// Internal Acessors for WebApplicationFirewallPolicyLink + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal.WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } + + /// Backing field for property. + private string _resourceState; + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceState { get => this._resourceState; } + + /// + /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string SessionAffinityEnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).SessionAffinityEnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).SessionAffinityEnabledState = value ?? null; } + + /// + /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public int? SessionAffinityTtlSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).SessionAffinityTtlSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).SessionAffinityTtlSecond = value ?? default(int); } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string VaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).VaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).VaultId = value ?? null; } + + /// Defines the Web Application Firewall policy for each host (if applicable) + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLinkId = value ?? null; } + + /// Creates an new instance. + public FrontendEndpointProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__frontendEndpointUpdateParameters), __frontendEndpointUpdateParameters); + await eventListener.AssertObjectIsValid(nameof(__frontendEndpointUpdateParameters), __frontendEndpointUpdateParameters); + } + } + /// The JSON object that contains the properties required to create a frontend endpoint. + public partial interface IFrontendEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters + { + /// Defines the source of the SSL certificate + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the source of the SSL certificate", + SerializedName = @"certificateSource", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + string CustomHttpsConfigurationCertificateSource { get; set; } + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", + SerializedName = @"minimumTlsVersion", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + string CustomHttpsConfigurationMinimumTlsVersion { get; set; } + /// Defines the TLS extension protocol that is used for secure delivery + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = true, + Update = true, + Description = @"Defines the TLS extension protocol that is used for secure delivery", + SerializedName = @"protocolType", + PossibleTypes = new [] { typeof(string) })] + string CustomHttpsConfigurationProtocolType { get; } + /// Provisioning status of Custom Https of the frontendEndpoint. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning status of Custom Https of the frontendEndpoint.", + SerializedName = @"customHttpsProvisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabling", "Enabled", "Disabling", "Disabled", "Failed")] + string CustomHttpsProvisioningState { get; } + /// + /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.", + SerializedName = @"customHttpsProvisioningSubstate", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", "CertificateDeployed", "DeletingCertificate", "CertificateDeleted")] + string CustomHttpsProvisioningSubstate { get; } + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", + SerializedName = @"certificateType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + string FrontDoorCertificateSourceParameterCertificateType { get; set; } + /// The name of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretName", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultCertificateSourceParameterSecretName { get; set; } + /// The version of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretVersion", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultCertificateSourceParameterSecretVersion { get; set; } + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string VaultId { get; set; } + + } + /// The JSON object that contains the properties required to create a frontend endpoint. + internal partial interface IFrontendEndpointPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal + { + /// The configuration specifying how to enable HTTPS + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get; set; } + /// Defines the source of the SSL certificate + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + string CustomHttpsConfigurationCertificateSource { get; set; } + /// + /// Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters CustomHttpsConfigurationFrontDoorCertificateSourceParameter { get; set; } + /// KeyVault certificate source parameters (if certificateSource=AzureKeyVault) + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters CustomHttpsConfigurationKeyVaultCertificateSourceParameter { get; set; } + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + string CustomHttpsConfigurationMinimumTlsVersion { get; set; } + /// Defines the TLS extension protocol that is used for secure delivery + string CustomHttpsConfigurationProtocolType { get; set; } + /// Provisioning status of Custom Https of the frontendEndpoint. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabling", "Enabled", "Disabling", "Disabled", "Failed")] + string CustomHttpsProvisioningState { get; set; } + /// + /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", "CertificateDeployed", "DeletingCertificate", "CertificateDeleted")] + string CustomHttpsProvisioningSubstate { get; set; } + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + string FrontDoorCertificateSourceParameterCertificateType { get; set; } + /// The name of the Key Vault secret representing the full certificate PFX + string KeyVaultCertificateSourceParameterSecretName { get; set; } + /// The version of the Key Vault secret representing the full certificate PFX + string KeyVaultCertificateSourceParameterSecretVersion { get; set; } + /// The Key Vault containing the SSL certificate + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault KeyVaultCertificateSourceParameterVault { get; set; } + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// Resource ID. + string VaultId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.json.cs new file mode 100644 index 000000000000..22278f0b30f5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.json.cs @@ -0,0 +1,127 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The JSON object that contains the properties required to create a frontend endpoint. + /// + public partial class FrontendEndpointProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontendEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __frontendEndpointUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParameters(json); + {_customHttpsConfiguration = If( json?.PropertyT("customHttpsConfiguration"), out var __jsonCustomHttpsConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration.FromJson(__jsonCustomHttpsConfiguration) : _customHttpsConfiguration;} + {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} + {_customHttpsProvisioningState = If( json?.PropertyT("customHttpsProvisioningState"), out var __jsonCustomHttpsProvisioningState) ? (string)__jsonCustomHttpsProvisioningState : (string)_customHttpsProvisioningState;} + {_customHttpsProvisioningSubstate = If( json?.PropertyT("customHttpsProvisioningSubstate"), out var __jsonCustomHttpsProvisioningSubstate) ? (string)__jsonCustomHttpsProvisioningSubstate : (string)_customHttpsProvisioningSubstate;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __frontendEndpointUpdateParameters?.ToJson(container, serializationMode); + AddIf( null != this._customHttpsConfiguration ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._customHttpsConfiguration.ToJson(null,serializationMode) : null, "customHttpsConfiguration" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._customHttpsProvisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customHttpsProvisioningState.ToString()) : null, "customHttpsProvisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._customHttpsProvisioningSubstate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customHttpsProvisioningSubstate.ToString()) : null, "customHttpsProvisioningSubstate" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.PowerShell.cs new file mode 100644 index 000000000000..9d44a98d4ff1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.PowerShell.cs @@ -0,0 +1,196 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Frontend endpoint used in routing rule + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointUpdateParametersTypeConverter))] + public partial class FrontendEndpointUpdateParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontendEndpointUpdateParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontendEndpointUpdateParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontendEndpointUpdateParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityEnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityTtlSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond = (int?) content.GetValueForProperty("SessionAffinityTtlSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontendEndpointUpdateParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityEnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); + } + if (content.Contains("SessionAffinityTtlSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond = (int?) content.GetValueForProperty("SessionAffinityTtlSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Frontend endpoint used in routing rule + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointUpdateParametersTypeConverter))] + public partial interface IFrontendEndpointUpdateParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.TypeConverter.cs new file mode 100644 index 000000000000..4d4803668724 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontendEndpointUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontendEndpointUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontendEndpointUpdateParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontendEndpointUpdateParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.cs new file mode 100644 index 000000000000..ab9599bb3335 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.cs @@ -0,0 +1,137 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Frontend endpoint used in routing rule + public partial class FrontendEndpointUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal + { + + /// Backing field for property. + private string _hostName; + + /// The host name of the frontendEndpoint. Must be a domain name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string HostName { get => this._hostName; set => this._hostName = value; } + + /// Internal Acessors for WebApplicationFirewallPolicyLink + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal.WebApplicationFirewallPolicyLink { get => (this._webApplicationFirewallPolicyLink = this._webApplicationFirewallPolicyLink ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink()); set { {_webApplicationFirewallPolicyLink = value;} } } + + /// Backing field for property. + private string _sessionAffinityEnabledState; + + /// + /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string SessionAffinityEnabledState { get => this._sessionAffinityEnabledState; set => this._sessionAffinityEnabledState = value; } + + /// Backing field for property. + private int? _sessionAffinityTtlSecond; + + /// + /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? SessionAffinityTtlSecond { get => this._sessionAffinityTtlSecond; set => this._sessionAffinityTtlSecond = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink _webApplicationFirewallPolicyLink; + + /// Defines the Web Application Firewall policy for each host (if applicable) + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get => (this._webApplicationFirewallPolicyLink = this._webApplicationFirewallPolicyLink ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink()); set => this._webApplicationFirewallPolicyLink = value; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)WebApplicationFirewallPolicyLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)WebApplicationFirewallPolicyLink).Id = value ?? null; } + + /// Creates an new instance. + public FrontendEndpointUpdateParameters() + { + + } + } + /// Frontend endpoint used in routing rule + public partial interface IFrontendEndpointUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// The host name of the frontendEndpoint. Must be a domain name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The host name of the frontendEndpoint. Must be a domain name.", + SerializedName = @"hostName", + PossibleTypes = new [] { typeof(string) })] + string HostName { get; set; } + /// + /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'", + SerializedName = @"sessionAffinityEnabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string SessionAffinityEnabledState { get; set; } + /// + /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.", + SerializedName = @"sessionAffinityTtlSeconds", + PossibleTypes = new [] { typeof(int) })] + int? SessionAffinityTtlSecond { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string WebApplicationFirewallPolicyLinkId { get; set; } + + } + /// Frontend endpoint used in routing rule + internal partial interface IFrontendEndpointUpdateParametersInternal + + { + /// The host name of the frontendEndpoint. Must be a domain name. + string HostName { get; set; } + /// + /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string SessionAffinityEnabledState { get; set; } + /// + /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + /// + int? SessionAffinityTtlSecond { get; set; } + /// Defines the Web Application Firewall policy for each host (if applicable) + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get; set; } + /// Resource ID. + string WebApplicationFirewallPolicyLinkId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.json.cs new file mode 100644 index 000000000000..b342f66797ff --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.json.cs @@ -0,0 +1,114 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Frontend endpoint used in routing rule + public partial class FrontendEndpointUpdateParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointUpdateParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontendEndpointUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_webApplicationFirewallPolicyLink = If( json?.PropertyT("webApplicationFirewallPolicyLink"), out var __jsonWebApplicationFirewallPolicyLink) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.FromJson(__jsonWebApplicationFirewallPolicyLink) : _webApplicationFirewallPolicyLink;} + {_hostName = If( json?.PropertyT("hostName"), out var __jsonHostName) ? (string)__jsonHostName : (string)_hostName;} + {_sessionAffinityEnabledState = If( json?.PropertyT("sessionAffinityEnabledState"), out var __jsonSessionAffinityEnabledState) ? (string)__jsonSessionAffinityEnabledState : (string)_sessionAffinityEnabledState;} + {_sessionAffinityTtlSecond = If( json?.PropertyT("sessionAffinityTtlSeconds"), out var __jsonSessionAffinityTtlSeconds) ? (int?)__jsonSessionAffinityTtlSeconds : _sessionAffinityTtlSecond;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._webApplicationFirewallPolicyLink ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._webApplicationFirewallPolicyLink.ToJson(null,serializationMode) : null, "webApplicationFirewallPolicyLink" ,container.Add ); + AddIf( null != (((object)this._hostName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._hostName.ToString()) : null, "hostName" ,container.Add ); + AddIf( null != (((object)this._sessionAffinityEnabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._sessionAffinityEnabledState.ToString()) : null, "sessionAffinityEnabledState" ,container.Add ); + AddIf( null != this._sessionAffinityTtlSecond ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._sessionAffinityTtlSecond) : null, "sessionAffinityTtlSeconds" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs new file mode 100644 index 000000000000..4c5dbc5e1e86 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs @@ -0,0 +1,169 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines the Web Application Firewall policy for each host (if applicable) + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter))] + public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(content); + } + + /// + /// Creates a new instance of , deserializing + /// the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines the Web Application Firewall policy for each host (if applicable) + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter))] + public partial interface IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs new file mode 100644 index 000000000000..c2db3cf6ea30 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs @@ -0,0 +1,153 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there + /// is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there + /// is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs new file mode 100644 index 000000000000..377822b11b56 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs @@ -0,0 +1,56 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the Web Application Firewall policy for each host (if applicable) + public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// + /// Creates an new instance. + /// + public FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink() + { + + } + } + /// Defines the Web Application Firewall policy for each host (if applicable) + public partial interface IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// Defines the Web Application Firewall policy for each host (if applicable) + internal partial interface IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal + + { + /// Resource ID. + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.json.cs new file mode 100644 index 000000000000..b3873efbe389 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.json.cs @@ -0,0 +1,111 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the Web Application Firewall policy for each host (if applicable) + public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.PowerShell.cs new file mode 100644 index 000000000000..732a24e0a27b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get + /// the next set of results. + /// + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointsListResultTypeConverter))] + public partial class FrontendEndpointsListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FrontendEndpointsListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FrontendEndpointsListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FrontendEndpointsListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FrontendEndpointsListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get + /// the next set of results. + [System.ComponentModel.TypeConverter(typeof(FrontendEndpointsListResultTypeConverter))] + public partial interface IFrontendEndpointsListResult + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.TypeConverter.cs new file mode 100644 index 000000000000..7714acdc67a6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FrontendEndpointsListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FrontendEndpointsListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FrontendEndpointsListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FrontendEndpointsListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.cs new file mode 100644 index 000000000000..0d737cfe686a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.cs @@ -0,0 +1,82 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get + /// the next set of results. + /// + public partial class FrontendEndpointsListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of frontend endpoints if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of Frontend endpoints within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public FrontendEndpointsListResult() + { + + } + } + /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get + /// the next set of results. + public partial interface IFrontendEndpointsListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// URL to get the next set of frontend endpoints if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to get the next set of frontend endpoints if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of Frontend endpoints within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of Frontend endpoints within a Front Door.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] + System.Collections.Generic.List Value { get; } + + } + /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get + /// the next set of results. + internal partial interface IFrontendEndpointsListResultInternal + + { + /// URL to get the next set of frontend endpoints if there are any. + string NextLink { get; set; } + /// List of Frontend endpoints within a Front Door. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.json.cs new file mode 100644 index 000000000000..08051b8aaa5c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get + /// the next set of results. + /// + public partial class FrontendEndpointsListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointsListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal FrontendEndpointsListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.PowerShell.cs new file mode 100644 index 000000000000..1aaad2e5ebe5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Describes the variables available to group the rate limit requests + [System.ComponentModel.TypeConverter(typeof(GroupByVariableTypeConverter))] + public partial class GroupByVariable + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new GroupByVariable(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new GroupByVariable(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal GroupByVariable(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VariableName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal)this).VariableName = (string) content.GetValueForProperty("VariableName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal)this).VariableName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal GroupByVariable(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VariableName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal)this).VariableName = (string) content.GetValueForProperty("VariableName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal)this).VariableName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Describes the variables available to group the rate limit requests + [System.ComponentModel.TypeConverter(typeof(GroupByVariableTypeConverter))] + public partial interface IGroupByVariable + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.TypeConverter.cs new file mode 100644 index 000000000000..fe91c9effe7e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class GroupByVariableTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return GroupByVariable.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return GroupByVariable.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return GroupByVariable.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.cs new file mode 100644 index 000000000000..f07a077ad8ab --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.cs @@ -0,0 +1,56 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes the variables available to group the rate limit requests + public partial class GroupByVariable : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal + { + + /// Backing field for property. + private string _variableName; + + /// Describes the supported variable for group by + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string VariableName { get => this._variableName; set => this._variableName = value; } + + /// Creates an new instance. + public GroupByVariable() + { + + } + } + /// Describes the variables available to group the rate limit requests + public partial interface IGroupByVariable : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Describes the supported variable for group by + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes the supported variable for group by", + SerializedName = @"variableName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] + string VariableName { get; set; } + + } + /// Describes the variables available to group the rate limit requests + internal partial interface IGroupByVariableInternal + + { + /// Describes the supported variable for group by + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] + string VariableName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.json.cs new file mode 100644 index 000000000000..02a57d7d17b2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.json.cs @@ -0,0 +1,108 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes the variables available to group the rate limit requests + public partial class GroupByVariable + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new GroupByVariable(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal GroupByVariable(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_variableName = If( json?.PropertyT("variableName"), out var __jsonVariableName) ? (string)__jsonVariableName : (string)_variableName;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._variableName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._variableName.ToString()) : null, "variableName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.PowerShell.cs new file mode 100644 index 000000000000..8df461bdae1f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.PowerShell.cs @@ -0,0 +1,180 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// An action that can manipulate an http header. + [System.ComponentModel.TypeConverter(typeof(HeaderActionTypeConverter))] + public partial class HeaderAction + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HeaderAction(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HeaderAction(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HeaderAction(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HeaderActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderActionType = (string) content.GetValueForProperty("HeaderActionType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderActionType, global::System.Convert.ToString); + } + if (content.Contains("HeaderName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderName = (string) content.GetValueForProperty("HeaderName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderName, global::System.Convert.ToString); + } + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).Value, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal HeaderAction(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HeaderActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderActionType = (string) content.GetValueForProperty("HeaderActionType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderActionType, global::System.Convert.ToString); + } + if (content.Contains("HeaderName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderName = (string) content.GetValueForProperty("HeaderName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderName, global::System.Convert.ToString); + } + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).Value, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// An action that can manipulate an http header. + [System.ComponentModel.TypeConverter(typeof(HeaderActionTypeConverter))] + public partial interface IHeaderAction + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.TypeConverter.cs new file mode 100644 index 000000000000..5e424b9cd2b4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class HeaderActionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return HeaderAction.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return HeaderAction.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return HeaderAction.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.cs new file mode 100644 index 000000000000..2c1f10734801 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.cs @@ -0,0 +1,102 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// An action that can manipulate an http header. + public partial class HeaderAction : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal + { + + /// Backing field for property. + private string _headerActionType; + + /// Which type of manipulation to apply to the header. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string HeaderActionType { get => this._headerActionType; set => this._headerActionType = value; } + + /// Backing field for property. + private string _headerName; + + /// The name of the header this action will apply to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string HeaderName { get => this._headerName; set => this._headerName = value; } + + /// Backing field for property. + private string _value; + + /// + /// The value to update the given header name with. This value is not used if the actionType is Delete. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public HeaderAction() + { + + } + } + /// An action that can manipulate an http header. + public partial interface IHeaderAction : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Which type of manipulation to apply to the header. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Which type of manipulation to apply to the header.", + SerializedName = @"headerActionType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] + string HeaderActionType { get; set; } + /// The name of the header this action will apply to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the header this action will apply to.", + SerializedName = @"headerName", + PossibleTypes = new [] { typeof(string) })] + string HeaderName { get; set; } + /// + /// The value to update the given header name with. This value is not used if the actionType is Delete. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The value to update the given header name with. This value is not used if the actionType is Delete.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(string) })] + string Value { get; set; } + + } + /// An action that can manipulate an http header. + internal partial interface IHeaderActionInternal + + { + /// Which type of manipulation to apply to the header. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] + string HeaderActionType { get; set; } + /// The name of the header this action will apply to. + string HeaderName { get; set; } + /// + /// The value to update the given header name with. This value is not used if the actionType is Delete. + /// + string Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.json.cs new file mode 100644 index 000000000000..cede4da70487 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.json.cs @@ -0,0 +1,112 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// An action that can manipulate an http header. + public partial class HeaderAction + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HeaderAction(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal HeaderAction(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_headerActionType = If( json?.PropertyT("headerActionType"), out var __jsonHeaderActionType) ? (string)__jsonHeaderActionType : (string)_headerActionType;} + {_headerName = If( json?.PropertyT("headerName"), out var __jsonHeaderName) ? (string)__jsonHeaderName : (string)_headerName;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)_value;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._headerActionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._headerActionType.ToString()) : null, "headerActionType" ,container.Add ); + AddIf( null != (((object)this._headerName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._headerName.ToString()) : null, "headerName" ,container.Add ); + AddIf( null != (((object)this._value)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._value.ToString()) : null, "value" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.PowerShell.cs new file mode 100644 index 000000000000..16b936be5309 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to + /// get the next set of results. + /// + [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsListResultTypeConverter))] + public partial class HealthProbeSettingsListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthProbeSettingsListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthProbeSettingsListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthProbeSettingsListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal HealthProbeSettingsListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to + /// get the next set of results. + [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsListResultTypeConverter))] + public partial interface IHealthProbeSettingsListResult + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.TypeConverter.cs new file mode 100644 index 000000000000..90032227c3a5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class HealthProbeSettingsListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return HealthProbeSettingsListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return HealthProbeSettingsListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return HealthProbeSettingsListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.cs new file mode 100644 index 000000000000..3e2178396c69 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.cs @@ -0,0 +1,82 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to + /// get the next set of results. + /// + public partial class HealthProbeSettingsListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of HealthProbeSettings objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of HealthProbeSettings within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public HealthProbeSettingsListResult() + { + + } + } + /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to + /// get the next set of results. + public partial interface IHealthProbeSettingsListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// URL to get the next set of HealthProbeSettings objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to get the next set of HealthProbeSettings objects if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of HealthProbeSettings within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of HealthProbeSettings within a Front Door.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] + System.Collections.Generic.List Value { get; } + + } + /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to + /// get the next set of results. + internal partial interface IHealthProbeSettingsListResultInternal + + { + /// URL to get the next set of HealthProbeSettings objects if there are any. + string NextLink { get; set; } + /// List of HealthProbeSettings within a Front Door. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.json.cs new file mode 100644 index 000000000000..5efb880bbb92 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to + /// get the next set of results. + /// + public partial class HealthProbeSettingsListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HealthProbeSettingsListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal HealthProbeSettingsListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.PowerShell.cs new file mode 100644 index 000000000000..94f2346fb46e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.PowerShell.cs @@ -0,0 +1,236 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Load balancing settings for a backend pool + [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsModelTypeConverter))] + public partial class HealthProbeSettingsModel + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthProbeSettingsModel(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthProbeSettingsModel(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthProbeSettingsModel(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Protocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Protocol, global::System.Convert.ToString); + } + if (content.Contains("IntervalInSeconds")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).IntervalInSeconds = (int?) content.GetValueForProperty("IntervalInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).IntervalInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HealthProbeMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).HealthProbeMethod, global::System.Convert.ToString); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).ResourceState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal HealthProbeSettingsModel(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Protocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Protocol, global::System.Convert.ToString); + } + if (content.Contains("IntervalInSeconds")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).IntervalInSeconds = (int?) content.GetValueForProperty("IntervalInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).IntervalInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HealthProbeMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).HealthProbeMethod, global::System.Convert.ToString); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).ResourceState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Load balancing settings for a backend pool + [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsModelTypeConverter))] + public partial interface IHealthProbeSettingsModel + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.TypeConverter.cs new file mode 100644 index 000000000000..ad9eb68d13bf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class HealthProbeSettingsModelTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return HealthProbeSettingsModel.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return HealthProbeSettingsModel.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return HealthProbeSettingsModel.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.cs new file mode 100644 index 000000000000..200dba3e1cd7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.cs @@ -0,0 +1,239 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Load balancing settings for a backend pool + public partial class HealthProbeSettingsModel : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); + + /// + /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled + /// if there is a single enabled backend in single enabled backend pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).EnabledState = value ?? null; } + + /// + /// Configures which HTTP method to use to probe the backends defined under backendPools. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string HealthProbeMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).HealthProbeMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).HealthProbeMethod = value ?? null; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } + + /// The number of seconds between health probes. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public int? IntervalInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).IntervalInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).IntervalInSecond = value ?? default(int); } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties()); set { {_property = value;} } } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)Property).ResourceState = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// The path to use for the health probe. Default is / + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Path { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).Path = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties _property; + + /// Properties of the health probe settings + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties()); set => this._property = value; } + + /// Protocol scheme to use for this probe + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string Protocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).Protocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).Protocol = value ?? null; } + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)Property).ResourceState; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public HealthProbeSettingsModel() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__subResource), __subResource); + await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); + } + } + /// Load balancing settings for a backend pool + public partial interface IHealthProbeSettingsModel : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource + { + /// + /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled + /// if there is a single enabled backend in single enabled backend pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// + /// Configures which HTTP method to use to probe the backends defined under backendPools. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Configures which HTTP method to use to probe the backends defined under backendPools.", + SerializedName = @"healthProbeMethod", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] + string HealthProbeMethod { get; set; } + /// The number of seconds between health probes. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The number of seconds between health probes.", + SerializedName = @"intervalInSeconds", + PossibleTypes = new [] { typeof(int) })] + int? IntervalInSeconds { get; set; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The path to use for the health probe. Default is / + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The path to use for the health probe. Default is /", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string Path { get; set; } + /// Protocol scheme to use for this probe + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Protocol scheme to use for this probe", + SerializedName = @"protocol", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + string Protocol { get; set; } + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// Load balancing settings for a backend pool + internal partial interface IHealthProbeSettingsModelInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal + { + /// + /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled + /// if there is a single enabled backend in single enabled backend pool. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// + /// Configures which HTTP method to use to probe the backends defined under backendPools. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] + string HealthProbeMethod { get; set; } + /// The number of seconds between health probes. + int? IntervalInSeconds { get; set; } + /// Resource name. + string Name { get; set; } + /// The path to use for the health probe. Default is / + string Path { get; set; } + /// Properties of the health probe settings + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties Property { get; set; } + /// Protocol scheme to use for this probe + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + string Protocol { get; set; } + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// Resource type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.json.cs new file mode 100644 index 000000000000..26e34fdedc9d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.json.cs @@ -0,0 +1,117 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Load balancing settings for a backend pool + public partial class HealthProbeSettingsModel + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HealthProbeSettingsModel(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal HealthProbeSettingsModel(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties.FromJson(__jsonProperties) : _property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __subResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.PowerShell.cs new file mode 100644 index 000000000000..90147d9de7d2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.PowerShell.cs @@ -0,0 +1,206 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// The JSON object that contains the properties required to create a health probe settings. + /// + [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsPropertiesTypeConverter))] + public partial class HealthProbeSettingsProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthProbeSettingsProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthProbeSettingsProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthProbeSettingsProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Protocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol, global::System.Convert.ToString); + } + if (content.Contains("IntervalInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond = (int?) content.GetValueForProperty("IntervalInSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HealthProbeMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod, global::System.Convert.ToString); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal HealthProbeSettingsProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Protocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol, global::System.Convert.ToString); + } + if (content.Contains("IntervalInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond = (int?) content.GetValueForProperty("IntervalInSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HealthProbeMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod, global::System.Convert.ToString); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The JSON object that contains the properties required to create a health probe settings. + [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsPropertiesTypeConverter))] + public partial interface IHealthProbeSettingsProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.TypeConverter.cs new file mode 100644 index 000000000000..27f7bc925d9c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class HealthProbeSettingsPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return HealthProbeSettingsProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return HealthProbeSettingsProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return HealthProbeSettingsProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.cs new file mode 100644 index 000000000000..736324197968 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.cs @@ -0,0 +1,105 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The JSON object that contains the properties required to create a health probe settings. + /// + public partial class HealthProbeSettingsProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters __healthProbeSettingsUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsUpdateParameters(); + + /// + /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled + /// if there is a single enabled backend in single enabled backend pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).EnabledState = value ?? null; } + + /// + /// Configures which HTTP method to use to probe the backends defined under backendPools. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string HealthProbeMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).HealthProbeMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).HealthProbeMethod = value ?? null; } + + /// The number of seconds between health probes. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public int? IntervalInSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).IntervalInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).IntervalInSecond = value ?? default(int); } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + + /// The path to use for the health probe. Default is / + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Path { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).Path = value ?? null; } + + /// Protocol scheme to use for this probe + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Protocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).Protocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).Protocol = value ?? null; } + + /// Backing field for property. + private string _resourceState; + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceState { get => this._resourceState; } + + /// Creates an new instance. + public HealthProbeSettingsProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__healthProbeSettingsUpdateParameters), __healthProbeSettingsUpdateParameters); + await eventListener.AssertObjectIsValid(nameof(__healthProbeSettingsUpdateParameters), __healthProbeSettingsUpdateParameters); + } + } + /// The JSON object that contains the properties required to create a health probe settings. + public partial interface IHealthProbeSettingsProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters + { + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + + } + /// The JSON object that contains the properties required to create a health probe settings. + internal partial interface IHealthProbeSettingsPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal + { + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.json.cs new file mode 100644 index 000000000000..bd5d93c3fbc9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.json.cs @@ -0,0 +1,115 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The JSON object that contains the properties required to create a health probe settings. + /// + public partial class HealthProbeSettingsProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HealthProbeSettingsProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal HealthProbeSettingsProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __healthProbeSettingsUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsUpdateParameters(json); + {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __healthProbeSettingsUpdateParameters?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.PowerShell.cs new file mode 100644 index 000000000000..e598d8e001f6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.PowerShell.cs @@ -0,0 +1,198 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// L7 health probe settings for a backend pool + [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsUpdateParametersTypeConverter))] + public partial class HealthProbeSettingsUpdateParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthProbeSettingsUpdateParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthProbeSettingsUpdateParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthProbeSettingsUpdateParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Protocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol, global::System.Convert.ToString); + } + if (content.Contains("IntervalInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond = (int?) content.GetValueForProperty("IntervalInSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HealthProbeMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod, global::System.Convert.ToString); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal HealthProbeSettingsUpdateParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Protocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol, global::System.Convert.ToString); + } + if (content.Contains("IntervalInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond = (int?) content.GetValueForProperty("IntervalInSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HealthProbeMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod, global::System.Convert.ToString); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// L7 health probe settings for a backend pool + [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsUpdateParametersTypeConverter))] + public partial interface IHealthProbeSettingsUpdateParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.TypeConverter.cs new file mode 100644 index 000000000000..a8de74b46b15 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.TypeConverter.cs @@ -0,0 +1,149 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class HealthProbeSettingsUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return HealthProbeSettingsUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return HealthProbeSettingsUpdateParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return HealthProbeSettingsUpdateParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.cs new file mode 100644 index 000000000000..05d4ef990f78 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.cs @@ -0,0 +1,155 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// L7 health probe settings for a backend pool + public partial class HealthProbeSettingsUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal + { + + /// Backing field for property. + private string _enabledState; + + /// + /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled + /// if there is a single enabled backend in single enabled backend pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string EnabledState { get => this._enabledState; set => this._enabledState = value; } + + /// Backing field for property. + private string _healthProbeMethod; + + /// + /// Configures which HTTP method to use to probe the backends defined under backendPools. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string HealthProbeMethod { get => this._healthProbeMethod; set => this._healthProbeMethod = value; } + + /// Backing field for property. + private int? _intervalInSecond; + + /// The number of seconds between health probes. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? IntervalInSecond { get => this._intervalInSecond; set => this._intervalInSecond = value; } + + /// Backing field for property. + private string _path; + + /// The path to use for the health probe. Default is / + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Path { get => this._path; set => this._path = value; } + + /// Backing field for property. + private string _protocol; + + /// Protocol scheme to use for this probe + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Protocol { get => this._protocol; set => this._protocol = value; } + + /// Creates an new instance. + public HealthProbeSettingsUpdateParameters() + { + + } + } + /// L7 health probe settings for a backend pool + public partial interface IHealthProbeSettingsUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled + /// if there is a single enabled backend in single enabled backend pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// + /// Configures which HTTP method to use to probe the backends defined under backendPools. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Configures which HTTP method to use to probe the backends defined under backendPools.", + SerializedName = @"healthProbeMethod", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] + string HealthProbeMethod { get; set; } + /// The number of seconds between health probes. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The number of seconds between health probes.", + SerializedName = @"intervalInSeconds", + PossibleTypes = new [] { typeof(int) })] + int? IntervalInSecond { get; set; } + /// The path to use for the health probe. Default is / + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The path to use for the health probe. Default is /", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string Path { get; set; } + /// Protocol scheme to use for this probe + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Protocol scheme to use for this probe", + SerializedName = @"protocol", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + string Protocol { get; set; } + + } + /// L7 health probe settings for a backend pool + internal partial interface IHealthProbeSettingsUpdateParametersInternal + + { + /// + /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled + /// if there is a single enabled backend in single enabled backend pool. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// + /// Configures which HTTP method to use to probe the backends defined under backendPools. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] + string HealthProbeMethod { get; set; } + /// The number of seconds between health probes. + int? IntervalInSecond { get; set; } + /// The path to use for the health probe. Default is / + string Path { get; set; } + /// Protocol scheme to use for this probe + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + string Protocol { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.json.cs new file mode 100644 index 000000000000..1ef646720b74 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.json.cs @@ -0,0 +1,117 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// L7 health probe settings for a backend pool + public partial class HealthProbeSettingsUpdateParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HealthProbeSettingsUpdateParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal HealthProbeSettingsUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_path = If( json?.PropertyT("path"), out var __jsonPath) ? (string)__jsonPath : (string)_path;} + {_protocol = If( json?.PropertyT("protocol"), out var __jsonProtocol) ? (string)__jsonProtocol : (string)_protocol;} + {_intervalInSecond = If( json?.PropertyT("intervalInSeconds"), out var __jsonIntervalInSeconds) ? (int?)__jsonIntervalInSeconds : _intervalInSecond;} + {_healthProbeMethod = If( json?.PropertyT("healthProbeMethod"), out var __jsonHealthProbeMethod) ? (string)__jsonHealthProbeMethod : (string)_healthProbeMethod;} + {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._path)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._path.ToString()) : null, "path" ,container.Add ); + AddIf( null != (((object)this._protocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._protocol.ToString()) : null, "protocol" ,container.Add ); + AddIf( null != this._intervalInSecond ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._intervalInSecond) : null, "intervalInSeconds" ,container.Add ); + AddIf( null != (((object)this._healthProbeMethod)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._healthProbeMethod.ToString()) : null, "healthProbeMethod" ,container.Add ); + AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.PowerShell.cs new file mode 100644 index 000000000000..c836ddf344b7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.PowerShell.cs @@ -0,0 +1,190 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Parameters required for bring-your-own-certification via Key Vault + [System.ComponentModel.TypeConverter(typeof(KeyVaultCertificateSourceParametersTypeConverter))] + public partial class KeyVaultCertificateSourceParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new KeyVaultCertificateSourceParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new KeyVaultCertificateSourceParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal KeyVaultCertificateSourceParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Vault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).Vault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("Vault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).Vault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); + } + if (content.Contains("SecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretName = (string) content.GetValueForProperty("SecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretName, global::System.Convert.ToString); + } + if (content.Contains("SecretVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretVersion = (string) content.GetValueForProperty("SecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretVersion, global::System.Convert.ToString); + } + if (content.Contains("VaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).VaultId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal KeyVaultCertificateSourceParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Vault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).Vault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("Vault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).Vault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); + } + if (content.Contains("SecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretName = (string) content.GetValueForProperty("SecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretName, global::System.Convert.ToString); + } + if (content.Contains("SecretVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretVersion = (string) content.GetValueForProperty("SecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretVersion, global::System.Convert.ToString); + } + if (content.Contains("VaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).VaultId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Parameters required for bring-your-own-certification via Key Vault + [System.ComponentModel.TypeConverter(typeof(KeyVaultCertificateSourceParametersTypeConverter))] + public partial interface IKeyVaultCertificateSourceParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.TypeConverter.cs new file mode 100644 index 000000000000..66039c438c46 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.TypeConverter.cs @@ -0,0 +1,149 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class KeyVaultCertificateSourceParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return KeyVaultCertificateSourceParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return KeyVaultCertificateSourceParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return KeyVaultCertificateSourceParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.cs new file mode 100644 index 000000000000..ea10cdbf128e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.cs @@ -0,0 +1,103 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Parameters required for bring-your-own-certification via Key Vault + public partial class KeyVaultCertificateSourceParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal + { + + /// Internal Acessors for Vault + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal.Vault { get => (this._vault = this._vault ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVault()); set { {_vault = value;} } } + + /// Backing field for property. + private string _secretName; + + /// The name of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string SecretName { get => this._secretName; set => this._secretName = value; } + + /// Backing field for property. + private string _secretVersion; + + /// The version of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string SecretVersion { get => this._secretVersion; set => this._secretVersion = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault _vault; + + /// The Key Vault containing the SSL certificate + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Vault { get => (this._vault = this._vault ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVault()); set => this._vault = value; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string VaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)Vault).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)Vault).Id = value ?? null; } + + /// Creates an new instance. + public KeyVaultCertificateSourceParameters() + { + + } + } + /// Parameters required for bring-your-own-certification via Key Vault + public partial interface IKeyVaultCertificateSourceParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// The name of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretName", + PossibleTypes = new [] { typeof(string) })] + string SecretName { get; set; } + /// The version of the Key Vault secret representing the full certificate PFX + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretVersion", + PossibleTypes = new [] { typeof(string) })] + string SecretVersion { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string VaultId { get; set; } + + } + /// Parameters required for bring-your-own-certification via Key Vault + internal partial interface IKeyVaultCertificateSourceParametersInternal + + { + /// The name of the Key Vault secret representing the full certificate PFX + string SecretName { get; set; } + /// The version of the Key Vault secret representing the full certificate PFX + string SecretVersion { get; set; } + /// The Key Vault containing the SSL certificate + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Vault { get; set; } + /// Resource ID. + string VaultId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.json.cs new file mode 100644 index 000000000000..6a61ccee29b6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.json.cs @@ -0,0 +1,113 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Parameters required for bring-your-own-certification via Key Vault + public partial class KeyVaultCertificateSourceParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new KeyVaultCertificateSourceParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal KeyVaultCertificateSourceParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_vault = If( json?.PropertyT("vault"), out var __jsonVault) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVault.FromJson(__jsonVault) : _vault;} + {_secretName = If( json?.PropertyT("secretName"), out var __jsonSecretName) ? (string)__jsonSecretName : (string)_secretName;} + {_secretVersion = If( json?.PropertyT("secretVersion"), out var __jsonSecretVersion) ? (string)__jsonSecretVersion : (string)_secretVersion;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._vault ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._vault.ToJson(null,serializationMode) : null, "vault" ,container.Add ); + AddIf( null != (((object)this._secretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._secretName.ToString()) : null, "secretName" ,container.Add ); + AddIf( null != (((object)this._secretVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._secretVersion.ToString()) : null, "secretVersion" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.PowerShell.cs new file mode 100644 index 000000000000..70310064da19 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.PowerShell.cs @@ -0,0 +1,169 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// The Key Vault containing the SSL certificate + [System.ComponentModel.TypeConverter(typeof(KeyVaultCertificateSourceParametersVaultTypeConverter))] + public partial class KeyVaultCertificateSourceParametersVault + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new KeyVaultCertificateSourceParametersVault(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new KeyVaultCertificateSourceParametersVault(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal KeyVaultCertificateSourceParametersVault(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal KeyVaultCertificateSourceParametersVault(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The Key Vault containing the SSL certificate + [System.ComponentModel.TypeConverter(typeof(KeyVaultCertificateSourceParametersVaultTypeConverter))] + public partial interface IKeyVaultCertificateSourceParametersVault + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.TypeConverter.cs new file mode 100644 index 000000000000..0a04138fced7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.TypeConverter.cs @@ -0,0 +1,151 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class KeyVaultCertificateSourceParametersVaultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return KeyVaultCertificateSourceParametersVault.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return KeyVaultCertificateSourceParametersVault.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return KeyVaultCertificateSourceParametersVault.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.cs new file mode 100644 index 000000000000..0a75d7ba8bd1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.cs @@ -0,0 +1,56 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The Key Vault containing the SSL certificate + public partial class KeyVaultCertificateSourceParametersVault : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// + /// Creates an new instance. + /// + public KeyVaultCertificateSourceParametersVault() + { + + } + } + /// The Key Vault containing the SSL certificate + public partial interface IKeyVaultCertificateSourceParametersVault : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// The Key Vault containing the SSL certificate + internal partial interface IKeyVaultCertificateSourceParametersVaultInternal + + { + /// Resource ID. + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.json.cs new file mode 100644 index 000000000000..ebe2c0086875 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.json.cs @@ -0,0 +1,110 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The Key Vault containing the SSL certificate + public partial class KeyVaultCertificateSourceParametersVault + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new KeyVaultCertificateSourceParametersVault(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal KeyVaultCertificateSourceParametersVault(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.PowerShell.cs new file mode 100644 index 000000000000..91c63eca59db --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL + /// link to get the next set of results. + /// + [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsListResultTypeConverter))] + public partial class LoadBalancingSettingsListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LoadBalancingSettingsListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LoadBalancingSettingsListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LoadBalancingSettingsListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LoadBalancingSettingsListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL + /// link to get the next set of results. + [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsListResultTypeConverter))] + public partial interface ILoadBalancingSettingsListResult + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.TypeConverter.cs new file mode 100644 index 000000000000..2e5b44a05c06 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class LoadBalancingSettingsListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return LoadBalancingSettingsListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return LoadBalancingSettingsListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return LoadBalancingSettingsListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.cs new file mode 100644 index 000000000000..df30d7adcfc7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.cs @@ -0,0 +1,82 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL + /// link to get the next set of results. + /// + public partial class LoadBalancingSettingsListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of LoadBalancingSettings objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of Backend Pools within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public LoadBalancingSettingsListResult() + { + + } + } + /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL + /// link to get the next set of results. + public partial interface ILoadBalancingSettingsListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// URL to get the next set of LoadBalancingSettings objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to get the next set of LoadBalancingSettings objects if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of Backend Pools within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of Backend Pools within a Front Door.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] + System.Collections.Generic.List Value { get; } + + } + /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL + /// link to get the next set of results. + internal partial interface ILoadBalancingSettingsListResultInternal + + { + /// URL to get the next set of LoadBalancingSettings objects if there are any. + string NextLink { get; set; } + /// List of Backend Pools within a Front Door. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.json.cs new file mode 100644 index 000000000000..128c8aa552b0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL + /// link to get the next set of results. + /// + public partial class LoadBalancingSettingsListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new LoadBalancingSettingsListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal LoadBalancingSettingsListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.PowerShell.cs new file mode 100644 index 000000000000..646c8d7e7678 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.PowerShell.cs @@ -0,0 +1,220 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Load balancing settings for a backend pool + [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsModelTypeConverter))] + public partial class LoadBalancingSettingsModel + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LoadBalancingSettingsModel(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LoadBalancingSettingsModel(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LoadBalancingSettingsModel(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("SampleSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SuccessfulSamplesRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AdditionalLatencyInMilliseconds")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).AdditionalLatencyInMilliseconds = (int?) content.GetValueForProperty("AdditionalLatencyInMilliseconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).AdditionalLatencyInMilliseconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).ResourceState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LoadBalancingSettingsModel(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("SampleSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SuccessfulSamplesRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AdditionalLatencyInMilliseconds")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).AdditionalLatencyInMilliseconds = (int?) content.GetValueForProperty("AdditionalLatencyInMilliseconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).AdditionalLatencyInMilliseconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).ResourceState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Load balancing settings for a backend pool + [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsModelTypeConverter))] + public partial interface ILoadBalancingSettingsModel + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.TypeConverter.cs new file mode 100644 index 000000000000..5166485af559 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class LoadBalancingSettingsModelTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return LoadBalancingSettingsModel.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return LoadBalancingSettingsModel.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return LoadBalancingSettingsModel.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.cs new file mode 100644 index 000000000000..b36bbe6125e9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.cs @@ -0,0 +1,190 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Load balancing settings for a backend pool + public partial class LoadBalancingSettingsModel : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); + + /// + /// The additional latency in milliseconds for probes to fall into the lowest latency bucket + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public int? AdditionalLatencyInMilliseconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).AdditionalLatencyMillisecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).AdditionalLatencyMillisecond = value ?? default(int); } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties()); set { {_property = value;} } } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)Property).ResourceState = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties _property; + + /// Properties of the load balancing settings + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties()); set => this._property = value; } + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)Property).ResourceState; } + + /// The number of samples to consider for load balancing decisions + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public int? SampleSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).SampleSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).SampleSize = value ?? default(int); } + + /// The number of samples within the sample period that must succeed + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public int? SuccessfulSamplesRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).SuccessfulSamplesRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).SuccessfulSamplesRequired = value ?? default(int); } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public LoadBalancingSettingsModel() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__subResource), __subResource); + await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); + } + } + /// Load balancing settings for a backend pool + public partial interface ILoadBalancingSettingsModel : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource + { + /// + /// The additional latency in milliseconds for probes to fall into the lowest latency bucket + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The additional latency in milliseconds for probes to fall into the lowest latency bucket", + SerializedName = @"additionalLatencyMilliseconds", + PossibleTypes = new [] { typeof(int) })] + int? AdditionalLatencyInMilliseconds { get; set; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// The number of samples to consider for load balancing decisions + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The number of samples to consider for load balancing decisions", + SerializedName = @"sampleSize", + PossibleTypes = new [] { typeof(int) })] + int? SampleSize { get; set; } + /// The number of samples within the sample period that must succeed + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The number of samples within the sample period that must succeed", + SerializedName = @"successfulSamplesRequired", + PossibleTypes = new [] { typeof(int) })] + int? SuccessfulSamplesRequired { get; set; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// Load balancing settings for a backend pool + internal partial interface ILoadBalancingSettingsModelInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal + { + /// + /// The additional latency in milliseconds for probes to fall into the lowest latency bucket + /// + int? AdditionalLatencyInMilliseconds { get; set; } + /// Resource name. + string Name { get; set; } + /// Properties of the load balancing settings + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties Property { get; set; } + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// The number of samples to consider for load balancing decisions + int? SampleSize { get; set; } + /// The number of samples within the sample period that must succeed + int? SuccessfulSamplesRequired { get; set; } + /// Resource type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.json.cs new file mode 100644 index 000000000000..5ab015aeb8db --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.json.cs @@ -0,0 +1,117 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Load balancing settings for a backend pool + public partial class LoadBalancingSettingsModel + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new LoadBalancingSettingsModel(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal LoadBalancingSettingsModel(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties.FromJson(__jsonProperties) : _property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __subResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.PowerShell.cs new file mode 100644 index 000000000000..742f17f7e161 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.PowerShell.cs @@ -0,0 +1,190 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// The JSON object that contains the properties required to create load balancing settings + /// + [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsPropertiesTypeConverter))] + public partial class LoadBalancingSettingsProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LoadBalancingSettingsProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LoadBalancingSettingsProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LoadBalancingSettingsProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("SampleSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SuccessfulSamplesRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AdditionalLatencyMillisecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond = (int?) content.GetValueForProperty("AdditionalLatencyMillisecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LoadBalancingSettingsProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("SampleSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SuccessfulSamplesRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AdditionalLatencyMillisecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond = (int?) content.GetValueForProperty("AdditionalLatencyMillisecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The JSON object that contains the properties required to create load balancing settings + [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsPropertiesTypeConverter))] + public partial interface ILoadBalancingSettingsProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.TypeConverter.cs new file mode 100644 index 000000000000..292349b808ed --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class LoadBalancingSettingsPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return LoadBalancingSettingsProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return LoadBalancingSettingsProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return LoadBalancingSettingsProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.cs new file mode 100644 index 000000000000..49ec09230f59 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.cs @@ -0,0 +1,94 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The JSON object that contains the properties required to create load balancing settings + /// + public partial class LoadBalancingSettingsProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters __loadBalancingSettingsUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsUpdateParameters(); + + /// + /// The additional latency in milliseconds for probes to fall into the lowest latency bucket + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public int? AdditionalLatencyMillisecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).AdditionalLatencyMillisecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).AdditionalLatencyMillisecond = value ?? default(int); } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + + /// Backing field for property. + private string _resourceState; + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceState { get => this._resourceState; } + + /// The number of samples to consider for load balancing decisions + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public int? SampleSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).SampleSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).SampleSize = value ?? default(int); } + + /// The number of samples within the sample period that must succeed + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public int? SuccessfulSamplesRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).SuccessfulSamplesRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).SuccessfulSamplesRequired = value ?? default(int); } + + /// Creates an new instance. + public LoadBalancingSettingsProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__loadBalancingSettingsUpdateParameters), __loadBalancingSettingsUpdateParameters); + await eventListener.AssertObjectIsValid(nameof(__loadBalancingSettingsUpdateParameters), __loadBalancingSettingsUpdateParameters); + } + } + /// The JSON object that contains the properties required to create load balancing settings + public partial interface ILoadBalancingSettingsProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters + { + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + + } + /// The JSON object that contains the properties required to create load balancing settings + internal partial interface ILoadBalancingSettingsPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal + { + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.json.cs new file mode 100644 index 000000000000..d514cc7486b8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.json.cs @@ -0,0 +1,115 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The JSON object that contains the properties required to create load balancing settings + /// + public partial class LoadBalancingSettingsProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new LoadBalancingSettingsProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal LoadBalancingSettingsProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __loadBalancingSettingsUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsUpdateParameters(json); + {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __loadBalancingSettingsUpdateParameters?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.PowerShell.cs new file mode 100644 index 000000000000..4875e3e38d83 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.PowerShell.cs @@ -0,0 +1,185 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Round-Robin load balancing settings for a backend pool + [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsUpdateParametersTypeConverter))] + public partial class LoadBalancingSettingsUpdateParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LoadBalancingSettingsUpdateParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LoadBalancingSettingsUpdateParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LoadBalancingSettingsUpdateParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SampleSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SuccessfulSamplesRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AdditionalLatencyMillisecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond = (int?) content.GetValueForProperty("AdditionalLatencyMillisecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LoadBalancingSettingsUpdateParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SampleSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SuccessfulSamplesRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AdditionalLatencyMillisecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond = (int?) content.GetValueForProperty("AdditionalLatencyMillisecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Round-Robin load balancing settings for a backend pool + [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsUpdateParametersTypeConverter))] + public partial interface ILoadBalancingSettingsUpdateParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.TypeConverter.cs new file mode 100644 index 000000000000..2575025dbddd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class LoadBalancingSettingsUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return LoadBalancingSettingsUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return LoadBalancingSettingsUpdateParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return LoadBalancingSettingsUpdateParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.cs new file mode 100644 index 000000000000..20a3c9d334fa --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.cs @@ -0,0 +1,100 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Round-Robin load balancing settings for a backend pool + public partial class LoadBalancingSettingsUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal + { + + /// Backing field for property. + private int? _additionalLatencyMillisecond; + + /// + /// The additional latency in milliseconds for probes to fall into the lowest latency bucket + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? AdditionalLatencyMillisecond { get => this._additionalLatencyMillisecond; set => this._additionalLatencyMillisecond = value; } + + /// Backing field for property. + private int? _sampleSize; + + /// The number of samples to consider for load balancing decisions + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? SampleSize { get => this._sampleSize; set => this._sampleSize = value; } + + /// Backing field for property. + private int? _successfulSamplesRequired; + + /// The number of samples within the sample period that must succeed + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? SuccessfulSamplesRequired { get => this._successfulSamplesRequired; set => this._successfulSamplesRequired = value; } + + /// Creates an new instance. + public LoadBalancingSettingsUpdateParameters() + { + + } + } + /// Round-Robin load balancing settings for a backend pool + public partial interface ILoadBalancingSettingsUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// The additional latency in milliseconds for probes to fall into the lowest latency bucket + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The additional latency in milliseconds for probes to fall into the lowest latency bucket", + SerializedName = @"additionalLatencyMilliseconds", + PossibleTypes = new [] { typeof(int) })] + int? AdditionalLatencyMillisecond { get; set; } + /// The number of samples to consider for load balancing decisions + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The number of samples to consider for load balancing decisions", + SerializedName = @"sampleSize", + PossibleTypes = new [] { typeof(int) })] + int? SampleSize { get; set; } + /// The number of samples within the sample period that must succeed + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The number of samples within the sample period that must succeed", + SerializedName = @"successfulSamplesRequired", + PossibleTypes = new [] { typeof(int) })] + int? SuccessfulSamplesRequired { get; set; } + + } + /// Round-Robin load balancing settings for a backend pool + internal partial interface ILoadBalancingSettingsUpdateParametersInternal + + { + /// + /// The additional latency in milliseconds for probes to fall into the lowest latency bucket + /// + int? AdditionalLatencyMillisecond { get; set; } + /// The number of samples to consider for load balancing decisions + int? SampleSize { get; set; } + /// The number of samples within the sample period that must succeed + int? SuccessfulSamplesRequired { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.json.cs new file mode 100644 index 000000000000..4690ae8e8b9d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.json.cs @@ -0,0 +1,113 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Round-Robin load balancing settings for a backend pool + public partial class LoadBalancingSettingsUpdateParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new LoadBalancingSettingsUpdateParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal LoadBalancingSettingsUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_sampleSize = If( json?.PropertyT("sampleSize"), out var __jsonSampleSize) ? (int?)__jsonSampleSize : _sampleSize;} + {_successfulSamplesRequired = If( json?.PropertyT("successfulSamplesRequired"), out var __jsonSuccessfulSamplesRequired) ? (int?)__jsonSuccessfulSamplesRequired : _successfulSamplesRequired;} + {_additionalLatencyMillisecond = If( json?.PropertyT("additionalLatencyMilliseconds"), out var __jsonAdditionalLatencyMilliseconds) ? (int?)__jsonAdditionalLatencyMilliseconds : _additionalLatencyMillisecond;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._sampleSize ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._sampleSize) : null, "sampleSize" ,container.Add ); + AddIf( null != this._successfulSamplesRequired ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._successfulSamplesRequired) : null, "successfulSamplesRequired" ,container.Add ); + AddIf( null != this._additionalLatencyMillisecond ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._additionalLatencyMillisecond) : null, "additionalLatencyMilliseconds" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.PowerShell.cs new file mode 100644 index 000000000000..7a990bb86145 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.PowerShell.cs @@ -0,0 +1,188 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Describes a managed rule definition. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleDefinitionTypeConverter))] + public partial class ManagedRuleDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleDefinition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleDefinition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RuleId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).RuleId = (string) content.GetValueForProperty("RuleId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).RuleId, global::System.Convert.ToString); + } + if (content.Contains("DefaultState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultState = (string) content.GetValueForProperty("DefaultState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultState, global::System.Convert.ToString); + } + if (content.Contains("DefaultAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultAction = (string) content.GetValueForProperty("DefaultAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultAction, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).Description, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RuleId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).RuleId = (string) content.GetValueForProperty("RuleId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).RuleId, global::System.Convert.ToString); + } + if (content.Contains("DefaultState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultState = (string) content.GetValueForProperty("DefaultState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultState, global::System.Convert.ToString); + } + if (content.Contains("DefaultAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultAction = (string) content.GetValueForProperty("DefaultAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultAction, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).Description, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Describes a managed rule definition. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleDefinitionTypeConverter))] + public partial interface IManagedRuleDefinition + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.TypeConverter.cs new file mode 100644 index 000000000000..0df7955a4366 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleDefinition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.cs new file mode 100644 index 000000000000..f1668480f79a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.cs @@ -0,0 +1,130 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes a managed rule definition. + public partial class ManagedRuleDefinition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal + { + + /// Backing field for property. + private string _defaultAction; + + /// Describes the default action to be applied when the managed rule matches. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string DefaultAction { get => this._defaultAction; } + + /// Backing field for property. + private string _defaultState; + + /// Describes the default state for the managed rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string DefaultState { get => this._defaultState; } + + /// Backing field for property. + private string _description; + + /// Describes the functionality of the managed rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Internal Acessors for DefaultAction + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal.DefaultAction { get => this._defaultAction; set { {_defaultAction = value;} } } + + /// Internal Acessors for DefaultState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal.DefaultState { get => this._defaultState; set { {_defaultState = value;} } } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for RuleId + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal.RuleId { get => this._ruleId; set { {_ruleId = value;} } } + + /// Backing field for property. + private string _ruleId; + + /// Identifier for the managed rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleId { get => this._ruleId; } + + /// Creates an new instance. + public ManagedRuleDefinition() + { + + } + } + /// Describes a managed rule definition. + public partial interface IManagedRuleDefinition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Describes the default action to be applied when the managed rule matches. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes the default action to be applied when the managed rule matches.", + SerializedName = @"defaultAction", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] + string DefaultAction { get; } + /// Describes the default state for the managed rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes the default state for the managed rule.", + SerializedName = @"defaultState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string DefaultState { get; } + /// Describes the functionality of the managed rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes the functionality of the managed rule.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// Identifier for the managed rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Identifier for the managed rule.", + SerializedName = @"ruleId", + PossibleTypes = new [] { typeof(string) })] + string RuleId { get; } + + } + /// Describes a managed rule definition. + internal partial interface IManagedRuleDefinitionInternal + + { + /// Describes the default action to be applied when the managed rule matches. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] + string DefaultAction { get; set; } + /// Describes the default state for the managed rule. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string DefaultState { get; set; } + /// Describes the functionality of the managed rule. + string Description { get; set; } + /// Identifier for the managed rule. + string RuleId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.json.cs new file mode 100644 index 000000000000..138fd3afda6c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.json.cs @@ -0,0 +1,126 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes a managed rule definition. + public partial class ManagedRuleDefinition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleDefinition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleDefinition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_ruleId = If( json?.PropertyT("ruleId"), out var __jsonRuleId) ? (string)__jsonRuleId : (string)_ruleId;} + {_defaultState = If( json?.PropertyT("defaultState"), out var __jsonDefaultState) ? (string)__jsonDefaultState : (string)_defaultState;} + {_defaultAction = If( json?.PropertyT("defaultAction"), out var __jsonDefaultAction) ? (string)__jsonDefaultAction : (string)_defaultAction;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._ruleId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleId.ToString()) : null, "ruleId" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._defaultState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._defaultState.ToString()) : null, "defaultState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._defaultAction)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._defaultAction.ToString()) : null, "defaultAction" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.PowerShell.cs new file mode 100644 index 000000000000..4434bd1e0718 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.PowerShell.cs @@ -0,0 +1,180 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Exclude variables from managed rule evaluation. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleExclusionTypeConverter))] + public partial class ManagedRuleExclusion + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleExclusion(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleExclusion(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleExclusion(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Variable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Variable = (string) content.GetValueForProperty("Variable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Variable, global::System.Convert.ToString); + } + if (content.Contains("Operator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Operator = (string) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Operator, global::System.Convert.ToString); + } + if (content.Contains("Selector")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Selector, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleExclusion(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Variable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Variable = (string) content.GetValueForProperty("Variable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Variable, global::System.Convert.ToString); + } + if (content.Contains("Operator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Operator = (string) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Operator, global::System.Convert.ToString); + } + if (content.Contains("Selector")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Selector, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Exclude variables from managed rule evaluation. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleExclusionTypeConverter))] + public partial interface IManagedRuleExclusion + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.TypeConverter.cs new file mode 100644 index 000000000000..3b06eb1eb215 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleExclusionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleExclusion.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleExclusion.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleExclusion.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.cs new file mode 100644 index 000000000000..e809c53622ad --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.cs @@ -0,0 +1,104 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Exclude variables from managed rule evaluation. + public partial class ManagedRuleExclusion : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal + { + + /// Backing field for property. + private string _operator; + + /// + /// Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Operator { get => this._operator; set => this._operator = value; } + + /// Backing field for property. + private string _selector; + + /// Selector value for which elements in the collection this exclusion applies to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Selector { get => this._selector; set => this._selector = value; } + + /// Backing field for property. + private string _variable; + + /// The variable type to be excluded. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Variable { get => this._variable; set => this._variable = value; } + + /// Creates an new instance. + public ManagedRuleExclusion() + { + + } + } + /// Exclude variables from managed rule evaluation. + public partial interface IManagedRuleExclusion : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.", + SerializedName = @"selectorMatchOperator", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] + string Operator { get; set; } + /// Selector value for which elements in the collection this exclusion applies to. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Selector value for which elements in the collection this exclusion applies to.", + SerializedName = @"selector", + PossibleTypes = new [] { typeof(string) })] + string Selector { get; set; } + /// The variable type to be excluded. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The variable type to be excluded.", + SerializedName = @"matchVariable", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + string Variable { get; set; } + + } + /// Exclude variables from managed rule evaluation. + internal partial interface IManagedRuleExclusionInternal + + { + /// + /// Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] + string Operator { get; set; } + /// Selector value for which elements in the collection this exclusion applies to. + string Selector { get; set; } + /// The variable type to be excluded. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + string Variable { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.json.cs new file mode 100644 index 000000000000..687cfc58a833 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.json.cs @@ -0,0 +1,112 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Exclude variables from managed rule evaluation. + public partial class ManagedRuleExclusion + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleExclusion(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleExclusion(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_variable = If( json?.PropertyT("matchVariable"), out var __jsonMatchVariable) ? (string)__jsonMatchVariable : (string)_variable;} + {_operator = If( json?.PropertyT("selectorMatchOperator"), out var __jsonSelectorMatchOperator) ? (string)__jsonSelectorMatchOperator : (string)_operator;} + {_selector = If( json?.PropertyT("selector"), out var __jsonSelector) ? (string)__jsonSelector : (string)_selector;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._variable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._variable.ToString()) : null, "matchVariable" ,container.Add ); + AddIf( null != (((object)this._operator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._operator.ToString()) : null, "selectorMatchOperator" ,container.Add ); + AddIf( null != (((object)this._selector)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selector.ToString()) : null, "selector" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.PowerShell.cs new file mode 100644 index 000000000000..0df7eb7dea5c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.PowerShell.cs @@ -0,0 +1,180 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Describes a managed rule group. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleGroupDefinitionTypeConverter))] + public partial class ManagedRuleGroupDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleGroupDefinition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleGroupDefinition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleGroupDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RuleGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).RuleGroupName = (string) content.GetValueForProperty("RuleGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).RuleGroupName, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinitionTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleGroupDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RuleGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).RuleGroupName = (string) content.GetValueForProperty("RuleGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).RuleGroupName, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinitionTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Describes a managed rule group. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleGroupDefinitionTypeConverter))] + public partial interface IManagedRuleGroupDefinition + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.TypeConverter.cs new file mode 100644 index 000000000000..0ff47cc76c8a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleGroupDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleGroupDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleGroupDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleGroupDefinition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.cs new file mode 100644 index 000000000000..7fbbafc3f8cf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.cs @@ -0,0 +1,103 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes a managed rule group. + public partial class ManagedRuleGroupDefinition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal + { + + /// Backing field for property. + private string _description; + + /// Description of the managed rule group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for Rule + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal.Rule { get => this._rule; set { {_rule = value;} } } + + /// Internal Acessors for RuleGroupName + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal.RuleGroupName { get => this._ruleGroupName; set { {_ruleGroupName = value;} } } + + /// Backing field for property. + private System.Collections.Generic.List _rule; + + /// List of rules within the managed rule group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Rule { get => this._rule; } + + /// Backing field for property. + private string _ruleGroupName; + + /// Name of the managed rule group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleGroupName { get => this._ruleGroupName; } + + /// Creates an new instance. + public ManagedRuleGroupDefinition() + { + + } + } + /// Describes a managed rule group. + public partial interface IManagedRuleGroupDefinition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Description of the managed rule group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Description of the managed rule group.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// List of rules within the managed rule group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of rules within the managed rule group.", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition) })] + System.Collections.Generic.List Rule { get; } + /// Name of the managed rule group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Name of the managed rule group.", + SerializedName = @"ruleGroupName", + PossibleTypes = new [] { typeof(string) })] + string RuleGroupName { get; } + + } + /// Describes a managed rule group. + internal partial interface IManagedRuleGroupDefinitionInternal + + { + /// Description of the managed rule group. + string Description { get; set; } + /// List of rules within the managed rule group. + System.Collections.Generic.List Rule { get; set; } + /// Name of the managed rule group. + string RuleGroupName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.json.cs new file mode 100644 index 000000000000..c88ca479e65d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.json.cs @@ -0,0 +1,129 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes a managed rule group. + public partial class ManagedRuleGroupDefinition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleGroupDefinition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleGroupDefinition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_ruleGroupName = If( json?.PropertyT("ruleGroupName"), out var __jsonRuleGroupName) ? (string)__jsonRuleGroupName : (string)_ruleGroupName;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} + {_rule = If( json?.PropertyT("rules"), out var __jsonRules) ? If( __jsonRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinition.FromJson(__u) )) ))() : null : _rule;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._ruleGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleGroupName.ToString()) : null, "ruleGroupName" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._rule) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._rule ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("rules",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.PowerShell.cs new file mode 100644 index 000000000000..ec6d7f1c54c3 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.PowerShell.cs @@ -0,0 +1,180 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines a managed rule group override setting. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleGroupOverrideTypeConverter))] + public partial class ManagedRuleGroupOverride + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleGroupOverride(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleGroupOverride(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleGroupOverride(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RuleGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).RuleGroupName = (string) content.GetValueForProperty("RuleGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).RuleGroupName, global::System.Convert.ToString); + } + if (content.Contains("Exclusion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedRuleOverride")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).ManagedRuleOverride = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).ManagedRuleOverride, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverrideTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleGroupOverride(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RuleGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).RuleGroupName = (string) content.GetValueForProperty("RuleGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).RuleGroupName, global::System.Convert.ToString); + } + if (content.Contains("Exclusion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedRuleOverride")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).ManagedRuleOverride = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).ManagedRuleOverride, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverrideTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines a managed rule group override setting. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleGroupOverrideTypeConverter))] + public partial interface IManagedRuleGroupOverride + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.TypeConverter.cs new file mode 100644 index 000000000000..64912402ba1b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleGroupOverrideTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleGroupOverride.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleGroupOverride.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleGroupOverride.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.cs new file mode 100644 index 000000000000..03d695c23eb7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.cs @@ -0,0 +1,100 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines a managed rule group override setting. + public partial class ManagedRuleGroupOverride : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _exclusion; + + /// Describes the exclusions that are applied to all rules in the group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Exclusion { get => this._exclusion; set => this._exclusion = value; } + + /// Backing field for property. + private System.Collections.Generic.List _managedRuleOverride; + + /// + /// List of rules that will be disabled. If none specified, all rules in the group will be disabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List ManagedRuleOverride { get => this._managedRuleOverride; set => this._managedRuleOverride = value; } + + /// Backing field for property. + private string _ruleGroupName; + + /// Describes the managed rule group to override. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleGroupName { get => this._ruleGroupName; set => this._ruleGroupName = value; } + + /// Creates an new instance. + public ManagedRuleGroupOverride() + { + + } + } + /// Defines a managed rule group override setting. + public partial interface IManagedRuleGroupOverride : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Describes the exclusions that are applied to all rules in the group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes the exclusions that are applied to all rules in the group.", + SerializedName = @"exclusions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) })] + System.Collections.Generic.List Exclusion { get; set; } + /// + /// List of rules that will be disabled. If none specified, all rules in the group will be disabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of rules that will be disabled. If none specified, all rules in the group will be disabled.", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride) })] + System.Collections.Generic.List ManagedRuleOverride { get; set; } + /// Describes the managed rule group to override. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes the managed rule group to override.", + SerializedName = @"ruleGroupName", + PossibleTypes = new [] { typeof(string) })] + string RuleGroupName { get; set; } + + } + /// Defines a managed rule group override setting. + internal partial interface IManagedRuleGroupOverrideInternal + + { + /// Describes the exclusions that are applied to all rules in the group. + System.Collections.Generic.List Exclusion { get; set; } + /// + /// List of rules that will be disabled. If none specified, all rules in the group will be disabled. + /// + System.Collections.Generic.List ManagedRuleOverride { get; set; } + /// Describes the managed rule group to override. + string RuleGroupName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.json.cs new file mode 100644 index 000000000000..6ea1b0353438 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.json.cs @@ -0,0 +1,128 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines a managed rule group override setting. + public partial class ManagedRuleGroupOverride + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleGroupOverride(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleGroupOverride(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_ruleGroupName = If( json?.PropertyT("ruleGroupName"), out var __jsonRuleGroupName) ? (string)__jsonRuleGroupName : (string)_ruleGroupName;} + {_exclusion = If( json?.PropertyT("exclusions"), out var __jsonExclusions) ? If( __jsonExclusions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion.FromJson(__u) )) ))() : null : _exclusion;} + {_managedRuleOverride = If( json?.PropertyT("rules"), out var __jsonRules) ? If( __jsonRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride.FromJson(__p) )) ))() : null : _managedRuleOverride;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._ruleGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleGroupName.ToString()) : null, "ruleGroupName" ,container.Add ); + if (null != this._exclusion) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._exclusion ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("exclusions",__w); + } + if (null != this._managedRuleOverride) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._managedRuleOverride ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("rules",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.PowerShell.cs new file mode 100644 index 000000000000..afd5f54fbc97 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.PowerShell.cs @@ -0,0 +1,188 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines a managed rule group override setting. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleOverrideTypeConverter))] + public partial class ManagedRuleOverride + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleOverride(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleOverride(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleOverride(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RuleId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).RuleId = (string) content.GetValueForProperty("RuleId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).RuleId, global::System.Convert.ToString); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Action, global::System.Convert.ToString); + } + if (content.Contains("Exclusion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleOverride(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RuleId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).RuleId = (string) content.GetValueForProperty("RuleId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).RuleId, global::System.Convert.ToString); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Action, global::System.Convert.ToString); + } + if (content.Contains("Exclusion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines a managed rule group override setting. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleOverrideTypeConverter))] + public partial interface IManagedRuleOverride + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.TypeConverter.cs new file mode 100644 index 000000000000..7bd597647888 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleOverrideTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleOverride.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleOverride.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleOverride.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.cs new file mode 100644 index 000000000000..e61b5ca0b1e0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines a managed rule group override setting. + public partial class ManagedRuleOverride : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal + { + + /// Backing field for property. + private string _action; + + /// Describes the override action to be applied when rule matches. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Action { get => this._action; set => this._action = value; } + + /// Backing field for property. + private string _enabledState; + + /// + /// Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string EnabledState { get => this._enabledState; set => this._enabledState = value; } + + /// Backing field for property. + private System.Collections.Generic.List _exclusion; + + /// Describes the exclusions that are applied to this specific rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Exclusion { get => this._exclusion; set => this._exclusion = value; } + + /// Backing field for property. + private string _ruleId; + + /// Identifier for the managed rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleId { get => this._ruleId; set => this._ruleId = value; } + + /// Creates an new instance. + public ManagedRuleOverride() + { + + } + } + /// Defines a managed rule group override setting. + public partial interface IManagedRuleOverride : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Describes the override action to be applied when rule matches. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes the override action to be applied when rule matches.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] + string Action { get; set; } + /// + /// Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string EnabledState { get; set; } + /// Describes the exclusions that are applied to this specific rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes the exclusions that are applied to this specific rule.", + SerializedName = @"exclusions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) })] + System.Collections.Generic.List Exclusion { get; set; } + /// Identifier for the managed rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Identifier for the managed rule.", + SerializedName = @"ruleId", + PossibleTypes = new [] { typeof(string) })] + string RuleId { get; set; } + + } + /// Defines a managed rule group override setting. + internal partial interface IManagedRuleOverrideInternal + + { + /// Describes the override action to be applied when rule matches. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] + string Action { get; set; } + /// + /// Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string EnabledState { get; set; } + /// Describes the exclusions that are applied to this specific rule. + System.Collections.Generic.List Exclusion { get; set; } + /// Identifier for the managed rule. + string RuleId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.json.cs new file mode 100644 index 000000000000..2cb0f765b3d7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.json.cs @@ -0,0 +1,122 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines a managed rule group override setting. + public partial class ManagedRuleOverride + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleOverride(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleOverride(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_ruleId = If( json?.PropertyT("ruleId"), out var __jsonRuleId) ? (string)__jsonRuleId : (string)_ruleId;} + {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)_action;} + {_exclusion = If( json?.PropertyT("exclusions"), out var __jsonExclusions) ? If( __jsonExclusions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion.FromJson(__u) )) ))() : null : _exclusion;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._ruleId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleId.ToString()) : null, "ruleId" ,container.Add ); + AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); + AddIf( null != (((object)this._action)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._action.ToString()) : null, "action" ,container.Add ); + if (null != this._exclusion) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._exclusion ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("exclusions",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.PowerShell.cs new file mode 100644 index 000000000000..dda9fde77a94 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.PowerShell.cs @@ -0,0 +1,196 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines a managed rule set. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetTypeConverter))] + public partial class ManagedRuleSet + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleSet(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleSet(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleSet(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("RuleSetAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleSetAction = (string) content.GetValueForProperty("RuleSetAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleSetAction, global::System.Convert.ToString); + } + if (content.Contains("Exclusion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); + } + if (content.Contains("RuleGroupOverride")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleGroupOverride = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroupOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleGroupOverride, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverrideTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleSet(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("RuleSetAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleSetAction = (string) content.GetValueForProperty("RuleSetAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleSetAction, global::System.Convert.ToString); + } + if (content.Contains("Exclusion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); + } + if (content.Contains("RuleGroupOverride")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleGroupOverride = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroupOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleGroupOverride, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverrideTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines a managed rule set. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetTypeConverter))] + public partial interface IManagedRuleSet + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.TypeConverter.cs new file mode 100644 index 000000000000..1cc0e012af4b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleSetTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleSet.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleSet.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleSet.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.cs new file mode 100644 index 000000000000..a896bea0cbb9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.cs @@ -0,0 +1,136 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines a managed rule set. + public partial class ManagedRuleSet : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _exclusion; + + /// Describes the exclusions that are applied to all rules in the set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Exclusion { get => this._exclusion; set => this._exclusion = value; } + + /// Backing field for property. + private System.Collections.Generic.List _ruleGroupOverride; + + /// Defines the rule group overrides to apply to the rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List RuleGroupOverride { get => this._ruleGroupOverride; set => this._ruleGroupOverride = value; } + + /// Backing field for property. + private string _ruleSetAction; + + /// Defines the rule set action. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleSetAction { get => this._ruleSetAction; set => this._ruleSetAction = value; } + + /// Backing field for property. + private string _type; + + /// Defines the rule set type to use. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; set => this._type = value; } + + /// Backing field for property. + private string _version; + + /// Defines the version of the rule set to use. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Version { get => this._version; set => this._version = value; } + + /// Creates an new instance. + public ManagedRuleSet() + { + + } + } + /// Defines a managed rule set. + public partial interface IManagedRuleSet : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Describes the exclusions that are applied to all rules in the set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes the exclusions that are applied to all rules in the set.", + SerializedName = @"exclusions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) })] + System.Collections.Generic.List Exclusion { get; set; } + /// Defines the rule group overrides to apply to the rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the rule group overrides to apply to the rule set.", + SerializedName = @"ruleGroupOverrides", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride) })] + System.Collections.Generic.List RuleGroupOverride { get; set; } + /// Defines the rule set action. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the rule set action.", + SerializedName = @"ruleSetAction", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] + string RuleSetAction { get; set; } + /// Defines the rule set type to use. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the rule set type to use.", + SerializedName = @"ruleSetType", + PossibleTypes = new [] { typeof(string) })] + string Type { get; set; } + /// Defines the version of the rule set to use. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the version of the rule set to use.", + SerializedName = @"ruleSetVersion", + PossibleTypes = new [] { typeof(string) })] + string Version { get; set; } + + } + /// Defines a managed rule set. + internal partial interface IManagedRuleSetInternal + + { + /// Describes the exclusions that are applied to all rules in the set. + System.Collections.Generic.List Exclusion { get; set; } + /// Defines the rule group overrides to apply to the rule set. + System.Collections.Generic.List RuleGroupOverride { get; set; } + /// Defines the rule set action. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] + string RuleSetAction { get; set; } + /// Defines the rule set type to use. + string Type { get; set; } + /// Defines the version of the rule set to use. + string Version { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.json.cs new file mode 100644 index 000000000000..98d7ab76e4e3 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.json.cs @@ -0,0 +1,132 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines a managed rule set. + public partial class ManagedRuleSet + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSet(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleSet(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_type = If( json?.PropertyT("ruleSetType"), out var __jsonRuleSetType) ? (string)__jsonRuleSetType : (string)_type;} + {_version = If( json?.PropertyT("ruleSetVersion"), out var __jsonRuleSetVersion) ? (string)__jsonRuleSetVersion : (string)_version;} + {_ruleSetAction = If( json?.PropertyT("ruleSetAction"), out var __jsonRuleSetAction) ? (string)__jsonRuleSetAction : (string)_ruleSetAction;} + {_exclusion = If( json?.PropertyT("exclusions"), out var __jsonExclusions) ? If( __jsonExclusions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion.FromJson(__u) )) ))() : null : _exclusion;} + {_ruleGroupOverride = If( json?.PropertyT("ruleGroupOverrides"), out var __jsonRuleGroupOverrides) ? If( __jsonRuleGroupOverrides as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride.FromJson(__p) )) ))() : null : _ruleGroupOverride;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "ruleSetType" ,container.Add ); + AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._version.ToString()) : null, "ruleSetVersion" ,container.Add ); + AddIf( null != (((object)this._ruleSetAction)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleSetAction.ToString()) : null, "ruleSetAction" ,container.Add ); + if (null != this._exclusion) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._exclusion ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("exclusions",__w); + } + if (null != this._ruleGroupOverride) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._ruleGroupOverride ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("ruleGroupOverrides",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.PowerShell.cs new file mode 100644 index 000000000000..41fdc440d74e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.PowerShell.cs @@ -0,0 +1,244 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Describes the a managed rule set definition. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionTypeConverter))] + public partial class ManagedRuleSetDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleSetDefinition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleSetDefinition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleSetDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("RuleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetId = (string) content.GetValueForProperty("RuleSetId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetId, global::System.Convert.ToString); + } + if (content.Contains("RuleSetType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetType = (string) content.GetValueForProperty("RuleSetType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetType, global::System.Convert.ToString); + } + if (content.Contains("RuleSetVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetVersion = (string) content.GetValueForProperty("RuleSetVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetVersion, global::System.Convert.ToString); + } + if (content.Contains("RuleGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleGroup = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroup",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinitionTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleSetDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("RuleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetId = (string) content.GetValueForProperty("RuleSetId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetId, global::System.Convert.ToString); + } + if (content.Contains("RuleSetType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetType = (string) content.GetValueForProperty("RuleSetType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetType, global::System.Convert.ToString); + } + if (content.Contains("RuleSetVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetVersion = (string) content.GetValueForProperty("RuleSetVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetVersion, global::System.Convert.ToString); + } + if (content.Contains("RuleGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleGroup = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroup",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinitionTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Describes the a managed rule set definition. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionTypeConverter))] + public partial interface IManagedRuleSetDefinition + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.TypeConverter.cs new file mode 100644 index 000000000000..1016b4775ab2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleSetDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleSetDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleSetDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleSetDefinition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.cs new file mode 100644 index 000000000000..43afaad7d06a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.cs @@ -0,0 +1,193 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes the a managed rule set definition. + public partial class ManagedRuleSetDefinition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(); + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; } + + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for RuleGroup + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.RuleGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleGroup = value ?? null /* arrayOf */; } + + /// Internal Acessors for RuleSetId + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.RuleSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetId = value ?? null; } + + /// Internal Acessors for RuleSetType + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.RuleSetType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetType = value ?? null; } + + /// Internal Acessors for RuleSetVersion + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.RuleSetVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetVersion = value ?? null; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id = value ?? null; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type = value ?? null; } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties _property; + + /// Properties for a managed rule set definition. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties()); set => this._property = value; } + + /// Provisioning state of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).ProvisioningState; } + + /// Rule groups of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List RuleGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleGroup; } + + /// Id of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string RuleSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetId; } + + /// Type of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string RuleSetType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetType; } + + /// Version of the managed rule set type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string RuleSetVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetVersion; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag = value ?? null /* model class */; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ManagedRuleSetDefinition() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Describes the a managed rule set definition. + public partial interface IManagedRuleSetDefinition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource + { + /// Provisioning state of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning state of the managed rule set.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// Rule groups of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Rule groups of the managed rule set.", + SerializedName = @"ruleGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition) })] + System.Collections.Generic.List RuleGroup { get; } + /// Id of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Id of the managed rule set.", + SerializedName = @"ruleSetId", + PossibleTypes = new [] { typeof(string) })] + string RuleSetId { get; } + /// Type of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Type of the managed rule set.", + SerializedName = @"ruleSetType", + PossibleTypes = new [] { typeof(string) })] + string RuleSetType { get; } + /// Version of the managed rule set type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Version of the managed rule set type.", + SerializedName = @"ruleSetVersion", + PossibleTypes = new [] { typeof(string) })] + string RuleSetVersion { get; } + + } + /// Describes the a managed rule set definition. + internal partial interface IManagedRuleSetDefinitionInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal + { + /// Properties for a managed rule set definition. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties Property { get; set; } + /// Provisioning state of the managed rule set. + string ProvisioningState { get; set; } + /// Rule groups of the managed rule set. + System.Collections.Generic.List RuleGroup { get; set; } + /// Id of the managed rule set. + string RuleSetId { get; set; } + /// Type of the managed rule set. + string RuleSetType { get; set; } + /// Version of the managed rule set type. + string RuleSetVersion { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.json.cs new file mode 100644 index 000000000000..6875b88eca48 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.json.cs @@ -0,0 +1,110 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes the a managed rule set definition. + public partial class ManagedRuleSetDefinition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSetDefinition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleSetDefinition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.PowerShell.cs new file mode 100644 index 000000000000..bcca77fff845 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.PowerShell.cs @@ -0,0 +1,172 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// List of managed rule set definitions available for use in a policy. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionListTypeConverter))] + public partial class ManagedRuleSetDefinitionList + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleSetDefinitionList(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleSetDefinitionList(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleSetDefinitionList(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleSetDefinitionList(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// List of managed rule set definitions available for use in a policy. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionListTypeConverter))] + public partial interface IManagedRuleSetDefinitionList + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.TypeConverter.cs new file mode 100644 index 000000000000..fe1e85548133 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleSetDefinitionListTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleSetDefinitionList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleSetDefinitionList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleSetDefinitionList.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.cs new file mode 100644 index 000000000000..8a0c25589115 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.cs @@ -0,0 +1,77 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// List of managed rule set definitions available for use in a policy. + public partial class ManagedRuleSetDefinitionList : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to retrieve next set of managed rule set definitions. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of managed rule set definitions. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public ManagedRuleSetDefinitionList() + { + + } + } + /// List of managed rule set definitions available for use in a policy. + public partial interface IManagedRuleSetDefinitionList : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// URL to retrieve next set of managed rule set definitions. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to retrieve next set of managed rule set definitions.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of managed rule set definitions. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of managed rule set definitions.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition) })] + System.Collections.Generic.List Value { get; } + + } + /// List of managed rule set definitions available for use in a policy. + internal partial interface IManagedRuleSetDefinitionListInternal + + { + /// URL to retrieve next set of managed rule set definitions. + string NextLink { get; set; } + /// List of managed rule set definitions. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.json.cs new file mode 100644 index 000000000000..094c0ed366c1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.json.cs @@ -0,0 +1,121 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// List of managed rule set definitions available for use in a policy. + public partial class ManagedRuleSetDefinitionList + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSetDefinitionList(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleSetDefinitionList(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinition.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.PowerShell.cs new file mode 100644 index 000000000000..347ab878bc57 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.PowerShell.cs @@ -0,0 +1,198 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Properties for a managed rule set definition. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionPropertiesTypeConverter))] + public partial class ManagedRuleSetDefinitionProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleSetDefinitionProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleSetDefinitionProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleSetDefinitionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("RuleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetId = (string) content.GetValueForProperty("RuleSetId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetId, global::System.Convert.ToString); + } + if (content.Contains("RuleSetType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetType = (string) content.GetValueForProperty("RuleSetType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetType, global::System.Convert.ToString); + } + if (content.Contains("RuleSetVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetVersion = (string) content.GetValueForProperty("RuleSetVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetVersion, global::System.Convert.ToString); + } + if (content.Contains("RuleGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleGroup = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroup",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinitionTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleSetDefinitionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("RuleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetId = (string) content.GetValueForProperty("RuleSetId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetId, global::System.Convert.ToString); + } + if (content.Contains("RuleSetType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetType = (string) content.GetValueForProperty("RuleSetType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetType, global::System.Convert.ToString); + } + if (content.Contains("RuleSetVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetVersion = (string) content.GetValueForProperty("RuleSetVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetVersion, global::System.Convert.ToString); + } + if (content.Contains("RuleGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleGroup = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroup",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinitionTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Properties for a managed rule set definition. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionPropertiesTypeConverter))] + public partial interface IManagedRuleSetDefinitionProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.TypeConverter.cs new file mode 100644 index 000000000000..f95e24cd0451 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.TypeConverter.cs @@ -0,0 +1,149 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleSetDefinitionPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleSetDefinitionProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleSetDefinitionProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleSetDefinitionProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.cs new file mode 100644 index 000000000000..164febcb5205 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.cs @@ -0,0 +1,149 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Properties for a managed rule set definition. + public partial class ManagedRuleSetDefinitionProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal + { + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for RuleGroup + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.RuleGroup { get => this._ruleGroup; set { {_ruleGroup = value;} } } + + /// Internal Acessors for RuleSetId + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.RuleSetId { get => this._ruleSetId; set { {_ruleSetId = value;} } } + + /// Internal Acessors for RuleSetType + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.RuleSetType { get => this._ruleSetType; set { {_ruleSetType = value;} } } + + /// Internal Acessors for RuleSetVersion + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.RuleSetVersion { get => this._ruleSetVersion; set { {_ruleSetVersion = value;} } } + + /// Backing field for property. + private string _provisioningState; + + /// Provisioning state of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private System.Collections.Generic.List _ruleGroup; + + /// Rule groups of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List RuleGroup { get => this._ruleGroup; } + + /// Backing field for property. + private string _ruleSetId; + + /// Id of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleSetId { get => this._ruleSetId; } + + /// Backing field for property. + private string _ruleSetType; + + /// Type of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleSetType { get => this._ruleSetType; } + + /// Backing field for property. + private string _ruleSetVersion; + + /// Version of the managed rule set type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RuleSetVersion { get => this._ruleSetVersion; } + + /// Creates an new instance. + public ManagedRuleSetDefinitionProperties() + { + + } + } + /// Properties for a managed rule set definition. + public partial interface IManagedRuleSetDefinitionProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Provisioning state of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning state of the managed rule set.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// Rule groups of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Rule groups of the managed rule set.", + SerializedName = @"ruleGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition) })] + System.Collections.Generic.List RuleGroup { get; } + /// Id of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Id of the managed rule set.", + SerializedName = @"ruleSetId", + PossibleTypes = new [] { typeof(string) })] + string RuleSetId { get; } + /// Type of the managed rule set. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Type of the managed rule set.", + SerializedName = @"ruleSetType", + PossibleTypes = new [] { typeof(string) })] + string RuleSetType { get; } + /// Version of the managed rule set type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Version of the managed rule set type.", + SerializedName = @"ruleSetVersion", + PossibleTypes = new [] { typeof(string) })] + string RuleSetVersion { get; } + + } + /// Properties for a managed rule set definition. + internal partial interface IManagedRuleSetDefinitionPropertiesInternal + + { + /// Provisioning state of the managed rule set. + string ProvisioningState { get; set; } + /// Rule groups of the managed rule set. + System.Collections.Generic.List RuleGroup { get; set; } + /// Id of the managed rule set. + string RuleSetId { get; set; } + /// Type of the managed rule set. + string RuleSetType { get; set; } + /// Version of the managed rule set type. + string RuleSetVersion { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.json.cs new file mode 100644 index 000000000000..3db916a4cd96 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.json.cs @@ -0,0 +1,140 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Properties for a managed rule set definition. + public partial class ManagedRuleSetDefinitionProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSetDefinitionProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleSetDefinitionProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_ruleSetId = If( json?.PropertyT("ruleSetId"), out var __jsonRuleSetId) ? (string)__jsonRuleSetId : (string)_ruleSetId;} + {_ruleSetType = If( json?.PropertyT("ruleSetType"), out var __jsonRuleSetType) ? (string)__jsonRuleSetType : (string)_ruleSetType;} + {_ruleSetVersion = If( json?.PropertyT("ruleSetVersion"), out var __jsonRuleSetVersion) ? (string)__jsonRuleSetVersion : (string)_ruleSetVersion;} + {_ruleGroup = If( json?.PropertyT("ruleGroups"), out var __jsonRuleGroups) ? If( __jsonRuleGroups as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinition.FromJson(__u) )) ))() : null : _ruleGroup;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._ruleSetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleSetId.ToString()) : null, "ruleSetId" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._ruleSetType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleSetType.ToString()) : null, "ruleSetType" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._ruleSetVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleSetVersion.ToString()) : null, "ruleSetVersion" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._ruleGroup) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._ruleGroup ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("ruleGroups",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.PowerShell.cs new file mode 100644 index 000000000000..7eeb0be68c5c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines the list of managed rule sets for the policy. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetListTypeConverter))] + public partial class ManagedRuleSetList + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedRuleSetList(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedRuleSetList(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedRuleSetList(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ManagedRuleSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedRuleSetList(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ManagedRuleSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines the list of managed rule sets for the policy. + [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetListTypeConverter))] + public partial interface IManagedRuleSetList + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.TypeConverter.cs new file mode 100644 index 000000000000..df0a5931b913 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedRuleSetListTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedRuleSetList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedRuleSetList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedRuleSetList.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.cs new file mode 100644 index 000000000000..051e7a182860 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the list of managed rule sets for the policy. + public partial class ManagedRuleSetList : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _managedRuleSet; + + /// List of rule sets. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List ManagedRuleSet { get => this._managedRuleSet; set => this._managedRuleSet = value; } + + /// Creates an new instance. + public ManagedRuleSetList() + { + + } + } + /// Defines the list of managed rule sets for the policy. + public partial interface IManagedRuleSetList : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// List of rule sets. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of rule sets.", + SerializedName = @"managedRuleSets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] + System.Collections.Generic.List ManagedRuleSet { get; set; } + + } + /// Defines the list of managed rule sets for the policy. + internal partial interface IManagedRuleSetListInternal + + { + /// List of rule sets. + System.Collections.Generic.List ManagedRuleSet { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.json.cs new file mode 100644 index 000000000000..efa5ae489a22 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the list of managed rule sets for the policy. + public partial class ManagedRuleSetList + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSetList(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedRuleSetList(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_managedRuleSet = If( json?.PropertyT("managedRuleSets"), out var __jsonManagedRuleSets) ? If( __jsonManagedRuleSets as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet.FromJson(__u) )) ))() : null : _managedRuleSet;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._managedRuleSet) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._managedRuleSet ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("managedRuleSets",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.PowerShell.cs new file mode 100644 index 000000000000..01e6c6f82349 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.PowerShell.cs @@ -0,0 +1,204 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Define a match condition. + [System.ComponentModel.TypeConverter(typeof(MatchConditionTypeConverter))] + public partial class MatchCondition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MatchCondition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MatchCondition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MatchCondition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MatchVariable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchVariable, global::System.Convert.ToString); + } + if (content.Contains("Selector")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Selector, global::System.Convert.ToString); + } + if (content.Contains("OperatorProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).OperatorProperty = (string) content.GetValueForProperty("OperatorProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).OperatorProperty, global::System.Convert.ToString); + } + if (content.Contains("NegateCondition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).NegateCondition = (bool?) content.GetValueForProperty("NegateCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).NegateCondition, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MatchValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchValue = (System.Collections.Generic.List) content.GetValueForProperty("MatchValue",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchValue, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Transform")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Transform = (System.Collections.Generic.List) content.GetValueForProperty("Transform",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Transform, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MatchCondition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MatchVariable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchVariable, global::System.Convert.ToString); + } + if (content.Contains("Selector")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Selector, global::System.Convert.ToString); + } + if (content.Contains("OperatorProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).OperatorProperty = (string) content.GetValueForProperty("OperatorProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).OperatorProperty, global::System.Convert.ToString); + } + if (content.Contains("NegateCondition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).NegateCondition = (bool?) content.GetValueForProperty("NegateCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).NegateCondition, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MatchValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchValue = (System.Collections.Generic.List) content.GetValueForProperty("MatchValue",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchValue, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Transform")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Transform = (System.Collections.Generic.List) content.GetValueForProperty("Transform",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Transform, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Define a match condition. + [System.ComponentModel.TypeConverter(typeof(MatchConditionTypeConverter))] + public partial interface IMatchCondition + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.TypeConverter.cs new file mode 100644 index 000000000000..1b2d628ff52c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class MatchConditionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return MatchCondition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return MatchCondition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return MatchCondition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.cs new file mode 100644 index 000000000000..1f7635f44a53 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.cs @@ -0,0 +1,166 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Define a match condition. + public partial class MatchCondition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _matchValue; + + /// List of possible match values. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List MatchValue { get => this._matchValue; set => this._matchValue = value; } + + /// Backing field for property. + private string _matchVariable; + + /// Request variable to compare with. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string MatchVariable { get => this._matchVariable; set => this._matchVariable = value; } + + /// Backing field for property. + private bool? _negateCondition; + + /// Describes if the result of this condition should be negated. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public bool? NegateCondition { get => this._negateCondition; set => this._negateCondition = value; } + + /// Backing field for property. + private string _operatorProperty; + + /// Comparison type to use for matching with the variable value. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string OperatorProperty { get => this._operatorProperty; set => this._operatorProperty = value; } + + /// Backing field for property. + private string _selector; + + /// + /// Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Selector { get => this._selector; set => this._selector = value; } + + /// Backing field for property. + private System.Collections.Generic.List _transform; + + /// List of transforms. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Transform { get => this._transform; set => this._transform = value; } + + /// Creates an new instance. + public MatchCondition() + { + + } + } + /// Define a match condition. + public partial interface IMatchCondition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// List of possible match values. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of possible match values.", + SerializedName = @"matchValue", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List MatchValue { get; set; } + /// Request variable to compare with. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Request variable to compare with.", + SerializedName = @"matchVariable", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] + string MatchVariable { get; set; } + /// Describes if the result of this condition should be negated. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes if the result of this condition should be negated.", + SerializedName = @"negateCondition", + PossibleTypes = new [] { typeof(bool) })] + bool? NegateCondition { get; set; } + /// Comparison type to use for matching with the variable value. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Comparison type to use for matching with the variable value.", + SerializedName = @"operator", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] + string OperatorProperty { get; set; } + /// + /// Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.", + SerializedName = @"selector", + PossibleTypes = new [] { typeof(string) })] + string Selector { get; set; } + /// List of transforms. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of transforms.", + SerializedName = @"transforms", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + System.Collections.Generic.List Transform { get; set; } + + } + /// Define a match condition. + internal partial interface IMatchConditionInternal + + { + /// List of possible match values. + System.Collections.Generic.List MatchValue { get; set; } + /// Request variable to compare with. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] + string MatchVariable { get; set; } + /// Describes if the result of this condition should be negated. + bool? NegateCondition { get; set; } + /// Comparison type to use for matching with the variable value. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] + string OperatorProperty { get; set; } + /// + /// Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + /// + string Selector { get; set; } + /// List of transforms. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + System.Collections.Generic.List Transform { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.json.cs new file mode 100644 index 000000000000..9a68107ccc2f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.json.cs @@ -0,0 +1,134 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Define a match condition. + public partial class MatchCondition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new MatchCondition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal MatchCondition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_matchVariable = If( json?.PropertyT("matchVariable"), out var __jsonMatchVariable) ? (string)__jsonMatchVariable : (string)_matchVariable;} + {_selector = If( json?.PropertyT("selector"), out var __jsonSelector) ? (string)__jsonSelector : (string)_selector;} + {_operatorProperty = If( json?.PropertyT("operator"), out var __jsonOperator) ? (string)__jsonOperator : (string)_operatorProperty;} + {_negateCondition = If( json?.PropertyT("negateCondition"), out var __jsonNegateCondition) ? (bool?)__jsonNegateCondition : _negateCondition;} + {_matchValue = If( json?.PropertyT("matchValue"), out var __jsonMatchValue) ? If( __jsonMatchValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _matchValue;} + {_transform = If( json?.PropertyT("transforms"), out var __jsonTransforms) ? If( __jsonTransforms as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _transform;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._matchVariable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._matchVariable.ToString()) : null, "matchVariable" ,container.Add ); + AddIf( null != (((object)this._selector)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selector.ToString()) : null, "selector" ,container.Add ); + AddIf( null != (((object)this._operatorProperty)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._operatorProperty.ToString()) : null, "operator" ,container.Add ); + AddIf( null != this._negateCondition ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonBoolean((bool)this._negateCondition) : null, "negateCondition" ,container.Add ); + if (null != this._matchValue) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._matchValue ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("matchValue",__w); + } + if (null != this._transform) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._transform ) + { + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); + } + container.Add("transforms",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.PowerShell.cs new file mode 100644 index 000000000000..5aab61fae2ff --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.PowerShell.cs @@ -0,0 +1,228 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines top-level WebApplicationFirewallPolicy configuration settings. + [System.ComponentModel.TypeConverter(typeof(PolicySettingsTypeConverter))] + public partial class PolicySettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PolicySettings(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PolicySettings(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PolicySettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("Mode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).Mode = (string) content.GetValueForProperty("Mode",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).Mode, global::System.Convert.ToString); + } + if (content.Contains("RedirectUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RedirectUrl = (string) content.GetValueForProperty("RedirectUrl",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RedirectUrl, global::System.Convert.ToString); + } + if (content.Contains("CustomBlockResponseStatusCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseStatusCode = (int?) content.GetValueForProperty("CustomBlockResponseStatusCode",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseStatusCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CustomBlockResponseBody")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseBody = (string) content.GetValueForProperty("CustomBlockResponseBody",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseBody, global::System.Convert.ToString); + } + if (content.Contains("RequestBodyCheck")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RequestBodyCheck = (string) content.GetValueForProperty("RequestBodyCheck",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RequestBodyCheck, global::System.Convert.ToString); + } + if (content.Contains("JavascriptChallengeExpirationInMinutes")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).JavascriptChallengeExpirationInMinutes = (int?) content.GetValueForProperty("JavascriptChallengeExpirationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).JavascriptChallengeExpirationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CaptchaExpirationInMinutes")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CaptchaExpirationInMinutes = (int?) content.GetValueForProperty("CaptchaExpirationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CaptchaExpirationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LogScrubbingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).LogScrubbingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing) content.GetValueForProperty("LogScrubbingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).LogScrubbingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbingTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PolicySettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("Mode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).Mode = (string) content.GetValueForProperty("Mode",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).Mode, global::System.Convert.ToString); + } + if (content.Contains("RedirectUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RedirectUrl = (string) content.GetValueForProperty("RedirectUrl",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RedirectUrl, global::System.Convert.ToString); + } + if (content.Contains("CustomBlockResponseStatusCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseStatusCode = (int?) content.GetValueForProperty("CustomBlockResponseStatusCode",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseStatusCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CustomBlockResponseBody")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseBody = (string) content.GetValueForProperty("CustomBlockResponseBody",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseBody, global::System.Convert.ToString); + } + if (content.Contains("RequestBodyCheck")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RequestBodyCheck = (string) content.GetValueForProperty("RequestBodyCheck",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RequestBodyCheck, global::System.Convert.ToString); + } + if (content.Contains("JavascriptChallengeExpirationInMinutes")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).JavascriptChallengeExpirationInMinutes = (int?) content.GetValueForProperty("JavascriptChallengeExpirationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).JavascriptChallengeExpirationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CaptchaExpirationInMinutes")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CaptchaExpirationInMinutes = (int?) content.GetValueForProperty("CaptchaExpirationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CaptchaExpirationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LogScrubbingSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).LogScrubbingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing) content.GetValueForProperty("LogScrubbingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).LogScrubbingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbingTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines top-level WebApplicationFirewallPolicy configuration settings. + [System.ComponentModel.TypeConverter(typeof(PolicySettingsTypeConverter))] + public partial interface IPolicySettings + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.TypeConverter.cs new file mode 100644 index 000000000000..46b449e3fbd8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PolicySettingsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PolicySettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PolicySettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PolicySettings.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.cs new file mode 100644 index 000000000000..966f07e1b6f6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.cs @@ -0,0 +1,252 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines top-level WebApplicationFirewallPolicy configuration settings. + public partial class PolicySettings : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal + { + + /// Backing field for property. + private int? _captchaExpirationInMinutes; + + /// + /// 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. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? CaptchaExpirationInMinutes { get => this._captchaExpirationInMinutes; set => this._captchaExpirationInMinutes = value; } + + /// Backing field for property. + private string _customBlockResponseBody; + + /// + /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CustomBlockResponseBody { get => this._customBlockResponseBody; set => this._customBlockResponseBody = value; } + + /// Backing field for property. + private int? _customBlockResponseStatusCode; + + /// If the action type is block, customer can override the response status code. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? CustomBlockResponseStatusCode { get => this._customBlockResponseStatusCode; set => this._customBlockResponseStatusCode = value; } + + /// Backing field for property. + private string _enabledState; + + /// + /// Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string EnabledState { get => this._enabledState; set => this._enabledState = value; } + + /// + /// Backing field for property. + /// + private int? _javascriptChallengeExpirationInMinutes; + + /// + /// 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. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int? JavascriptChallengeExpirationInMinutes { get => this._javascriptChallengeExpirationInMinutes; set => this._javascriptChallengeExpirationInMinutes = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing _logScrubbingSetting; + + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing LogScrubbingSetting { get => (this._logScrubbingSetting = this._logScrubbingSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing()); set => this._logScrubbingSetting = value; } + + /// Backing field for property. + private string _mode; + + /// Describes if it is in detection mode or prevention mode at policy level. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Mode { get => this._mode; set => this._mode = value; } + + /// Backing field for property. + private string _redirectUrl; + + /// If action type is redirect, this field represents redirect URL for the client. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RedirectUrl { get => this._redirectUrl; set => this._redirectUrl = value; } + + /// Backing field for property. + private string _requestBodyCheck; + + /// Describes if policy managed rules will inspect the request body content. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RequestBodyCheck { get => this._requestBodyCheck; set => this._requestBodyCheck = value; } + + /// Creates an new instance. + public PolicySettings() + { + + } + } + /// Defines top-level WebApplicationFirewallPolicy configuration settings. + public partial interface IPolicySettings : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// 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. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"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.", + SerializedName = @"captchaExpirationInMinutes", + PossibleTypes = new [] { typeof(int) })] + int? CaptchaExpirationInMinutes { get; set; } + /// + /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the action type is block, customer can override the response body. The body must be specified in base64 encoding.", + SerializedName = @"customBlockResponseBody", + PossibleTypes = new [] { typeof(string) })] + string CustomBlockResponseBody { get; set; } + /// If the action type is block, customer can override the response status code. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the action type is block, customer can override the response status code.", + SerializedName = @"customBlockResponseStatusCode", + PossibleTypes = new [] { typeof(int) })] + int? CustomBlockResponseStatusCode { get; set; } + /// + /// Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string EnabledState { get; set; } + /// + /// 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. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"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.", + SerializedName = @"javascriptChallengeExpirationInMinutes", + PossibleTypes = new [] { typeof(int) })] + int? JavascriptChallengeExpirationInMinutes { get; set; } + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines rules that scrub sensitive fields in the Web Application Firewall logs.", + SerializedName = @"logScrubbing", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing LogScrubbingSetting { get; set; } + /// Describes if it is in detection mode or prevention mode at policy level. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes if it is in detection mode or prevention mode at policy level.", + SerializedName = @"mode", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + string Mode { get; set; } + /// If action type is redirect, this field represents redirect URL for the client. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If action type is redirect, this field represents redirect URL for the client.", + SerializedName = @"redirectUrl", + PossibleTypes = new [] { typeof(string) })] + string RedirectUrl { get; set; } + /// Describes if policy managed rules will inspect the request body content. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes if policy managed rules will inspect the request body content.", + SerializedName = @"requestBodyCheck", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string RequestBodyCheck { get; set; } + + } + /// Defines top-level WebApplicationFirewallPolicy configuration settings. + internal partial interface IPolicySettingsInternal + + { + /// + /// 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. + /// + int? CaptchaExpirationInMinutes { get; set; } + /// + /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + /// + string CustomBlockResponseBody { get; set; } + /// If the action type is block, customer can override the response status code. + int? CustomBlockResponseStatusCode { get; set; } + /// + /// Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string EnabledState { get; set; } + /// + /// 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. + /// + int? JavascriptChallengeExpirationInMinutes { get; set; } + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing LogScrubbingSetting { get; set; } + /// Describes if it is in detection mode or prevention mode at policy level. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] + string Mode { get; set; } + /// If action type is redirect, this field represents redirect URL for the client. + string RedirectUrl { get; set; } + /// Describes if policy managed rules will inspect the request body content. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string RequestBodyCheck { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.json.cs new file mode 100644 index 000000000000..710b2df266bd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines top-level WebApplicationFirewallPolicy configuration settings. + public partial class PolicySettings + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new PolicySettings(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal PolicySettings(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} + {_mode = If( json?.PropertyT("mode"), out var __jsonMode) ? (string)__jsonMode : (string)_mode;} + {_redirectUrl = If( json?.PropertyT("redirectUrl"), out var __jsonRedirectUrl) ? (string)__jsonRedirectUrl : (string)_redirectUrl;} + {_customBlockResponseStatusCode = If( json?.PropertyT("customBlockResponseStatusCode"), out var __jsonCustomBlockResponseStatusCode) ? (int?)__jsonCustomBlockResponseStatusCode : _customBlockResponseStatusCode;} + {_customBlockResponseBody = If( json?.PropertyT("customBlockResponseBody"), out var __jsonCustomBlockResponseBody) ? (string)__jsonCustomBlockResponseBody : (string)_customBlockResponseBody;} + {_requestBodyCheck = If( json?.PropertyT("requestBodyCheck"), out var __jsonRequestBodyCheck) ? (string)__jsonRequestBodyCheck : (string)_requestBodyCheck;} + {_javascriptChallengeExpirationInMinutes = If( json?.PropertyT("javascriptChallengeExpirationInMinutes"), out var __jsonJavascriptChallengeExpirationInMinutes) ? (int?)__jsonJavascriptChallengeExpirationInMinutes : _javascriptChallengeExpirationInMinutes;} + {_captchaExpirationInMinutes = If( json?.PropertyT("captchaExpirationInMinutes"), out var __jsonCaptchaExpirationInMinutes) ? (int?)__jsonCaptchaExpirationInMinutes : _captchaExpirationInMinutes;} + {_logScrubbingSetting = If( json?.PropertyT("logScrubbing"), out var __jsonLogScrubbing) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing.FromJson(__jsonLogScrubbing) : _logScrubbingSetting;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); + AddIf( null != (((object)this._mode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._mode.ToString()) : null, "mode" ,container.Add ); + AddIf( null != (((object)this._redirectUrl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._redirectUrl.ToString()) : null, "redirectUrl" ,container.Add ); + AddIf( null != this._customBlockResponseStatusCode ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._customBlockResponseStatusCode) : null, "customBlockResponseStatusCode" ,container.Add ); + AddIf( null != (((object)this._customBlockResponseBody)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customBlockResponseBody.ToString()) : null, "customBlockResponseBody" ,container.Add ); + AddIf( null != (((object)this._requestBodyCheck)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._requestBodyCheck.ToString()) : null, "requestBodyCheck" ,container.Add ); + AddIf( null != this._javascriptChallengeExpirationInMinutes ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._javascriptChallengeExpirationInMinutes) : null, "javascriptChallengeExpirationInMinutes" ,container.Add ); + AddIf( null != this._captchaExpirationInMinutes ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._captchaExpirationInMinutes) : null, "captchaExpirationInMinutes" ,container.Add ); + AddIf( null != this._logScrubbingSetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._logScrubbingSetting.ToJson(null,serializationMode) : null, "logScrubbing" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.PowerShell.cs new file mode 100644 index 000000000000..ad32615107b0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.PowerShell.cs @@ -0,0 +1,172 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [System.ComponentModel.TypeConverter(typeof(PolicySettingsLogScrubbingTypeConverter))] + public partial class PolicySettingsLogScrubbing + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PolicySettingsLogScrubbing(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PolicySettingsLogScrubbing(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PolicySettingsLogScrubbing(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("ScrubbingRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).ScrubbingRule = (System.Collections.Generic.List) content.GetValueForProperty("ScrubbingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).ScrubbingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRulesTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PolicySettingsLogScrubbing(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("ScrubbingRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).ScrubbingRule = (System.Collections.Generic.List) content.GetValueForProperty("ScrubbingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).ScrubbingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRulesTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [System.ComponentModel.TypeConverter(typeof(PolicySettingsLogScrubbingTypeConverter))] + public partial interface IPolicySettingsLogScrubbing + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.TypeConverter.cs new file mode 100644 index 000000000000..cfd1fe88eb34 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PolicySettingsLogScrubbingTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PolicySettingsLogScrubbing.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PolicySettingsLogScrubbing.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PolicySettingsLogScrubbing.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.cs new file mode 100644 index 000000000000..776a10a03e81 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.cs @@ -0,0 +1,76 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + public partial class PolicySettingsLogScrubbing : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _scrubbingRule; + + /// List of log scrubbing rules applied to the Web Application Firewall logs. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List ScrubbingRule { get => this._scrubbingRule; set => this._scrubbingRule = value; } + + /// Backing field for property. + private string _state; + + /// State of the log scrubbing config. Default value is Enabled. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string State { get => this._state; set => this._state = value; } + + /// Creates an new instance. + public PolicySettingsLogScrubbing() + { + + } + } + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + public partial interface IPolicySettingsLogScrubbing : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// List of log scrubbing rules applied to the Web Application Firewall logs. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of log scrubbing rules applied to the Web Application Firewall logs.", + SerializedName = @"scrubbingRules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules) })] + System.Collections.Generic.List ScrubbingRule { get; set; } + /// State of the log scrubbing config. Default value is Enabled. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"State of the log scrubbing config. Default value is Enabled.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string State { get; set; } + + } + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + internal partial interface IPolicySettingsLogScrubbingInternal + + { + /// List of log scrubbing rules applied to the Web Application Firewall logs. + System.Collections.Generic.List ScrubbingRule { get; set; } + /// State of the log scrubbing config. Default value is Enabled. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string State { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.json.cs new file mode 100644 index 000000000000..bf5d12d3ca9d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.json.cs @@ -0,0 +1,118 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. + public partial class PolicySettingsLogScrubbing + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new PolicySettingsLogScrubbing(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal PolicySettingsLogScrubbing(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)_state;} + {_scrubbingRule = If( json?.PropertyT("scrubbingRules"), out var __jsonScrubbingRules) ? If( __jsonScrubbingRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules.FromJson(__u) )) ))() : null : _scrubbingRule;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); + if (null != this._scrubbingRule) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._scrubbingRule ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("scrubbingRules",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.PowerShell.cs new file mode 100644 index 000000000000..78d37be7da46 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Parameters required for content purge. + [System.ComponentModel.TypeConverter(typeof(PurgeParametersTypeConverter))] + public partial class PurgeParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PurgeParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PurgeParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PurgeParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContentPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal)this).ContentPath = (System.Collections.Generic.List) content.GetValueForProperty("ContentPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal)this).ContentPath, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PurgeParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContentPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal)this).ContentPath = (System.Collections.Generic.List) content.GetValueForProperty("ContentPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal)this).ContentPath, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Parameters required for content purge. + [System.ComponentModel.TypeConverter(typeof(PurgeParametersTypeConverter))] + public partial interface IPurgeParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.TypeConverter.cs new file mode 100644 index 000000000000..5f0004345957 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PurgeParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PurgeParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PurgeParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PurgeParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.cs new file mode 100644 index 000000000000..dbdfcab15d6b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.cs @@ -0,0 +1,60 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Parameters required for content purge. + public partial class PurgeParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _contentPath; + + /// + /// The path to the content to be purged. Can describe a file path or a wild card directory. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List ContentPath { get => this._contentPath; set => this._contentPath = value; } + + /// Creates an new instance. + public PurgeParameters() + { + + } + } + /// Parameters required for content purge. + public partial interface IPurgeParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// The path to the content to be purged. Can describe a file path or a wild card directory. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The path to the content to be purged. Can describe a file path or a wild card directory.", + SerializedName = @"contentPaths", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List ContentPath { get; set; } + + } + /// Parameters required for content purge. + internal partial interface IPurgeParametersInternal + + { + /// + /// The path to the content to be purged. Can describe a file path or a wild card directory. + /// + System.Collections.Generic.List ContentPath { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.json.cs new file mode 100644 index 000000000000..152fefdf58e4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Parameters required for content purge. + public partial class PurgeParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new PurgeParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal PurgeParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_contentPath = If( json?.PropertyT("contentPaths"), out var __jsonContentPaths) ? If( __jsonContentPaths as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _contentPath;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._contentPath) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._contentPath ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("contentPaths",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.PowerShell.cs new file mode 100644 index 000000000000..9da388980d0f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.PowerShell.cs @@ -0,0 +1,212 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Describes Redirect Route. + [System.ComponentModel.TypeConverter(typeof(RedirectConfigurationTypeConverter))] + public partial class RedirectConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RedirectConfiguration(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RedirectConfiguration(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RedirectConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RedirectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectType = (string) content.GetValueForProperty("RedirectType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectType, global::System.Convert.ToString); + } + if (content.Contains("RedirectProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectProtocol = (string) content.GetValueForProperty("RedirectProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectProtocol, global::System.Convert.ToString); + } + if (content.Contains("CustomHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomHost = (string) content.GetValueForProperty("CustomHost",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomHost, global::System.Convert.ToString); + } + if (content.Contains("CustomPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomPath = (string) content.GetValueForProperty("CustomPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomPath, global::System.Convert.ToString); + } + if (content.Contains("CustomFragment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomFragment = (string) content.GetValueForProperty("CustomFragment",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomFragment, global::System.Convert.ToString); + } + if (content.Contains("CustomQueryString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomQueryString = (string) content.GetValueForProperty("CustomQueryString",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomQueryString, global::System.Convert.ToString); + } + if (content.Contains("OdataType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RedirectConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RedirectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectType = (string) content.GetValueForProperty("RedirectType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectType, global::System.Convert.ToString); + } + if (content.Contains("RedirectProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectProtocol = (string) content.GetValueForProperty("RedirectProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectProtocol, global::System.Convert.ToString); + } + if (content.Contains("CustomHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomHost = (string) content.GetValueForProperty("CustomHost",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomHost, global::System.Convert.ToString); + } + if (content.Contains("CustomPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomPath = (string) content.GetValueForProperty("CustomPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomPath, global::System.Convert.ToString); + } + if (content.Contains("CustomFragment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomFragment = (string) content.GetValueForProperty("CustomFragment",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomFragment, global::System.Convert.ToString); + } + if (content.Contains("CustomQueryString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomQueryString = (string) content.GetValueForProperty("CustomQueryString",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomQueryString, global::System.Convert.ToString); + } + if (content.Contains("OdataType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Describes Redirect Route. + [System.ComponentModel.TypeConverter(typeof(RedirectConfigurationTypeConverter))] + public partial interface IRedirectConfiguration + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..c4390c2df946 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RedirectConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RedirectConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RedirectConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RedirectConfiguration.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.cs new file mode 100644 index 000000000000..f2e42fa0bef2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.cs @@ -0,0 +1,208 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes Redirect Route. + public partial class RedirectConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration __routeConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration(); + + /// Backing field for property. + private string _customFragment; + + /// + /// Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CustomFragment { get => this._customFragment; set => this._customFragment = value; } + + /// Backing field for property. + private string _customHost; + + /// Host to redirect. Leave empty to use the incoming host as the destination host. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CustomHost { get => this._customHost; set => this._customHost = value; } + + /// Backing field for property. + private string _customPath; + + /// + /// The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination + /// path. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CustomPath { get => this._customPath; set => this._customPath = value; } + + /// Backing field for property. + private string _customQueryString; + + /// + /// The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; + /// leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will + /// be added automatically so do not include them in the front, but do separate multiple query strings with &. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string CustomQueryString { get => this._customQueryString; set => this._customQueryString = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Constant] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string OdataType { get => "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)__routeConfiguration).OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"; } + + /// Backing field for property. + private string _redirectProtocol; + + /// The protocol of the destination to where the traffic is redirected + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RedirectProtocol { get => this._redirectProtocol; set => this._redirectProtocol = value; } + + /// Backing field for property. + private string _redirectType; + + /// The redirect type the rule will use when redirecting traffic. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string RedirectType { get => this._redirectType; set => this._redirectType = value; } + + /// Creates an new instance. + public RedirectConfiguration() + { + this.__routeConfiguration.OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"; + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__routeConfiguration), __routeConfiguration); + await eventListener.AssertObjectIsValid(nameof(__routeConfiguration), __routeConfiguration); + } + } + /// Describes Redirect Route. + public partial interface IRedirectConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration + { + /// + /// Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.", + SerializedName = @"customFragment", + PossibleTypes = new [] { typeof(string) })] + string CustomFragment { get; set; } + /// Host to redirect. Leave empty to use the incoming host as the destination host. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Host to redirect. Leave empty to use the incoming host as the destination host.", + SerializedName = @"customHost", + PossibleTypes = new [] { typeof(string) })] + string CustomHost { get; set; } + /// + /// The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination + /// path. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.", + SerializedName = @"customPath", + PossibleTypes = new [] { typeof(string) })] + string CustomPath { get; set; } + /// + /// The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; + /// leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will + /// be added automatically so do not include them in the front, but do separate multiple query strings with &. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.", + SerializedName = @"customQueryString", + PossibleTypes = new [] { typeof(string) })] + string CustomQueryString { get; set; } + /// The protocol of the destination to where the traffic is redirected + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The protocol of the destination to where the traffic is redirected", + SerializedName = @"redirectProtocol", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + string RedirectProtocol { get; set; } + /// The redirect type the rule will use when redirecting traffic. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The redirect type the rule will use when redirecting traffic.", + SerializedName = @"redirectType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + string RedirectType { get; set; } + + } + /// Describes Redirect Route. + internal partial interface IRedirectConfigurationInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal + { + /// + /// Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. + /// + string CustomFragment { get; set; } + /// Host to redirect. Leave empty to use the incoming host as the destination host. + string CustomHost { get; set; } + /// + /// The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination + /// path. + /// + string CustomPath { get; set; } + /// + /// The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; + /// leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will + /// be added automatically so do not include them in the front, but do separate multiple query strings with &. + /// + string CustomQueryString { get; set; } + /// The protocol of the destination to where the traffic is redirected + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] + string RedirectProtocol { get; set; } + /// The redirect type the rule will use when redirecting traffic. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] + string RedirectType { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.json.cs new file mode 100644 index 000000000000..29312fff6c6e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.json.cs @@ -0,0 +1,120 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Describes Redirect Route. + public partial class RedirectConfiguration + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RedirectConfiguration(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RedirectConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __routeConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration(json); + {_redirectType = If( json?.PropertyT("redirectType"), out var __jsonRedirectType) ? (string)__jsonRedirectType : (string)_redirectType;} + {_redirectProtocol = If( json?.PropertyT("redirectProtocol"), out var __jsonRedirectProtocol) ? (string)__jsonRedirectProtocol : (string)_redirectProtocol;} + {_customHost = If( json?.PropertyT("customHost"), out var __jsonCustomHost) ? (string)__jsonCustomHost : (string)_customHost;} + {_customPath = If( json?.PropertyT("customPath"), out var __jsonCustomPath) ? (string)__jsonCustomPath : (string)_customPath;} + {_customFragment = If( json?.PropertyT("customFragment"), out var __jsonCustomFragment) ? (string)__jsonCustomFragment : (string)_customFragment;} + {_customQueryString = If( json?.PropertyT("customQueryString"), out var __jsonCustomQueryString) ? (string)__jsonCustomQueryString : (string)_customQueryString;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __routeConfiguration?.ToJson(container, serializationMode); + AddIf( null != (((object)this._redirectType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._redirectType.ToString()) : null, "redirectType" ,container.Add ); + AddIf( null != (((object)this._redirectProtocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._redirectProtocol.ToString()) : null, "redirectProtocol" ,container.Add ); + AddIf( null != (((object)this._customHost)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customHost.ToString()) : null, "customHost" ,container.Add ); + AddIf( null != (((object)this._customPath)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customPath.ToString()) : null, "customPath" ,container.Add ); + AddIf( null != (((object)this._customFragment)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customFragment.ToString()) : null, "customFragment" ,container.Add ); + AddIf( null != (((object)this._customQueryString)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customQueryString.ToString()) : null, "customQueryString" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.PowerShell.cs new file mode 100644 index 000000000000..8f5e031fe380 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.PowerShell.cs @@ -0,0 +1,196 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Common resource representation. + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial class Resource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Resource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Resource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Resource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Resource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Common resource representation. + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial interface IResource + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.TypeConverter.cs new file mode 100644 index 000000000000..3db7b81fdb58 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ResourceTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Resource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Resource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Resource.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.cs new file mode 100644 index 000000000000..ca07e6987568 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.cs @@ -0,0 +1,143 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Common resource representation. + public partial class Resource : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Backing field for property. + private string _location; + + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags()); set => this._tag = value; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public Resource() + { + + } + } + /// Common resource representation. + public partial interface IResource : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get; set; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// Common resource representation. + internal partial interface IResourceInternal + + { + /// Resource ID. + string Id { get; set; } + /// Resource location. + string Location { get; set; } + /// Resource name. + string Name { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get; set; } + /// Resource type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.json.cs new file mode 100644 index 000000000000..a80b619d05ff --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.json.cs @@ -0,0 +1,123 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Common resource representation. + public partial class Resource + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new Resource(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal Resource(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags.FromJson(__jsonTags) : _tag;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.PowerShell.cs new file mode 100644 index 000000000000..cc8d16ce5e00 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.PowerShell.cs @@ -0,0 +1,160 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(ResourceTagsTypeConverter))] + public partial class ResourceTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ResourceTags(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ResourceTags(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ResourceTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ResourceTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(ResourceTagsTypeConverter))] + public partial interface IResourceTags + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs new file mode 100644 index 000000000000..5823d9b045c2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ResourceTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ResourceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ResourceTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ResourceTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.cs new file mode 100644 index 000000000000..97897aa9c8fd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.cs @@ -0,0 +1,35 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Resource tags. + public partial class ResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTagsInternal + { + + /// Creates an new instance. + public ResourceTags() + { + + } + } + /// Resource tags. + public partial interface IResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray + { + + } + /// Resource tags. + internal partial interface IResourceTagsInternal + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.dictionary.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.dictionary.cs new file mode 100644 index 000000000000..c50aa6e2a530 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.dictionary.cs @@ -0,0 +1,75 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class ResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.json.cs new file mode 100644 index 000000000000..76e718ce88e0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.json.cs @@ -0,0 +1,109 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Resource tags. + public partial class ResourceTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ResourceTags(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ResourceTags(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.PowerShell.cs new file mode 100644 index 000000000000..316b7a9ec03f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Base class for all types of Route. + [System.ComponentModel.TypeConverter(typeof(RouteConfigurationTypeConverter))] + public partial class RouteConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RouteConfiguration(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RouteConfiguration(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RouteConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OdataType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RouteConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OdataType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Base class for all types of Route. + [System.ComponentModel.TypeConverter(typeof(RouteConfigurationTypeConverter))] + public partial interface IRouteConfiguration + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..b23b171a7cfb --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RouteConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RouteConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RouteConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RouteConfiguration.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.cs new file mode 100644 index 000000000000..c854138b9227 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.cs @@ -0,0 +1,51 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Base class for all types of Route. + public partial class RouteConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal + { + + /// Backing field for property. + private string _odataType; + + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string OdataType { get => this._odataType; set => this._odataType = value; } + + /// Creates an new instance. + public RouteConfiguration() + { + + } + } + /// Base class for all types of Route. + public partial interface IRouteConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"@odata.type", + PossibleTypes = new [] { typeof(string) })] + string OdataType { get; set; } + + } + /// Base class for all types of Route. + internal partial interface IRouteConfigurationInternal + + { + string OdataType { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.json.cs new file mode 100644 index 000000000000..413d532a76bf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.json.cs @@ -0,0 +1,127 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Base class for all types of Route. + public partial class RouteConfiguration + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration interface is polymorphic, and the precise + /// model class that will get deserialized is determined at runtime based on the payload. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator + + switch ( json.StringProperty("@odata.type") ) + { + case "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration": + { + return new ForwardingConfiguration(json); + } + case "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration": + { + return new RedirectConfiguration(json); + } + } + return new RouteConfiguration(json); + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RouteConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_odataType = If( json?.PropertyT("@odata.type"), out var __jsonOdataType) ? (string)__jsonOdataType : (string)_odataType;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._odataType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._odataType.ToString()) : null, "@odata.type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.PowerShell.cs new file mode 100644 index 000000000000..f3de82109b3c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.PowerShell.cs @@ -0,0 +1,270 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. + /// + [System.ComponentModel.TypeConverter(typeof(RoutingRuleTypeConverter))] + public partial class RoutingRule + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoutingRule(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoutingRule(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoutingRule(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("RouteConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("AcceptedProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("PatternsToMatch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("RuleEngineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RuleEngineId, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoutingRule(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("RouteConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("AcceptedProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("PatternsToMatch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("RuleEngineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RuleEngineId, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. + [System.ComponentModel.TypeConverter(typeof(RoutingRuleTypeConverter))] + public partial interface IRoutingRule + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.TypeConverter.cs new file mode 100644 index 000000000000..73011b607dd7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoutingRuleTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoutingRule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoutingRule.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoutingRule.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.cs new file mode 100644 index 000000000000..067f04a6908c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.cs @@ -0,0 +1,276 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. + /// + public partial class RoutingRule : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); + + /// Protocol schemes to match for this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List AcceptedProtocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).AcceptedProtocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).AcceptedProtocol = value ?? null /* arrayOf */; } + + /// + /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).EnabledState = value ?? null; } + + /// Frontend endpoints associated with this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List FrontendEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).FrontendEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).FrontendEndpoint = value ?? null /* arrayOf */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties()); set { {_property = value;} } } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)Property).ResourceState = value ?? null; } + + /// Internal Acessors for RulesEngine + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RulesEngine; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RulesEngine = value ?? null /* model class */; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.Type { get => this._type; set { {_type = value;} } } + + /// Internal Acessors for WebApplicationFirewallPolicyLink + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// The route patterns of the rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List PatternsToMatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).PatternsToMatch; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).PatternsToMatch = value ?? null /* arrayOf */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties _property; + + /// Properties of the Front Door Routing Rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties()); set => this._property = value; } + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)Property).ResourceState; } + + /// A reference to the routing configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RouteConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RouteConfiguration = value ?? null /* model class */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string RuleEngineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RuleEngineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RuleEngineId = value ?? null; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).WebApplicationFirewallPolicyLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).WebApplicationFirewallPolicyLinkId = value ?? null; } + + /// Creates an new instance. + public RoutingRule() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__subResource), __subResource); + await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); + } + } + /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. + public partial interface IRoutingRule : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource + { + /// Protocol schemes to match for this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Protocol schemes to match for this rule", + SerializedName = @"acceptedProtocols", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + System.Collections.Generic.List AcceptedProtocol { get; set; } + /// + /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// Frontend endpoints associated with this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Frontend endpoints associated with this rule", + SerializedName = @"frontendEndpoints", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) })] + System.Collections.Generic.List FrontendEndpoint { get; set; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The route patterns of the rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The route patterns of the rule.", + SerializedName = @"patternsToMatch", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List PatternsToMatch { get; set; } + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// A reference to the routing configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A reference to the routing configuration.", + SerializedName = @"routeConfiguration", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string RuleEngineId { get; set; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string WebApplicationFirewallPolicyLinkId { get; set; } + + } + /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. + internal partial interface IRoutingRuleInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal + { + /// Protocol schemes to match for this rule + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + System.Collections.Generic.List AcceptedProtocol { get; set; } + /// + /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// Frontend endpoints associated with this rule + System.Collections.Generic.List FrontendEndpoint { get; set; } + /// Resource name. + string Name { get; set; } + /// The route patterns of the rule. + System.Collections.Generic.List PatternsToMatch { get; set; } + /// Properties of the Front Door Routing Rule + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties Property { get; set; } + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// A reference to the routing configuration. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get; set; } + /// Resource ID. + string RuleEngineId { get; set; } + /// A reference to a specific Rules Engine Configuration to apply to this route. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource RulesEngine { get; set; } + /// Resource type. + string Type { get; set; } + /// + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get; set; } + /// Resource ID. + string WebApplicationFirewallPolicyLinkId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.json.cs new file mode 100644 index 000000000000..c2ea7d52e967 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.json.cs @@ -0,0 +1,119 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. + /// + public partial class RoutingRule + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRule(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RoutingRule(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties.FromJson(__jsonProperties) : _property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __subResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.PowerShell.cs new file mode 100644 index 000000000000..1f70ecc194e1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines the Resource ID for a Routing Rule. + [System.ComponentModel.TypeConverter(typeof(RoutingRuleLinkTypeConverter))] + public partial class RoutingRuleLink + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoutingRuleLink(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoutingRuleLink(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoutingRuleLink(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoutingRuleLink(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines the Resource ID for a Routing Rule. + [System.ComponentModel.TypeConverter(typeof(RoutingRuleLinkTypeConverter))] + public partial interface IRoutingRuleLink + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.TypeConverter.cs new file mode 100644 index 000000000000..99b8e69a8ce1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoutingRuleLinkTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoutingRuleLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoutingRuleLink.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoutingRuleLink.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.cs new file mode 100644 index 000000000000..2ff026ec939e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the Resource ID for a Routing Rule. + public partial class RoutingRuleLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Creates an new instance. + public RoutingRuleLink() + { + + } + } + /// Defines the Resource ID for a Routing Rule. + public partial interface IRoutingRuleLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// Defines the Resource ID for a Routing Rule. + internal partial interface IRoutingRuleLinkInternal + + { + /// Resource ID. + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.json.cs new file mode 100644 index 000000000000..ad6b7342aa24 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.json.cs @@ -0,0 +1,108 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the Resource ID for a Routing Rule. + public partial class RoutingRuleLink + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleLink(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RoutingRuleLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.PowerShell.cs new file mode 100644 index 000000000000..74eb1c682d2e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next + /// set of results. + /// + [System.ComponentModel.TypeConverter(typeof(RoutingRuleListResultTypeConverter))] + public partial class RoutingRuleListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoutingRuleListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoutingRuleListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoutingRuleListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoutingRuleListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next + /// set of results. + [System.ComponentModel.TypeConverter(typeof(RoutingRuleListResultTypeConverter))] + public partial interface IRoutingRuleListResult + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.TypeConverter.cs new file mode 100644 index 000000000000..c8dda60ba39f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoutingRuleListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoutingRuleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoutingRuleListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoutingRuleListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.cs new file mode 100644 index 000000000000..c4c8102b7734 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.cs @@ -0,0 +1,82 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next + /// set of results. + /// + public partial class RoutingRuleListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of RoutingRule objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of Routing Rules within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public RoutingRuleListResult() + { + + } + } + /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next + /// set of results. + public partial interface IRoutingRuleListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// URL to get the next set of RoutingRule objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to get the next set of RoutingRule objects if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of Routing Rules within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of Routing Rules within a Front Door.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] + System.Collections.Generic.List Value { get; } + + } + /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next + /// set of results. + internal partial interface IRoutingRuleListResultInternal + + { + /// URL to get the next set of RoutingRule objects if there are any. + string NextLink { get; set; } + /// List of Routing Rules within a Front Door. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.json.cs new file mode 100644 index 000000000000..3d2b9ad55d5b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next + /// set of results. + /// + public partial class RoutingRuleListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RoutingRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.PowerShell.cs new file mode 100644 index 000000000000..d381b932b5a2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.PowerShell.cs @@ -0,0 +1,236 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// The JSON object that contains the properties required to create a routing rule. + [System.ComponentModel.TypeConverter(typeof(RoutingRulePropertiesTypeConverter))] + public partial class RoutingRuleProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoutingRuleProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoutingRuleProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoutingRuleProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("RuleEngineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("AcceptedProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("PatternsToMatch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("RouteConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoutingRuleProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("RuleEngineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("AcceptedProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("PatternsToMatch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("RouteConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The JSON object that contains the properties required to create a routing rule. + [System.ComponentModel.TypeConverter(typeof(RoutingRulePropertiesTypeConverter))] + public partial interface IRoutingRuleProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.TypeConverter.cs new file mode 100644 index 000000000000..d8775b660851 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoutingRulePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoutingRuleProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoutingRuleProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoutingRuleProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.cs new file mode 100644 index 000000000000..95a5693e0b24 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The JSON object that contains the properties required to create a routing rule. + public partial class RoutingRuleProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters __routingRuleUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParameters(); + + /// Protocol schemes to match for this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List AcceptedProtocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).AcceptedProtocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).AcceptedProtocol = value ?? null /* arrayOf */; } + + /// + /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).EnabledState = value ?? null; } + + /// Frontend endpoints associated with this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List FrontendEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).FrontendEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).FrontendEndpoint = value ?? null /* arrayOf */; } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + + /// Internal Acessors for RulesEngine + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal.RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RulesEngine; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RulesEngine = value ?? null /* model class */; } + + /// Internal Acessors for WebApplicationFirewallPolicyLink + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal.WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } + + /// The route patterns of the rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List PatternsToMatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).PatternsToMatch; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).PatternsToMatch = value ?? null /* arrayOf */; } + + /// Backing field for property. + private string _resourceState; + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceState { get => this._resourceState; } + + /// A reference to the routing configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RouteConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RouteConfiguration = value ?? null /* model class */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string RuleEngineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RuleEngineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RuleEngineId = value ?? null; } + + /// A reference to a specific Rules Engine Configuration to apply to this route. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RulesEngine; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RulesEngine = value ?? null /* model class */; } + + /// + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLinkId = value ?? null; } + + /// Creates an new instance. + public RoutingRuleProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__routingRuleUpdateParameters), __routingRuleUpdateParameters); + await eventListener.AssertObjectIsValid(nameof(__routingRuleUpdateParameters), __routingRuleUpdateParameters); + } + } + /// The JSON object that contains the properties required to create a routing rule. + public partial interface IRoutingRuleProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters + { + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + + } + /// The JSON object that contains the properties required to create a routing rule. + internal partial interface IRoutingRulePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal + { + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.json.cs new file mode 100644 index 000000000000..2795f59329ce --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.json.cs @@ -0,0 +1,113 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The JSON object that contains the properties required to create a routing rule. + public partial class RoutingRuleProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RoutingRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __routingRuleUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParameters(json); + {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __routingRuleUpdateParameters?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.PowerShell.cs new file mode 100644 index 000000000000..28d3618433e3 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.PowerShell.cs @@ -0,0 +1,228 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Routing rules to apply to an endpoint + [System.ComponentModel.TypeConverter(typeof(RoutingRuleUpdateParametersTypeConverter))] + public partial class RoutingRuleUpdateParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoutingRuleUpdateParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoutingRuleUpdateParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoutingRuleUpdateParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("AcceptedProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("PatternsToMatch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("RouteConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("RuleEngineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoutingRuleUpdateParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RulesEngine")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("WebApplicationFirewallPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("AcceptedProtocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("PatternsToMatch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("EnabledState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); + } + if (content.Contains("RouteConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("RuleEngineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId, global::System.Convert.ToString); + } + if (content.Contains("WebApplicationFirewallPolicyLinkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Routing rules to apply to an endpoint + [System.ComponentModel.TypeConverter(typeof(RoutingRuleUpdateParametersTypeConverter))] + public partial interface IRoutingRuleUpdateParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.TypeConverter.cs new file mode 100644 index 000000000000..d0a9e84af95c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoutingRuleUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoutingRuleUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoutingRuleUpdateParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoutingRuleUpdateParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.cs new file mode 100644 index 000000000000..43dddd3c8b9e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.cs @@ -0,0 +1,206 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Routing rules to apply to an endpoint + public partial class RoutingRuleUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _acceptedProtocol; + + /// Protocol schemes to match for this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List AcceptedProtocol { get => this._acceptedProtocol; set => this._acceptedProtocol = value; } + + /// Backing field for property. + private string _enabledState; + + /// + /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string EnabledState { get => this._enabledState; set => this._enabledState = value; } + + /// Backing field for property. + private System.Collections.Generic.List _frontendEndpoint; + + /// Frontend endpoints associated with this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List FrontendEndpoint { get => this._frontendEndpoint; set => this._frontendEndpoint = value; } + + /// Internal Acessors for RulesEngine + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal.RulesEngine { get => (this._rulesEngine = this._rulesEngine ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set { {_rulesEngine = value;} } } + + /// Internal Acessors for WebApplicationFirewallPolicyLink + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal.WebApplicationFirewallPolicyLink { get => (this._webApplicationFirewallPolicyLink = this._webApplicationFirewallPolicyLink ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink()); set { {_webApplicationFirewallPolicyLink = value;} } } + + /// Backing field for property. + private System.Collections.Generic.List _patternsToMatch; + + /// The route patterns of the rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List PatternsToMatch { get => this._patternsToMatch; set => this._patternsToMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration _routeConfiguration; + + /// A reference to the routing configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get => (this._routeConfiguration = this._routeConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration()); set => this._routeConfiguration = value; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string RuleEngineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)RulesEngine).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)RulesEngine).Id = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource _rulesEngine; + + /// A reference to a specific Rules Engine Configuration to apply to this route. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource RulesEngine { get => (this._rulesEngine = this._rulesEngine ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set => this._rulesEngine = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink _webApplicationFirewallPolicyLink; + + /// + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get => (this._webApplicationFirewallPolicyLink = this._webApplicationFirewallPolicyLink ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink()); set => this._webApplicationFirewallPolicyLink = value; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)WebApplicationFirewallPolicyLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)WebApplicationFirewallPolicyLink).Id = value ?? null; } + + /// Creates an new instance. + public RoutingRuleUpdateParameters() + { + + } + } + /// Routing rules to apply to an endpoint + public partial interface IRoutingRuleUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Protocol schemes to match for this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Protocol schemes to match for this rule", + SerializedName = @"acceptedProtocols", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + System.Collections.Generic.List AcceptedProtocol { get; set; } + /// + /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// Frontend endpoints associated with this rule + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Frontend endpoints associated with this rule", + SerializedName = @"frontendEndpoints", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) })] + System.Collections.Generic.List FrontendEndpoint { get; set; } + /// The route patterns of the rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The route patterns of the rule.", + SerializedName = @"patternsToMatch", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List PatternsToMatch { get; set; } + /// A reference to the routing configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A reference to the routing configuration.", + SerializedName = @"routeConfiguration", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string RuleEngineId { get; set; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string WebApplicationFirewallPolicyLinkId { get; set; } + + } + /// Routing rules to apply to an endpoint + internal partial interface IRoutingRuleUpdateParametersInternal + + { + /// Protocol schemes to match for this rule + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] + System.Collections.Generic.List AcceptedProtocol { get; set; } + /// + /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EnabledState { get; set; } + /// Frontend endpoints associated with this rule + System.Collections.Generic.List FrontendEndpoint { get; set; } + /// The route patterns of the rule. + System.Collections.Generic.List PatternsToMatch { get; set; } + /// A reference to the routing configuration. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get; set; } + /// Resource ID. + string RuleEngineId { get; set; } + /// A reference to a specific Rules Engine Configuration to apply to this route. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource RulesEngine { get; set; } + /// + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get; set; } + /// Resource ID. + string WebApplicationFirewallPolicyLinkId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.json.cs new file mode 100644 index 000000000000..84ff39a6cd1d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.json.cs @@ -0,0 +1,144 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Routing rules to apply to an endpoint + public partial class RoutingRuleUpdateParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleUpdateParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RoutingRuleUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_rulesEngine = If( json?.PropertyT("rulesEngine"), out var __jsonRulesEngine) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__jsonRulesEngine) : _rulesEngine;} + {_webApplicationFirewallPolicyLink = If( json?.PropertyT("webApplicationFirewallPolicyLink"), out var __jsonWebApplicationFirewallPolicyLink) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.FromJson(__jsonWebApplicationFirewallPolicyLink) : _webApplicationFirewallPolicyLink;} + {_frontendEndpoint = If( json?.PropertyT("frontendEndpoints"), out var __jsonFrontendEndpoints) ? If( __jsonFrontendEndpoints as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__u) )) ))() : null : _frontendEndpoint;} + {_acceptedProtocol = If( json?.PropertyT("acceptedProtocols"), out var __jsonAcceptedProtocols) ? If( __jsonAcceptedProtocols as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _acceptedProtocol;} + {_patternsToMatch = If( json?.PropertyT("patternsToMatch"), out var __jsonPatternsToMatch) ? If( __jsonPatternsToMatch as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(string) (__k is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null)) ))() : null : _patternsToMatch;} + {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} + {_routeConfiguration = If( json?.PropertyT("routeConfiguration"), out var __jsonRouteConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration.FromJson(__jsonRouteConfiguration) : _routeConfiguration;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._rulesEngine ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._rulesEngine.ToJson(null,serializationMode) : null, "rulesEngine" ,container.Add ); + AddIf( null != this._webApplicationFirewallPolicyLink ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._webApplicationFirewallPolicyLink.ToJson(null,serializationMode) : null, "webApplicationFirewallPolicyLink" ,container.Add ); + if (null != this._frontendEndpoint) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._frontendEndpoint ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("frontendEndpoints",__w); + } + if (null != this._acceptedProtocol) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._acceptedProtocol ) + { + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); + } + container.Add("acceptedProtocols",__r); + } + if (null != this._patternsToMatch) + { + var __m = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __n in this._patternsToMatch ) + { + AddIf(null != (((object)__n)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__n.ToString()) : null ,__m.Add); + } + container.Add("patternsToMatch",__m); + } + AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); + AddIf( null != this._routeConfiguration ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._routeConfiguration.ToJson(null,serializationMode) : null, "routeConfiguration" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs new file mode 100644 index 000000000000..ff71175a4445 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs @@ -0,0 +1,171 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + /// + [System.ComponentModel.TypeConverter(typeof(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter))] + public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(content); + } + + /// + /// Creates a new instance of , deserializing the + /// content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + [System.ComponentModel.TypeConverter(typeof(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter))] + public partial interface IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs new file mode 100644 index 000000000000..6635a53abe6d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs @@ -0,0 +1,153 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is + /// no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is + /// no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs new file mode 100644 index 000000000000..7548e07a17a7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs @@ -0,0 +1,58 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + /// + public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// + /// Creates an new instance. + /// + public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink() + { + + } + } + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + public partial interface IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + internal partial interface IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal + + { + /// Resource ID. + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.json.cs new file mode 100644 index 000000000000..04b063c15120 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.json.cs @@ -0,0 +1,113 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Defines the Web Application Firewall policy for each routing rule (if applicable) + /// + public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.PowerShell.cs new file mode 100644 index 000000000000..ef0193a62fe8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.PowerShell.cs @@ -0,0 +1,208 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + /// + [System.ComponentModel.TypeConverter(typeof(RulesEngineTypeConverter))] + public partial class RulesEngine + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RulesEngine(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RulesEngine(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RulesEngine(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEnginePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).ResourceState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RulesEngine(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEnginePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).ResourceState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + [System.ComponentModel.TypeConverter(typeof(RulesEngineTypeConverter))] + public partial interface IRulesEngine + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.TypeConverter.cs new file mode 100644 index 000000000000..9aa28d5ec7f7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RulesEngineTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RulesEngine.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RulesEngine.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RulesEngine.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.cs new file mode 100644 index 000000000000..182fa9f88a4f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.cs @@ -0,0 +1,163 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + /// + public partial class RulesEngine : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties()); set { {_property = value;} } } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)Property).ResourceState = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties _property; + + /// Properties of the Rules Engine Configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties()); set => this._property = value; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)Property).ResourceState; } + + /// A list of rules that define a particular Rules Engine Configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List Rule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)Property).Rule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)Property).Rule = value ?? null /* arrayOf */; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public RulesEngine() + { + + } + } + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + public partial interface IRulesEngine : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + /// A list of rules that define a particular Rules Engine Configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A list of rules that define a particular Rules Engine Configuration.", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] + System.Collections.Generic.List Rule { get; set; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + internal partial interface IRulesEngineInternal + + { + /// Resource ID. + string Id { get; set; } + /// Resource name. + string Name { get; set; } + /// Properties of the Rules Engine Configuration. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties Property { get; set; } + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + /// A list of rules that define a particular Rules Engine Configuration. + System.Collections.Generic.List Rule { get; set; } + /// Resource type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.json.cs new file mode 100644 index 000000000000..1e2a9f64a4a8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.json.cs @@ -0,0 +1,126 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + /// + public partial class RulesEngine + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngine(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RulesEngine(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties.FromJson(__jsonProperties) : _property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.PowerShell.cs new file mode 100644 index 000000000000..3e1ec3ab6799 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.PowerShell.cs @@ -0,0 +1,180 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// One or more actions that will execute, modifying the request and/or response. + [System.ComponentModel.TypeConverter(typeof(RulesEngineActionTypeConverter))] + public partial class RulesEngineAction + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RulesEngineAction(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RulesEngineAction(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RulesEngineAction(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RequestHeaderAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RequestHeaderAction = (System.Collections.Generic.List) content.GetValueForProperty("RequestHeaderAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RequestHeaderAction, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderActionTypeConverter.ConvertFrom)); + } + if (content.Contains("ResponseHeaderAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).ResponseHeaderAction = (System.Collections.Generic.List) content.GetValueForProperty("ResponseHeaderAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).ResponseHeaderAction, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderActionTypeConverter.ConvertFrom)); + } + if (content.Contains("RouteConfigurationOverride")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RouteConfigurationOverride = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfigurationOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RouteConfigurationOverride, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RulesEngineAction(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RequestHeaderAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RequestHeaderAction = (System.Collections.Generic.List) content.GetValueForProperty("RequestHeaderAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RequestHeaderAction, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderActionTypeConverter.ConvertFrom)); + } + if (content.Contains("ResponseHeaderAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).ResponseHeaderAction = (System.Collections.Generic.List) content.GetValueForProperty("ResponseHeaderAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).ResponseHeaderAction, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderActionTypeConverter.ConvertFrom)); + } + if (content.Contains("RouteConfigurationOverride")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RouteConfigurationOverride = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfigurationOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RouteConfigurationOverride, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// One or more actions that will execute, modifying the request and/or response. + [System.ComponentModel.TypeConverter(typeof(RulesEngineActionTypeConverter))] + public partial interface IRulesEngineAction + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.TypeConverter.cs new file mode 100644 index 000000000000..acec8526b932 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RulesEngineActionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RulesEngineAction.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RulesEngineAction.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RulesEngineAction.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.cs new file mode 100644 index 000000000000..9f21877dbd84 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.cs @@ -0,0 +1,94 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// One or more actions that will execute, modifying the request and/or response. + public partial class RulesEngineAction : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _requestHeaderAction; + + /// A list of header actions to apply from the request from AFD to the origin. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List RequestHeaderAction { get => this._requestHeaderAction; set => this._requestHeaderAction = value; } + + /// Backing field for property. + private System.Collections.Generic.List _responseHeaderAction; + + /// A list of header actions to apply from the response from AFD to the client. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List ResponseHeaderAction { get => this._responseHeaderAction; set => this._responseHeaderAction = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration _routeConfigurationOverride; + + /// Override the route configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfigurationOverride { get => (this._routeConfigurationOverride = this._routeConfigurationOverride ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration()); set => this._routeConfigurationOverride = value; } + + /// Creates an new instance. + public RulesEngineAction() + { + + } + } + /// One or more actions that will execute, modifying the request and/or response. + public partial interface IRulesEngineAction : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// A list of header actions to apply from the request from AFD to the origin. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A list of header actions to apply from the request from AFD to the origin.", + SerializedName = @"requestHeaderActions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction) })] + System.Collections.Generic.List RequestHeaderAction { get; set; } + /// A list of header actions to apply from the response from AFD to the client. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A list of header actions to apply from the response from AFD to the client.", + SerializedName = @"responseHeaderActions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction) })] + System.Collections.Generic.List ResponseHeaderAction { get; set; } + /// Override the route configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Override the route configuration.", + SerializedName = @"routeConfigurationOverride", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfigurationOverride { get; set; } + + } + /// One or more actions that will execute, modifying the request and/or response. + internal partial interface IRulesEngineActionInternal + + { + /// A list of header actions to apply from the request from AFD to the origin. + System.Collections.Generic.List RequestHeaderAction { get; set; } + /// A list of header actions to apply from the response from AFD to the client. + System.Collections.Generic.List ResponseHeaderAction { get; set; } + /// Override the route configuration. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfigurationOverride { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.json.cs new file mode 100644 index 000000000000..e2c3a60ba648 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.json.cs @@ -0,0 +1,128 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// One or more actions that will execute, modifying the request and/or response. + public partial class RulesEngineAction + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineAction(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RulesEngineAction(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_requestHeaderAction = If( json?.PropertyT("requestHeaderActions"), out var __jsonRequestHeaderActions) ? If( __jsonRequestHeaderActions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction.FromJson(__u) )) ))() : null : _requestHeaderAction;} + {_responseHeaderAction = If( json?.PropertyT("responseHeaderActions"), out var __jsonResponseHeaderActions) ? If( __jsonResponseHeaderActions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction.FromJson(__p) )) ))() : null : _responseHeaderAction;} + {_routeConfigurationOverride = If( json?.PropertyT("routeConfigurationOverride"), out var __jsonRouteConfigurationOverride) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration.FromJson(__jsonRouteConfigurationOverride) : _routeConfigurationOverride;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._requestHeaderAction) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._requestHeaderAction ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("requestHeaderActions",__w); + } + if (null != this._responseHeaderAction) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._responseHeaderAction ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("responseHeaderActions",__r); + } + AddIf( null != this._routeConfigurationOverride ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._routeConfigurationOverride.ToJson(null,serializationMode) : null, "routeConfigurationOverride" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.PowerShell.cs new file mode 100644 index 000000000000..a7e451af370b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to + /// get the next set of results. + /// + [System.ComponentModel.TypeConverter(typeof(RulesEngineListResultTypeConverter))] + public partial class RulesEngineListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RulesEngineListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RulesEngineListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RulesEngineListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RulesEngineListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to + /// get the next set of results. + [System.ComponentModel.TypeConverter(typeof(RulesEngineListResultTypeConverter))] + public partial interface IRulesEngineListResult + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.TypeConverter.cs new file mode 100644 index 000000000000..c5810ba0b0f9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RulesEngineListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RulesEngineListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RulesEngineListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RulesEngineListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.cs new file mode 100644 index 000000000000..122f836cb944 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.cs @@ -0,0 +1,82 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to + /// get the next set of results. + /// + public partial class RulesEngineListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of RulesEngine objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of rulesEngines within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public RulesEngineListResult() + { + + } + } + /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to + /// get the next set of results. + public partial interface IRulesEngineListResult : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// URL to get the next set of RulesEngine objects if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to get the next set of RulesEngine objects if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of rulesEngines within a Front Door. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of rulesEngines within a Front Door.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) })] + System.Collections.Generic.List Value { get; } + + } + /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to + /// get the next set of results. + internal partial interface IRulesEngineListResultInternal + + { + /// URL to get the next set of RulesEngine objects if there are any. + string NextLink { get; set; } + /// List of rulesEngines within a Front Door. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.json.cs new file mode 100644 index 000000000000..95ec963a9d4b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to + /// get the next set of results. + /// + public partial class RulesEngineListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RulesEngineListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.PowerShell.cs new file mode 100644 index 000000000000..ae3f52831034 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.PowerShell.cs @@ -0,0 +1,204 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Define a match condition + [System.ComponentModel.TypeConverter(typeof(RulesEngineMatchConditionTypeConverter))] + public partial class RulesEngineMatchCondition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RulesEngineMatchCondition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RulesEngineMatchCondition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RulesEngineMatchCondition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MatchVariable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchVariable, global::System.Convert.ToString); + } + if (content.Contains("Selector")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Selector, global::System.Convert.ToString); + } + if (content.Contains("Operator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Operator = (string) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Operator, global::System.Convert.ToString); + } + if (content.Contains("NegateCondition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).NegateCondition = (bool?) content.GetValueForProperty("NegateCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).NegateCondition, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MatchValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchValue = (System.Collections.Generic.List) content.GetValueForProperty("MatchValue",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchValue, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Transform")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Transform = (System.Collections.Generic.List) content.GetValueForProperty("Transform",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Transform, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RulesEngineMatchCondition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MatchVariable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchVariable, global::System.Convert.ToString); + } + if (content.Contains("Selector")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Selector, global::System.Convert.ToString); + } + if (content.Contains("Operator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Operator = (string) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Operator, global::System.Convert.ToString); + } + if (content.Contains("NegateCondition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).NegateCondition = (bool?) content.GetValueForProperty("NegateCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).NegateCondition, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MatchValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchValue = (System.Collections.Generic.List) content.GetValueForProperty("MatchValue",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchValue, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Transform")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Transform = (System.Collections.Generic.List) content.GetValueForProperty("Transform",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Transform, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Define a match condition + [System.ComponentModel.TypeConverter(typeof(RulesEngineMatchConditionTypeConverter))] + public partial interface IRulesEngineMatchCondition + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.TypeConverter.cs new file mode 100644 index 000000000000..612d2b0795bf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RulesEngineMatchConditionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RulesEngineMatchCondition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RulesEngineMatchCondition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RulesEngineMatchCondition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.cs new file mode 100644 index 000000000000..8233be073c26 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.cs @@ -0,0 +1,169 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Define a match condition + public partial class RulesEngineMatchCondition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _matchValue; + + /// + /// Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the + /// variable with the given operator this match condition is considered a match. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List MatchValue { get => this._matchValue; set => this._matchValue = value; } + + /// Backing field for property. + private string _matchVariable; + + /// Match Variable + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string MatchVariable { get => this._matchVariable; set => this._matchVariable = value; } + + /// Backing field for property. + private bool? _negateCondition; + + /// Describes if this is negate condition or not + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public bool? NegateCondition { get => this._negateCondition; set => this._negateCondition = value; } + + /// Backing field for property. + private string _operator; + + /// Describes operator to apply to the match condition. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Operator { get => this._operator; set => this._operator = value; } + + /// Backing field for property. + private string _selector; + + /// Name of selector in RequestHeader or RequestBody to be matched + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Selector { get => this._selector; set => this._selector = value; } + + /// Backing field for property. + private System.Collections.Generic.List _transform; + + /// List of transforms + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Transform { get => this._transform; set => this._transform = value; } + + /// Creates an new instance. + public RulesEngineMatchCondition() + { + + } + } + /// Define a match condition + public partial interface IRulesEngineMatchCondition : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the + /// variable with the given operator this match condition is considered a match. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.", + SerializedName = @"rulesEngineMatchValue", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List MatchValue { get; set; } + /// Match Variable + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Match Variable", + SerializedName = @"rulesEngineMatchVariable", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] + string MatchVariable { get; set; } + /// Describes if this is negate condition or not + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes if this is negate condition or not", + SerializedName = @"negateCondition", + PossibleTypes = new [] { typeof(bool) })] + bool? NegateCondition { get; set; } + /// Describes operator to apply to the match condition. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes operator to apply to the match condition.", + SerializedName = @"rulesEngineOperator", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] + string Operator { get; set; } + /// Name of selector in RequestHeader or RequestBody to be matched + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of selector in RequestHeader or RequestBody to be matched", + SerializedName = @"selector", + PossibleTypes = new [] { typeof(string) })] + string Selector { get; set; } + /// List of transforms + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of transforms", + SerializedName = @"transforms", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + System.Collections.Generic.List Transform { get; set; } + + } + /// Define a match condition + internal partial interface IRulesEngineMatchConditionInternal + + { + /// + /// Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the + /// variable with the given operator this match condition is considered a match. + /// + System.Collections.Generic.List MatchValue { get; set; } + /// Match Variable + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] + string MatchVariable { get; set; } + /// Describes if this is negate condition or not + bool? NegateCondition { get; set; } + /// Describes operator to apply to the match condition. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] + string Operator { get; set; } + /// Name of selector in RequestHeader or RequestBody to be matched + string Selector { get; set; } + /// List of transforms + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] + System.Collections.Generic.List Transform { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.json.cs new file mode 100644 index 000000000000..9b1c9a01a384 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.json.cs @@ -0,0 +1,134 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Define a match condition + public partial class RulesEngineMatchCondition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineMatchCondition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RulesEngineMatchCondition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_matchVariable = If( json?.PropertyT("rulesEngineMatchVariable"), out var __jsonRulesEngineMatchVariable) ? (string)__jsonRulesEngineMatchVariable : (string)_matchVariable;} + {_selector = If( json?.PropertyT("selector"), out var __jsonSelector) ? (string)__jsonSelector : (string)_selector;} + {_operator = If( json?.PropertyT("rulesEngineOperator"), out var __jsonRulesEngineOperator) ? (string)__jsonRulesEngineOperator : (string)_operator;} + {_negateCondition = If( json?.PropertyT("negateCondition"), out var __jsonNegateCondition) ? (bool?)__jsonNegateCondition : _negateCondition;} + {_matchValue = If( json?.PropertyT("rulesEngineMatchValue"), out var __jsonRulesEngineMatchValue) ? If( __jsonRulesEngineMatchValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _matchValue;} + {_transform = If( json?.PropertyT("transforms"), out var __jsonTransforms) ? If( __jsonTransforms as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _transform;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._matchVariable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._matchVariable.ToString()) : null, "rulesEngineMatchVariable" ,container.Add ); + AddIf( null != (((object)this._selector)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selector.ToString()) : null, "selector" ,container.Add ); + AddIf( null != (((object)this._operator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._operator.ToString()) : null, "rulesEngineOperator" ,container.Add ); + AddIf( null != this._negateCondition ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonBoolean((bool)this._negateCondition) : null, "negateCondition" ,container.Add ); + if (null != this._matchValue) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._matchValue ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("rulesEngineMatchValue",__w); + } + if (null != this._transform) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._transform ) + { + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); + } + container.Add("transforms",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.PowerShell.cs new file mode 100644 index 000000000000..bc8246f163d7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.PowerShell.cs @@ -0,0 +1,174 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// The JSON object that contains the properties required to create a Rules Engine Configuration. + /// + [System.ComponentModel.TypeConverter(typeof(RulesEnginePropertiesTypeConverter))] + public partial class RulesEngineProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RulesEngineProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RulesEngineProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RulesEngineProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RulesEngineProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The JSON object that contains the properties required to create a Rules Engine Configuration. + [System.ComponentModel.TypeConverter(typeof(RulesEnginePropertiesTypeConverter))] + public partial interface IRulesEngineProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.TypeConverter.cs new file mode 100644 index 000000000000..3e55e45b1925 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RulesEnginePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RulesEngineProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RulesEngineProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RulesEngineProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.cs new file mode 100644 index 000000000000..a2d6904401c5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.cs @@ -0,0 +1,84 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The JSON object that contains the properties required to create a Rules Engine Configuration. + /// + public partial class RulesEngineProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters __rulesEngineUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineUpdateParameters(); + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + + /// Backing field for property. + private string _resourceState; + + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceState { get => this._resourceState; } + + /// A list of rules that define a particular Rules Engine Configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public System.Collections.Generic.List Rule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)__rulesEngineUpdateParameters).Rule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)__rulesEngineUpdateParameters).Rule = value ?? null /* arrayOf */; } + + /// Creates an new instance. + public RulesEngineProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__rulesEngineUpdateParameters), __rulesEngineUpdateParameters); + await eventListener.AssertObjectIsValid(nameof(__rulesEngineUpdateParameters), __rulesEngineUpdateParameters); + } + } + /// The JSON object that contains the properties required to create a Rules Engine Configuration. + public partial interface IRulesEngineProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters + { + /// Resource status. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; } + + } + /// The JSON object that contains the properties required to create a Rules Engine Configuration. + internal partial interface IRulesEnginePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal + { + /// Resource status. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] + string ResourceState { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.json.cs new file mode 100644 index 000000000000..5fdce6e2e029 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.json.cs @@ -0,0 +1,115 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The JSON object that contains the properties required to create a Rules Engine Configuration. + /// + public partial class RulesEngineProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RulesEngineProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __rulesEngineUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineUpdateParameters(json); + {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __rulesEngineUpdateParameters?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.PowerShell.cs new file mode 100644 index 000000000000..21d11c6097f1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.PowerShell.cs @@ -0,0 +1,202 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the + /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers + /// manipulation. + /// + [System.ComponentModel.TypeConverter(typeof(RulesEngineRuleTypeConverter))] + public partial class RulesEngineRule + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RulesEngineRule(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RulesEngineRule(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RulesEngineRule(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineActionTypeConverter.ConvertFrom); + } + if (content.Contains("MatchCondition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchCondition = (System.Collections.Generic.List) content.GetValueForProperty("MatchCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchCondition, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchConditionTypeConverter.ConvertFrom)); + } + if (content.Contains("MatchProcessingBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchProcessingBehavior = (string) content.GetValueForProperty("MatchProcessingBehavior",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchProcessingBehavior, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RulesEngineRule(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineActionTypeConverter.ConvertFrom); + } + if (content.Contains("MatchCondition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchCondition = (System.Collections.Generic.List) content.GetValueForProperty("MatchCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchCondition, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchConditionTypeConverter.ConvertFrom)); + } + if (content.Contains("MatchProcessingBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchProcessingBehavior = (string) content.GetValueForProperty("MatchProcessingBehavior",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchProcessingBehavior, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the + /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers + /// manipulation. + [System.ComponentModel.TypeConverter(typeof(RulesEngineRuleTypeConverter))] + public partial interface IRulesEngineRule + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.TypeConverter.cs new file mode 100644 index 000000000000..74fc806eb801 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RulesEngineRuleTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RulesEngineRule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RulesEngineRule.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RulesEngineRule.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.cs new file mode 100644 index 000000000000..5f0eb8f44b9c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.cs @@ -0,0 +1,168 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the + /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers + /// manipulation. + /// + public partial class RulesEngineRule : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction _action; + + /// + /// Actions to perform on the request and response if all of the match conditions are met. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction()); set => this._action = value; } + + /// Backing field for property. + private System.Collections.Generic.List _matchCondition; + + /// + /// A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means + /// the actions will always run. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List MatchCondition { get => this._matchCondition; set => this._matchCondition = value; } + + /// Backing field for property. + private string _matchProcessingBehavior; + + /// + /// If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults + /// to Continue. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string MatchProcessingBehavior { get => this._matchProcessingBehavior; set => this._matchProcessingBehavior = value; } + + /// Backing field for property. + private string _name; + + /// A name to refer to this specific rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private int _priority; + + /// A priority assigned to this rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public int Priority { get => this._priority; set => this._priority = value; } + + /// Creates an new instance. + public RulesEngineRule() + { + + } + } + /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the + /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers + /// manipulation. + public partial interface IRulesEngineRule : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// Actions to perform on the request and response if all of the match conditions are met. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Actions to perform on the request and response if all of the match conditions are met.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction Action { get; set; } + /// + /// A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means + /// the actions will always run. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.", + SerializedName = @"matchConditions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition) })] + System.Collections.Generic.List MatchCondition { get; set; } + /// + /// If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults + /// to Continue. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.", + SerializedName = @"matchProcessingBehavior", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] + string MatchProcessingBehavior { get; set; } + /// A name to refer to this specific rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A name to refer to this specific rule.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// A priority assigned to this rule. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A priority assigned to this rule. ", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int Priority { get; set; } + + } + /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the + /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers + /// manipulation. + internal partial interface IRulesEngineRuleInternal + + { + /// + /// Actions to perform on the request and response if all of the match conditions are met. + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction Action { get; set; } + /// + /// A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means + /// the actions will always run. + /// + System.Collections.Generic.List MatchCondition { get; set; } + /// + /// If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults + /// to Continue. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] + string MatchProcessingBehavior { get; set; } + /// A name to refer to this specific rule. + string Name { get; set; } + /// A priority assigned to this rule. + int Priority { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.json.cs new file mode 100644 index 000000000000..c89ce7b2c429 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.json.cs @@ -0,0 +1,128 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the + /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers + /// manipulation. + /// + public partial class RulesEngineRule + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineRule(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RulesEngineRule(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int)__jsonPriority : _priority;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction.FromJson(__jsonAction) : _action;} + {_matchCondition = If( json?.PropertyT("matchConditions"), out var __jsonMatchConditions) ? If( __jsonMatchConditions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition.FromJson(__u) )) ))() : null : _matchCondition;} + {_matchProcessingBehavior = If( json?.PropertyT("matchProcessingBehavior"), out var __jsonMatchProcessingBehavior) ? (string)__jsonMatchProcessingBehavior : (string)_matchProcessingBehavior;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber(this._priority), "priority" ,container.Add ); + AddIf( null != this._action ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._action.ToJson(null,serializationMode) : null, "action" ,container.Add ); + if (null != this._matchCondition) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._matchCondition ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("matchConditions",__w); + } + AddIf( null != (((object)this._matchProcessingBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._matchProcessingBehavior.ToString()) : null, "matchProcessingBehavior" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.PowerShell.cs new file mode 100644 index 000000000000..c44efc0e3343 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Rules Engine Configuration to apply to a Routing Rule. + [System.ComponentModel.TypeConverter(typeof(RulesEngineUpdateParametersTypeConverter))] + public partial class RulesEngineUpdateParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RulesEngineUpdateParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RulesEngineUpdateParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RulesEngineUpdateParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RulesEngineUpdateParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Rule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Rules Engine Configuration to apply to a Routing Rule. + [System.ComponentModel.TypeConverter(typeof(RulesEngineUpdateParametersTypeConverter))] + public partial interface IRulesEngineUpdateParameters + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.TypeConverter.cs new file mode 100644 index 000000000000..a9f0872a8c96 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RulesEngineUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RulesEngineUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RulesEngineUpdateParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RulesEngineUpdateParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.cs new file mode 100644 index 000000000000..cf93a6cd17f2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Rules Engine Configuration to apply to a Routing Rule. + public partial class RulesEngineUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _rule; + + /// A list of rules that define a particular Rules Engine Configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Rule { get => this._rule; set => this._rule = value; } + + /// Creates an new instance. + public RulesEngineUpdateParameters() + { + + } + } + /// Rules Engine Configuration to apply to a Routing Rule. + public partial interface IRulesEngineUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// A list of rules that define a particular Rules Engine Configuration. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A list of rules that define a particular Rules Engine Configuration.", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] + System.Collections.Generic.List Rule { get; set; } + + } + /// Rules Engine Configuration to apply to a Routing Rule. + internal partial interface IRulesEngineUpdateParametersInternal + + { + /// A list of rules that define a particular Rules Engine Configuration. + System.Collections.Generic.List Rule { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.json.cs new file mode 100644 index 000000000000..fb039403f104 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.json.cs @@ -0,0 +1,116 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Rules Engine Configuration to apply to a Routing Rule. + public partial class RulesEngineUpdateParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineUpdateParameters(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal RulesEngineUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_rule = If( json?.PropertyT("rules"), out var __jsonRules) ? If( __jsonRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule.FromJson(__u) )) ))() : null : _rule;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._rule) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._rule ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("rules",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.PowerShell.cs new file mode 100644 index 000000000000..f0cea852d6b8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines the Resource ID for a Security Policy. + [System.ComponentModel.TypeConverter(typeof(SecurityPolicyLinkTypeConverter))] + public partial class SecurityPolicyLink + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SecurityPolicyLink(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SecurityPolicyLink(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SecurityPolicyLink(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SecurityPolicyLink(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines the Resource ID for a Security Policy. + [System.ComponentModel.TypeConverter(typeof(SecurityPolicyLinkTypeConverter))] + public partial interface ISecurityPolicyLink + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.TypeConverter.cs new file mode 100644 index 000000000000..f5dc6fd00e20 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SecurityPolicyLinkTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SecurityPolicyLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SecurityPolicyLink.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SecurityPolicyLink.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.cs new file mode 100644 index 000000000000..fae4c59ae368 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the Resource ID for a Security Policy. + public partial class SecurityPolicyLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Creates an new instance. + public SecurityPolicyLink() + { + + } + } + /// Defines the Resource ID for a Security Policy. + public partial interface ISecurityPolicyLink : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// Defines the Resource ID for a Security Policy. + internal partial interface ISecurityPolicyLinkInternal + + { + /// Resource ID. + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.json.cs new file mode 100644 index 000000000000..caf7b831406c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.json.cs @@ -0,0 +1,108 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the Resource ID for a Security Policy. + public partial class SecurityPolicyLink + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new SecurityPolicyLink(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal SecurityPolicyLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.PowerShell.cs new file mode 100644 index 000000000000..aacb8d9514e6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// The pricing tier of the web application firewall policy. + [System.ComponentModel.TypeConverter(typeof(SkuTypeConverter))] + public partial class Sku + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Sku(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Sku(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Sku(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)this).Name, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Sku(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)this).Name, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The pricing tier of the web application firewall policy. + [System.ComponentModel.TypeConverter(typeof(SkuTypeConverter))] + public partial interface ISku + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.TypeConverter.cs new file mode 100644 index 000000000000..9a92076a3891 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SkuTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Sku.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Sku.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Sku.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.cs new file mode 100644 index 000000000000..21b824e7ecdd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.cs @@ -0,0 +1,56 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The pricing tier of the web application firewall policy. + public partial class Sku : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal + { + + /// Backing field for property. + private string _name; + + /// Name of the pricing tier. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Creates an new instance. + public Sku() + { + + } + } + /// The pricing tier of the web application firewall policy. + public partial interface ISku : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Name of the pricing tier. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the pricing tier.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + string Name { get; set; } + + } + /// The pricing tier of the web application firewall policy. + internal partial interface ISkuInternal + + { + /// Name of the pricing tier. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.json.cs new file mode 100644 index 000000000000..b633a322fad0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.json.cs @@ -0,0 +1,106 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// The pricing tier of the web application firewall policy. + public partial class Sku + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new Sku(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal Sku(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.PowerShell.cs new file mode 100644 index 000000000000..6abf2dc70263 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Reference to another subresource. + [System.ComponentModel.TypeConverter(typeof(SubResourceTypeConverter))] + public partial class SubResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SubResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SubResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SubResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SubResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Reference to another subresource. + [System.ComponentModel.TypeConverter(typeof(SubResourceTypeConverter))] + public partial interface ISubResource + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.TypeConverter.cs new file mode 100644 index 000000000000..0e32c5776bdc --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SubResourceTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SubResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SubResource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SubResource.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.cs new file mode 100644 index 000000000000..5beed6d70ccf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Reference to another subresource. + public partial class SubResource : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal + { + + /// Backing field for property. + private string _id; + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Creates an new instance. + public SubResource() + { + + } + } + /// Reference to another subresource. + public partial interface ISubResource : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// Reference to another subresource. + internal partial interface ISubResourceInternal + + { + /// Resource ID. + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.json.cs new file mode 100644 index 000000000000..ae23c52ec729 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.json.cs @@ -0,0 +1,108 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Reference to another subresource. + public partial class SubResource + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new SubResource(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal SubResource(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.PowerShell.cs new file mode 100644 index 000000000000..f045e4831a5e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Tags object for patch operations. + [System.ComponentModel.TypeConverter(typeof(TagsObjectTypeConverter))] + public partial class TagsObject + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TagsObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TagsObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TagsObject(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TagsObject(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTagsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Tags object for patch operations. + [System.ComponentModel.TypeConverter(typeof(TagsObjectTypeConverter))] + public partial interface ITagsObject + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.TypeConverter.cs new file mode 100644 index 000000000000..da3394ff8733 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class TagsObjectTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return TagsObject.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return TagsObject.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return TagsObject.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.cs new file mode 100644 index 000000000000..87ad8599665d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Tags object for patch operations. + public partial class TagsObject : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags()); set => this._tag = value; } + + /// Creates an new instance. + public TagsObject() + { + + } + } + /// Tags object for patch operations. + public partial interface ITagsObject : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags Tag { get; set; } + + } + /// Tags object for patch operations. + internal partial interface ITagsObjectInternal + + { + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.json.cs new file mode 100644 index 000000000000..78e0e15f2bd0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.json.cs @@ -0,0 +1,106 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Tags object for patch operations. + public partial class TagsObject + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new TagsObject(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal TagsObject(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags.FromJson(__jsonTags) : _tag;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.PowerShell.cs new file mode 100644 index 000000000000..fc32886fa56a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.PowerShell.cs @@ -0,0 +1,160 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(TagsObjectTagsTypeConverter))] + public partial class TagsObjectTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TagsObjectTags(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TagsObjectTags(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TagsObjectTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TagsObjectTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(TagsObjectTagsTypeConverter))] + public partial interface ITagsObjectTags + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.TypeConverter.cs new file mode 100644 index 000000000000..6a7af49f800e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class TagsObjectTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return TagsObjectTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return TagsObjectTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return TagsObjectTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.cs new file mode 100644 index 000000000000..f964a30d9882 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.cs @@ -0,0 +1,35 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Resource tags. + public partial class TagsObjectTags : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTagsInternal + { + + /// Creates an new instance. + public TagsObjectTags() + { + + } + } + /// Resource tags. + public partial interface ITagsObjectTags : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray + { + + } + /// Resource tags. + internal partial interface ITagsObjectTagsInternal + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.dictionary.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.dictionary.cs new file mode 100644 index 000000000000..849e2769087e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.dictionary.cs @@ -0,0 +1,75 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public partial class TagsObjectTags : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.json.cs new file mode 100644 index 000000000000..fa431660e99e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.json.cs @@ -0,0 +1,109 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Resource tags. + public partial class TagsObjectTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new TagsObjectTags(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + /// + internal TagsObjectTags(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.PowerShell.cs new file mode 100644 index 000000000000..a8d18b2b4fb9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.PowerShell.cs @@ -0,0 +1,164 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Input of the custom domain to be validated for DNS mapping. + [System.ComponentModel.TypeConverter(typeof(ValidateCustomDomainInputTypeConverter))] + public partial class ValidateCustomDomainInput + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ValidateCustomDomainInput(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ValidateCustomDomainInput(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ValidateCustomDomainInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal)this).HostName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ValidateCustomDomainInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal)this).HostName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Input of the custom domain to be validated for DNS mapping. + [System.ComponentModel.TypeConverter(typeof(ValidateCustomDomainInputTypeConverter))] + public partial interface IValidateCustomDomainInput + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.TypeConverter.cs new file mode 100644 index 000000000000..a56d7832f1eb --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ValidateCustomDomainInputTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ValidateCustomDomainInput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ValidateCustomDomainInput.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ValidateCustomDomainInput.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.cs new file mode 100644 index 000000000000..e9a18e662d7f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.cs @@ -0,0 +1,54 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Input of the custom domain to be validated for DNS mapping. + public partial class ValidateCustomDomainInput : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal + { + + /// Backing field for property. + private string _hostName; + + /// The host name of the custom domain. Must be a domain name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string HostName { get => this._hostName; set => this._hostName = value; } + + /// Creates an new instance. + public ValidateCustomDomainInput() + { + + } + } + /// Input of the custom domain to be validated for DNS mapping. + public partial interface IValidateCustomDomainInput : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// The host name of the custom domain. Must be a domain name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The host name of the custom domain. Must be a domain name.", + SerializedName = @"hostName", + PossibleTypes = new [] { typeof(string) })] + string HostName { get; set; } + + } + /// Input of the custom domain to be validated for DNS mapping. + internal partial interface IValidateCustomDomainInputInternal + + { + /// The host name of the custom domain. Must be a domain name. + string HostName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.json.cs new file mode 100644 index 000000000000..a8b431f0656b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.json.cs @@ -0,0 +1,108 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Input of the custom domain to be validated for DNS mapping. + public partial class ValidateCustomDomainInput + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ValidateCustomDomainInput(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._hostName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._hostName.ToString()) : null, "hostName" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ValidateCustomDomainInput(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_hostName = If( json?.PropertyT("hostName"), out var __jsonHostName) ? (string)__jsonHostName : (string)_hostName;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.PowerShell.cs new file mode 100644 index 000000000000..455851af6fa4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.PowerShell.cs @@ -0,0 +1,180 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Output of custom domain validation. + [System.ComponentModel.TypeConverter(typeof(ValidateCustomDomainOutputTypeConverter))] + public partial class ValidateCustomDomainOutput + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ValidateCustomDomainOutput(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ValidateCustomDomainOutput(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ValidateCustomDomainOutput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDomainValidated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).CustomDomainValidated = (bool?) content.GetValueForProperty("CustomDomainValidated",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).CustomDomainValidated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Reason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Reason, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ValidateCustomDomainOutput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDomainValidated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).CustomDomainValidated = (bool?) content.GetValueForProperty("CustomDomainValidated",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).CustomDomainValidated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Reason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Reason, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Output of custom domain validation. + [System.ComponentModel.TypeConverter(typeof(ValidateCustomDomainOutputTypeConverter))] + public partial interface IValidateCustomDomainOutput + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.TypeConverter.cs new file mode 100644 index 000000000000..f898dbc853b8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ValidateCustomDomainOutputTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ValidateCustomDomainOutput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ValidateCustomDomainOutput.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ValidateCustomDomainOutput.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.cs new file mode 100644 index 000000000000..a73e04fad541 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.cs @@ -0,0 +1,103 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Output of custom domain validation. + public partial class ValidateCustomDomainOutput : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal + { + + /// Backing field for property. + private bool? _customDomainValidated; + + /// Indicates whether the custom domain is valid or not. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public bool? CustomDomainValidated { get => this._customDomainValidated; } + + /// Backing field for property. + private string _message; + + /// Error message describing why the custom domain is not valid. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for CustomDomainValidated + bool? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal.CustomDomainValidated { get => this._customDomainValidated; set { {_customDomainValidated = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal.Message { get => this._message; set { {_message = value;} } } + + /// Internal Acessors for Reason + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal.Reason { get => this._reason; set { {_reason = value;} } } + + /// Backing field for property. + private string _reason; + + /// The reason why the custom domain is not valid. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Reason { get => this._reason; } + + /// Creates an new instance. + public ValidateCustomDomainOutput() + { + + } + } + /// Output of custom domain validation. + public partial interface IValidateCustomDomainOutput : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// Indicates whether the custom domain is valid or not. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Indicates whether the custom domain is valid or not.", + SerializedName = @"customDomainValidated", + PossibleTypes = new [] { typeof(bool) })] + bool? CustomDomainValidated { get; } + /// Error message describing why the custom domain is not valid. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Error message describing why the custom domain is not valid.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The reason why the custom domain is not valid. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The reason why the custom domain is not valid.", + SerializedName = @"reason", + PossibleTypes = new [] { typeof(string) })] + string Reason { get; } + + } + /// Output of custom domain validation. + internal partial interface IValidateCustomDomainOutputInternal + + { + /// Indicates whether the custom domain is valid or not. + bool? CustomDomainValidated { get; set; } + /// Error message describing why the custom domain is not valid. + string Message { get; set; } + /// The reason why the custom domain is not valid. + string Reason { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.json.cs new file mode 100644 index 000000000000..00655cfecfd2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.json.cs @@ -0,0 +1,121 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Output of custom domain validation. + public partial class ValidateCustomDomainOutput + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ValidateCustomDomainOutput(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != this._customDomainValidated ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonBoolean((bool)this._customDomainValidated) : null, "customDomainValidated" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._reason)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._reason.ToString()) : null, "reason" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal ValidateCustomDomainOutput(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_customDomainValidated = If( json?.PropertyT("customDomainValidated"), out var __jsonCustomDomainValidated) ? (bool?)__jsonCustomDomainValidated : _customDomainValidated;} + {_reason = If( json?.PropertyT("reason"), out var __jsonReason) ? (string)__jsonReason : (string)_reason;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.PowerShell.cs new file mode 100644 index 000000000000..a6a030e8108c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.PowerShell.cs @@ -0,0 +1,308 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines web application firewall policy. + [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyTypeConverter))] + public partial class WebApplicationFirewallPolicy + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WebApplicationFirewallPolicy(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WebApplicationFirewallPolicy(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WebApplicationFirewallPolicy(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("PolicySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) content.GetValueForProperty("PolicySetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).PolicySetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("CustomRuleList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRuleList = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList) content.GetValueForProperty("CustomRuleList",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRuleList, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleListTypeConverter.ConvertFrom); + } + if (content.Contains("ManagedRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList) content.GetValueForProperty("ManagedRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetListTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpointLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).FrontendEndpointLink = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpointLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).FrontendEndpointLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("RoutingRuleLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).RoutingRuleLink = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRuleLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).RoutingRuleLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("SecurityPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SecurityPolicyLink = (System.Collections.Generic.List) content.GetValueForProperty("SecurityPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SecurityPolicyLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("CustomRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRule = (System.Collections.Generic.List) content.GetValueForProperty("CustomRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedRuleSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WebApplicationFirewallPolicy(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("PolicySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) content.GetValueForProperty("PolicySetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).PolicySetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("CustomRuleList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRuleList = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList) content.GetValueForProperty("CustomRuleList",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRuleList, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleListTypeConverter.ConvertFrom); + } + if (content.Contains("ManagedRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList) content.GetValueForProperty("ManagedRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetListTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpointLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).FrontendEndpointLink = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpointLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).FrontendEndpointLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("RoutingRuleLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).RoutingRuleLink = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRuleLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).RoutingRuleLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("SecurityPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SecurityPolicyLink = (System.Collections.Generic.List) content.GetValueForProperty("SecurityPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SecurityPolicyLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("CustomRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRule = (System.Collections.Generic.List) content.GetValueForProperty("CustomRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedRuleSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + } + /// Defines web application firewall policy. + [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyTypeConverter))] + public partial interface IWebApplicationFirewallPolicy + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.TypeConverter.cs new file mode 100644 index 000000000000..393080618197 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WebApplicationFirewallPolicyTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WebApplicationFirewallPolicy.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WebApplicationFirewallPolicy.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WebApplicationFirewallPolicy.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.cs new file mode 100644 index 000000000000..207f25d14152 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.cs @@ -0,0 +1,321 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines web application firewall policy. + public partial class WebApplicationFirewallPolicy : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(); + + /// List of rules + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List CustomRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).CustomRuleRules; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).CustomRuleRules = value ?? null /* arrayOf */; } + + /// Backing field for property. + private string _etag; + + /// Gets a unique read-only string that changes whenever the resource is updated. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Etag { get => this._etag; set => this._etag = value; } + + /// + /// Describes Frontend Endpoints associated with this Web Application Firewall policy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List FrontendEndpointLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).FrontendEndpointLink; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; } + + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location = value ?? null; } + + /// List of rule sets. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List ManagedRuleSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ManagedRuleSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ManagedRuleSet = value ?? null /* arrayOf */; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id = value ?? null; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type = value ?? null; } + + /// Internal Acessors for CustomRuleList + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.CustomRuleList { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).CustomRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).CustomRule = value ?? null /* model class */; } + + /// Internal Acessors for FrontendEndpointLink + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.FrontendEndpointLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).FrontendEndpointLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).FrontendEndpointLink = value ?? null /* arrayOf */; } + + /// Internal Acessors for ManagedRule + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.ManagedRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ManagedRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ManagedRule = value ?? null /* model class */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ProvisioningState = value ?? null; } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ResourceState = value ?? null; } + + /// Internal Acessors for RoutingRuleLink + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.RoutingRuleLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).RoutingRuleLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).RoutingRuleLink = value ?? null /* arrayOf */; } + + /// Internal Acessors for SecurityPolicyLink + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.SecurityPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).SecurityPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).SecurityPolicyLink = value ?? null /* arrayOf */; } + + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku()); set { {_sku = value;} } } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; } + + /// Describes settings for the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).PolicySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).PolicySetting = value ?? null /* model class */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties _property; + + /// Properties of the web application firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties()); set => this._property = value; } + + /// Provisioning state of the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ProvisioningState; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// Resource status of the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ResourceState; } + + /// Describes Routing Rules associated with this Web Application Firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List RoutingRuleLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).RoutingRuleLink; } + + /// Describes Security Policy associated with this Web Application Firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List SecurityPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).SecurityPolicyLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku _sku; + + /// + /// The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku()); set => this._sku = value; } + + /// Name of the pricing tier. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)Sku).Name = value ?? null; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag = value ?? null /* model class */; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + + /// Creates an new instance. + public WebApplicationFirewallPolicy() + { + + } + } + /// Defines web application firewall policy. + public partial interface IWebApplicationFirewallPolicy : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource + { + /// List of rules + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of rules", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] + System.Collections.Generic.List CustomRule { get; set; } + /// Gets a unique read-only string that changes whenever the resource is updated. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets a unique read-only string that changes whenever the resource is updated.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; set; } + /// + /// Describes Frontend Endpoints associated with this Web Application Firewall policy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes Frontend Endpoints associated with this Web Application Firewall policy.", + SerializedName = @"frontendEndpointLinks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink) })] + System.Collections.Generic.List FrontendEndpointLink { get; } + /// List of rule sets. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of rule sets.", + SerializedName = @"managedRuleSets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] + System.Collections.Generic.List ManagedRuleSet { get; set; } + /// Describes settings for the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes settings for the policy.", + SerializedName = @"policySettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get; set; } + /// Provisioning state of the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning state of the policy.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// Resource status of the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status of the policy.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting")] + string ResourceState { get; } + /// Describes Routing Rules associated with this Web Application Firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes Routing Rules associated with this Web Application Firewall policy.", + SerializedName = @"routingRuleLinks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink) })] + System.Collections.Generic.List RoutingRuleLink { get; } + /// Describes Security Policy associated with this Web Application Firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes Security Policy associated with this Web Application Firewall policy.", + SerializedName = @"securityPolicyLinks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink) })] + System.Collections.Generic.List SecurityPolicyLink { get; } + /// Name of the pricing tier. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the pricing tier.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + string SkuName { get; set; } + + } + /// Defines web application firewall policy. + internal partial interface IWebApplicationFirewallPolicyInternal : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal + { + /// List of rules + System.Collections.Generic.List CustomRule { get; set; } + /// Describes custom rules inside the policy. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList CustomRuleList { get; set; } + /// Gets a unique read-only string that changes whenever the resource is updated. + string Etag { get; set; } + /// + /// Describes Frontend Endpoints associated with this Web Application Firewall policy. + /// + System.Collections.Generic.List FrontendEndpointLink { get; set; } + /// Describes managed rules inside the policy. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList ManagedRule { get; set; } + /// List of rule sets. + System.Collections.Generic.List ManagedRuleSet { get; set; } + /// Describes settings for the policy. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get; set; } + /// Properties of the web application firewall policy. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties Property { get; set; } + /// Provisioning state of the policy. + string ProvisioningState { get; set; } + /// Resource status of the policy. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting")] + string ResourceState { get; set; } + /// Describes Routing Rules associated with this Web Application Firewall policy. + System.Collections.Generic.List RoutingRuleLink { get; set; } + /// Describes Security Policy associated with this Web Application Firewall policy. + System.Collections.Generic.List SecurityPolicyLink { get; set; } + /// + /// The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified. + /// + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku Sku { get; set; } + /// Name of the pricing tier. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + string SkuName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.json.cs new file mode 100644 index 000000000000..d6d01c91e153 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.json.cs @@ -0,0 +1,114 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines web application firewall policy. + public partial class WebApplicationFirewallPolicy + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new WebApplicationFirewallPolicy(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal WebApplicationFirewallPolicy(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties.FromJson(__jsonProperties) : _property;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku.FromJson(__jsonSku) : _sku;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.PowerShell.cs new file mode 100644 index 000000000000..4ca5561837b7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.PowerShell.cs @@ -0,0 +1,176 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL + /// link to get the next set of results. + /// + [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyListTypeConverter))] + public partial class WebApplicationFirewallPolicyList + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WebApplicationFirewallPolicyList(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WebApplicationFirewallPolicyList(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WebApplicationFirewallPolicyList(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WebApplicationFirewallPolicyList(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL + /// link to get the next set of results. + [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyListTypeConverter))] + public partial interface IWebApplicationFirewallPolicyList + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.TypeConverter.cs new file mode 100644 index 000000000000..335eea93fb6b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WebApplicationFirewallPolicyListTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WebApplicationFirewallPolicyList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WebApplicationFirewallPolicyList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WebApplicationFirewallPolicyList.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.cs new file mode 100644 index 000000000000..ba239393da3e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.cs @@ -0,0 +1,88 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL + /// link to get the next set of results. + /// + public partial class WebApplicationFirewallPolicyList : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal + { + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// + /// URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of WebApplicationFirewallPolicies within a resource group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public WebApplicationFirewallPolicyList() + { + + } + } + /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL + /// link to get the next set of results. + public partial interface IWebApplicationFirewallPolicyList : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// + /// URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URL to get the next set of WebApplicationFirewallPolicy objects if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// List of WebApplicationFirewallPolicies within a resource group. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of WebApplicationFirewallPolicies within a resource group.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy) })] + System.Collections.Generic.List Value { get; } + + } + /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL + /// link to get the next set of results. + internal partial interface IWebApplicationFirewallPolicyListInternal + + { + /// + /// URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + /// + string NextLink { get; set; } + /// List of WebApplicationFirewallPolicies within a resource group. + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.json.cs new file mode 100644 index 000000000000..7d692bfd405e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.json.cs @@ -0,0 +1,124 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL + /// link to get the next set of results. + /// + public partial class WebApplicationFirewallPolicyList + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new WebApplicationFirewallPolicyList(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal WebApplicationFirewallPolicyList(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.PowerShell.cs new file mode 100644 index 000000000000..8172ec816f69 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.PowerShell.cs @@ -0,0 +1,241 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines web application firewall policy properties. + [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyPropertiesTypeConverter))] + public partial class WebApplicationFirewallPolicyProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WebApplicationFirewallPolicyProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WebApplicationFirewallPolicyProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WebApplicationFirewallPolicyProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList) content.GetValueForProperty("CustomRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleListTypeConverter.ConvertFrom); + } + if (content.Contains("ManagedRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList) content.GetValueForProperty("ManagedRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetListTypeConverter.ConvertFrom); + } + if (content.Contains("PolicySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) content.GetValueForProperty("PolicySetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).PolicySetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpointLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).FrontendEndpointLink = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpointLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).FrontendEndpointLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("RoutingRuleLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).RoutingRuleLink = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRuleLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).RoutingRuleLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("SecurityPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).SecurityPolicyLink = (System.Collections.Generic.List) content.GetValueForProperty("SecurityPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).SecurityPolicyLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("CustomRuleRules")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRuleRules = (System.Collections.Generic.List) content.GetValueForProperty("CustomRuleRules",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRuleRules, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedRuleSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WebApplicationFirewallPolicyProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList) content.GetValueForProperty("CustomRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleListTypeConverter.ConvertFrom); + } + if (content.Contains("ManagedRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList) content.GetValueForProperty("ManagedRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetListTypeConverter.ConvertFrom); + } + if (content.Contains("PolicySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) content.GetValueForProperty("PolicySetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).PolicySetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FrontendEndpointLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).FrontendEndpointLink = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpointLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).FrontendEndpointLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("RoutingRuleLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).RoutingRuleLink = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRuleLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).RoutingRuleLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("SecurityPolicyLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).SecurityPolicyLink = (System.Collections.Generic.List) content.GetValueForProperty("SecurityPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).SecurityPolicyLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ResourceState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ResourceState, global::System.Convert.ToString); + } + if (content.Contains("CustomRuleRules")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRuleRules = (System.Collections.Generic.List) content.GetValueForProperty("CustomRuleRules",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRuleRules, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedRuleSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + } + /// Defines web application firewall policy properties. + [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyPropertiesTypeConverter))] + public partial interface IWebApplicationFirewallPolicyProperties + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.TypeConverter.cs new file mode 100644 index 000000000000..eae6b79898d3 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.TypeConverter.cs @@ -0,0 +1,151 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WebApplicationFirewallPolicyPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WebApplicationFirewallPolicyProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WebApplicationFirewallPolicyProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WebApplicationFirewallPolicyProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.cs new file mode 100644 index 000000000000..94d871894f59 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.cs @@ -0,0 +1,235 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines web application firewall policy properties. + public partial class WebApplicationFirewallPolicyProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList _customRule; + + /// Describes custom rules inside the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList CustomRule { get => (this._customRule = this._customRule ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleList()); set => this._customRule = value; } + + /// List of rules + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List CustomRuleRules { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)CustomRule).Rule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)CustomRule).Rule = value ?? null /* arrayOf */; } + + /// Backing field for property. + private System.Collections.Generic.List _frontendEndpointLink; + + /// + /// Describes Frontend Endpoints associated with this Web Application Firewall policy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List FrontendEndpointLink { get => this._frontendEndpointLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList _managedRule; + + /// Describes managed rules inside the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList ManagedRule { get => (this._managedRule = this._managedRule ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetList()); set => this._managedRule = value; } + + /// List of rule sets. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] + public System.Collections.Generic.List ManagedRuleSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)ManagedRule).ManagedRuleSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)ManagedRule).ManagedRuleSet = value ?? null /* arrayOf */; } + + /// Internal Acessors for CustomRule + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.CustomRule { get => (this._customRule = this._customRule ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleList()); set { {_customRule = value;} } } + + /// Internal Acessors for FrontendEndpointLink + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.FrontendEndpointLink { get => this._frontendEndpointLink; set { {_frontendEndpointLink = value;} } } + + /// Internal Acessors for ManagedRule + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.ManagedRule { get => (this._managedRule = this._managedRule ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetList()); set { {_managedRule = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ResourceState + string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + + /// Internal Acessors for RoutingRuleLink + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.RoutingRuleLink { get => this._routingRuleLink; set { {_routingRuleLink = value;} } } + + /// Internal Acessors for SecurityPolicyLink + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.SecurityPolicyLink { get => this._securityPolicyLink; set { {_securityPolicyLink = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings _policySetting; + + /// Describes settings for the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => (this._policySetting = this._policySetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings()); set => this._policySetting = value; } + + /// Backing field for property. + private string _provisioningState; + + /// Provisioning state of the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _resourceState; + + /// Resource status of the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string ResourceState { get => this._resourceState; } + + /// Backing field for property. + private System.Collections.Generic.List _routingRuleLink; + + /// Describes Routing Rules associated with this Web Application Firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List RoutingRuleLink { get => this._routingRuleLink; } + + /// Backing field for property. + private System.Collections.Generic.List _securityPolicyLink; + + /// Describes Security Policy associated with this Web Application Firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public System.Collections.Generic.List SecurityPolicyLink { get => this._securityPolicyLink; } + + /// Creates an new instance. + public WebApplicationFirewallPolicyProperties() + { + + } + } + /// Defines web application firewall policy properties. + public partial interface IWebApplicationFirewallPolicyProperties : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// List of rules + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of rules", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] + System.Collections.Generic.List CustomRuleRules { get; set; } + /// + /// Describes Frontend Endpoints associated with this Web Application Firewall policy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes Frontend Endpoints associated with this Web Application Firewall policy.", + SerializedName = @"frontendEndpointLinks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink) })] + System.Collections.Generic.List FrontendEndpointLink { get; } + /// List of rule sets. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of rule sets.", + SerializedName = @"managedRuleSets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] + System.Collections.Generic.List ManagedRuleSet { get; set; } + /// Describes settings for the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Describes settings for the policy.", + SerializedName = @"policySettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get; set; } + /// Provisioning state of the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning state of the policy.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// Resource status of the policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Resource status of the policy.", + SerializedName = @"resourceState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting")] + string ResourceState { get; } + /// Describes Routing Rules associated with this Web Application Firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes Routing Rules associated with this Web Application Firewall policy.", + SerializedName = @"routingRuleLinks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink) })] + System.Collections.Generic.List RoutingRuleLink { get; } + /// Describes Security Policy associated with this Web Application Firewall policy. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Describes Security Policy associated with this Web Application Firewall policy.", + SerializedName = @"securityPolicyLinks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink) })] + System.Collections.Generic.List SecurityPolicyLink { get; } + + } + /// Defines web application firewall policy properties. + internal partial interface IWebApplicationFirewallPolicyPropertiesInternal + + { + /// Describes custom rules inside the policy. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList CustomRule { get; set; } + /// List of rules + System.Collections.Generic.List CustomRuleRules { get; set; } + /// + /// Describes Frontend Endpoints associated with this Web Application Firewall policy. + /// + System.Collections.Generic.List FrontendEndpointLink { get; set; } + /// Describes managed rules inside the policy. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList ManagedRule { get; set; } + /// List of rule sets. + System.Collections.Generic.List ManagedRuleSet { get; set; } + /// Describes settings for the policy. + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get; set; } + /// Provisioning state of the policy. + string ProvisioningState { get; set; } + /// Resource status of the policy. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting")] + string ResourceState { get; set; } + /// Describes Routing Rules associated with this Web Application Firewall policy. + System.Collections.Generic.List RoutingRuleLink { get; set; } + /// Describes Security Policy associated with this Web Application Firewall policy. + System.Collections.Generic.List SecurityPolicyLink { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.json.cs new file mode 100644 index 000000000000..d19beba69e96 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.json.cs @@ -0,0 +1,162 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines web application firewall policy properties. + public partial class WebApplicationFirewallPolicyProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new WebApplicationFirewallPolicyProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._customRule ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._customRule.ToJson(null,serializationMode) : null, "customRules" ,container.Add ); + AddIf( null != this._managedRule ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._managedRule.ToJson(null,serializationMode) : null, "managedRules" ,container.Add ); + AddIf( null != this._policySetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._policySetting.ToJson(null,serializationMode) : null, "policySettings" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._frontendEndpointLink) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __x in this._frontendEndpointLink ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("frontendEndpointLinks",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._routingRuleLink) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __s in this._routingRuleLink ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("routingRuleLinks",__r); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._securityPolicyLink) + { + var __m = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); + foreach( var __n in this._securityPolicyLink ) + { + AddIf(__n?.ToJson(null, serializationMode) ,__m.Add); + } + container.Add("securityPolicyLinks",__m); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal WebApplicationFirewallPolicyProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_customRule = If( json?.PropertyT("customRules"), out var __jsonCustomRules) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleList.FromJson(__jsonCustomRules) : _customRule;} + {_managedRule = If( json?.PropertyT("managedRules"), out var __jsonManagedRules) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetList.FromJson(__jsonManagedRules) : _managedRule;} + {_policySetting = If( json?.PropertyT("policySettings"), out var __jsonPolicySettings) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings.FromJson(__jsonPolicySettings) : _policySetting;} + {_frontendEndpointLink = If( json?.PropertyT("frontendEndpointLinks"), out var __jsonFrontendEndpointLinks) ? If( __jsonFrontendEndpointLinks as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLink.FromJson(__u) )) ))() : null : _frontendEndpointLink;} + {_routingRuleLink = If( json?.PropertyT("routingRuleLinks"), out var __jsonRoutingRuleLinks) ? If( __jsonRoutingRuleLinks as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLink.FromJson(__p) )) ))() : null : _routingRuleLink;} + {_securityPolicyLink = If( json?.PropertyT("securityPolicyLinks"), out var __jsonSecurityPolicyLinks) ? If( __jsonSecurityPolicyLinks as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLink.FromJson(__k) )) ))() : null : _securityPolicyLink;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.PowerShell.cs new file mode 100644 index 000000000000..063ea3202c63 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.PowerShell.cs @@ -0,0 +1,190 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// Defines the contents of the log scrubbing rules. + [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallScrubbingRulesTypeConverter))] + public partial class WebApplicationFirewallScrubbingRules + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WebApplicationFirewallScrubbingRules(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WebApplicationFirewallScrubbingRules(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WebApplicationFirewallScrubbingRules(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MatchVariable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).MatchVariable, global::System.Convert.ToString); + } + if (content.Contains("SelectorMatchOperator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).SelectorMatchOperator = (string) content.GetValueForProperty("SelectorMatchOperator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).SelectorMatchOperator, global::System.Convert.ToString); + } + if (content.Contains("Selector")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).Selector, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).State, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WebApplicationFirewallScrubbingRules(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MatchVariable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).MatchVariable, global::System.Convert.ToString); + } + if (content.Contains("SelectorMatchOperator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).SelectorMatchOperator = (string) content.GetValueForProperty("SelectorMatchOperator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).SelectorMatchOperator, global::System.Convert.ToString); + } + if (content.Contains("Selector")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).Selector, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).State, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Defines the contents of the log scrubbing rules. + [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallScrubbingRulesTypeConverter))] + public partial interface IWebApplicationFirewallScrubbingRules + + { + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.TypeConverter.cs new file mode 100644 index 000000000000..967dc7506aaa --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WebApplicationFirewallScrubbingRulesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WebApplicationFirewallScrubbingRules.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WebApplicationFirewallScrubbingRules.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WebApplicationFirewallScrubbingRules.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.cs new file mode 100644 index 000000000000..b68d69ce2d85 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.cs @@ -0,0 +1,135 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the contents of the log scrubbing rules. + public partial class WebApplicationFirewallScrubbingRules : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal + { + + /// Backing field for property. + private string _matchVariable; + + /// The variable to be scrubbed from the logs. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string MatchVariable { get => this._matchVariable; set => this._matchVariable = value; } + + /// Backing field for property. + private string _selector; + + /// + /// When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string Selector { get => this._selector; set => this._selector = value; } + + /// Backing field for property. + private string _selectorMatchOperator; + + /// + /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies + /// to. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string SelectorMatchOperator { get => this._selectorMatchOperator; set => this._selectorMatchOperator = value; } + + /// Backing field for property. + private string _state; + + /// Defines the state of a log scrubbing rule. Default value is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] + public string State { get => this._state; set => this._state = value; } + + /// Creates an new instance. + public WebApplicationFirewallScrubbingRules() + { + + } + } + /// Defines the contents of the log scrubbing rules. + public partial interface IWebApplicationFirewallScrubbingRules : + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable + { + /// The variable to be scrubbed from the logs. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The variable to be scrubbed from the logs.", + SerializedName = @"matchVariable", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + string MatchVariable { get; set; } + /// + /// When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.", + SerializedName = @"selector", + PossibleTypes = new [] { typeof(string) })] + string Selector { get; set; } + /// + /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies + /// to. + /// + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.", + SerializedName = @"selectorMatchOperator", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] + string SelectorMatchOperator { get; set; } + /// Defines the state of a log scrubbing rule. Default value is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Defines the state of a log scrubbing rule. Default value is enabled.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string State { get; set; } + + } + /// Defines the contents of the log scrubbing rules. + internal partial interface IWebApplicationFirewallScrubbingRulesInternal + + { + /// The variable to be scrubbed from the logs. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] + string MatchVariable { get; set; } + /// + /// When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + /// + string Selector { get; set; } + /// + /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies + /// to. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] + string SelectorMatchOperator { get; set; } + /// Defines the state of a log scrubbing rule. Default value is enabled. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string State { get; set; } + + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.json.cs new file mode 100644 index 000000000000..ace27063173c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.json.cs @@ -0,0 +1,115 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// Defines the contents of the log scrubbing rules. + public partial class WebApplicationFirewallScrubbingRules + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new WebApplicationFirewallScrubbingRules(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._matchVariable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._matchVariable.ToString()) : null, "matchVariable" ,container.Add ); + AddIf( null != (((object)this._selectorMatchOperator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selectorMatchOperator.ToString()) : null, "selectorMatchOperator" ,container.Add ); + AddIf( null != (((object)this._selector)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selector.ToString()) : null, "selector" ,container.Add ); + AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. + internal WebApplicationFirewallScrubbingRules(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_matchVariable = If( json?.PropertyT("matchVariable"), out var __jsonMatchVariable) ? (string)__jsonMatchVariable : (string)_matchVariable;} + {_selectorMatchOperator = If( json?.PropertyT("selectorMatchOperator"), out var __jsonSelectorMatchOperator) ? (string)__jsonSelectorMatchOperator : (string)_selectorMatchOperator;} + {_selector = If( json?.PropertyT("selector"), out var __jsonSelector) ? (string)__jsonSelector : (string)_selector;} + {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)_state;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_Disable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_Disable.cs new file mode 100644 index 000000000000..316490a1b1df --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_Disable.cs @@ -0,0 +1,580 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Disables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] DisableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Disable, @"AzFrontDoorCustomDomainHttps_Disable", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Disables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", ApiVersion = "2021-06-01")] + public partial class DisableAzFrontDoorCustomDomainHttps_Disable : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of DisableAzFrontDoorCustomDomainHttps_Disable + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.DisableAzFrontDoorCustomDomainHttps_Disable Clone() + { + var clone = new DisableAzFrontDoorCustomDomainHttps_Disable(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.FrontendEndpointName = this.FrontendEndpointName; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public DisableAzFrontDoorCustomDomainHttps_Disable() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsDisableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontendEndpointsDisableHttps(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity.cs new file mode 100644 index 000000000000..2ab6077027fd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity.cs @@ -0,0 +1,544 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Disables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] DisableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Disable, @"AzFrontDoorCustomDomainHttps_DisableViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Disables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", ApiVersion = "2021-06-01")] + public partial class DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity Clone() + { + var clone = new DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsDisableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FrontendEndpointsDisableHttpsViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontendEndpointName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FrontendEndpointsDisableHttps(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.FrontendEndpointName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor.cs new file mode 100644 index 000000000000..0745d819786d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor.cs @@ -0,0 +1,559 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Disables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] DisableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Disable, @"AzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Disables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", ApiVersion = "2021-06-01")] + public partial class DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor Clone() + { + var clone = new DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.FrontendEndpointName = this.FrontendEndpointName; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet + /// class. + /// + public DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsDisableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (FrontDoorInputObject?.Id != null) + { + this.FrontDoorInputObject.Id += $"/frontendEndpoints/{(global::System.Uri.EscapeDataString(this.FrontendEndpointName.ToString()))}"; + await this.Client.FrontendEndpointsDisableHttpsViaIdentity(FrontDoorInputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == FrontDoorInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + await this.Client.FrontendEndpointsDisableHttps(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, FrontendEndpointName, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { FrontendEndpointName=FrontendEndpointName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_Enable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_Enable.cs new file mode 100644 index 000000000000..7bbb224c7a39 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_Enable.cs @@ -0,0 +1,596 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_Enable", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] + public partial class EnableAzFrontDoorCustomDomainHttps_Enable : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfiguration; + + /// Https settings for a domain + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Https settings for a domain", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Https settings for a domain", + SerializedName = @"customHttpsConfiguration", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get => this._customHttpsConfiguration; set => this._customHttpsConfiguration = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_Enable + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_Enable Clone() + { + var clone = new EnableAzFrontDoorCustomDomainHttps_Enable(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.FrontendEndpointName = this.FrontendEndpointName; + clone.CustomHttpsConfiguration = this.CustomHttpsConfiguration; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public EnableAzFrontDoorCustomDomainHttps_Enable() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontendEndpointsEnableHttps(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableExpanded.cs new file mode 100644 index 000000000000..2461b4352684 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableExpanded.cs @@ -0,0 +1,663 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] + public partial class EnableAzFrontDoorCustomDomainHttps_EnableExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Https settings for a domain + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// Defines the source of the SSL certificate + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Defines the source of the SSL certificate")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Defines the source of the SSL certificate", + SerializedName = @"certificateSource", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + public string CertificateSource { get => _customHttpsConfigurationBody.CertificateSource ?? null; set => _customHttpsConfigurationBody.CertificateSource = value; } + + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines the type of the certificate used for secure connections to a frontendEndpoint")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", + SerializedName = @"certificateType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + public string CertificateType { get => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType ?? null; set => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", + SerializedName = @"minimumTlsVersion", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"1.2", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + public string MinimumTlsVersion { get => _customHttpsConfigurationBody.MinimumTlsVersion ?? null; set => _customHttpsConfigurationBody.MinimumTlsVersion = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// The name of the Key Vault secret representing the full certificate PFX + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretName", + PossibleTypes = new [] { typeof(string) })] + public string SecretName { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName = value; } + + /// The version of the Key Vault secret representing the full certificate PFX + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The version of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretVersion", + PossibleTypes = new [] { typeof(string) })] + public string SecretVersion { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource ID. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + public string VaultId { get => _customHttpsConfigurationBody.VaultId ?? null; set => _customHttpsConfigurationBody.VaultId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableExpanded Clone() + { + var clone = new EnableAzFrontDoorCustomDomainHttps_EnableExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._customHttpsConfigurationBody = this._customHttpsConfigurationBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.FrontendEndpointName = this.FrontendEndpointName; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public EnableAzFrontDoorCustomDomainHttps_EnableExpanded() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontendEndpointsEnableHttps(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity.cs new file mode 100644 index 000000000000..339640ab05d2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity.cs @@ -0,0 +1,560 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] + public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfiguration; + + /// Https settings for a domain + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Https settings for a domain", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Https settings for a domain", + SerializedName = @"customHttpsConfiguration", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get => this._customHttpsConfiguration; set => this._customHttpsConfiguration = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity Clone() + { + var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.CustomHttpsConfiguration = this.CustomHttpsConfiguration; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FrontendEndpointsEnableHttpsViaIdentity(InputObject.Id, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontendEndpointName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FrontendEndpointsEnableHttps(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.FrontendEndpointName ?? null, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded.cs new file mode 100644 index 000000000000..99dee53f2437 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded.cs @@ -0,0 +1,629 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] + public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Https settings for a domain + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// Defines the source of the SSL certificate + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Defines the source of the SSL certificate")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Defines the source of the SSL certificate", + SerializedName = @"certificateSource", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + public string CertificateSource { get => _customHttpsConfigurationBody.CertificateSource ?? null; set => _customHttpsConfigurationBody.CertificateSource = value; } + + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines the type of the certificate used for secure connections to a frontendEndpoint")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", + SerializedName = @"certificateType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + public string CertificateType { get => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType ?? null; set => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", + SerializedName = @"minimumTlsVersion", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"1.2", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + public string MinimumTlsVersion { get => _customHttpsConfigurationBody.MinimumTlsVersion ?? null; set => _customHttpsConfigurationBody.MinimumTlsVersion = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The name of the Key Vault secret representing the full certificate PFX + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretName", + PossibleTypes = new [] { typeof(string) })] + public string SecretName { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName = value; } + + /// The version of the Key Vault secret representing the full certificate PFX + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The version of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretVersion", + PossibleTypes = new [] { typeof(string) })] + public string SecretVersion { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion = value; } + + /// Resource ID. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + public string VaultId { get => _customHttpsConfigurationBody.VaultId ?? null; set => _customHttpsConfigurationBody.VaultId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded Clone() + { + var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._customHttpsConfigurationBody = this._customHttpsConfigurationBody; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FrontendEndpointsEnableHttpsViaIdentity(InputObject.Id, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontendEndpointName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FrontendEndpointsEnableHttps(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.FrontendEndpointName ?? null, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor.cs new file mode 100644 index 000000000000..593addffa902 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor.cs @@ -0,0 +1,575 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] + public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfiguration; + + /// Https settings for a domain + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Https settings for a domain", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Https settings for a domain", + SerializedName = @"customHttpsConfiguration", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get => this._customHttpsConfiguration; set => this._customHttpsConfiguration = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor Clone() + { + var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.FrontendEndpointName = this.FrontendEndpointName; + clone.CustomHttpsConfiguration = this.CustomHttpsConfiguration; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet + /// class. + /// + public EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (FrontDoorInputObject?.Id != null) + { + this.FrontDoorInputObject.Id += $"/frontendEndpoints/{(global::System.Uri.EscapeDataString(this.FrontendEndpointName.ToString()))}"; + await this.Client.FrontendEndpointsEnableHttpsViaIdentity(FrontDoorInputObject.Id, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == FrontDoorInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + await this.Client.FrontendEndpointsEnableHttps(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, FrontendEndpointName, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { FrontendEndpointName=FrontendEndpointName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded.cs new file mode 100644 index 000000000000..2d88ae790f35 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded.cs @@ -0,0 +1,642 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] + public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Https settings for a domain + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// Defines the source of the SSL certificate + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Defines the source of the SSL certificate")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Defines the source of the SSL certificate", + SerializedName = @"certificateSource", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + public string CertificateSource { get => _customHttpsConfigurationBody.CertificateSource ?? null; set => _customHttpsConfigurationBody.CertificateSource = value; } + + /// + /// Defines the type of the certificate used for secure connections to a frontendEndpoint + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines the type of the certificate used for secure connections to a frontendEndpoint")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", + SerializedName = @"certificateType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + public string CertificateType { get => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType ?? null; set => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", + SerializedName = @"minimumTlsVersion", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"1.2", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + public string MinimumTlsVersion { get => _customHttpsConfigurationBody.MinimumTlsVersion ?? null; set => _customHttpsConfigurationBody.MinimumTlsVersion = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The name of the Key Vault secret representing the full certificate PFX + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretName", + PossibleTypes = new [] { typeof(string) })] + public string SecretName { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName = value; } + + /// The version of the Key Vault secret representing the full certificate PFX + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The version of the Key Vault secret representing the full certificate PFX", + SerializedName = @"secretVersion", + PossibleTypes = new [] { typeof(string) })] + public string SecretVersion { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion = value; } + + /// Resource ID. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + public string VaultId { get => _customHttpsConfigurationBody.VaultId ?? null; set => _customHttpsConfigurationBody.VaultId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded Clone() + { + var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._customHttpsConfigurationBody = this._customHttpsConfigurationBody; + clone.FrontendEndpointName = this.FrontendEndpointName; + return clone; + } + + /// + /// Initializes a new instance of the + /// cmdlet class. + /// + public EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (FrontDoorInputObject?.Id != null) + { + this.FrontDoorInputObject.Id += $"/frontendEndpoints/{(global::System.Uri.EscapeDataString(this.FrontendEndpointName.ToString()))}"; + await this.Client.FrontendEndpointsEnableHttpsViaIdentity(FrontDoorInputObject.Id, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == FrontDoorInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + await this.Client.FrontendEndpointsEnableHttps(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, FrontendEndpointName, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { FrontendEndpointName=FrontendEndpointName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath.cs new file mode 100644 index 000000000000..8aaea31cf6f0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath.cs @@ -0,0 +1,600 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + public global::System.String _jsonString; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Enable operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Enable operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Enable operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath Clone() + { + var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.FrontendEndpointName = this.FrontendEndpointName; + clone.JsonFilePath = this.JsonFilePath; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontendEndpointsEnableHttpsViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString.cs new file mode 100644 index 000000000000..489c1f67d5d6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString.cs @@ -0,0 +1,596 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Enables a frontendEndpoint for HTTPS traffic + /// + /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// Backing field for property. + private string _frontendEndpointName; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Enable operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Enable operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Enable operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString Clone() + { + var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.FrontendEndpointName = this.FrontendEndpointName; + clone.JsonString = this.JsonString; + return clone; + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontendEndpointsEnableHttpsViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_Get.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_Get.cs new file mode 100644 index 000000000000..1a2d7f664b4f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_Get.cs @@ -0,0 +1,528 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Gets a Frontend endpoint with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorFrontendEndpoint_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Frontend endpoint with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoorFrontendEndpoint_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontendEndpointName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorFrontendEndpoint_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontendEndpointsGet(SubscriptionId, ResourceGroupName, FrontDoorName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentity.cs new file mode 100644 index 000000000000..fd39335f981e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentity.cs @@ -0,0 +1,492 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Gets a Frontend endpoint with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorFrontendEndpoint_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Frontend endpoint with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoorFrontendEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorFrontendEndpoint_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FrontendEndpointsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontendEndpointName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FrontendEndpointsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.FrontendEndpointName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor.cs new file mode 100644 index 000000000000..9f36c96c3fad --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor.cs @@ -0,0 +1,504 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Gets a Frontend endpoint with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Frontend endpoint with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Frontend endpoint which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Frontend endpoint which is unique within the Front Door.", + SerializedName = @"frontendEndpointName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontendEndpointName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (FrontDoorInputObject?.Id != null) + { + this.FrontDoorInputObject.Id += $"/frontendEndpoints/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.FrontendEndpointsGetViaIdentity(FrontDoorInputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == FrontDoorInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + await this.Client.FrontendEndpointsGet(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, Name, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_List.cs new file mode 100644 index 000000000000..55aebc9a8f87 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_List.cs @@ -0,0 +1,538 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Lists all of the frontend endpoints within a Front Door. + /// + /// [OpenAPI] ListByFrontDoor=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorFrontendEndpoint_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the frontend endpoints within a Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoorFrontendEndpoint_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorFrontendEndpoint_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontendEndpointsListByFrontDoor(SubscriptionId, ResourceGroupName, FrontDoorName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult + var result = (await response); + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (!String.IsNullOrEmpty(_nextLink)) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontendEndpointsListByFrontDoor_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_Get.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_Get.cs new file mode 100644 index 000000000000..c9d877922d61 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_Get.cs @@ -0,0 +1,527 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorRulesEngine_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoorRulesEngine_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorRulesEngine_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesGet(SubscriptionId, ResourceGroupName, FrontDoorName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentity.cs new file mode 100644 index 000000000000..418433bab195 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentity.cs @@ -0,0 +1,491 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorRulesEngine_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoorRulesEngine_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorRulesEngine_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.RulesEnginesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.RulesEngineName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RulesEngineName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.RulesEnginesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.RulesEngineName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor.cs new file mode 100644 index 000000000000..9e83346b24c0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor.cs @@ -0,0 +1,503 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorRulesEngine_GetViaIdentityFrontDoor")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (FrontDoorInputObject?.Id != null) + { + this.FrontDoorInputObject.Id += $"/rulesEngines/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.RulesEnginesGetViaIdentity(FrontDoorInputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == FrontDoorInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + await this.Client.RulesEnginesGet(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, Name, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_List.cs new file mode 100644 index 000000000000..6b78fe793294 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_List.cs @@ -0,0 +1,537 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Lists all of the Rules Engine Configurations within a Front Door. + /// + /// [OpenAPI] ListByFrontDoor=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorRulesEngine_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the Rules Engine Configurations within a Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoorRulesEngine_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorRulesEngine_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesListByFrontDoor(SubscriptionId, ResourceGroupName, FrontDoorName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult + var result = (await response); + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (!String.IsNullOrEmpty(_nextLink)) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesListByFrontDoor_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafManagedRuleSetDefinition_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafManagedRuleSetDefinition_List.cs new file mode 100644 index 000000000000..e817e6a1d323 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafManagedRuleSetDefinition_List.cs @@ -0,0 +1,509 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Lists all available managed rule sets. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafManagedRuleSetDefinition_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all available managed rule sets.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets", ApiVersion = "2025-03-01")] + public partial class GetAzFrontDoorWafManagedRuleSetDefinition_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorWafManagedRuleSetDefinition_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ManagedRuleSetsList(SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList + var result = (await response); + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (!String.IsNullOrEmpty(_nextLink)) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ManagedRuleSetsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_Get.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_Get.cs new file mode 100644 index 000000000000..79a3f1d6ac42 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_Get.cs @@ -0,0 +1,511 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Retrieve protection policy with specified name within a resource group. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafPolicy_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Retrieve protection policy with specified name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + public partial class GetAzFrontDoorWafPolicy_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorWafPolicy_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_GetViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_GetViaIdentity.cs new file mode 100644 index 000000000000..2e279840b318 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_GetViaIdentity.cs @@ -0,0 +1,485 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Retrieve protection policy with specified name within a resource group. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafPolicy_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Retrieve protection policy with specified name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + public partial class GetAzFrontDoorWafPolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorWafPolicy_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.PoliciesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.PolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.PoliciesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PolicyName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List.cs new file mode 100644 index 000000000000..975d0430d2be --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List.cs @@ -0,0 +1,523 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Lists all of the protection policies within a resource group. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafPolicy_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the protection policies within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies", ApiVersion = "2025-03-01")] + public partial class GetAzFrontDoorWafPolicy_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorWafPolicy_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesList(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList + var result = (await response); + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (!String.IsNullOrEmpty(_nextLink)) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List1.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List1.cs new file mode 100644 index 000000000000..c03572cb8573 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List1.cs @@ -0,0 +1,509 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Lists all of the protection policies within a subscription. + /// + /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafPolicy_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the protection policies within a subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies", ApiVersion = "2025-03-01")] + public partial class GetAzFrontDoorWafPolicy_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoorWafPolicy_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesListBySubscription(SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList + var result = (await response); + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (!String.IsNullOrEmpty(_nextLink)) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_Get.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_Get.cs new file mode 100644 index 000000000000..89ee418f6d61 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_Get.cs @@ -0,0 +1,513 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoor_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Front Door with the specified Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoor_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoor_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_GetViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_GetViaIdentity.cs new file mode 100644 index 000000000000..b7bf3ac67f72 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_GetViaIdentity.cs @@ -0,0 +1,487 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoor_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Front Door with the specified Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoor_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoor_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FrontDoorsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FrontDoorsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List.cs new file mode 100644 index 000000000000..ae0044cce5b0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List.cs @@ -0,0 +1,509 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Lists all of the Front Doors within an Azure subscription. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoor_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the Front Doors within an Azure subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoor_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoor_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsList(SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult + var result = (await response); + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (!String.IsNullOrEmpty(_nextLink)) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List1.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List1.cs new file mode 100644 index 000000000000..eae5da6d3988 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List1.cs @@ -0,0 +1,523 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Lists all of the Front Doors within a resource group under a subscription. + /// + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoor_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the Front Doors within a resource group under a subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors", ApiVersion = "2021-06-01")] + public partial class GetAzFrontDoor_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzFrontDoor_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsListByResourceGroup(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult + var result = (await response); + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (!String.IsNullOrEmpty(_nextLink)) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateExpanded.cs new file mode 100644 index 000000000000..9a569e5c0ef1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateExpanded.cs @@ -0,0 +1,598 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// create a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorRulesEngine_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + public partial class NewAzFrontDoorRulesEngine_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine _rulesEngineParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// A list of rules that define a particular Rules Engine Configuration. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A list of rules that define a particular Rules Engine Configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of rules that define a particular Rules Engine Configuration.", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] Rule { get => _rulesEngineParametersBody.Rule?.ToArray() ?? null /* fixedArrayOf */; set => _rulesEngineParametersBody.Rule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoorRulesEngine_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorRulesEngine_CreateExpanded Clone() + { + var clone = new NewAzFrontDoorRulesEngine_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._rulesEngineParametersBody = this._rulesEngineParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoorRulesEngine_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesCreateOrUpdate(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _rulesEngineParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonFilePath.cs new file mode 100644 index 000000000000..b005842c7422 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonFilePath.cs @@ -0,0 +1,596 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// create a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorRulesEngine_CreateViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class NewAzFrontDoorRulesEngine_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + public global::System.String _jsonString; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Create operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Create operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Create operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoorRulesEngine_CreateViaJsonFilePath + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorRulesEngine_CreateViaJsonFilePath Clone() + { + var clone = new NewAzFrontDoorRulesEngine_CreateViaJsonFilePath(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.Name = this.Name; + clone.JsonFilePath = this.JsonFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoorRulesEngine_CreateViaJsonFilePath() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonString.cs new file mode 100644 index 000000000000..84ccb95c45cd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonString.cs @@ -0,0 +1,594 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// create a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorRulesEngine_CreateViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class NewAzFrontDoorRulesEngine_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Create operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Create operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Create operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoorRulesEngine_CreateViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorRulesEngine_CreateViaJsonString Clone() + { + var clone = new NewAzFrontDoorRulesEngine_CreateViaJsonString(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.Name = this.Name; + clone.JsonString = this.JsonString; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoorRulesEngine_CreateViaJsonString() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateExpanded.cs new file mode 100644 index 000000000000..c09c9cdaa092 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateExpanded.cs @@ -0,0 +1,658 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// create policy with specified rule set name within a resource group. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorWafPolicy_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create policy with specified rule set name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + public partial class NewAzFrontDoorWafPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// Defines web application firewall policy. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// List of rules + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rules")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of rules", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] CustomRule { get => _parametersBody.CustomRule?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.CustomRule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Gets a unique read-only string that changes whenever the resource is updated. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets a unique read-only string that changes whenever the resource is updated.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets a unique read-only string that changes whenever the resource is updated.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + public string Etag { get => _parametersBody.Etag ?? null; set => _parametersBody.Etag = value; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""global""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// List of rule sets. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rule sets.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of rule sets.", + SerializedName = @"managedRuleSets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] ManagedRuleSet { get => _parametersBody.ManagedRuleSet?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.ManagedRuleSet = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// Describes settings for the policy. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes settings for the policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes settings for the policy.", + SerializedName = @"policySettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => _parametersBody.PolicySetting ?? null /* object */; set => _parametersBody.PolicySetting = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Name of the pricing tier. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the pricing tier.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the pricing tier.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + public string SkuName { get => _parametersBody.SkuName ?? null; set => _parametersBody.SkuName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoorWafPolicy_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorWafPolicy_CreateExpanded Clone() + { + var clone = new NewAzFrontDoorWafPolicy_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoorWafPolicy_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) + { + Location = (string)this.MyInvocation.BoundParameters["Location"]; + } + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonFilePath.cs new file mode 100644 index 000000000000..cfb3cfe2b2c3 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonFilePath.cs @@ -0,0 +1,580 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// create policy with specified rule set name within a resource group. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorWafPolicy_CreateViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create policy with specified rule set name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class NewAzFrontDoorWafPolicy_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + public global::System.String _jsonString; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Create operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Create operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Create operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoorWafPolicy_CreateViaJsonFilePath + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorWafPolicy_CreateViaJsonFilePath Clone() + { + var clone = new NewAzFrontDoorWafPolicy_CreateViaJsonFilePath(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonFilePath = this.JsonFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoorWafPolicy_CreateViaJsonFilePath() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonString.cs new file mode 100644 index 000000000000..447a9c86827f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonString.cs @@ -0,0 +1,578 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// create policy with specified rule set name within a resource group. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorWafPolicy_CreateViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create policy with specified rule set name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class NewAzFrontDoorWafPolicy_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Create operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Create operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Create operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoorWafPolicy_CreateViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorWafPolicy_CreateViaJsonString Clone() + { + var clone = new NewAzFrontDoorWafPolicy_CreateViaJsonString(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonString = this.JsonString; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoorWafPolicy_CreateViaJsonString() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateExpanded.cs new file mode 100644 index 000000000000..32d45e437b77 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateExpanded.cs @@ -0,0 +1,706 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// create a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoor_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Front Door with a Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + public partial class NewAzFrontDoor_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor _frontDoorParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backend pools available to routing rules. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backend pools available to routing rules.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backend pools available to routing rules.", + SerializedName = @"backendPools", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] BackendPool { get => _frontDoorParametersBody.BackendPool?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.BackendPool = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Settings for all backendPools + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings for all backendPools")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Settings for all backendPools", + SerializedName = @"backendPoolsSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => _frontDoorParametersBody.BackendPoolsSetting ?? null /* object */; set => _frontDoorParametersBody.BackendPoolsSetting = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""Enabled""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + public string EnabledState { get => _frontDoorParametersBody.EnabledState ?? null; set => _frontDoorParametersBody.EnabledState = value; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// A friendly name for the frontDoor + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A friendly name for the frontDoor")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A friendly name for the frontDoor", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + public string FriendlyName { get => _frontDoorParametersBody.FriendlyName ?? null; set => _frontDoorParametersBody.FriendlyName = value; } + + /// Frontend endpoints available to routing rules. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rules.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Frontend endpoints available to routing rules.", + SerializedName = @"frontendEndpoints", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] FrontendEndpoint { get => _frontDoorParametersBody.FrontendEndpoint?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.FrontendEndpoint = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Health probe settings associated with this Front Door instance. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Health probe settings associated with this Front Door instance.", + SerializedName = @"healthProbeSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] HealthProbeSetting { get => _frontDoorParametersBody.HealthProbeSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.HealthProbeSetting = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Load balancing settings associated with this Front Door instance. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Load balancing settings associated with this Front Door instance.", + SerializedName = @"loadBalancingSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] LoadBalancingSetting { get => _frontDoorParametersBody.LoadBalancingSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.LoadBalancingSetting = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""global""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] + public string Location { get => _frontDoorParametersBody.Location ?? null; set => _frontDoorParametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Routing rules associated with this Front Door. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Routing rules associated with this Front Door.", + SerializedName = @"routingRules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] RoutingRule { get => _frontDoorParametersBody.RoutingRule?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.RoutingRule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _frontDoorParametersBody.Tag ?? null /* object */; set => _frontDoorParametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoor_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoor_CreateExpanded Clone() + { + var clone = new NewAzFrontDoor_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._frontDoorParametersBody = this._frontDoorParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoor_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) + { + Location = (string)this.MyInvocation.BoundParameters["Location"]; + } + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonFilePath.cs new file mode 100644 index 000000000000..f149de53e408 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonFilePath.cs @@ -0,0 +1,582 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// create a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoor_CreateViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Front Door with a Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class NewAzFrontDoor_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + public global::System.String _jsonString; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Create operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Create operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Create operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoor_CreateViaJsonFilePath + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoor_CreateViaJsonFilePath Clone() + { + var clone = new NewAzFrontDoor_CreateViaJsonFilePath(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonFilePath = this.JsonFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoor_CreateViaJsonFilePath() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonString.cs new file mode 100644 index 000000000000..60373fa231bc --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonString.cs @@ -0,0 +1,580 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// create a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoor_CreateViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Front Door with a Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class NewAzFrontDoor_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Create operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Create operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Create operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzFrontDoor_CreateViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoor_CreateViaJsonString Clone() + { + var clone = new NewAzFrontDoor_CreateViaJsonString(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonString = this.JsonString; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzFrontDoor_CreateViaJsonString() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_Purge.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_Purge.cs new file mode 100644 index 000000000000..cd3b9b2098bf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_Purge.cs @@ -0,0 +1,580 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Removes a content from Front Door. + /// + /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_Purge", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoorContent_Purge : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters _contentFilePath; + + /// Parameters required for content purge. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Parameters required for content purge.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Parameters required for content purge.", + SerializedName = @"contentFilePaths", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters ContentFilePath { get => this._contentFilePath; set => this._contentFilePath = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorContent_Purge + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_Purge Clone() + { + var clone = new RemoveAzFrontDoorContent_Purge(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.ContentFilePath = this.ContentFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EndpointsPurgeContent(SubscriptionId, ResourceGroupName, Name, ContentFilePath, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorContent_Purge() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeExpanded.cs new file mode 100644 index 000000000000..132f7fecce01 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeExpanded.cs @@ -0,0 +1,583 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Removes a content from Front Door. + /// + /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoorContent_PurgeExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Parameters required for content purge. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters _contentFilePathsBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PurgeParameters(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The path to the content to be purged. Can describe a file path or a wild card directory. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The path to the content to be purged. Can describe a file path or a wild card directory.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The path to the content to be purged. Can describe a file path or a wild card directory.", + SerializedName = @"contentPaths", + PossibleTypes = new [] { typeof(string) })] + public string[] ContentPath { get => _contentFilePathsBody.ContentPath?.ToArray() ?? null /* fixedArrayOf */; set => _contentFilePathsBody.ContentPath = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorContent_PurgeExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeExpanded Clone() + { + var clone = new RemoveAzFrontDoorContent_PurgeExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._contentFilePathsBody = this._contentFilePathsBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EndpointsPurgeContent(SubscriptionId, ResourceGroupName, Name, _contentFilePathsBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorContent_PurgeExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentity.cs new file mode 100644 index 000000000000..f8dd1ccd4285 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentity.cs @@ -0,0 +1,555 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Removes a content from Front Door. + /// + /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoorContent_PurgeViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters _contentFilePath; + + /// Parameters required for content purge. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Parameters required for content purge.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Parameters required for content purge.", + SerializedName = @"contentFilePaths", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters ContentFilePath { get => this._contentFilePath; set => this._contentFilePath = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorContent_PurgeViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeViaIdentity Clone() + { + var clone = new RemoveAzFrontDoorContent_PurgeViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ContentFilePath = this.ContentFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EndpointsPurgeContentViaIdentity(InputObject.Id, ContentFilePath, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EndpointsPurgeContent(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, ContentFilePath, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorContent_PurgeViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentityExpanded.cs new file mode 100644 index 000000000000..55c8748c4741 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentityExpanded.cs @@ -0,0 +1,558 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Removes a content from Front Door. + /// + /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoorContent_PurgeViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Parameters required for content purge. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters _contentFilePathsBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PurgeParameters(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The path to the content to be purged. Can describe a file path or a wild card directory. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The path to the content to be purged. Can describe a file path or a wild card directory.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The path to the content to be purged. Can describe a file path or a wild card directory.", + SerializedName = @"contentPaths", + PossibleTypes = new [] { typeof(string) })] + public string[] ContentPath { get => _contentFilePathsBody.ContentPath?.ToArray() ?? null /* fixedArrayOf */; set => _contentFilePathsBody.ContentPath = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorContent_PurgeViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeViaIdentityExpanded Clone() + { + var clone = new RemoveAzFrontDoorContent_PurgeViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._contentFilePathsBody = this._contentFilePathsBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EndpointsPurgeContentViaIdentity(InputObject.Id, _contentFilePathsBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EndpointsPurgeContent(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, _contentFilePathsBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorContent_PurgeViaIdentityExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonFilePath.cs new file mode 100644 index 000000000000..74f041b2e455 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonFilePath.cs @@ -0,0 +1,582 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Removes a content from Front Door. + /// + /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class RemoveAzFrontDoorContent_PurgeViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + public global::System.String _jsonString; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Purge operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Purge operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Purge operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorContent_PurgeViaJsonFilePath + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeViaJsonFilePath Clone() + { + var clone = new RemoveAzFrontDoorContent_PurgeViaJsonFilePath(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonFilePath = this.JsonFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EndpointsPurgeContentViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorContent_PurgeViaJsonFilePath() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonString.cs new file mode 100644 index 000000000000..cd8a4294e502 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonString.cs @@ -0,0 +1,580 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Removes a content from Front Door. + /// + /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class RemoveAzFrontDoorContent_PurgeViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Purge operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Purge operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Purge operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorContent_PurgeViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeViaJsonString Clone() + { + var clone = new RemoveAzFrontDoorContent_PurgeViaJsonString(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonString = this.JsonString; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EndpointsPurgeContentViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorContent_PurgeViaJsonString() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_Delete.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_Delete.cs new file mode 100644 index 000000000000..c435eb5874a1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_Delete.cs @@ -0,0 +1,615 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Deletes an existing Rules Engine Configuration with the specified parameters. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorRulesEngine_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Rules Engine Configuration with the specified parameters.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoorRulesEngine_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorRulesEngine_Delete + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorRulesEngine_Delete Clone() + { + var clone = new RemoveAzFrontDoorRulesEngine_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesDelete(SubscriptionId, ResourceGroupName, FrontDoorName, Name, onNoContent, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorRulesEngine_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentity.cs new file mode 100644 index 000000000000..cca29a0bd3b7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentity.cs @@ -0,0 +1,578 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Deletes an existing Rules Engine Configuration with the specified parameters. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorRulesEngine_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Rules Engine Configuration with the specified parameters.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoorRulesEngine_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorRulesEngine_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorRulesEngine_DeleteViaIdentity Clone() + { + var clone = new RemoveAzFrontDoorRulesEngine_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.RulesEnginesDeleteViaIdentity(InputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.RulesEngineName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RulesEngineName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.RulesEnginesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.RulesEngineName ?? null, onNoContent, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorRulesEngine_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor.cs new file mode 100644 index 000000000000..7cf0fe6c7e09 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor.cs @@ -0,0 +1,591 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Deletes an existing Rules Engine Configuration with the specified parameters. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Rules Engine Configuration with the specified parameters.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor Clone() + { + var clone = new RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (FrontDoorInputObject?.Id != null) + { + this.FrontDoorInputObject.Id += $"/rulesEngines/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.RulesEnginesDeleteViaIdentity(FrontDoorInputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == FrontDoorInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + if (null == FrontDoorInputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); + } + await this.Client.RulesEnginesDelete(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, Name, onNoContent, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_Delete.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_Delete.cs new file mode 100644 index 000000000000..d5de6b9b26ce --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_Delete.cs @@ -0,0 +1,546 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Deletes Policy + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorWafPolicy_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes Policy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + public partial class RemoveAzFrontDoorWafPolicy_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorWafPolicy_Delete + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorWafPolicy_Delete Clone() + { + var clone = new RemoveAzFrontDoorWafPolicy_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesDelete(SubscriptionId, ResourceGroupName, Name, onOk, onNoContent, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorWafPolicy_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_DeleteViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_DeleteViaIdentity.cs new file mode 100644 index 000000000000..0ad125717fc0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_DeleteViaIdentity.cs @@ -0,0 +1,520 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Deletes Policy + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorWafPolicy_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes Policy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + public partial class RemoveAzFrontDoorWafPolicy_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoorWafPolicy_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorWafPolicy_DeleteViaIdentity Clone() + { + var clone = new RemoveAzFrontDoorWafPolicy_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.PoliciesDeleteViaIdentity(InputObject.Id, onOk, onNoContent, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.PolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.PoliciesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PolicyName ?? null, onOk, onNoContent, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoorWafPolicy_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_Delete.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_Delete.cs new file mode 100644 index 000000000000..eab8ded8d8bb --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_Delete.cs @@ -0,0 +1,600 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Deletes an existing Front Door with the specified parameters. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoor_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Front Door with the specified parameters.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoor_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoor_Delete + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoor_Delete Clone() + { + var clone = new RemoveAzFrontDoor_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsDelete(SubscriptionId, ResourceGroupName, Name, onNoContent, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoor_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_DeleteViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_DeleteViaIdentity.cs new file mode 100644 index 000000000000..645ec0033c58 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_DeleteViaIdentity.cs @@ -0,0 +1,574 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Deletes an existing Front Door with the specified parameters. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoor_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Front Door with the specified parameters.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + public partial class RemoveAzFrontDoor_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzFrontDoor_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoor_DeleteViaIdentity Clone() + { + var clone = new RemoveAzFrontDoor_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FrontDoorsDeleteViaIdentity(InputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FrontDoorsDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, onNoContent, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzFrontDoor_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded.cs new file mode 100644 index 000000000000..508372abff78 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded.cs @@ -0,0 +1,599 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorRulesEngine_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + public partial class SetAzFrontDoorRulesEngine_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine _rulesEngineParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// A list of rules that define a particular Rules Engine Configuration. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A list of rules that define a particular Rules Engine Configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of rules that define a particular Rules Engine Configuration.", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] Rule { get => _rulesEngineParametersBody.Rule?.ToArray() ?? null /* fixedArrayOf */; set => _rulesEngineParametersBody.Rule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoorRulesEngine_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorRulesEngine_UpdateExpanded Clone() + { + var clone = new SetAzFrontDoorRulesEngine_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._rulesEngineParametersBody = this._rulesEngineParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesCreateOrUpdate(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _rulesEngineParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoorRulesEngine_UpdateExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded1.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded1.cs new file mode 100644 index 000000000000..2d6e6d2e6a8f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded1.cs @@ -0,0 +1,608 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorRulesEngine_UpdateExpanded1", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + public partial class SetAzFrontDoorRulesEngine_UpdateExpanded1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// + /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and + /// response. + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine _rulesEngineParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// A list of rules that define a particular Rules Engine Configuration. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A list of rules that define a particular Rules Engine Configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of rules that define a particular Rules Engine Configuration.", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] Rule { get => _rulesEngineParametersBody.Rule?.ToArray() ?? null /* fixedArrayOf */; set => _rulesEngineParametersBody.Rule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoorRulesEngine_UpdateExpanded1 + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorRulesEngine_UpdateExpanded1 Clone() + { + var clone = new SetAzFrontDoorRulesEngine_UpdateExpanded1(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._rulesEngineParametersBody = this._rulesEngineParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + _rulesEngineParametersBody = await this.Client.RulesEnginesGetWithResult(SubscriptionId, ResourceGroupName, FrontDoorName, Name, this, Pipeline); + this.Update_rulesEngineParametersBody(); + await this.Client.RulesEnginesCreateOrUpdate(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _rulesEngineParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoorRulesEngine_UpdateExpanded1() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + private void Update_rulesEngineParametersBody() + { + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Rule"))) + { + this.Rule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[])(this.MyInvocation?.BoundParameters["Rule"]); + } + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath.cs new file mode 100644 index 000000000000..d958c8e66212 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath.cs @@ -0,0 +1,597 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorRulesEngine_UpdateViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + public global::System.String _jsonString; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Update operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Update operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Update operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath Clone() + { + var clone = new SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.Name = this.Name; + clone.JsonFilePath = this.JsonFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonString.cs new file mode 100644 index 000000000000..3be65f9e0111 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonString.cs @@ -0,0 +1,595 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Rules Engine Configuration with the specified name within the specified Front Door. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorRulesEngine_UpdateViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Rules Engine Configuration with the specified name within the specified Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class SetAzFrontDoorRulesEngine_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Update operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Update operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Update operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Rules Engine which is unique within the Front Door. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Rules Engine which is unique within the Front Door.", + SerializedName = @"rulesEngineName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("RulesEngineName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoorRulesEngine_UpdateViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorRulesEngine_UpdateViaJsonString Clone() + { + var clone = new SetAzFrontDoorRulesEngine_UpdateViaJsonString(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.FrontDoorName = this.FrontDoorName; + clone.Name = this.Name; + clone.JsonString = this.JsonString; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.RulesEnginesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoorRulesEngine_UpdateViaJsonString() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateExpanded.cs new file mode 100644 index 000000000000..854b4832746a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateExpanded.cs @@ -0,0 +1,658 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// update policy with specified rule set name within a resource group. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorWafPolicy_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + public partial class SetAzFrontDoorWafPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// Defines web application firewall policy. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// List of rules + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rules")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of rules", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] CustomRule { get => _parametersBody.CustomRule?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.CustomRule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Gets a unique read-only string that changes whenever the resource is updated. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets a unique read-only string that changes whenever the resource is updated.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets a unique read-only string that changes whenever the resource is updated.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + public string Etag { get => _parametersBody.Etag ?? null; set => _parametersBody.Etag = value; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""global""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// List of rule sets. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rule sets.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of rule sets.", + SerializedName = @"managedRuleSets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] ManagedRuleSet { get => _parametersBody.ManagedRuleSet?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.ManagedRuleSet = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// Describes settings for the policy. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes settings for the policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes settings for the policy.", + SerializedName = @"policySettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => _parametersBody.PolicySetting ?? null /* object */; set => _parametersBody.PolicySetting = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Name of the pricing tier. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the pricing tier.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the pricing tier.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + public string SkuName { get => _parametersBody.SkuName ?? null; set => _parametersBody.SkuName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoorWafPolicy_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorWafPolicy_UpdateExpanded Clone() + { + var clone = new SetAzFrontDoorWafPolicy_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) + { + Location = (string)this.MyInvocation.BoundParameters["Location"]; + } + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoorWafPolicy_UpdateExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath.cs new file mode 100644 index 000000000000..ca397836a416 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath.cs @@ -0,0 +1,580 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// update policy with specified rule set name within a resource group. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorWafPolicy_UpdateViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + public global::System.String _jsonString; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Update operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Update operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Update operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath Clone() + { + var clone = new SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonFilePath = this.JsonFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonString.cs new file mode 100644 index 000000000000..e11a7b623719 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonString.cs @@ -0,0 +1,578 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// update policy with specified rule set name within a resource group. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorWafPolicy_UpdateViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class SetAzFrontDoorWafPolicy_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Update operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Update operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Update operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoorWafPolicy_UpdateViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorWafPolicy_UpdateViaJsonString Clone() + { + var clone = new SetAzFrontDoorWafPolicy_UpdateViaJsonString(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonString = this.JsonString; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.PoliciesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoorWafPolicy_UpdateViaJsonString() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateExpanded.cs new file mode 100644 index 000000000000..ca4ef2fb888d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateExpanded.cs @@ -0,0 +1,701 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoor_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + public partial class SetAzFrontDoor_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor _frontDoorParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backend pools available to routing rules. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backend pools available to routing rules.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backend pools available to routing rules.", + SerializedName = @"backendPools", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] BackendPool { get => _frontDoorParametersBody.BackendPool?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.BackendPool = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Settings for all backendPools + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings for all backendPools")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Settings for all backendPools", + SerializedName = @"backendPoolsSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => _frontDoorParametersBody.BackendPoolsSetting ?? null /* object */; set => _frontDoorParametersBody.BackendPoolsSetting = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + public string EnabledState { get => _frontDoorParametersBody.EnabledState ?? null; set => _frontDoorParametersBody.EnabledState = value; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// A friendly name for the frontDoor + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A friendly name for the frontDoor")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A friendly name for the frontDoor", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + public string FriendlyName { get => _frontDoorParametersBody.FriendlyName ?? null; set => _frontDoorParametersBody.FriendlyName = value; } + + /// Frontend endpoints available to routing rules. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rules.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Frontend endpoints available to routing rules.", + SerializedName = @"frontendEndpoints", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] FrontendEndpoint { get => _frontDoorParametersBody.FrontendEndpoint?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.FrontendEndpoint = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Health probe settings associated with this Front Door instance. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Health probe settings associated with this Front Door instance.", + SerializedName = @"healthProbeSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] HealthProbeSetting { get => _frontDoorParametersBody.HealthProbeSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.HealthProbeSetting = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Load balancing settings associated with this Front Door instance. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Load balancing settings associated with this Front Door instance.", + SerializedName = @"loadBalancingSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] LoadBalancingSetting { get => _frontDoorParametersBody.LoadBalancingSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.LoadBalancingSetting = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""global""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] + public string Location { get => _frontDoorParametersBody.Location ?? null; set => _frontDoorParametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Routing rules associated with this Front Door. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Routing rules associated with this Front Door.", + SerializedName = @"routingRules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] RoutingRule { get => _frontDoorParametersBody.RoutingRule?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.RoutingRule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _frontDoorParametersBody.Tag ?? null /* object */; set => _frontDoorParametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoor_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoor_UpdateExpanded Clone() + { + var clone = new SetAzFrontDoor_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._frontDoorParametersBody = this._frontDoorParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) + { + Location = (string)this.MyInvocation.BoundParameters["Location"]; + } + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoor_UpdateExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonFilePath.cs new file mode 100644 index 000000000000..d76ea959669e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonFilePath.cs @@ -0,0 +1,582 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoor_UpdateViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class SetAzFrontDoor_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + public global::System.String _jsonString; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Update operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Update operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Update operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoor_UpdateViaJsonFilePath + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoor_UpdateViaJsonFilePath Clone() + { + var clone = new SetAzFrontDoor_UpdateViaJsonFilePath(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonFilePath = this.JsonFilePath; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoor_UpdateViaJsonFilePath() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonString.cs new file mode 100644 index 000000000000..bc41859fe28f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonString.cs @@ -0,0 +1,580 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoor_UpdateViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class SetAzFrontDoor_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Update operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Update operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Update operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzFrontDoor_UpdateViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoor_UpdateViaJsonString Clone() + { + var clone = new SetAzFrontDoor_UpdateViaJsonString(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.JsonString = this.JsonString; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public SetAzFrontDoor_UpdateViaJsonString() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_Validate.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_Validate.cs new file mode 100644 index 000000000000..ac5abc8acf3d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_Validate.cs @@ -0,0 +1,527 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// + /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_Validate", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] + public partial class TestAzFrontDoorCustomDomain_Validate : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput _customDomainProperty; + + /// Input of the custom domain to be validated for DNS mapping. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Input of the custom domain to be validated for DNS mapping.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Input of the custom domain to be validated for DNS mapping.", + SerializedName = @"customDomainProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput CustomDomainProperty { get => this._customDomainProperty; set => this._customDomainProperty = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsValidateCustomDomain(SubscriptionId, ResourceGroupName, FrontDoorName, CustomDomainProperty, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorCustomDomain_Validate() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateExpanded.cs new file mode 100644 index 000000000000..1084623ae171 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateExpanded.cs @@ -0,0 +1,527 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// + /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] + public partial class TestAzFrontDoorCustomDomain_ValidateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Input of the custom domain to be validated for DNS mapping. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput _customDomainPropertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainInput(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// The host name of the custom domain. Must be a domain name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The host name of the custom domain. Must be a domain name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The host name of the custom domain. Must be a domain name.", + SerializedName = @"hostName", + PossibleTypes = new [] { typeof(string) })] + public string HostName { get => _customDomainPropertiesBody.HostName ?? null; set => _customDomainPropertiesBody.HostName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsValidateCustomDomain(SubscriptionId, ResourceGroupName, FrontDoorName, _customDomainPropertiesBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorCustomDomain_ValidateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentity.cs new file mode 100644 index 000000000000..6469fce76b27 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentity.cs @@ -0,0 +1,505 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// + /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] + public partial class TestAzFrontDoorCustomDomain_ValidateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput _customDomainProperty; + + /// Input of the custom domain to be validated for DNS mapping. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Input of the custom domain to be validated for DNS mapping.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Input of the custom domain to be validated for DNS mapping.", + SerializedName = @"customDomainProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput CustomDomainProperty { get => this._customDomainProperty; set => this._customDomainProperty = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FrontDoorsValidateCustomDomainViaIdentity(InputObject.Id, CustomDomainProperty, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FrontDoorsValidateCustomDomain(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, CustomDomainProperty, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorCustomDomain_ValidateViaIdentity() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded.cs new file mode 100644 index 000000000000..1310907138a5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded.cs @@ -0,0 +1,505 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// + /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] + public partial class TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Input of the custom domain to be validated for DNS mapping. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput _customDomainPropertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainInput(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// The host name of the custom domain. Must be a domain name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The host name of the custom domain. Must be a domain name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The host name of the custom domain. Must be a domain name.", + SerializedName = @"hostName", + PossibleTypes = new [] { typeof(string) })] + public string HostName { get => _customDomainPropertiesBody.HostName ?? null; set => _customDomainPropertiesBody.HostName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FrontDoorsValidateCustomDomainViaIdentity(InputObject.Id, _customDomainPropertiesBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FrontDoorsValidateCustomDomain(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, _customDomainPropertiesBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath.cs new file mode 100644 index 000000000000..a6f372cd4241 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath.cs @@ -0,0 +1,529 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// + /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + public global::System.String _jsonString; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Validate operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Validate operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Validate operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsValidateCustomDomainViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonString.cs new file mode 100644 index 000000000000..f55c6b2c6f86 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonString.cs @@ -0,0 +1,527 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + /// + /// + /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class TestAzFrontDoorCustomDomain_ValidateViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// Backing field for property. + private string _frontDoorName; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Validate operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Validate operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Validate operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorsValidateCustomDomainViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorCustomDomain_ValidateViaJsonString() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_Check.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_Check.cs new file mode 100644 index 000000000000..6d8fb8cda76d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_Check.cs @@ -0,0 +1,497 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Check the availability of a Front Door subdomain. + /// + /// [OpenAPI] Check=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailabilityWithSubscription_Check", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door subdomain.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] + public partial class TestAzFrontDoorNameAvailabilityWithSubscription_Check : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput _checkFrontDoorNameAvailabilityInput; + + /// Input of CheckNameAvailability API. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Input of CheckNameAvailability API.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Input of CheckNameAvailability API.", + SerializedName = @"checkFrontDoorNameAvailabilityInput", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput CheckFrontDoorNameAvailabilityInput { get => this._checkFrontDoorNameAvailabilityInput; set => this._checkFrontDoorNameAvailabilityInput = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityWithSubscriptionCheck' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorNameAvailabilityWithSubscriptionCheck(SubscriptionId, CheckFrontDoorNameAvailabilityInput, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorNameAvailabilityWithSubscription_Check() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded.cs new file mode 100644 index 000000000000..8c1450c47392 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded.cs @@ -0,0 +1,510 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Check the availability of a Front Door subdomain. + /// + /// [OpenAPI] Check=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailabilityWithSubscription_CheckExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door subdomain.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] + public partial class TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Input of CheckNameAvailability API. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput _checkFrontDoorNameAvailabilityInputBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityInput(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// The resource name to validate. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The resource name to validate.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource name to validate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string Name { get => _checkFrontDoorNameAvailabilityInputBody.Name ?? null; set => _checkFrontDoorNameAvailabilityInputBody.Name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// The type of the resource whose name is to be validated. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The type of the resource whose name is to be validated.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the resource whose name is to be validated.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] + public string Type { get => _checkFrontDoorNameAvailabilityInputBody.Type ?? null; set => _checkFrontDoorNameAvailabilityInputBody.Type = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityWithSubscriptionCheck' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorNameAvailabilityWithSubscriptionCheck(SubscriptionId, _checkFrontDoorNameAvailabilityInputBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet + /// class. + /// + public TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath.cs new file mode 100644 index 000000000000..5a141525e733 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath.cs @@ -0,0 +1,500 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Check the availability of a Front Door subdomain. + /// + /// [OpenAPI] Check=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door subdomain.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + public global::System.String _jsonString; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Check operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Check operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Check operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityWithSubscriptionCheck' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorNameAvailabilityWithSubscriptionCheckViaJsonString(SubscriptionId, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the + /// cmdlet class. + /// + public TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString.cs new file mode 100644 index 000000000000..21e2cc686af2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString.cs @@ -0,0 +1,498 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Check the availability of a Front Door subdomain. + /// + /// [OpenAPI] Check=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door subdomain.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Check operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Check operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Check operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityWithSubscriptionCheck' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorNameAvailabilityWithSubscriptionCheckViaJsonString(SubscriptionId, _jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet + /// class. + /// + public TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_Check.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_Check.cs new file mode 100644 index 000000000000..b9b1befd4af1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_Check.cs @@ -0,0 +1,475 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Check the availability of a Front Door resource name. + /// + /// [OpenAPI] Check=>POST:"/providers/Microsoft.Network/checkFrontDoorNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailability_Check", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door resource name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] + public partial class TestAzFrontDoorNameAvailability_Check : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput _checkFrontDoorNameAvailabilityInput; + + /// Input of CheckNameAvailability API. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Input of CheckNameAvailability API.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Input of CheckNameAvailability API.", + SerializedName = @"checkFrontDoorNameAvailabilityInput", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput CheckFrontDoorNameAvailabilityInput { get => this._checkFrontDoorNameAvailabilityInput; set => this._checkFrontDoorNameAvailabilityInput = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityCheck' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorNameAvailabilityCheck(CheckFrontDoorNameAvailabilityInput, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorNameAvailability_Check() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckExpanded.cs new file mode 100644 index 000000000000..70ae01f61318 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckExpanded.cs @@ -0,0 +1,487 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Check the availability of a Front Door resource name. + /// + /// [OpenAPI] Check=>POST:"/providers/Microsoft.Network/checkFrontDoorNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailability_CheckExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door resource name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] + public partial class TestAzFrontDoorNameAvailability_CheckExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Input of CheckNameAvailability API. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput _checkFrontDoorNameAvailabilityInputBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityInput(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// The resource name to validate. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The resource name to validate.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource name to validate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string Name { get => _checkFrontDoorNameAvailabilityInputBody.Name ?? null; set => _checkFrontDoorNameAvailabilityInputBody.Name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The type of the resource whose name is to be validated. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The type of the resource whose name is to be validated.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the resource whose name is to be validated.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] + public string Type { get => _checkFrontDoorNameAvailabilityInputBody.Type ?? null; set => _checkFrontDoorNameAvailabilityInputBody.Type = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityCheck' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorNameAvailabilityCheck(_checkFrontDoorNameAvailabilityInputBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorNameAvailability_CheckExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonFilePath.cs new file mode 100644 index 000000000000..56f41e8f7504 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonFilePath.cs @@ -0,0 +1,477 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Check the availability of a Front Door resource name. + /// + /// [OpenAPI] Check=>POST:"/providers/Microsoft.Network/checkFrontDoorNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailability_CheckViaJsonFilePath", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door resource name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class TestAzFrontDoorNameAvailability_CheckViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + public global::System.String _jsonString; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonFilePath; + + /// Path of Json file supplied to the Check operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Check operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Path of Json file supplied to the Check operation", + SerializedName = @"JsonFilePath", + PossibleTypes = new [] { typeof(string) })] + public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityCheck' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorNameAvailabilityCheckViaJsonString(_jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorNameAvailability_CheckViaJsonFilePath() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonString.cs new file mode 100644 index 000000000000..05b2210b6dc0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonString.cs @@ -0,0 +1,475 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// Check the availability of a Front Door resource name. + /// + /// [OpenAPI] Check=>POST:"/providers/Microsoft.Network/checkFrontDoorNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailability_CheckViaJsonString", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door resource name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] + public partial class TestAzFrontDoorNameAvailability_CheckViaJsonString : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _jsonString; + + /// Json string supplied to the Check operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Check operation")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Json string supplied to the Check operation", + SerializedName = @"JsonString", + PossibleTypes = new [] { typeof(string) })] + public string JsonString { get => this._jsonString; set => this._jsonString = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityCheck' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FrontDoorNameAvailabilityCheckViaJsonString(_jsonString, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public TestAzFrontDoorNameAvailability_CheckViaJsonString() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateExpanded.cs new file mode 100644 index 000000000000..27ed37cc27e7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateExpanded.cs @@ -0,0 +1,692 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// update policy with specified rule set name within a resource group. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFrontDoorWafPolicy_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + public partial class UpdateAzFrontDoorWafPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// Defines web application firewall policy. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// List of rules + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rules")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of rules", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] CustomRule { get => _parametersBody.CustomRule?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.CustomRule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Gets a unique read-only string that changes whenever the resource is updated. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets a unique read-only string that changes whenever the resource is updated.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets a unique read-only string that changes whenever the resource is updated.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + public string Etag { get => _parametersBody.Etag ?? null; set => _parametersBody.Etag = value; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""global""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// List of rule sets. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rule sets.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of rule sets.", + SerializedName = @"managedRuleSets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] ManagedRuleSet { get => _parametersBody.ManagedRuleSet?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.ManagedRuleSet = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Web Application Firewall Policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Web Application Firewall Policy.", + SerializedName = @"policyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("PolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// Describes settings for the policy. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes settings for the policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes settings for the policy.", + SerializedName = @"policySettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => _parametersBody.PolicySetting ?? null /* object */; set => _parametersBody.PolicySetting = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Name of the pricing tier. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the pricing tier.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the pricing tier.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + public string SkuName { get => _parametersBody.SkuName ?? null; set => _parametersBody.SkuName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzFrontDoorWafPolicy_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.UpdateAzFrontDoorWafPolicy_UpdateExpanded Clone() + { + var clone = new UpdateAzFrontDoorWafPolicy_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) + { + Location = (string)this.MyInvocation.BoundParameters["Location"]; + } + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + _parametersBody = await this.Client.PoliciesGetWithResult(SubscriptionId, ResourceGroupName, Name, this, Pipeline); + this.Update_parametersBody(); + await this.Client.PoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public UpdateAzFrontDoorWafPolicy_UpdateExpanded() + { + + } + + private void Update_parametersBody() + { + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Location"))) + { + this.Location = (string)(this.MyInvocation?.BoundParameters["Location"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) + { + this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Etag"))) + { + this.Etag = (string)(this.MyInvocation?.BoundParameters["Etag"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("PolicySetting"))) + { + this.PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings)(this.MyInvocation?.BoundParameters["PolicySetting"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuName"))) + { + this.SkuName = (string)(this.MyInvocation?.BoundParameters["SkuName"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("CustomRule"))) + { + this.CustomRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[])(this.MyInvocation?.BoundParameters["CustomRule"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ManagedRuleSet"))) + { + this.ManagedRuleSet = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[])(this.MyInvocation?.BoundParameters["ManagedRuleSet"]); + } + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..20e5dc795bee --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded.cs @@ -0,0 +1,668 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// update policy with specified rule set name within a resource group. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFrontDoorWafPolicy_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + public partial class UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// Defines web application firewall policy. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// List of rules + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rules")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of rules", + SerializedName = @"rules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] CustomRule { get => _parametersBody.CustomRule?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.CustomRule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Gets a unique read-only string that changes whenever the resource is updated. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets a unique read-only string that changes whenever the resource is updated.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets a unique read-only string that changes whenever the resource is updated.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + public string Etag { get => _parametersBody.Etag ?? null; set => _parametersBody.Etag = value; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""global""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// List of rule sets. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rule sets.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of rule sets.", + SerializedName = @"managedRuleSets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] ManagedRuleSet { get => _parametersBody.ManagedRuleSet?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.ManagedRuleSet = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// Describes settings for the policy. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes settings for the policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes settings for the policy.", + SerializedName = @"policySettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => _parametersBody.PolicySetting ?? null /* object */; set => _parametersBody.PolicySetting = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Name of the pricing tier. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the pricing tier.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the pricing tier.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + public string SkuName { get => _parametersBody.SkuName ?? null; set => _parametersBody.SkuName = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) + { + Location = (string)this.MyInvocation.BoundParameters["Location"]; + } + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + _parametersBody = await this.Client.PoliciesGetViaIdentityWithResult(InputObject.Id, this, Pipeline); + this.Update_parametersBody(); + await this.Client.PoliciesCreateOrUpdateViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.PolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + _parametersBody = await this.Client.PoliciesGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PolicyName ?? null, this, Pipeline); + this.Update_parametersBody(); + await this.Client.PoliciesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PolicyName ?? null, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded() + { + + } + + private void Update_parametersBody() + { + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Location"))) + { + this.Location = (string)(this.MyInvocation?.BoundParameters["Location"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) + { + this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Etag"))) + { + this.Etag = (string)(this.MyInvocation?.BoundParameters["Etag"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("PolicySetting"))) + { + this.PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings)(this.MyInvocation?.BoundParameters["PolicySetting"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuName"))) + { + this.SkuName = (string)(this.MyInvocation?.BoundParameters["SkuName"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("CustomRule"))) + { + this.CustomRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[])(this.MyInvocation?.BoundParameters["CustomRule"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ManagedRuleSet"))) + { + this.ManagedRuleSet = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[])(this.MyInvocation?.BoundParameters["ManagedRuleSet"]); + } + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateExpanded.cs new file mode 100644 index 000000000000..9c61e497514c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateExpanded.cs @@ -0,0 +1,747 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFrontDoor_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + public partial class UpdateAzFrontDoor_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor _frontDoorParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backend pools available to routing rules. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backend pools available to routing rules.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backend pools available to routing rules.", + SerializedName = @"backendPools", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] BackendPool { get => _frontDoorParametersBody.BackendPool?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.BackendPool = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Settings for all backendPools + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings for all backendPools")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Settings for all backendPools", + SerializedName = @"backendPoolsSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => _frontDoorParametersBody.BackendPoolsSetting ?? null /* object */; set => _frontDoorParametersBody.BackendPoolsSetting = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + public string EnabledState { get => _frontDoorParametersBody.EnabledState ?? null; set => _frontDoorParametersBody.EnabledState = value; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// A friendly name for the frontDoor + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A friendly name for the frontDoor")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A friendly name for the frontDoor", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + public string FriendlyName { get => _frontDoorParametersBody.FriendlyName ?? null; set => _frontDoorParametersBody.FriendlyName = value; } + + /// Frontend endpoints available to routing rules. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rules.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Frontend endpoints available to routing rules.", + SerializedName = @"frontendEndpoints", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] FrontendEndpoint { get => _frontDoorParametersBody.FrontendEndpoint?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.FrontendEndpoint = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Health probe settings associated with this Front Door instance. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Health probe settings associated with this Front Door instance.", + SerializedName = @"healthProbeSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] HealthProbeSetting { get => _frontDoorParametersBody.HealthProbeSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.HealthProbeSetting = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Load balancing settings associated with this Front Door instance. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Load balancing settings associated with this Front Door instance.", + SerializedName = @"loadBalancingSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] LoadBalancingSetting { get => _frontDoorParametersBody.LoadBalancingSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.LoadBalancingSetting = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""global""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] + public string Location { get => _frontDoorParametersBody.Location ?? null; set => _frontDoorParametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the Front Door which is globally unique. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Front Door which is globally unique.", + SerializedName = @"frontDoorName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FrontDoorName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the Resource group within the Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the Resource group within the Azure subscription.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Routing rules associated with this Front Door. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Routing rules associated with this Front Door.", + SerializedName = @"routingRules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] RoutingRule { get => _frontDoorParametersBody.RoutingRule?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.RoutingRule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part + /// of the URI for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _frontDoorParametersBody.Tag ?? null /* object */; set => _frontDoorParametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzFrontDoor_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.UpdateAzFrontDoor_UpdateExpanded Clone() + { + var clone = new UpdateAzFrontDoor_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._frontDoorParametersBody = this._frontDoorParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) + { + Location = (string)this.MyInvocation.BoundParameters["Location"]; + } + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + _frontDoorParametersBody = await this.Client.FrontDoorsGetWithResult(SubscriptionId, ResourceGroupName, Name, this, Pipeline); + this.Update_frontDoorParametersBody(); + await this.Client.FrontDoorsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public UpdateAzFrontDoor_UpdateExpanded() + { + + } + + private void Update_frontDoorParametersBody() + { + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Location"))) + { + this.Location = (string)(this.MyInvocation?.BoundParameters["Location"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) + { + this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("FriendlyName"))) + { + this.FriendlyName = (string)(this.MyInvocation?.BoundParameters["FriendlyName"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("RoutingRule"))) + { + this.RoutingRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[])(this.MyInvocation?.BoundParameters["RoutingRule"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("LoadBalancingSetting"))) + { + this.LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[])(this.MyInvocation?.BoundParameters["LoadBalancingSetting"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("HealthProbeSetting"))) + { + this.HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[])(this.MyInvocation?.BoundParameters["HealthProbeSetting"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("BackendPool"))) + { + this.BackendPool = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[])(this.MyInvocation?.BoundParameters["BackendPool"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("FrontendEndpoint"))) + { + this.FrontendEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[])(this.MyInvocation?.BoundParameters["FrontendEndpoint"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("BackendPoolsSetting"))) + { + this.BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings)(this.MyInvocation?.BoundParameters["BackendPoolsSetting"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("EnabledState"))) + { + this.EnabledState = (string)(this.MyInvocation?.BoundParameters["EnabledState"]); + } + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..e124e37ab1cf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateViaIdentityExpanded.cs @@ -0,0 +1,723 @@ +// 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. + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; + using System; + + /// + /// update a new Front Door with a Front Door name under the specified subscription and resource group. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFrontDoor_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] + public partial class UpdateAzFrontDoor_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// + /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic + /// is sent there. + /// + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor _frontDoorParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backend pools available to routing rules. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backend pools available to routing rules.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backend pools available to routing rules.", + SerializedName = @"backendPools", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] BackendPool { get => _frontDoorParametersBody.BackendPool?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.BackendPool = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Settings for all backendPools + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings for all backendPools")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Settings for all backendPools", + SerializedName = @"backendPoolsSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => _frontDoorParametersBody.BackendPoolsSetting ?? null /* object */; set => _frontDoorParametersBody.BackendPoolsSetting = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", + SerializedName = @"enabledState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + public string EnabledState { get => _frontDoorParametersBody.EnabledState ?? null; set => _frontDoorParametersBody.EnabledState = value; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// A friendly name for the frontDoor + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A friendly name for the frontDoor")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A friendly name for the frontDoor", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + public string FriendlyName { get => _frontDoorParametersBody.FriendlyName ?? null; set => _frontDoorParametersBody.FriendlyName = value; } + + /// Frontend endpoints available to routing rules. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rules.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Frontend endpoints available to routing rules.", + SerializedName = @"frontendEndpoints", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] FrontendEndpoint { get => _frontDoorParametersBody.FrontendEndpoint?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.FrontendEndpoint = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Health probe settings associated with this Front Door instance. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Health probe settings associated with this Front Door instance.", + SerializedName = @"healthProbeSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] HealthProbeSetting { get => _frontDoorParametersBody.HealthProbeSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.HealthProbeSetting = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Load balancing settings associated with this Front Door instance. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Load balancing settings associated with this Front Door instance.", + SerializedName = @"loadBalancingSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] LoadBalancingSetting { get => _frontDoorParametersBody.LoadBalancingSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.LoadBalancingSetting = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""global""", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] + public string Location { get => _frontDoorParametersBody.Location ?? null; set => _frontDoorParametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Routing rules associated with this Front Door. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Routing rules associated with this Front Door.", + SerializedName = @"routingRules", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] RoutingRule { get => _frontDoorParametersBody.RoutingRule?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.RoutingRule = (value != null ? new System.Collections.Generic.List(value) : null); } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _frontDoorParametersBody.Tag ?? null /* object */; set => _frontDoorParametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzFrontDoor_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.UpdateAzFrontDoor_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzFrontDoor_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._frontDoorParametersBody = this._frontDoorParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) + { + Location = (string)this.MyInvocation.BoundParameters["Location"]; + } + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + _frontDoorParametersBody = await this.Client.FrontDoorsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); + this.Update_frontDoorParametersBody(); + await this.Client.FrontDoorsCreateOrUpdateViaIdentity(InputObject.Id, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FrontDoorName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + _frontDoorParametersBody = await this.Client.FrontDoorsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, this, Pipeline); + this.Update_frontDoorParametersBody(); + await this.Client.FrontDoorsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public UpdateAzFrontDoor_UpdateViaIdentityExpanded() + { + + } + + private void Update_frontDoorParametersBody() + { + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Location"))) + { + this.Location = (string)(this.MyInvocation?.BoundParameters["Location"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) + { + this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("FriendlyName"))) + { + this.FriendlyName = (string)(this.MyInvocation?.BoundParameters["FriendlyName"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("RoutingRule"))) + { + this.RoutingRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[])(this.MyInvocation?.BoundParameters["RoutingRule"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("LoadBalancingSetting"))) + { + this.LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[])(this.MyInvocation?.BoundParameters["LoadBalancingSetting"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("HealthProbeSetting"))) + { + this.HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[])(this.MyInvocation?.BoundParameters["HealthProbeSetting"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("BackendPool"))) + { + this.BackendPool = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[])(this.MyInvocation?.BoundParameters["BackendPool"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("FrontendEndpoint"))) + { + this.FrontendEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[])(this.MyInvocation?.BoundParameters["FrontendEndpoint"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("BackendPoolsSetting"))) + { + this.BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings)(this.MyInvocation?.BoundParameters["BackendPoolsSetting"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("EnabledState"))) + { + this.EnabledState = (string)(this.MyInvocation?.BoundParameters["EnabledState"]); + } + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor + var result = (await response); + WriteObject(result, false); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncCommandRuntime.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncCommandRuntime.cs new file mode 100644 index 000000000000..f2b5be261ab5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncCommandRuntime.cs @@ -0,0 +1,832 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + using System.Management.Automation; + using System.Management.Automation.Host; + using System.Threading; + using System.Linq; + + internal interface IAsyncCommandRuntimeExtensions + { + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep func); + System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs); + + T ExecuteSync(System.Func step); + } + + public class AsyncCommandRuntime : System.Management.Automation.ICommandRuntime2, IAsyncCommandRuntimeExtensions, System.IDisposable + { + private ICommandRuntime2 originalCommandRuntime; + private System.Threading.Thread originalThread; + public bool AllowInteractive { get; set; } = false; + + public CancellationToken cancellationToken; + SemaphoreSlim semaphore = new SemaphoreSlim(1, 1); + ManualResetEventSlim readyToRun = new ManualResetEventSlim(false); + ManualResetEventSlim completed = new ManualResetEventSlim(false); + + System.Action runOnMainThread; + + private System.Management.Automation.PSCmdlet cmdlet; + + internal AsyncCommandRuntime(System.Management.Automation.PSCmdlet cmdlet, CancellationToken cancellationToken) + { + this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; + this.originalThread = System.Threading.Thread.CurrentThread; + this.cancellationToken = cancellationToken; + this.cmdlet = cmdlet; + if (cmdlet.PagingParameters != null) + { + WriteDebug("Client side pagination is enabled for this cmdlet"); + } + cmdlet.CommandRuntime = this; + } + + public PSHost Host => this.originalCommandRuntime.Host; + + public PSTransactionContext CurrentPSTransaction => this.originalCommandRuntime.CurrentPSTransaction; + + private void CheckForInteractive() + { + // This is an interactive call -- if we are not on the original thread, this will only work if this was done at ACR creation time; + if (!AllowInteractive) + { + throw new System.Exception("AsyncCommandRuntime is not configured for interactive calls"); + } + } + private void WaitOurTurn() + { + // wait for our turn to play + semaphore?.Wait(cancellationToken); + + // ensure that completed is not set + completed.Reset(); + } + + private void WaitForCompletion() + { + // wait for the result (or cancellation!) + WaitHandle.WaitAny(new[] { cancellationToken.WaitHandle, completed?.WaitHandle }); + + // let go of the semaphore + semaphore?.Release(); + + } + + public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yesToAll, ref noToAll); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool yta = yesToAll; + bool nta = noToAll; + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yta, ref nta); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + yesToAll = yta; + noToAll = nta; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldContinue(string query, string caption) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption, ref yesToAll, ref noToAll); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool yta = yesToAll; + bool nta = noToAll; + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, ref yta, ref nta); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + yesToAll = yta; + noToAll = nta; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string target) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(target); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string target, string action) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(target, action); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target, action); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out shouldProcessReason); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + ShouldProcessReason reason = ShouldProcessReason.None; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out reason); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + shouldProcessReason = reason; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void ThrowTerminatingError(ErrorRecord errorRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.ThrowTerminatingError(errorRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.ThrowTerminatingError(errorRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool TransactionAvailable() + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.TransactionAvailable(); + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.TransactionAvailable(); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteCommandDetail(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteCommandDetail(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteCommandDetail(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteDebug(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteDebug(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteDebug(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteError(ErrorRecord errorRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteError(errorRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteError(errorRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteInformation(InformationRecord informationRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteInformation(informationRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteInformation(informationRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteObject(object sendToPipeline) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteObject(sendToPipeline); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteObject(object sendToPipeline, bool enumerateCollection) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteProgress(ProgressRecord progressRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteProgress(progressRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteProgress(progressRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteProgress(long sourceId, ProgressRecord progressRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteProgress(sourceId, progressRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteProgress(sourceId, progressRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteVerbose(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteVerbose(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteVerbose(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteWarning(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteWarning(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteWarning(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void Wait(System.Threading.Tasks.Task ProcessRecordAsyncTask, System.Threading.CancellationToken cancellationToken) + { + do + { + WaitHandle.WaitAny(new[] { readyToRun.WaitHandle, ((System.IAsyncResult)ProcessRecordAsyncTask).AsyncWaitHandle }); + if (readyToRun.IsSet) + { + // reset the request for the next time + readyToRun.Reset(); + + // run the delegate on this thread + runOnMainThread(); + + // tell the originator everything is complete + completed.Set(); + } + } + while (!ProcessRecordAsyncTask.IsCompleted); + if (ProcessRecordAsyncTask.IsFaulted) + { + // don't unwrap a Aggregate Exception -- we'll lose the stack trace of the actual exception. + // if( ProcessRecordAsyncTask.Exception is System.AggregateException aggregate ) { + // throw aggregate.InnerException; + // } + throw ProcessRecordAsyncTask.Exception; + } + } + public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep func) => func.Target.GetType().Name != "Closure" ? func : (p1, p2, p3) => ExecuteSync>(() => func(p1, p2, p3)); + public System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs) => funcs?.Select(Wrap); + + public T ExecuteSync(System.Func step) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return step(); + } + + T result = default(T); + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + // set the function to run + runOnMainThread = () => { result = step(); }; + // tell the main thread to go ahead + readyToRun.Set(); + // wait for the result (or cancellation!) + WaitForCompletion(); + // return + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void Dispose() + { + if (cmdlet != null) + { + cmdlet.CommandRuntime = this.originalCommandRuntime; + cmdlet = null; + } + + semaphore?.Dispose(); + semaphore = null; + readyToRun?.Dispose(); + readyToRun = null; + completed?.Dispose(); + completed = null; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncJob.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncJob.cs new file mode 100644 index 000000000000..4fb3e4c77b52 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncJob.cs @@ -0,0 +1,270 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + using System.Management.Automation; + using System.Management.Automation.Host; + using System.Threading; + + using System.Threading.Tasks; + + public class LongRunningJobCancelledException : System.Exception + { + public LongRunningJobCancelledException(string message) : base(message) + { + + } + } + + public class AsyncJob : Job, System.Management.Automation.ICommandRuntime2 + { + const int MaxRecords = 1000; + + private string _statusMessage = string.Empty; + + public override string StatusMessage => _statusMessage; + + public override bool HasMoreData => Output.Count > 0 || Progress.Count > 0 || Error.Count > 0 || Warning.Count > 0 || Verbose.Count > 0 || Debug.Count > 0; + + public override string Location => "localhost"; + + public PSHost Host => originalCommandRuntime.Host; + + public PSTransactionContext CurrentPSTransaction => originalCommandRuntime.CurrentPSTransaction; + + public override void StopJob() + { + Cancel(); + } + + private readonly PSCmdlet cmdlet; + private readonly ICommandRuntime2 originalCommandRuntime; + private readonly System.Threading.Thread originalThread; + + private void CheckForInteractive() + { + // This is an interactive call -- We should never allow interactivity in AsnycJob cmdlets. + throw new System.Exception("Cmdlets in AsyncJob; interactive calls are not permitted."); + } + private bool IsJobDone => CancellationToken.IsCancellationRequested || this.JobStateInfo.State == JobState.Failed || this.JobStateInfo.State == JobState.Stopped || this.JobStateInfo.State == JobState.Stopping || this.JobStateInfo.State == JobState.Completed; + + private readonly System.Action Cancel; + private readonly CancellationToken CancellationToken; + + internal AsyncJob(PSCmdlet cmdlet, string line, string name, CancellationToken cancellationToken, System.Action cancelMethod) : base(line, name) + { + SetJobState(JobState.NotStarted); + // know how to cancel/check for cancelation + this.CancellationToken = cancellationToken; + this.Cancel = cancelMethod; + + // we might need these. + this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; + this.originalThread = System.Threading.Thread.CurrentThread; + + // the instance of the cmdlet we're going to run + this.cmdlet = cmdlet; + + // set the command runtime to the AsyncJob + cmdlet.CommandRuntime = this; + } + + /// + /// Monitors the task (which should be ProcessRecordAsync) to control + /// the lifetime of the job itself + /// + /// + public void Monitor(Task task) + { + SetJobState(JobState.Running); + task.ContinueWith(antecedent => + { + if (antecedent.IsCanceled) + { + // if the task was canceled, we're just going to call it completed. + SetJobState(JobState.Completed); + } + else if (antecedent.IsFaulted) + { + foreach (var innerException in antecedent.Exception.Flatten().InnerExceptions) + { + WriteError(new System.Management.Automation.ErrorRecord(innerException, string.Empty, System.Management.Automation.ErrorCategory.NotSpecified, null)); + } + + // a fault indicates an actual failure + SetJobState(JobState.Failed); + } + else + { + // otherwiser it's a completed state. + SetJobState(JobState.Completed); + } + }, CancellationToken); + } + + private void CheckForCancellation() + { + if (IsJobDone) + { + throw new LongRunningJobCancelledException("Long running job is canceled or stopping, continuation of the cmdlet is not permitted."); + } + } + + public void WriteInformation(InformationRecord informationRecord) + { + CheckForCancellation(); + + this.Information.Add(informationRecord); + } + + public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) + { + CheckForInteractive(); + return false; + } + + public void WriteDebug(string text) + { + _statusMessage = text; + CheckForCancellation(); + + if (Debug.IsOpen && Debug.Count < MaxRecords) + { + Debug.Add(new DebugRecord(text)); + } + } + + public void WriteError(ErrorRecord errorRecord) + { + if (Error.IsOpen) + { + Error.Add(errorRecord); + } + } + + public void WriteObject(object sendToPipeline) + { + CheckForCancellation(); + + if (Output.IsOpen) + { + Output.Add(new PSObject(sendToPipeline)); + } + } + + public void WriteObject(object sendToPipeline, bool enumerateCollection) + { + CheckForCancellation(); + + if (enumerateCollection && sendToPipeline is System.Collections.IEnumerable enumerable) + { + foreach (var item in enumerable) + { + WriteObject(item); + } + } + else + { + WriteObject(sendToPipeline); + } + } + + public void WriteProgress(ProgressRecord progressRecord) + { + CheckForCancellation(); + + if (Progress.IsOpen && Progress.Count < MaxRecords) + { + Progress.Add(progressRecord); + } + } + + public void WriteProgress(long sourceId, ProgressRecord progressRecord) + { + CheckForCancellation(); + + if (Progress.IsOpen && Progress.Count < MaxRecords) + { + Progress.Add(progressRecord); + } + } + + public void WriteVerbose(string text) + { + CheckForCancellation(); + + if (Verbose.IsOpen && Verbose.Count < MaxRecords) + { + Verbose.Add(new VerboseRecord(text)); + } + } + + public void WriteWarning(string text) + { + CheckForCancellation(); + + if (Warning.IsOpen && Warning.Count < MaxRecords) + { + Warning.Add(new WarningRecord(text)); + } + } + + public void WriteCommandDetail(string text) + { + WriteVerbose(text); + } + + public bool ShouldProcess(string target) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string target, string action) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) + { + CheckForInteractive(); + shouldProcessReason = ShouldProcessReason.None; + return false; + } + + public bool ShouldContinue(string query, string caption) + { + CheckForInteractive(); + return false; + } + + public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + CheckForInteractive(); + return false; + } + + public bool TransactionAvailable() + { + // interactivity required? + return false; + } + + public void ThrowTerminatingError(ErrorRecord errorRecord) + { + if (Error.IsOpen) + { + Error.Add(errorRecord); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncOperationResponse.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncOperationResponse.cs new file mode 100644 index 000000000000..42403442dac3 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncOperationResponse.cs @@ -0,0 +1,176 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + [System.ComponentModel.TypeConverter(typeof(AsyncOperationResponseTypeConverter))] + public class AsyncOperationResponse + { + private string _target; + public string Target { get => _target; set => _target = value; } + public AsyncOperationResponse() + { + } + internal AsyncOperationResponse(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) + { + // pull target + { Target = If(json?.PropertyT("target"), out var _v) ? (string)_v : (string)Target; } + } + public string ToJsonString() + { + return $"{{ \"target\" : \"{this.Target}\" }}"; + } + + public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new AsyncOperationResponse(json) : null; + } + + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); + + } + + public partial class AsyncOperationResponseTypeConverter : System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to a type + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static object ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(AsyncOperationResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AsyncOperationResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString()); ; + } + catch + { + // Unable to use JSON pattern + } + + if (typeof(System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return new AsyncOperationResponse { Target = (sourceValue as System.Management.Automation.PSObject).GetValueForProperty("target", "", global::System.Convert.ToString) }; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return new AsyncOperationResponse { Target = (sourceValue as global::System.Collections.IDictionary).GetValueForProperty("target", "", global::System.Convert.ToString) }; + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs new file mode 100644 index 000000000000..c8a15fe5b62c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor +{ + using System; + using System.Collections.Generic; + using System.Text; + + [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)] + public class ExternalDocsAttribute : Attribute + { + + public string Description { get; } + + public string Url { get; } + + public ExternalDocsAttribute(string url) + { + Url = url; + } + + public ExternalDocsAttribute(string url, string description) + { + Url = url; + Description = description; + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs new file mode 100644 index 000000000000..400c3d14471a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs @@ -0,0 +1,52 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor +{ + public class PSArgumentCompleterAttribute : ArgumentCompleterAttribute + { + internal string[] ResourceTypes; + + public PSArgumentCompleterAttribute(params string[] argumentList) : base(CreateScriptBlock(argumentList)) + { + ResourceTypes = argumentList; + } + + public static ScriptBlock CreateScriptBlock(string[] resourceTypes) + { + List outputResourceTypes = new List(); + foreach (string resourceType in resourceTypes) + { + if (resourceType.Contains(" ")) + { + outputResourceTypes.Add("\'\'" + resourceType + "\'\'"); + } + else + { + outputResourceTypes.Add(resourceType); + } + } + string scriptResourceTypeList = "'" + String.Join("' , '", outputResourceTypes) + "'"; + string script = "param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)\n" + + String.Format("$values = {0}\n", scriptResourceTypeList) + + "$values | Where-Object { $_ -Like \"$wordToComplete*\" -or $_ -Like \"'$wordToComplete*\" } | Sort-Object | ForEach-Object { [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) }"; + ScriptBlock scriptBlock = ScriptBlock.Create(script); + return scriptBlock; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs new file mode 100644 index 000000000000..0c76ac8d5972 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs @@ -0,0 +1,113 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "CmdletSurface")] + [DoNotExport] + public class ExportCmdletSurface : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CmdletFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public bool IncludeGeneralParameters { get; set; } + + [Parameter] + public bool UseExpandedFormat { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = GetScriptCmdlets(this, CmdletFolder) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + foreach (var profileGroup in profileGroups) + { + var variantGroups = profileGroup.Variants + .GroupBy(v => new { v.CmdletName }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), String.Empty, profileGroup.ProfileName)); + var sb = UseExpandedFormat ? ExpandedFormat(variantGroups) : CondensedFormat(variantGroups); + Directory.CreateDirectory(OutputFolder); + File.WriteAllText(Path.Combine(OutputFolder, $"CmdletSurface-{profileGroup.ProfileName}.md"), sb.ToString()); + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private StringBuilder ExpandedFormat(IEnumerable variantGroups) + { + var sb = new StringBuilder(); + foreach (var variantGroup in variantGroups.OrderBy(vg => vg.CmdletName)) + { + sb.Append($"### {variantGroup.CmdletName}{Environment.NewLine}"); + var parameterGroups = variantGroup.ParameterGroups + .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); + foreach (var parameterGroup in parameterGroups) + { + sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + private StringBuilder CondensedFormat(IEnumerable variantGroups) + { + var sb = new StringBuilder(); + var condensedGroups = variantGroups + .GroupBy(vg => vg.CmdletNoun) + .Select(vgg => ( + CmdletNoun: vgg.Key, + CmdletVerbs: vgg.Select(vg => vg.CmdletVerb).OrderBy(cv => cv).ToArray(), + ParameterGroups: vgg.SelectMany(vg => vg.ParameterGroups).DistinctBy(p => p.ParameterName).ToArray(), + OutputTypes: vgg.SelectMany(vg => vg.OutputTypes).Select(ot => ot.Type).DistinctBy(t => t.Name).Select(t => t.ToSyntaxTypeName()).ToArray())) + .OrderBy(vg => vg.CmdletNoun); + foreach (var condensedGroup in condensedGroups) + { + sb.Append($"### {condensedGroup.CmdletNoun} [{String.Join(", ", condensedGroup.CmdletVerbs)}] `{String.Join(", ", condensedGroup.OutputTypes)}`{Environment.NewLine}"); + var parameterGroups = condensedGroup.ParameterGroups + .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); + foreach (var parameterGroup in parameterGroups) + { + sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs new file mode 100644 index 000000000000..0fd1ebb272ef --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs @@ -0,0 +1,74 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ExampleStub")] + [DoNotExport] + public class ExportExampleStub : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + + var exampleText = String.Join(String.Empty, DefaultExampleHelpInfos.Select(ehi => ehi.ToHelpExampleOutput())); + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var cmdletFilePaths = GetScriptCmdlets(exportDirectory).Select(fi => Path.Combine(outputFolder, $"{fi.Name}.md")).ToArray(); + var currentExamplesFilePaths = Directory.GetFiles(outputFolder).ToArray(); + // Remove examples of non-existing cmdlets + var removedCmdletFilePaths = currentExamplesFilePaths.Except(cmdletFilePaths); + foreach (var removedCmdletFilePath in removedCmdletFilePaths) + { + File.Delete(removedCmdletFilePath); + } + + // Only create example stubs if they don't exist + foreach (var cmdletFilePath in cmdletFilePaths.Except(currentExamplesFilePaths)) + { + File.WriteAllText(cmdletFilePath, exampleText); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs new file mode 100644 index 000000000000..f0b944dafb1a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs @@ -0,0 +1,103 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "FormatPs1xml")] + [DoNotExport] + public class ExportFormatPs1xml : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string FilePath { get; set; } + + private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models"; + private const string SupportNamespace = @"${$project.supportNamespace.fullName}"; + private const string PropertiesExcludedForTableview = @"Id,Type"; + + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + + private static string SelectedBySuffix = @"#Multiple"; + + protected override void ProcessRecord() + { + try + { + var viewModels = GetFilteredViewParameters().Select(CreateViewModel).ToList(); + var ps1xml = new Configuration + { + ViewDefinitions = new ViewDefinitions + { + Views = viewModels + } + }; + File.WriteAllText(FilePath, ps1xml.ToXmlString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private static IEnumerable GetFilteredViewParameters() + { + //https://stackoverflow.com/a/79738/294804 + //https://stackoverflow.com/a/949285/294804 + var types = Assembly.GetExecutingAssembly().GetExportedTypes() + .Where(t => t.IsClass + && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace)) + && !t.GetCustomAttributes().Any()); + return types.Select(t => new ViewParameters(t, t.GetProperties() + .Select(p => new PropertyFormat(p)) + .Where(pf => !pf.Property.GetCustomAttributes().Any() + && (!PropertiesExcludedForTableview.Split(',').Contains(pf.Property.Name)) + && (pf.FormatTable != null || (pf.Origin != PropertyOrigin.Inlined && pf.Property.PropertyType.IsPsSimple()))) + .OrderByDescending(pf => pf.Index.HasValue) + .ThenBy(pf => pf.Index) + .ThenByDescending(pf => pf.Origin.HasValue) + .ThenBy(pf => pf.Origin))).Where(vp => vp.Properties.Any()); + } + + private static View CreateViewModel(ViewParameters viewParameters) + { + var entries = viewParameters.Properties.Select(pf => + (TableColumnHeader: new TableColumnHeader { Label = pf.Label, Width = pf.Width }, + TableColumnItem: new TableColumnItem { PropertyName = pf.Property.Name })).ToArray(); + + return new View + { + Name = viewParameters.Type.FullName, + ViewSelectedBy = new ViewSelectedBy + { + TypeName = string.Concat(viewParameters.Type.FullName, SelectedBySuffix) + }, + TableControl = new TableControl + { + TableHeaders = new TableHeaders + { + TableColumnHeaders = entries.Select(e => e.TableColumnHeader).ToList() + }, + TableRowEntries = new TableRowEntries + { + TableRowEntry = new TableRowEntry + { + TableColumnItems = new TableColumnItems + { + TableItems = entries.Select(e => e.TableColumnItem).ToList() + } + } + } + } + }; + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs new file mode 100644 index 000000000000..c03a6f7cd691 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs @@ -0,0 +1,56 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownRenderer; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "HelpMarkdown")] + [DoNotExport] + public class ExportHelpMarkdown : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSModuleInfo ModuleInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSObject[] FunctionInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSObject[] HelpInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string DocsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExamplesFolder { get; set; } + + [Parameter()] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + + protected override void ProcessRecord() + { + try + { + var helpInfos = HelpInfo.Select(hi => hi.ToPsHelpInfo()); + var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() + .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) + .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); + WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder, AddComplexInterfaceInfo.IsPresent); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs new file mode 100644 index 000000000000..33263ed1a39a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs @@ -0,0 +1,117 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ModelSurface")] + [DoNotExport] + public class ExportModelSurface : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public bool UseExpandedFormat { get; set; } + + private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models"; + private const string SupportNamespace = @"${$project.supportNamespace.fullName}"; + + protected override void ProcessRecord() + { + try + { + var types = Assembly.GetExecutingAssembly().GetExportedTypes() + .Where(t => t.IsClass && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace))); + var typeInfos = types.Select(t => new ModelTypeInfo + { + Type = t, + TypeName = t.Name, + Properties = t.GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(p => !p.GetIndexParameters().Any()).OrderBy(p => p.Name).ToArray(), + NamespaceGroup = t.Namespace.Split('.').LastOrDefault().EmptyIfNull() + }).Where(mti => mti.Properties.Any()); + var sb = UseExpandedFormat ? ExpandedFormat(typeInfos) : CondensedFormat(typeInfos); + Directory.CreateDirectory(OutputFolder); + File.WriteAllText(Path.Combine(OutputFolder, "ModelSurface.md"), sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private static StringBuilder ExpandedFormat(IEnumerable typeInfos) + { + var sb = new StringBuilder(); + foreach (var typeInfo in typeInfos.OrderBy(mti => mti.TypeName).ThenBy(mti => mti.NamespaceGroup)) + { + sb.Append($"### {typeInfo.TypeName} [{typeInfo.NamespaceGroup}]{Environment.NewLine}"); + foreach (var property in typeInfo.Properties) + { + sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + private static StringBuilder CondensedFormat(IEnumerable typeInfos) + { + var sb = new StringBuilder(); + var typeGroups = typeInfos + .GroupBy(mti => mti.TypeName) + .Select(tig => ( + Types: tig.Select(mti => mti.Type).ToArray(), + TypeName: tig.Key, + Properties: tig.SelectMany(mti => mti.Properties).DistinctBy(p => p.Name).OrderBy(p => p.Name).ToArray(), + NamespaceGroups: tig.Select(mti => mti.NamespaceGroup).OrderBy(ng => ng).ToArray() + )) + .OrderBy(tg => tg.TypeName); + foreach (var typeGroup in typeGroups) + { + var aType = typeGroup.Types.Select(GetAssociativeType).FirstOrDefault(t => t != null); + var aText = aType != null ? $@" \<{aType.ToSyntaxTypeName()}\>" : String.Empty; + sb.Append($"### {typeGroup.TypeName}{aText} [{String.Join(", ", typeGroup.NamespaceGroups)}]{Environment.NewLine}"); + foreach (var property in typeGroup.Properties) + { + var propertyAType = GetAssociativeType(property.PropertyType); + var propertyAText = propertyAType != null ? $" <{propertyAType.ToSyntaxTypeName()}>" : String.Empty; + var enumNames = GetEnumFieldNames(property.PropertyType.Unwrap()); + var enumNamesText = enumNames.Any() ? $" **{{{String.Join(", ", enumNames)}}}**" : String.Empty; + sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}{propertyAText}`{enumNamesText}{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + //https://stackoverflow.com/a/4963190/294804 + private static Type GetAssociativeType(Type type) => + type.GetInterfaces().FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>))?.GetGenericArguments().First(); + + private static string[] GetEnumFieldNames(Type type) => + type.IsValueType && !type.IsPrimitive && type != typeof(decimal) && type != typeof(DateTime) + ? type.GetFields(BindingFlags.Public | BindingFlags.Static).Where(f => f.FieldType == type).Select(p => p.Name).ToArray() + : new string[] { }; + + private class ModelTypeInfo + { + public Type Type { get; set; } + public string TypeName { get; set; } + public PropertyInfo[] Properties { get; set; } + public string NamespaceGroup { get; set; } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs new file mode 100644 index 000000000000..cf808ea5d0a6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -0,0 +1,180 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownRenderer; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyTypeExtensions; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ProxyCmdlet", DefaultParameterSetName = "Docs")] + [DoNotExport] + public class ExportProxyCmdlet : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string[] ModulePath { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string InternalFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [AllowEmptyString] + public string ModuleDescription { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [ValidateNotNullOrEmpty] + public string DocsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExamplesFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + public Guid ModuleGuid { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] + public SwitchParameter ExcludeDocs { get; set; } + + [Parameter(ParameterSetName = "Docs")] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = GetModuleCmdletsAndHelpInfo(this, ModulePath).SelectMany(ci => ci.ToVariants()).Where(v => !v.IsDoNotExport).ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + var variantGroups = profileGroups.SelectMany(pg => pg.Variants + .GroupBy(v => new { v.CmdletName, v.IsInternal }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), + Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) + .ToArray(); + var license = new StringBuilder(); + license.Append(@" +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the ""License""); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an ""AS IS"" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- +"); + HashSet LicenseSet = new HashSet(); + foreach (var variantGroup in variantGroups) + { + var parameterGroups = variantGroup.ParameterGroups.ToList(); + var isValidProfile = !String.IsNullOrEmpty(variantGroup.ProfileName) && variantGroup.ProfileName != NoProfiles; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, variantGroup.ProfileName) : ExamplesFolder; + var markdownInfo = new MarkdownHelpInfo(variantGroup, examplesFolder); + List examples = new List(); + foreach (var it in markdownInfo.Examples) + { + examples.Add(it); + } + variantGroup.HelpInfo.Examples = examples.ToArray(); + var sb = new StringBuilder(); + sb.Append($"{Environment.NewLine}"); + sb.Append(variantGroup.ToHelpCommentOutput()); + sb.Append($"function {variantGroup.CmdletName} {{{Environment.NewLine}"); + sb.Append(variantGroup.Aliases.ToAliasOutput()); + sb.Append(variantGroup.OutputTypes.ToOutputTypeOutput()); + sb.Append(variantGroup.ToCmdletBindingOutput()); + sb.Append(variantGroup.ProfileName.ToProfileOutput()); + + sb.Append("param("); + sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); + + foreach (var parameterGroup in parameterGroups) + { + var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; + parameters = parameters.Where(p => !p.IsHidden()); + if (!parameters.Any()) + { + continue; + } + foreach (var parameter in parameters) + { + sb.Append(parameter.ToParameterOutput(variantGroup.HasMultipleVariants, parameterGroup.HasAllVariants)); + } + sb.Append(parameterGroup.Aliases.ToAliasOutput(true)); + sb.Append(parameterGroup.HasValidateNotNull.ToValidateNotNullOutput()); + sb.Append(parameterGroup.HasAllowEmptyArray.ToAllowEmptyArray()); + sb.Append(parameterGroup.CompleterInfo.ToArgumentCompleterOutput()); + sb.Append(parameterGroup.OrderCategory.ToParameterCategoryOutput()); + sb.Append(parameterGroup.InfoAttribute.ToInfoOutput(parameterGroup.ParameterType)); + sb.Append(parameterGroup.ToDefaultInfoOutput()); + sb.Append(parameterGroup.ParameterType.ToParameterTypeOutput()); + sb.Append(parameterGroup.Description.ToParameterDescriptionOutput()); + sb.Append(parameterGroup.ParameterName.ToParameterNameOutput(parameterGroups.IndexOf(parameterGroup) == parameterGroups.Count - 1)); + } + sb.Append($"){Environment.NewLine}{Environment.NewLine}"); + + sb.Append(variantGroup.ToBeginOutput()); + sb.Append(variantGroup.ToProcessOutput()); + sb.Append(variantGroup.ToEndOutput()); + + sb.Append($"}}{Environment.NewLine}"); + + Directory.CreateDirectory(variantGroup.OutputFolder); + File.WriteAllText(variantGroup.FilePath, license.ToString()); + File.AppendAllText(variantGroup.FilePath, sb.ToString()); + if (!LicenseSet.Contains(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"))) + { + // only add license in the header + File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), license.ToString()); + LicenseSet.Add(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1")); + } + File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), sb.ToString()); + } + + if (!ExcludeDocs) + { + var moduleInfo = new PsModuleHelpInfo(ModuleName, ModuleGuid, ModuleDescription); + foreach (var variantGroupsByProfile in variantGroups.GroupBy(vg => vg.ProfileName)) + { + var profileName = variantGroupsByProfile.Key; + var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; + var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder, AddComplexInterfaceInfo.IsPresent); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs new file mode 100644 index 000000000000..76269b550aa2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -0,0 +1,193 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Text.RegularExpressions; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "Psd1")] + [DoNotExport] + public class ExportPsd1 : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CustomFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } + + [Parameter(Mandatory = true)] + public Guid ModuleGuid { get; set; } + + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + private const string CustomFolderRelative = "./custom"; + private const string Indent = Psd1Indent; + private const string Undefined = "undefined"; + private bool IsUndefined(string value) => string.Equals(Undefined, value, StringComparison.OrdinalIgnoreCase); + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + if (!Directory.Exists(CustomFolder)) + { + throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); + } + + string version = Convert.ToString(@"0.1.0"); + // Validate the module version should be semantic version + // Following regex is official from https://semver.org/ + Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); + if (rx.Matches(version).Count != 1) + { + throw new ArgumentException("Module-version is not a valid Semantic Version"); + } + + string previewVersion = null; + if (version.Contains('-')) + { + string[] versions = version.Split("-".ToCharArray(), 2); + version = versions[0]; + previewVersion = versions[1]; + } + + var sb = new StringBuilder(); + sb.AppendLine("@{"); + sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); + sb.AppendLine($@"{Indent}RootModule = '{"./Az.FrontDoor.psm1"}'"); + sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); + sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); + sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); + sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: FrontDoor cmdlets"}'"); + sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); + sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); + + // RequiredModules + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}RequiredModules = @({"undefined"})"); + } + + // RequiredAssemblies + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}RequiredAssemblies = @({"undefined"})"); + } + else + { + sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.FrontDoor.private.dll"}'"); + } + + // NestedModules + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}NestedModules = @({"undefined"})"); + } + + // FormatsToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}FormatsToProcess = @({"undefined"})"); + } + else + { + var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) + .Where(f => f.EndsWith(".format.ps1xml")) + .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); + var formatList = customFormatPs1xmlFiles.Prepend("./Az.FrontDoor.format.ps1xml").ToPsList(); + sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); + } + + // TypesToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}TypesToProcess = @({"undefined"})"); + } + + // ScriptsToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}ScriptsToProcess = @({"undefined"})"); + } + + var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); + // FunctionsToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}FunctionsToExport = @({"undefined"})"); + } + else + { + var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().ToPsList(); + sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); + } + + // AliasesToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}AliasesToExport = @({"undefined"})"); + } + else + { + var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().ToPsList(); + if (!String.IsNullOrEmpty(aliasesList)) { + sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + } + } + + // CmdletsToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}CmdletsToExport = @({"undefined"})"); + } + + sb.AppendLine($@"{Indent}PrivateData = @{{"); + sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); + + if (previewVersion != null) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = '{previewVersion}'"); + } + sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule FrontDoor".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); + var profilesList = ""; + if (IsAzure && !String.IsNullOrEmpty(profilesList)) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + } + + sb.AppendLine($@"{Indent}{Indent}}}"); + sb.AppendLine($@"{Indent}}}"); + sb.AppendLine(@"}"); + + File.WriteAllText(Psd1Path, sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs new file mode 100644 index 000000000000..5af285afaa5b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -0,0 +1,197 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "TestStub")] + [DoNotExport] + public class ExportTestStub : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeGenerated { get; set; } + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + /*var loadEnvFile = Path.Combine(OutputFolder, "loadEnv.ps1"); + if (!File.Exists(loadEnvFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@" +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json +}"); + File.WriteAllText(loadEnvFile, sc.ToString()); + }*/ + var utilFile = Path.Combine(OutputFolder, "utils.ps1"); + if (!File.Exists(utilFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +function Start-TestSleep { + [CmdletBinding(DefaultParameterSetName = 'SleepBySeconds')] + param( + [parameter(Mandatory = $true, Position = 0, ParameterSetName = 'SleepBySeconds')] + [ValidateRange(0.0, 2147483.0)] + [double] $Seconds, + + [parameter(Mandatory = $true, ParameterSetName = 'SleepByMilliseconds')] + [ValidateRange('NonNegative')] + [Alias('ms')] + [int] $Milliseconds + ) + + if ($TestMode -ne 'playback') { + switch ($PSCmdlet.ParameterSetName) { + 'SleepBySeconds' { + Start-Sleep -Seconds $Seconds + } + 'SleepByMilliseconds' { + Start-Sleep -Milliseconds $Milliseconds + } + } + } +} + +$env = @{} +if ($UsePreviousConfigForRecord) { + $previousEnv = Get-Content (Join-Path $PSScriptRoot 'env.json') | ConvertFrom-Json + $previousEnv.psobject.properties | Foreach-Object { $env[$_.Name] = $_.Value } +} +# Add script method called AddWithCache to $env, when useCache is set true, it will try to get the value from the $env first. +# example: $val = $env.AddWithCache('key', $val, $true) +$env | Add-Member -Type ScriptMethod -Value { param( [string]$key, [object]$val, [bool]$useCache) if ($this.Contains($key) -and $useCache) { return $this[$key] } else { $this[$key] = $val; return $val } } -Name 'AddWithCache' +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + # For any resources you created for test, you should add it to $env here. + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} +function cleanupEnv() { + # Clean resources you create for testing +} +"); + File.WriteAllText(utilFile, sc.ToString()); + } + + + + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var variantGroups = GetScriptCmdlets(exportDirectory) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .GroupBy(v => v.CmdletName) + .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) + .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); + + foreach (var variantGroup in variantGroups) + { + var sb = new StringBuilder(); + sb.AppendLine($"if(($null -eq $TestName) -or ($TestName -contains '{variantGroup.CmdletName}'))"); + sb.AppendLine(@"{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath)" + ); + sb.AppendLine($@" $TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); + sb.AppendLine(@" $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} +"); + + + sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); + var variants = variantGroup.Variants + .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) + .ToList(); + + foreach (var variant in variants) + { + sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); + sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); + var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; + sb.AppendLine($"{Indent}}}{variantSeparator}"); + } + sb.AppendLine("}"); + + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs new file mode 100644 index 000000000000..37ff3ec7e0a4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs @@ -0,0 +1,52 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "CommonParameter")] + [OutputType(typeof(Dictionary))] + [DoNotExport] + public class GetCommonParameter : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSCmdlet PSCmdlet { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public Dictionary PSBoundParameter { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = PSCmdlet.MyInvocation.MyCommand.ToVariants(); + var commonParameterNames = variants.ToParameterGroups() + .Where(pg => pg.OrderCategory == ParameterCategory.Azure || pg.OrderCategory == ParameterCategory.Runtime) + .Select(pg => pg.ParameterName); + if (variants.Any(v => v.SupportsShouldProcess)) + { + commonParameterNames = commonParameterNames.Append("Confirm").Append("WhatIf"); + } + if (variants.Any(v => v.SupportsPaging)) + { + commonParameterNames = commonParameterNames.Append("First").Append("Skip").Append("IncludeTotalCount"); + } + + var names = commonParameterNames.ToArray(); + var keys = PSBoundParameter.Keys.Where(k => names.Contains(k)); + WriteObject(keys.ToDictionary(key => key, key => PSBoundParameter[key]), true); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs new file mode 100644 index 000000000000..3cac7f3cb3c6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "ModuleGuid")] + [DoNotExport] + public class GetModuleGuid : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } + + protected override void ProcessRecord() + { + try + { + WriteObject(ReadGuidFromPsd1(Psd1Path)); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs new file mode 100644 index 000000000000..33cd83c2f020 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs @@ -0,0 +1,54 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "ScriptCmdlet")] + [OutputType(typeof(string[]))] + [DoNotExport] + public class GetScriptCmdlet : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ScriptFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeDoNotExport { get; set; } + + [Parameter] + public SwitchParameter AsAlias { get; set; } + + [Parameter] + public SwitchParameter AsFunctionInfo { get; set; } + + protected override void ProcessRecord() + { + try + { + var functionInfos = GetScriptCmdlets(this, ScriptFolder) + .Where(fi => IncludeDoNotExport || !fi.ScriptBlock.Attributes.OfType().Any()) + .ToArray(); + if (AsFunctionInfo) + { + WriteObject(functionInfos, true); + return; + } + var aliases = functionInfos.SelectMany(i => i.ScriptBlock.Attributes).ToAliasNames(); + var names = functionInfos.Select(fi => fi.Name).Distinct(); + var output = (AsAlias ? aliases : names).DefaultIfEmpty("''").ToArray(); + WriteObject(output, true); + } + catch (System.Exception ee) + { + System.Console.Error.WriteLine($"{ee.GetType().Name}: {ee.Message}"); + System.Console.Error.WriteLine(ee.StackTrace); + throw ee; + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs new file mode 100644 index 000000000000..dbde316ed50d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs @@ -0,0 +1,20 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal static class CollectionExtensions + { + public static T[] NullIfEmpty(this T[] collection) => (collection?.Any() ?? false) ? collection : null; + public static IEnumerable EmptyIfNull(this IEnumerable collection) => collection ?? Enumerable.Empty(); + + // https://stackoverflow.com/a/4158364/294804 + public static IEnumerable DistinctBy(this IEnumerable collection, Func selector) => + collection.GroupBy(selector).Select(group => group.First()); + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs new file mode 100644 index 000000000000..c58837a03f67 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -0,0 +1,122 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal static class MarkdownRenderer + { + public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder, bool AddComplexInterfaceInfo = true) + { + Directory.CreateDirectory(docsFolder); + var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); + + foreach (var markdownInfo in markdownInfos) + { + var sb = new StringBuilder(); + sb.Append(markdownInfo.ToHelpMetadataOutput()); + sb.Append($"# {markdownInfo.CmdletName}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"## SYNOPSIS{Environment.NewLine}{markdownInfo.Synopsis.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## SYNTAX{Environment.NewLine}{Environment.NewLine}"); + var hasMultipleParameterSets = markdownInfo.SyntaxInfos.Length > 1; + foreach (var syntaxInfo in markdownInfo.SyntaxInfos) + { + sb.Append(syntaxInfo.ToHelpSyntaxOutput(hasMultipleParameterSets)); + } + + sb.Append($"## DESCRIPTION{Environment.NewLine}{markdownInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## EXAMPLES{Environment.NewLine}{Environment.NewLine}"); + foreach (var exampleInfo in markdownInfo.Examples) + { + sb.Append(exampleInfo.ToHelpExampleOutput()); + } + + sb.Append($"## PARAMETERS{Environment.NewLine}{Environment.NewLine}"); + foreach (var parameter in markdownInfo.Parameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + if (markdownInfo.SupportsShouldProcess) + { + foreach (var parameter in SupportsShouldProcessParameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + } + + sb.Append($"### CommonParameters{Environment.NewLine}This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## INPUTS{Environment.NewLine}{Environment.NewLine}"); + foreach (var input in markdownInfo.Inputs) + { + sb.Append($"### {input}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## OUTPUTS{Environment.NewLine}{Environment.NewLine}"); + foreach (var output in markdownInfo.Outputs) + { + sb.Append($"### {output}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); + if (markdownInfo.Aliases.Any()) + { + sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); + } + foreach (var alias in markdownInfo.Aliases) + { + sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); + } + + if (AddComplexInterfaceInfo) + { + if (markdownInfo.ComplexInterfaceInfos.Any()) + { + sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + } + foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + { + sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + } + + } + + sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); + foreach (var relatedLink in markdownInfo.RelatedLinks) + { + sb.Append($"[{relatedLink}]({relatedLink}){Environment.NewLine}{Environment.NewLine}"); + } + + File.WriteAllText(Path.Combine(docsFolder, $"{markdownInfo.CmdletName}.md"), sb.ToString()); + } + + WriteModulePage(moduleHelpInfo, markdownInfos, docsFolder); + } + + private static void WriteModulePage(PsModuleHelpInfo moduleInfo, MarkdownHelpInfo[] markdownInfos, string docsFolder) + { + var sb = new StringBuilder(); + sb.Append(moduleInfo.ToModulePageMetadataOutput()); + sb.Append($"# {moduleInfo.Name} Module{Environment.NewLine}"); + sb.Append($"## Description{Environment.NewLine}{moduleInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## {moduleInfo.Name} Cmdlets{Environment.NewLine}"); + foreach (var markdownInfo in markdownInfos) + { + sb.Append(markdownInfo.ToModulePageCmdletOutput()); + } + + File.WriteAllText(Path.Combine(docsFolder, $"{moduleInfo.Name}.md"), sb.ToString()); + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs new file mode 100644 index 000000000000..b76a099e31d7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs @@ -0,0 +1,138 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal class ViewParameters + { + public Type Type { get; } + public IEnumerable Properties { get; } + + public ViewParameters(Type type, IEnumerable properties) + { + Type = type; + Properties = properties; + } + } + + internal class PropertyFormat + { + public PropertyInfo Property { get; } + public FormatTableAttribute FormatTable { get; } + + public int? Index { get; } + public string Label { get; } + public int? Width { get; } + public PropertyOrigin? Origin { get; } + + public PropertyFormat(PropertyInfo propertyInfo) + { + Property = propertyInfo; + FormatTable = Property.GetCustomAttributes().FirstOrDefault(); + var origin = Property.GetCustomAttributes().FirstOrDefault(); + + Index = FormatTable?.HasIndex ?? false ? (int?)FormatTable.Index : null; + Label = FormatTable?.Label ?? propertyInfo.Name; + Width = FormatTable?.HasWidth ?? false ? (int?)FormatTable.Width : null; + // If we have an index, we don't want to use Origin. + Origin = FormatTable?.HasIndex ?? false ? null : origin?.Origin; + } + } + + [Serializable] + [XmlRoot(nameof(Configuration))] + public class Configuration + { + [XmlElement("ViewDefinitions")] + public ViewDefinitions ViewDefinitions { get; set; } + } + + [Serializable] + public class ViewDefinitions + { + //https://stackoverflow.com/a/10518657/294804 + [XmlElement("View")] + public List Views { get; set; } + } + + [Serializable] + public class View + { + [XmlElement(nameof(Name))] + public string Name { get; set; } + [XmlElement(nameof(ViewSelectedBy))] + public ViewSelectedBy ViewSelectedBy { get; set; } + [XmlElement(nameof(TableControl))] + public TableControl TableControl { get; set; } + } + + [Serializable] + public class ViewSelectedBy + { + [XmlElement(nameof(TypeName))] + public string TypeName { get; set; } + } + + [Serializable] + public class TableControl + { + [XmlElement(nameof(TableHeaders))] + public TableHeaders TableHeaders { get; set; } + [XmlElement(nameof(TableRowEntries))] + public TableRowEntries TableRowEntries { get; set; } + } + + [Serializable] + public class TableHeaders + { + [XmlElement("TableColumnHeader")] + public List TableColumnHeaders { get; set; } + } + + [Serializable] + public class TableColumnHeader + { + [XmlElement(nameof(Label))] + public string Label { get; set; } + [XmlElement(nameof(Width))] + public int? Width { get; set; } + + //https://stackoverflow.com/a/4095225/294804 + public bool ShouldSerializeWidth() => Width.HasValue; + } + + [Serializable] + public class TableRowEntries + { + [XmlElement(nameof(TableRowEntry))] + public TableRowEntry TableRowEntry { get; set; } + } + + [Serializable] + public class TableRowEntry + { + [XmlElement(nameof(TableColumnItems))] + public TableColumnItems TableColumnItems { get; set; } + } + + [Serializable] + public class TableColumnItems + { + [XmlElement("TableColumnItem")] + public List TableItems { get; set; } + } + + [Serializable] + public class TableColumnItem + { + [XmlElement(nameof(PropertyName))] + public string PropertyName { get; set; } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs new file mode 100644 index 000000000000..8bb29e5d95c0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -0,0 +1,199 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal class HelpMetadataOutput + { + public MarkdownHelpInfo HelpInfo { get; } + + public HelpMetadataOutput(MarkdownHelpInfo helpInfo) + { + HelpInfo = helpInfo; + } + + public override string ToString() => $@"--- +external help file:{(!String.IsNullOrEmpty(HelpInfo.ExternalHelpFilename) ? $" {HelpInfo.ExternalHelpFilename}" : String.Empty)} +Module Name: {HelpInfo.ModuleName} +online version: {HelpInfo.OnlineVersion} +schema: {HelpInfo.Schema.ToString(3)} +--- + +"; + } + + internal class HelpSyntaxOutput + { + public MarkdownSyntaxHelpInfo SyntaxInfo { get; } + public bool HasMultipleParameterSets { get; } + + public HelpSyntaxOutput(MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) + { + SyntaxInfo = syntaxInfo; + HasMultipleParameterSets = hasMultipleParameterSets; + } + + public override string ToString() + { + var psnText = HasMultipleParameterSets ? $"### {SyntaxInfo.ParameterSetName}{(SyntaxInfo.IsDefault ? " (Default)" : String.Empty)}{Environment.NewLine}" : String.Empty; + return $@"{psnText}``` +{SyntaxInfo.SyntaxText} +``` + +"; + } + } + + internal class HelpExampleOutput + { + private string ExampleTemplate = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + Environment.NewLine; + + private string ExampleTemplateWithOutput = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine + + "{8}" + Environment.NewLine + Environment.NewLine; + + public MarkdownExampleHelpInfo ExampleInfo { get; } + + public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) + { + ExampleInfo = exampleInfo; + } + + public override string ToString() + { + if (string.IsNullOrEmpty(ExampleInfo.Output)) + { + return string.Format(ExampleTemplate, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleInfo.Description.ToDescriptionFormat()); + } + else + { + return string.Format(ExampleTemplateWithOutput, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter, + ExampleInfo.Description.ToDescriptionFormat()); ; + } + } + } + + internal class HelpParameterOutput + { + public MarkdownParameterHelpInfo ParameterInfo { get; } + + public HelpParameterOutput(MarkdownParameterHelpInfo parameterInfo) + { + ParameterInfo = parameterInfo; + } + + public override string ToString() + { + var pipelineInputTypes = new[] + { + ParameterInfo.AcceptsPipelineByValue ? "ByValue" : String.Empty, + ParameterInfo.AcceptsPipelineByPropertyName ? "ByPropertyName" : String.Empty + }.JoinIgnoreEmpty(", "); + var pipelineInput = ParameterInfo.AcceptsPipelineByValue || ParameterInfo.AcceptsPipelineByPropertyName + ? $@"{true} ({pipelineInputTypes})" + : false.ToString(); + + return $@"### -{ParameterInfo.Name} +{ParameterInfo.Description.ToDescriptionFormat()} + +```yaml +Type: {ParameterInfo.Type.FullName} +Parameter Sets: {(ParameterInfo.HasAllParameterSets ? "(All)" : ParameterInfo.ParameterSetNames.JoinIgnoreEmpty(", "))} +Aliases:{(ParameterInfo.Aliases.Any() ? $" {ParameterInfo.Aliases.JoinIgnoreEmpty(", ")}" : String.Empty)} + +Required: {ParameterInfo.IsRequired} +Position: {ParameterInfo.Position} +Default value: {ParameterInfo.DefaultValue} +Accept pipeline input: {pipelineInput} +Accept wildcard characters: {ParameterInfo.AcceptsWildcardCharacters} +``` + +"; + } + } + + internal class ModulePageMetadataOutput + { + public PsModuleHelpInfo ModuleInfo { get; } + + private static string HelpLinkPrefix { get; } = @"https://learn.microsoft.com/powershell/module/"; + + public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) + { + ModuleInfo = moduleInfo; + } + + public override string ToString() => $@"--- +Module Name: {ModuleInfo.Name} +Module Guid: {ModuleInfo.Guid} +Download Help Link: {HelpLinkPrefix}{ModuleInfo.Name.ToLowerInvariant()} +Help Version: 1.0.0.0 +Locale: en-US +--- + +"; + } + + internal class ModulePageCmdletOutput + { + public MarkdownHelpInfo HelpInfo { get; } + + public ModulePageCmdletOutput(MarkdownHelpInfo helpInfo) + { + HelpInfo = helpInfo; + } + + public override string ToString() => $@"### [{HelpInfo.CmdletName}]({HelpInfo.CmdletName}.md) +{HelpInfo.Synopsis.ToDescriptionFormat()} + +"; + } + + internal static class PsHelpOutputExtensions + { + public static string EscapeAngleBrackets(this string text) => text?.Replace("<", @"\<").Replace(">", @"\>"); + public static string ReplaceSentenceEndWithNewline(this string text) => text?.Replace(". ", $".{Environment.NewLine}").Replace(". ", $".{Environment.NewLine}"); + public static string ReplaceBrWithNewline(this string text) => text?.Replace("
", $"{Environment.NewLine}"); + public static string ToDescriptionFormat(this string text, bool escapeAngleBrackets = true) + { + var description = text?.ReplaceBrWithNewline(); + description = escapeAngleBrackets ? description?.EscapeAngleBrackets() : description; + return description?.ReplaceSentenceEndWithNewline().Trim(); + } + + public const string ExampleNameHeader = "### "; + public const string ExampleCodeHeader = "```powershell"; + public const string ExampleCodeFooter = "```"; + public const string ExampleOutputHeader = "```output"; + public const string ExampleOutputFooter = "```"; + + public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); + + public static HelpSyntaxOutput ToHelpSyntaxOutput(this MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) => new HelpSyntaxOutput(syntaxInfo, hasMultipleParameterSets); + + public static HelpExampleOutput ToHelpExampleOutput(this MarkdownExampleHelpInfo exampleInfo) => new HelpExampleOutput(exampleInfo); + + public static HelpParameterOutput ToHelpParameterOutput(this MarkdownParameterHelpInfo parameterInfo) => new HelpParameterOutput(parameterInfo); + + public static ModulePageMetadataOutput ToModulePageMetadataOutput(this PsModuleHelpInfo moduleInfo) => new ModulePageMetadataOutput(moduleInfo); + + public static ModulePageCmdletOutput ToModulePageCmdletOutput(this MarkdownHelpInfo helpInfo) => new ModulePageCmdletOutput(helpInfo); + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs new file mode 100644 index 000000000000..e67a68524e17 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -0,0 +1,211 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal class PsHelpInfo + { + public string CmdletName { get; } + public string ModuleName { get; } + public string Synopsis { get; } + public string Description { get; } + public string AlertText { get; } + public string Category { get; } + public PsHelpLinkInfo OnlineVersion { get; } + public PsHelpLinkInfo[] RelatedLinks { get; } + public bool? HasCommonParameters { get; } + public bool? HasWorkflowCommonParameters { get; } + + public PsHelpTypeInfo[] InputTypes { get; } + public PsHelpTypeInfo[] OutputTypes { get; } + public PsHelpExampleInfo[] Examples { get; set; } + public string[] Aliases { get; } + + public PsParameterHelpInfo[] Parameters { get; } + public PsHelpSyntaxInfo[] Syntax { get; } + + public object Component { get; } + public object Functionality { get; } + public object PsSnapIn { get; } + public object Role { get; } + public string NonTerminatingErrors { get; } + + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + + public PsHelpInfo(PSObject helpObject = null) + { + helpObject = helpObject ?? new PSObject(); + CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); + ModuleName = helpObject.GetProperty("ModuleName"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); + Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? + helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); + AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); + Category = helpObject.GetProperty("Category"); + HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); + HasWorkflowCommonParameters = helpObject.GetProperty("WorkflowCommonParameters").ToNullableBool(); + + var links = helpObject.GetNestedProperty("relatedLinks", "navigationLink").EmptyIfNull().Select(nl => nl.ToLinkInfo()).ToArray(); + OnlineVersion = links.FirstOrDefault(l => l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length == 1); + RelatedLinks = links.Where(l => !l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length != 1).ToArray(); + + InputTypes = helpObject.GetNestedProperty("inputTypes", "inputType").EmptyIfNull().Select(it => it.ToTypeInfo()).ToArray(); + OutputTypes = helpObject.GetNestedProperty("returnValues", "returnValue").EmptyIfNull().Select(rv => rv.ToTypeInfo()).ToArray(); + Examples = helpObject.GetNestedProperty("examples", "example").EmptyIfNull().Select(e => e.ToExampleInfo()).ToArray(); + Aliases = helpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); + + Parameters = helpObject.GetNestedProperty("parameters", "parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); + Syntax = helpObject.GetNestedProperty("syntax", "syntaxItem").EmptyIfNull().Select(si => si.ToSyntaxInfo()).ToArray(); + + Component = helpObject.GetProperty("Component"); + Functionality = helpObject.GetProperty("Functionality"); + PsSnapIn = helpObject.GetProperty("PSSnapIn"); + Role = helpObject.GetProperty("Role"); + NonTerminatingErrors = helpObject.GetProperty("nonTerminatingErrors"); + } + } + + internal class PsHelpTypeInfo + { + public string Name { get; } + public string Description { get; } + + public PsHelpTypeInfo(PSObject typeObject) + { + Name = typeObject.GetNestedProperty("type", "name").EmptyIfNull().Trim(); + Description = typeObject.GetProperty("description").EmptyIfNull().ToDescriptionText(); + } + } + + internal class PsHelpLinkInfo + { + public string Uri { get; } + public string Text { get; } + + public PsHelpLinkInfo(PSObject linkObject) + { + Uri = linkObject.GetProperty("uri"); + Text = linkObject.GetProperty("linkText"); + } + } + + internal class PsHelpSyntaxInfo + { + public string CmdletName { get; } + public PsParameterHelpInfo[] Parameters { get; } + + public PsHelpSyntaxInfo(PSObject syntaxObject) + { + CmdletName = syntaxObject.GetProperty("name"); + Parameters = syntaxObject.GetProperty("parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); + } + } + + internal class PsHelpExampleInfo + { + public string Title { get; } + public string Code { get; } + public string Output { get; } + public string Remarks { get; } + + public PsHelpExampleInfo(PSObject exampleObject) + { + Title = exampleObject.GetProperty("title"); + Code = exampleObject.GetProperty("code"); + Output = exampleObject.GetProperty("output"); + Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); + } + public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) + { + Title = markdownExample.Name; + Code = markdownExample.Code; + Output = markdownExample.Output; + Remarks = markdownExample.Description; + } + + public static implicit operator PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) => new PsHelpExampleInfo(markdownExample); + } + + internal class PsParameterHelpInfo + { + public string DefaultValueAsString { get; } + + public string Name { get; } + public string TypeName { get; } + public string Description { get; } + public string SupportsPipelineInput { get; } + public string PositionText { get; } + public string[] ParameterSetNames { get; } + public string[] Aliases { get; } + + public bool? SupportsGlobbing { get; } + public bool? IsRequired { get; } + public bool? IsVariableLength { get; } + public bool? IsDynamic { get; } + + public PsParameterHelpInfo(PSObject parameterHelpObject = null) + { + parameterHelpObject = parameterHelpObject ?? new PSObject(); + DefaultValueAsString = parameterHelpObject.GetProperty("defaultValue"); + Name = parameterHelpObject.GetProperty("name"); + TypeName = parameterHelpObject.GetProperty("parameterValue").NullIfEmpty() ?? parameterHelpObject.GetNestedProperty("type", "name"); + Description = parameterHelpObject.GetProperty("Description").EmptyIfNull().ToDescriptionText(); + SupportsPipelineInput = parameterHelpObject.GetProperty("pipelineInput"); + PositionText = parameterHelpObject.GetProperty("position"); + ParameterSetNames = parameterHelpObject.GetProperty("parameterSetName").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); + Aliases = parameterHelpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); + + SupportsGlobbing = parameterHelpObject.GetProperty("globbing").ToNullableBool(); + IsRequired = parameterHelpObject.GetProperty("required").ToNullableBool(); + IsVariableLength = parameterHelpObject.GetProperty("variableLength").ToNullableBool(); + IsDynamic = parameterHelpObject.GetProperty("isDynamic").ToNullableBool(); + } + } + + internal class PsModuleHelpInfo + { + public string Name { get; } + public Guid Guid { get; } + public string Description { get; } + + public PsModuleHelpInfo(PSModuleInfo moduleInfo) + : this(moduleInfo?.Name ?? String.Empty, moduleInfo?.Guid ?? Guid.NewGuid(), moduleInfo?.Description ?? String.Empty) + { + } + + public PsModuleHelpInfo(string name, Guid guid, string description) + { + Name = name; + Guid = guid; + Description = description; + } + } + + internal static class HelpTypesExtensions + { + public static PsHelpInfo ToPsHelpInfo(this PSObject helpObject) => new PsHelpInfo(helpObject); + public static PsParameterHelpInfo ToPsParameterHelpInfo(this PSObject parameterHelpObject) => new PsParameterHelpInfo(parameterHelpObject); + + public static string ToDescriptionText(this IEnumerable descriptionObject) => descriptionObject != null + ? String.Join(Environment.NewLine, descriptionObject.Select(dl => dl.GetProperty("Text").EmptyIfNull())).NullIfWhiteSpace() + : null; + public static PsHelpTypeInfo ToTypeInfo(this PSObject typeObject) => new PsHelpTypeInfo(typeObject); + public static PsHelpExampleInfo ToExampleInfo(this PSObject exampleObject) => new PsHelpExampleInfo(exampleObject); + public static PsHelpLinkInfo ToLinkInfo(this PSObject linkObject) => new PsHelpLinkInfo(linkObject); + public static PsHelpSyntaxInfo ToSyntaxInfo(this PSObject syntaxObject) => new PsHelpSyntaxInfo(syntaxObject); + public static PsModuleHelpInfo ToModuleInfo(this PSModuleInfo moduleInfo) => new PsModuleHelpInfo(moduleInfo); + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs new file mode 100644 index 000000000000..1564791a74d5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -0,0 +1,329 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal class MarkdownHelpInfo + { + public string ExternalHelpFilename { get; } + public string ModuleName { get; } + public string OnlineVersion { get; } + public Version Schema { get; } + + public string CmdletName { get; } + public string[] Aliases { get; } + public string Synopsis { get; } + public string Description { get; } + + public MarkdownSyntaxHelpInfo[] SyntaxInfos { get; } + public MarkdownExampleHelpInfo[] Examples { get; } + public MarkdownParameterHelpInfo[] Parameters { get; } + + public string[] Inputs { get; } + public string[] Outputs { get; } + public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } + public MarkdownRelatedLinkInfo[] RelatedLinks { get; } + + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + + public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string externalHelpFilename = "") + { + ExternalHelpFilename = externalHelpFilename; + ModuleName = variantGroup.RootModuleName != "" ? variantGroup.RootModuleName : variantGroup.ModuleName; + var helpInfo = variantGroup.HelpInfo; + var commentInfo = variantGroup.CommentInfo; + Schema = Version.Parse("2.0.0"); + + CmdletName = variantGroup.CmdletName; + Aliases = (variantGroup.Aliases.NullIfEmpty() ?? helpInfo.Aliases).Where(a => a != "None").ToArray(); + Synopsis = commentInfo.Synopsis; + Description = commentInfo.Description; + + SyntaxInfos = variantGroup.Variants + .Select(v => new MarkdownSyntaxHelpInfo(v, variantGroup.ParameterGroups, v.VariantName == variantGroup.DefaultParameterSetName)) + .OrderByDescending(v => v.IsDefault).ThenBy(v => v.ParameterSetName).ToArray(); + Examples = GetExamplesFromMarkdown(examplesFolder).NullIfEmpty() + ?? helpInfo.Examples.Select(e => e.ToExampleHelpInfo()).ToArray().NullIfEmpty() + ?? DefaultExampleHelpInfos; + + Parameters = variantGroup.ParameterGroups + .Where(pg => !pg.DontShow && !pg.Parameters.All(p => p.IsHidden())) + .Select(pg => new MarkdownParameterHelpInfo( + variantGroup.Variants.SelectMany(v => v.HelpInfo.Parameters).Where(phi => phi.Name == pg.ParameterName).ToArray(), pg)) + .OrderBy(phi => phi.Name).ToArray(); + + Inputs = commentInfo.Inputs; + Outputs = commentInfo.Outputs; + + ComplexInterfaceInfos = variantGroup.ComplexInterfaceInfos; + OnlineVersion = commentInfo.OnlineVersion; + + var relatedLinkLists = new List(); + relatedLinkLists.AddRange(commentInfo.RelatedLinks?.Select(link => new MarkdownRelatedLinkInfo(link))); + relatedLinkLists.AddRange(variantGroup.Variants.SelectMany(v => v.Attributes).OfType()?.Distinct()?.Select(link => new MarkdownRelatedLinkInfo(link.Url, link.Description))); + RelatedLinks = relatedLinkLists?.ToArray(); + + SupportsShouldProcess = variantGroup.SupportsShouldProcess; + SupportsPaging = variantGroup.SupportsPaging; + } + + private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) + { + var filePath = Path.Combine(examplesFolder, $"{CmdletName}.md"); + if (!Directory.Exists(examplesFolder) || !File.Exists(filePath)) return null; + + var lines = File.ReadAllLines(filePath); + var nameIndices = lines.Select((l, i) => l.StartsWith(ExampleNameHeader) ? i : -1).Where(i => i != -1).ToArray(); + //https://codereview.stackexchange.com/a/187148/68772 + var indexCountGroups = nameIndices.Skip(1).Append(lines.Length).Zip(nameIndices, (next, current) => (NameIndex: current, LineCount: next - current)); + var exampleGroups = indexCountGroups.Select(icg => lines.Skip(icg.NameIndex).Take(icg.LineCount).ToArray()); + return exampleGroups.Select(eg => + { + var name = eg.First().Replace(ExampleNameHeader, String.Empty); + var codeStartIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var codeEndIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i != codeStartIndex); + var code = codeStartIndex.HasValue && codeEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) + : String.Empty; + var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex); + var output = outputStartIndex.HasValue && outputEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1; + descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; + var descriptionEndIndex = eg.Length - 1; + descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; + var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); + return new MarkdownExampleHelpInfo(name, code, output, description); + }).ToArray(); + } + } + + internal class MarkdownSyntaxHelpInfo + { + public Variant Variant { get; } + public bool IsDefault { get; } + public string ParameterSetName { get; } + public Parameter[] Parameters { get; } + public string SyntaxText { get; } + + public MarkdownSyntaxHelpInfo(Variant variant, ParameterGroup[] parameterGroups, bool isDefault) + { + Variant = variant; + IsDefault = isDefault; + ParameterSetName = Variant.VariantName; + Parameters = Variant.Parameters + .Where(p => !p.DontShow && !p.IsHidden()).OrderByDescending(p => p.IsMandatory) + //https://stackoverflow.com/a/6461526/294804 + .ThenByDescending(p => p.Position.HasValue).ThenBy(p => p.Position) + // Use the OrderCategory of the parameter group because the final order category is the highest of the group, and not the order category of the individual parameters from the variants. + .ThenBy(p => parameterGroups.First(pg => pg.ParameterName == p.ParameterName).OrderCategory).ThenBy(p => p.ParameterName).ToArray(); + SyntaxText = CreateSyntaxFormat(); + } + + //https://github.com/PowerShell/platyPS/blob/a607a926bfffe1e1a1e53c19e0057eddd0c07611/src/Markdown.MAML/Renderer/Markdownv2Renderer.cs#L29-L32 + private const int SyntaxLineWidth = 110; + private string CreateSyntaxFormat() + { + var parameterStrings = Parameters.Select(p => p.ToPropertySyntaxOutput().ToString()); + if (Variant.SupportsShouldProcess) + { + parameterStrings = parameterStrings.Append(" [-Confirm]").Append(" [-WhatIf]"); + } + parameterStrings = parameterStrings.Append(" []"); + + var lines = new List(20); + return parameterStrings.Aggregate(Variant.CmdletName, (current, ps) => + { + var combined = current + ps; + if (combined.Length <= SyntaxLineWidth) return combined; + + lines.Add(current); + return ps; + }, last => + { + lines.Add(last); + return String.Join(Environment.NewLine, lines); + }); + } + } + + internal class MarkdownExampleHelpInfo + { + public string Name { get; } + public string Code { get; } + public string Output { get; } + public string Description { get; } + + public MarkdownExampleHelpInfo(string name, string code, string output, string description) + { + Name = name; + Code = code; + Output = output; + Description = description; + } + } + + internal class MarkdownParameterHelpInfo + { + public string Name { get; set; } + public string Description { get; set; } + public Type Type { get; set; } + public string Position { get; set; } + public string DefaultValue { get; set; } + + public bool HasAllParameterSets { get; set; } + public string[] ParameterSetNames { get; set; } + public string[] Aliases { get; set; } + + public bool IsRequired { get; set; } + public bool IsDynamic { get; set; } + public bool AcceptsPipelineByValue { get; set; } + public bool AcceptsPipelineByPropertyName { get; set; } + public bool AcceptsWildcardCharacters { get; set; } + + // For use by common parameters that have no backing data in the objects themselves. + public MarkdownParameterHelpInfo() { } + + public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, ParameterGroup parameterGroup) + { + Name = parameterGroup.ParameterName; + Description = parameterGroup.Description.NullIfEmpty() + ?? parameterHelpInfos.Select(phi => phi.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); + Type = parameterGroup.ParameterType; + Position = parameterGroup.FirstPosition?.ToString() + ?? parameterHelpInfos.Select(phi => phi.PositionText).FirstOrDefault(d => !String.IsNullOrEmpty(d)).ToUpperFirstCharacter().NullIfEmpty() + ?? "Named"; + // This no longer uses firstHelpInfo.DefaultValueAsString since it seems to be broken. For example, it has a value of 0 for Int32, but no default value was declared. + DefaultValue = parameterGroup.DefaultInfo?.Script ?? "None"; + + HasAllParameterSets = parameterGroup.HasAllVariants; + ParameterSetNames = (parameterGroup.Parameters.Select(p => p.VariantName).ToArray().NullIfEmpty() + ?? parameterHelpInfos.SelectMany(phi => phi.ParameterSetNames).Distinct()) + .OrderBy(psn => psn).ToArray(); + Aliases = parameterGroup.Aliases.NullIfEmpty() ?? parameterHelpInfos.SelectMany(phi => phi.Aliases).ToArray(); + + IsRequired = parameterHelpInfos.Select(phi => phi.IsRequired).FirstOrDefault(r => r == true) ?? parameterGroup.Parameters.Any(p => p.IsMandatory); + IsDynamic = parameterHelpInfos.Select(phi => phi.IsDynamic).FirstOrDefault(d => d == true) ?? false; + AcceptsPipelineByValue = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByValue")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipeline; + AcceptsPipelineByPropertyName = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByPropertyName")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipelineByPropertyName; + AcceptsWildcardCharacters = parameterGroup.SupportsWildcards; + } + } + + internal class MarkdownRelatedLinkInfo + { + public string Url { get; } + public string Description { get; } + + public MarkdownRelatedLinkInfo(string url) + { + Url = url; + } + + public MarkdownRelatedLinkInfo(string url, string description) + { + Url = url; + Description = description; + } + + public override string ToString() + { + if (string.IsNullOrEmpty(Description)) + { + return Url; + } + else + { + return $@"[{Description}]({Url})"; + + } + + } + } + + internal static class MarkdownTypesExtensions + { + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); + + public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = + { + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here (remove the output block if the example doesn't have an output) }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here (remove the output block if the example doesn't have an output) }}}}", @"{{ Add description here }}"), + }; + + public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = + { + new MarkdownParameterHelpInfo + { + Name = "Confirm", + Description ="Prompts you for confirmation before running the cmdlet.", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new [] { "cf" } + }, + new MarkdownParameterHelpInfo + { + Name = "WhatIf", + Description ="Shows what would happen if the cmdlet runs. The cmdlet is not run.", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new [] { "wi" } + } + }; + + public static MarkdownParameterHelpInfo[] SupportsPagingParameters = + { + new MarkdownParameterHelpInfo + { + Name = "First", + Description ="Gets only the first 'n' objects.", + Type = typeof(ulong), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + }, + new MarkdownParameterHelpInfo + { + Name = "IncludeTotalCount", + Description ="Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns \"Unknown total count\".", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + }, + new MarkdownParameterHelpInfo + { + Name = "Skip", + Description ="Ignores the first 'n' objects and then gets the remaining objects.", + Type = typeof(ulong), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + } + }; + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs new file mode 100644 index 000000000000..ce29fcfc887a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -0,0 +1,681 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Text.RegularExpressions; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyTypeExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal class OutputTypeOutput + { + public PSTypeName[] OutputTypes { get; } + + public OutputTypeOutput(IEnumerable outputTypes) + { + OutputTypes = outputTypes.ToArray(); + } + + public override string ToString() => OutputTypes != null && OutputTypes.Any() ? $"[OutputType({OutputTypes.Select(ot => $"[{ot}]").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; + } + + internal class CmdletBindingOutput + { + public VariantGroup VariantGroup { get; } + + public CmdletBindingOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + } + + public override string ToString() + { + var dpsText = VariantGroup.DefaultParameterSetName.IsValidDefaultParameterSetName() ? $"DefaultParameterSetName='{VariantGroup.DefaultParameterSetName}'" : String.Empty; + var sspText = VariantGroup.SupportsShouldProcess ? $"SupportsShouldProcess{ItemSeparator}ConfirmImpact='Medium'" : String.Empty; + var pbText = $"PositionalBinding={false.ToPsBool()}"; + var propertyText = new[] { dpsText, pbText, sspText }.JoinIgnoreEmpty(ItemSeparator); + return $"[CmdletBinding({propertyText})]{Environment.NewLine}"; + } + } + + internal class ParameterOutput + { + public Parameter Parameter { get; } + public bool HasMultipleVariantsInVariantGroup { get; } + public bool HasAllVariantsInParameterGroup { get; } + + public ParameterOutput(Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) + { + Parameter = parameter; + HasMultipleVariantsInVariantGroup = hasMultipleVariantsInVariantGroup; + HasAllVariantsInParameterGroup = hasAllVariantsInParameterGroup; + } + + public override string ToString() + { + var psnText = HasMultipleVariantsInVariantGroup && !HasAllVariantsInParameterGroup ? $"ParameterSetName='{Parameter.VariantName}'" : String.Empty; + var positionText = Parameter.Position != null ? $"Position={Parameter.Position}" : String.Empty; + var mandatoryText = Parameter.IsMandatory ? "Mandatory" : String.Empty; + var dontShowText = Parameter.DontShow ? "DontShow" : String.Empty; + var vfpText = Parameter.ValueFromPipeline ? "ValueFromPipeline" : String.Empty; + var vfpbpnText = Parameter.ValueFromPipelineByPropertyName ? "ValueFromPipelineByPropertyName" : String.Empty; + var propertyText = new[] { psnText, positionText, mandatoryText, dontShowText, vfpText, vfpbpnText }.JoinIgnoreEmpty(ItemSeparator); + return $"{Indent}[Parameter({propertyText})]{Environment.NewLine}"; + } + } + + internal class AliasOutput + { + public string[] Aliases { get; } + public bool IncludeIndent { get; } + + public AliasOutput(string[] aliases, bool includeIndent = false) + { + Aliases = aliases; + IncludeIndent = includeIndent; + } + + public override string ToString() => Aliases?.Any() ?? false ? $"{(IncludeIndent ? Indent : String.Empty)}[Alias({Aliases.Select(an => $"'{an}'").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; + } + + internal class ValidateNotNullOutput + { + public bool HasValidateNotNull { get; } + + public ValidateNotNullOutput(bool hasValidateNotNull) + { + HasValidateNotNull = hasValidateNotNull; + } + + public override string ToString() => HasValidateNotNull ? $"{Indent}[ValidateNotNull()]{Environment.NewLine}" : String.Empty; + } + + internal class AllowEmptyArrayOutput + { + public bool HasAllowEmptyArray { get; } + + public AllowEmptyArrayOutput(bool hasAllowEmptyArray) + { + HasAllowEmptyArray = hasAllowEmptyArray; + } + + public override string ToString() => HasAllowEmptyArray ? $"{Indent}[AllowEmptyCollection()]{Environment.NewLine}" : String.Empty; + } + internal class ArgumentCompleterOutput + { + public CompleterInfo CompleterInfo { get; } + + public ArgumentCompleterOutput(CompleterInfo completerInfo) + { + CompleterInfo = completerInfo; + } + + public override string ToString() => CompleterInfo != null + ? $"{Indent}[ArgumentCompleter({(CompleterInfo.IsTypeCompleter ? $"[{CompleterInfo.Type.Unwrap().ToPsType()}]" : $"{{{CompleterInfo.Script.ToPsSingleLine("; ")}}}")})]{Environment.NewLine}" + : String.Empty; + } + + internal class PSArgumentCompleterOutput : ArgumentCompleterOutput + { + public PSArgumentCompleterInfo PSArgumentCompleterInfo { get; } + + public PSArgumentCompleterOutput(PSArgumentCompleterInfo completerInfo) : base(completerInfo) + { + PSArgumentCompleterInfo = completerInfo; + } + + + public override string ToString() => PSArgumentCompleterInfo != null + ? $"{Indent}[{typeof(PSArgumentCompleterAttribute)}({(PSArgumentCompleterInfo.IsTypeCompleter ? $"[{PSArgumentCompleterInfo.Type.Unwrap().ToPsType()}]" : $"{PSArgumentCompleterInfo.ResourceTypes?.Select(r => $"\"{r}\"")?.JoinIgnoreEmpty(", ")}")})]{Environment.NewLine}" + : String.Empty; + } + + internal class DefaultInfoOutput + { + public bool HasDefaultInfo { get; } + public DefaultInfo DefaultInfo { get; } + + public DefaultInfoOutput(ParameterGroup parameterGroup) + { + HasDefaultInfo = parameterGroup.HasDefaultInfo; + DefaultInfo = parameterGroup.DefaultInfo; + } + + public override string ToString() + { + var nameText = !String.IsNullOrEmpty(DefaultInfo?.Name) ? $"Name='{DefaultInfo?.Name}'" : String.Empty; + var descriptionText = !String.IsNullOrEmpty(DefaultInfo?.Description) ? $"Description='{DefaultInfo?.Description.ToPsStringLiteral()}'" : String.Empty; + var scriptText = !String.IsNullOrEmpty(DefaultInfo?.Script) ? $"Script='{DefaultInfo?.Script.ToPsSingleLine("; ")}'" : String.Empty; + var propertyText = new[] { nameText, descriptionText, scriptText }.JoinIgnoreEmpty(ItemSeparator); + return HasDefaultInfo ? $"{Indent}[{typeof(DefaultInfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; + } + } + + internal class ParameterTypeOutput + { + public Type ParameterType { get; } + + public ParameterTypeOutput(Type parameterType) + { + ParameterType = parameterType; + } + + public override string ToString() => $"{Indent}[{ParameterType.ToPsType()}]{Environment.NewLine}"; + } + + internal class ParameterNameOutput + { + public string ParameterName { get; } + public bool IsLast { get; } + + public ParameterNameOutput(string parameterName, bool isLast) + { + ParameterName = parameterName; + IsLast = isLast; + } + + public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; + } + + internal class BaseOutput + { + public VariantGroup VariantGroup { get; } + + protected static readonly bool IsAzure = Convert.ToBoolean(@"true"); + + public BaseOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + } + public string ClearTelemetryContext() + { + return (!VariantGroup.IsInternal && IsAzure) ? $@"{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()" : ""; + } + } + + internal class BeginOutput : BaseOutput + { + public BeginOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + public string GetProcessCustomAttributesAtRuntime() + { + return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet] +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) +{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; + } + + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}{Indent}exit +{Indent}{Indent}}} +"; + } + return ""; + } + + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() +{Indent}{Indent}}} +{Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}{Indent}if ($internalCalledCmdlets -eq '') {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' +{Indent}{Indent}}} +"; + } + return ""; + } + public override string ToString() => $@"begin {{ +{Indent}try {{ +{Indent}{Indent}$outBuffer = $null +{Indent}{Indent}if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {{ +{Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 +{Indent}{Indent}}} +{Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} +{GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} +{GetProcessCustomAttributesAtRuntime()} +{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} +{Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} +{Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) +{Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) +{Indent}}} catch {{ +{ClearTelemetryContext()} +{Indent}{Indent}throw +{Indent}}} +}} + +"; + + private string GetParameterSetToCmdletMapping() + { + var sb = new StringBuilder(); + sb.AppendLine($"{Indent}{Indent}$mapping = @{{"); + foreach (var variant in VariantGroup.Variants) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}{variant.VariantName} = '{variant.PrivateModuleName}\{variant.PrivateCmdletName}';"); + } + sb.Append($"{Indent}{Indent}}}"); + return sb.ToString(); + } + + private string GetDefaultValuesStatements() + { + var defaultInfos = VariantGroup.ParameterGroups.Where(pg => pg.HasDefaultInfo).Select(pg => pg.DefaultInfo).ToArray(); + var sb = new StringBuilder(); + + foreach (var defaultInfo in defaultInfos) + { + var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); + var parameterName = defaultInfo.ParameterGroup.ParameterName; + sb.AppendLine(); + var setCondition = " "; + if (!String.IsNullOrEmpty(defaultInfo.SetCondition)) + { + setCondition = $" -and {defaultInfo.SetCondition}"; + } + //Yabo: this is bad to hard code the subscription id, but autorest load input README.md reversely (entry readme -> required readme), there are no other way to + //override default value set in required readme + if ("SubscriptionId".Equals(parameterName)) + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); + sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.AppendLine($"{Indent}{Indent}{Indent}}}"); + sb.Append($"{Indent}{Indent}}}"); + } + else + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } + + } + return sb.ToString(); + } + + } + + internal class ProcessOutput : BaseOutput + { + public ProcessOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetFinally() + { + if (IsAzure && !VariantGroup.IsInternal) + { + return $@" +{Indent}finally {{ +{Indent}{Indent}$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}}} +"; + } + return ""; + } + public override string ToString() => $@"process {{ +{Indent}try {{ +{Indent}{Indent}$steppablePipeline.Process($_) +{Indent}}} catch {{ +{ClearTelemetryContext()} +{Indent}{Indent}throw +{Indent}}} +{GetFinally()} +}} +"; + } + + internal class EndOutput : BaseOutput + { + public EndOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}{Indent}}} +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId +"; + } + return ""; + } + public override string ToString() => $@"end {{ +{Indent}try {{ +{Indent}{Indent}$steppablePipeline.End() +{GetTelemetry()} +{Indent}}} catch {{ +{ClearTelemetryContext()} +{Indent}{Indent}throw +{Indent}}} +}} +"; + } + + internal class HelpCommentOutput + { + public VariantGroup VariantGroup { get; } + public CommentInfo CommentInfo { get; } + + public HelpCommentOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + CommentInfo = variantGroup.CommentInfo; + } + + public override string ToString() + { + var inputs = String.Join(Environment.NewLine, CommentInfo.Inputs.Select(i => $".Inputs{Environment.NewLine}{i}")); + var inputsText = !String.IsNullOrEmpty(inputs) ? $"{Environment.NewLine}{inputs}" : String.Empty; + var outputs = String.Join(Environment.NewLine, CommentInfo.Outputs.Select(o => $".Outputs{Environment.NewLine}{o}")); + var outputsText = !String.IsNullOrEmpty(outputs) ? $"{Environment.NewLine}{outputs}" : String.Empty; + var notes = String.Join($"{Environment.NewLine}{Environment.NewLine}", VariantGroup.ComplexInterfaceInfos.Select(cii => cii.ToNoteOutput())); + var notesText = !String.IsNullOrEmpty(notes) ? $"{Environment.NewLine}.Notes{Environment.NewLine}{ComplexParameterHeader}{notes}" : String.Empty; + var relatedLinks = String.Join(Environment.NewLine, CommentInfo.RelatedLinks.Select(l => $".Link{Environment.NewLine}{l}")); + var relatedLinksText = !String.IsNullOrEmpty(relatedLinks) ? $"{Environment.NewLine}{relatedLinks}" : String.Empty; + var externalUrls = String.Join(Environment.NewLine, CommentInfo.ExternalUrls.Select(l => $".Link{Environment.NewLine}{l}")); + var externalUrlsText = !String.IsNullOrEmpty(externalUrls) ? $"{Environment.NewLine}{externalUrls}" : String.Empty; + var examples = ""; + foreach (var example in VariantGroup.HelpInfo.Examples) + { + examples = examples + ".Example" + "\r\n" + example.Code + "\r\n"; + } + return $@"<# +.Synopsis +{CommentInfo.Synopsis.ToDescriptionFormat(false)} +.Description +{CommentInfo.Description.ToDescriptionFormat(false)} +{examples}{inputsText}{outputsText}{notesText} +.Link +{CommentInfo.OnlineVersion}{relatedLinksText}{externalUrlsText} +#> +"; + } + } + + internal class ParameterDescriptionOutput + { + public string Description { get; } + + public ParameterDescriptionOutput(string description) + { + Description = description; + } + + public override string ToString() => !String.IsNullOrEmpty(Description) + ? Description.ToDescriptionFormat(false).NormalizeNewLines() + .Split(new[] { Environment.NewLine }, StringSplitOptions.None) + .Aggregate(String.Empty, (c, n) => c + $"{Indent}# {n}{Environment.NewLine}") + : String.Empty; + } + + internal class ProfileOutput + { + public string ProfileName { get; } + + public ProfileOutput(string profileName) + { + ProfileName = profileName; + } + + public override string ToString() => ProfileName != NoProfiles ? $"[{typeof(ProfileAttribute).ToPsAttributeType()}('{ProfileName}')]{Environment.NewLine}" : String.Empty; + } + + internal class DescriptionOutput + { + public string Description { get; } + + public DescriptionOutput(string description) + { + Description = description; + } + + public override string ToString() => !String.IsNullOrEmpty(Description) ? $"[{typeof(DescriptionAttribute).ToPsAttributeType()}('{Description.ToPsStringLiteral()}')]{Environment.NewLine}" : String.Empty; + } + + internal class ParameterCategoryOutput + { + public ParameterCategory Category { get; } + + public ParameterCategoryOutput(ParameterCategory category) + { + Category = category; + } + + public override string ToString() => $"{Indent}[{typeof(CategoryAttribute).ToPsAttributeType()}('{Category}')]{Environment.NewLine}"; + } + + internal class InfoOutput + { + public InfoAttribute Info { get; } + public Type ParameterType { get; } + + public InfoOutput(InfoAttribute info, Type parameterType) + { + Info = info; + ParameterType = parameterType; + } + + public override string ToString() + { + // Rendering of InfoAttribute members that are not used currently + /*var serializedNameText = Info.SerializedName != null ? $"SerializedName='{Info.SerializedName}'" : String.Empty; + var readOnlyText = Info.ReadOnly ? "ReadOnly" : String.Empty; + var descriptionText = !String.IsNullOrEmpty(Info.Description) ? $"Description='{Info.Description.ToPsStringLiteral()}'" : String.Empty;*/ + + var requiredText = Info.Required ? "Required" : String.Empty; + var unwrappedType = ParameterType.Unwrap(); + var hasValidPossibleTypes = Info.PossibleTypes.Any(pt => pt != unwrappedType); + var possibleTypesText = hasValidPossibleTypes + ? $"PossibleTypes=({Info.PossibleTypes.Select(pt => $"[{pt.ToPsType()}]").JoinIgnoreEmpty(ItemSeparator)})" + : String.Empty; + var propertyText = new[] { /*serializedNameText, */requiredText,/* readOnlyText,*/ possibleTypesText/*, descriptionText*/ }.JoinIgnoreEmpty(ItemSeparator); + return hasValidPossibleTypes ? $"{Indent}[{typeof(InfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; + } + } + + internal class PropertySyntaxOutput + { + public string ParameterName { get; } + public Type ParameterType { get; } + public bool IsMandatory { get; } + public int? Position { get; } + + public bool IncludeSpace { get; } + public bool IncludeDash { get; } + + public PropertySyntaxOutput(Parameter parameter) + { + ParameterName = parameter.ParameterName; + ParameterType = parameter.ParameterType; + IsMandatory = parameter.IsMandatory; + Position = parameter.Position; + IncludeSpace = true; + IncludeDash = true; + } + + public PropertySyntaxOutput(ComplexInterfaceInfo complexInterfaceInfo) + { + ParameterName = complexInterfaceInfo.Name; + ParameterType = complexInterfaceInfo.Type; + IsMandatory = complexInterfaceInfo.Required; + Position = null; + IncludeSpace = false; + IncludeDash = false; + } + + public override string ToString() + { + var leftOptional = !IsMandatory ? "[" : String.Empty; + var leftPositional = Position != null ? "[" : String.Empty; + var rightPositional = Position != null ? "]" : String.Empty; + var type = ParameterType != typeof(SwitchParameter) ? $" <{ParameterType.ToSyntaxTypeName()}>" : String.Empty; + var rightOptional = !IsMandatory ? "]" : String.Empty; + var space = IncludeSpace ? " " : String.Empty; + var dash = IncludeDash ? "-" : String.Empty; + return $"{space}{leftOptional}{leftPositional}{dash}{ParameterName}{rightPositional}{type}{rightOptional}"; + } + } + + internal static class PsProxyOutputExtensions + { + public const string NoParameters = "__NoParameters"; + + public const string AllParameterSets = "__AllParameterSets"; + + public const string HalfIndent = " "; + + public const string Indent = HalfIndent + HalfIndent; + + public const string ItemSeparator = ", "; + + public static readonly string ComplexParameterHeader = $"COMPLEX PARAMETER PROPERTIES{Environment.NewLine}{Environment.NewLine}To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.{Environment.NewLine}{Environment.NewLine}"; + + public static string ToPsBool(this bool value) => $"${value.ToString().ToLowerInvariant()}"; + + public static string ToPsType(this Type type) + { + var regex = new Regex(@"^(.*)`{1}\d+(.*)$"); + var typeText = type.ToString(); + var match = regex.Match(typeText); + return match.Success ? $"{match.Groups[1]}{match.Groups[2]}" : typeText; + } + + public static string ToPsAttributeType(this Type type) => type.ToPsType().RemoveEnd("Attribute"); + + // https://stackoverflow.com/a/5284606/294804 + private static string RemoveEnd(this string text, string suffix) => text.EndsWith(suffix) ? text.Substring(0, text.Length - suffix.Length) : text; + + public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new[] { "
", "\r\n", "\n" }); + + public static string ToPsStringLiteral(this string value) => value?.Replace("'", "''").Replace("‘", "''").Replace("’", "''").ToPsSingleLine().Trim() ?? String.Empty; + + public static string JoinIgnoreEmpty(this IEnumerable values, string separator) => String.Join(separator, values?.Where(v => !String.IsNullOrEmpty(v))); + + // https://stackoverflow.com/a/41961738/294804 + public static string ToSyntaxTypeName(this Type type) + { + if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) + { + return $"{type.GetGenericArguments().First().ToSyntaxTypeName()}?"; + } + + if (type.IsGenericType) + { + var genericTypes = String.Join(ItemSeparator, type.GetGenericArguments().Select(ToSyntaxTypeName)); + return $"{type.Name.Split('`').First()}<{genericTypes}>"; + } + + return type.Name; + } + + public static OutputTypeOutput ToOutputTypeOutput(this IEnumerable outputTypes) => new OutputTypeOutput(outputTypes); + + public static CmdletBindingOutput ToCmdletBindingOutput(this VariantGroup variantGroup) => new CmdletBindingOutput(variantGroup); + + public static ParameterOutput ToParameterOutput(this Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) => new ParameterOutput(parameter, hasMultipleVariantsInVariantGroup, hasAllVariantsInParameterGroup); + + public static AliasOutput ToAliasOutput(this string[] aliases, bool includeIndent = false) => new AliasOutput(aliases, includeIndent); + + public static ValidateNotNullOutput ToValidateNotNullOutput(this bool hasValidateNotNull) => new ValidateNotNullOutput(hasValidateNotNull); + + public static AllowEmptyArrayOutput ToAllowEmptyArray(this bool hasAllowEmptyArray) => new AllowEmptyArrayOutput(hasAllowEmptyArray); + + public static ArgumentCompleterOutput ToArgumentCompleterOutput(this CompleterInfo completerInfo) => (completerInfo is PSArgumentCompleterInfo psArgumentCompleterInfo) ? psArgumentCompleterInfo.ToArgumentCompleterOutput() : new ArgumentCompleterOutput(completerInfo); + + public static PSArgumentCompleterOutput ToArgumentCompleterOutput(this PSArgumentCompleterInfo completerInfo) => new PSArgumentCompleterOutput(completerInfo); + + public static DefaultInfoOutput ToDefaultInfoOutput(this ParameterGroup parameterGroup) => new DefaultInfoOutput(parameterGroup); + + public static ParameterTypeOutput ToParameterTypeOutput(this Type parameterType) => new ParameterTypeOutput(parameterType); + + public static ParameterNameOutput ToParameterNameOutput(this string parameterName, bool isLast) => new ParameterNameOutput(parameterName, isLast); + + public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); + + public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup); + + public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(variantGroup); + + public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); + + public static ParameterDescriptionOutput ToParameterDescriptionOutput(this string description) => new ParameterDescriptionOutput(description); + + public static ProfileOutput ToProfileOutput(this string profileName) => new ProfileOutput(profileName); + + public static DescriptionOutput ToDescriptionOutput(this string description) => new DescriptionOutput(description); + + public static ParameterCategoryOutput ToParameterCategoryOutput(this ParameterCategory category) => new ParameterCategoryOutput(category); + + public static PropertySyntaxOutput ToPropertySyntaxOutput(this Parameter parameter) => new PropertySyntaxOutput(parameter); + + public static PropertySyntaxOutput ToPropertySyntaxOutput(this ComplexInterfaceInfo complexInterfaceInfo) => new PropertySyntaxOutput(complexInterfaceInfo); + + public static InfoOutput ToInfoOutput(this InfoAttribute info, Type parameterType) => new InfoOutput(info, parameterType); + + public static string ToNoteOutput(this ComplexInterfaceInfo complexInterfaceInfo, string currentIndent = "", bool includeDashes = false, bool includeBackticks = false, bool isFirst = true) + { + string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool backtick) => + $"{indent}{(dash ? "- " : String.Empty)}{(backtick ? "`" : String.Empty)}{info.ToPropertySyntaxOutput()}{(backtick ? "`" : String.Empty)}: {info.Description}"; + + var nested = complexInterfaceInfo.NestedInfos.Select(ni => + { + var nestedIndent = $"{currentIndent}{HalfIndent}"; + return ni.IsComplexInterface + ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) + : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, includeBackticks)); + return String.Join(Environment.NewLine, nested); + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs new file mode 100644 index 000000000000..08c1c70f68df --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -0,0 +1,549 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyTypeExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal class ProfileGroup + { + public string ProfileName { get; } + public Variant[] Variants { get; } + public string ProfileFolder { get; } + + public ProfileGroup(Variant[] variants, string profileName = NoProfiles) + { + ProfileName = profileName; + Variants = variants; + ProfileFolder = ProfileName != NoProfiles ? ProfileName : String.Empty; + } + } + + internal class VariantGroup + { + public string ModuleName { get; } + + public string RootModuleName { get => @""; } + public string CmdletName { get; } + public string CmdletVerb { get; } + public string CmdletNoun { get; } + public string ProfileName { get; } + public Variant[] Variants { get; } + public ParameterGroup[] ParameterGroups { get; } + public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } + + public string[] Aliases { get; } + public PSTypeName[] OutputTypes { get; } + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + public string DefaultParameterSetName { get; } + public bool HasMultipleVariants { get; } + public PsHelpInfo HelpInfo { get; } + public bool IsGenerated { get; } + public bool IsInternal { get; } + public bool IsModelCmdlet { get; } + public string OutputFolder { get; } + public string FileName { get; } + public string FilePath { get; } + + public CommentInfo CommentInfo { get; } + + public VariantGroup(string moduleName, string cmdletName, Variant[] variants, string outputFolder, string profileName = NoProfiles, bool isTest = false, bool isInternal = false) + { + ModuleName = moduleName; + CmdletName = cmdletName; + var cmdletNameParts = CmdletName.Split('-'); + CmdletVerb = cmdletNameParts.First(); + CmdletNoun = cmdletNameParts.Last(); + ProfileName = profileName; + Variants = variants; + ParameterGroups = Variants.ToParameterGroups().OrderBy(pg => pg.OrderCategory).ThenByDescending(pg => pg.IsMandatory).ToArray(); + var aliasDuplicates = ParameterGroups.SelectMany(pg => pg.Aliases) + //https://stackoverflow.com/a/18547390/294804 + .GroupBy(a => a).Where(g => g.Count() > 1).Select(g => g.Key).ToArray(); + if (aliasDuplicates.Any()) + { + throw new ParsingMetadataException($"The alias(es) [{String.Join(", ", aliasDuplicates)}] are defined on multiple parameters for cmdlet '{CmdletName}', which is not supported."); + } + ComplexInterfaceInfos = ParameterGroups.Where(pg => !pg.DontShow && pg.IsComplexInterface).OrderBy(pg => pg.ParameterName).Select(pg => pg.ComplexInterfaceInfo).ToArray(); + + Aliases = Variants.SelectMany(v => v.Attributes).ToAliasNames().ToArray(); + OutputTypes = Variants.SelectMany(v => v.Info.OutputType).Where(ot => ot.Type != null).GroupBy(ot => ot.Type).Select(otg => otg.First()).ToArray(); + SupportsShouldProcess = Variants.Any(v => v.SupportsShouldProcess); + SupportsPaging = Variants.Any(v => v.SupportsPaging); + DefaultParameterSetName = DetermineDefaultParameterSetName(); + HasMultipleVariants = Variants.Length > 1; + HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); + IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); + IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); + OutputFolder = outputFolder; + FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; + FilePath = Path.Combine(OutputFolder, FileName); + + CommentInfo = new CommentInfo(this); + } + + private string DetermineDefaultParameterSetName() + { + var defaultParameterSet = Variants + .Select(v => v.Metadata.DefaultParameterSetName) + .LastOrDefault(dpsn => dpsn.IsValidDefaultParameterSetName()); + + if (String.IsNullOrEmpty(defaultParameterSet)) + { + var variantParamCountGroups = Variants + .Where(v => !v.IsNotSuggestDefaultParameterSet) + .Select(v => ( + variant: v.VariantName, + paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), + isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) + .GroupBy(vpc => vpc.isSimple) + .ToArray(); + if (variantParamCountGroups.Length == 0) + { + variantParamCountGroups = Variants + .Select(v => ( + variant: v.VariantName, + paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), + isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) + .GroupBy(vpc => vpc.isSimple) + .ToArray(); + } + var variantParameterCounts = (variantParamCountGroups.Any(g => g.Key) ? variantParamCountGroups.Where(g => g.Key) : variantParamCountGroups).SelectMany(g => g).ToArray(); + var smallestParameterCount = variantParameterCounts.Min(vpc => vpc.paramCount); + defaultParameterSet = variantParameterCounts.First(vpc => vpc.paramCount == smallestParameterCount).variant; + } + + return defaultParameterSet; + } + } + + internal class Variant + { + public string CmdletName { get; } + public string VariantName { get; } + public CommandInfo Info { get; } + public CommandMetadata Metadata { get; } + public PsHelpInfo HelpInfo { get; } + public bool HasParameterSets { get; } + public bool IsFunction { get; } + public string PrivateModuleName { get; } + public string PrivateCmdletName { get; } + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + + public Attribute[] Attributes { get; } + public Parameter[] Parameters { get; } + public Parameter[] CmdletOnlyParameters { get; } + public bool IsInternal { get; } + public bool IsModelCmdlet { get; } + public bool IsDoNotExport { get; } + public bool IsNotSuggestDefaultParameterSet { get; } + public string[] Profiles { get; } + + public Variant(string cmdletName, string variantName, CommandInfo info, CommandMetadata metadata, bool hasParameterSets = false, PsHelpInfo helpInfo = null) + { + CmdletName = cmdletName; + VariantName = variantName; + Info = info; + HelpInfo = helpInfo ?? new PsHelpInfo(); + Metadata = metadata; + HasParameterSets = hasParameterSets; + IsFunction = Info.CommandType == CommandTypes.Function; + PrivateModuleName = Info.Source; + PrivateCmdletName = Metadata.Name; + SupportsShouldProcess = Metadata.SupportsShouldProcess; + SupportsPaging = Metadata.SupportsPaging; + + Attributes = this.ToAttributes(); + Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); + IsInternal = Attributes.OfType().Any(); + IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); + IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); + CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); + Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); + } + } + + internal class ParameterGroup + { + public string ParameterName { get; } + public Parameter[] Parameters { get; } + + public string[] VariantNames { get; } + public string[] AllVariantNames { get; } + public bool HasAllVariants { get; } + public Type ParameterType { get; } + public string Description { get; } + + public string[] Aliases { get; } + public bool HasValidateNotNull { get; } + public bool HasAllowEmptyArray { get; } + public CompleterInfo CompleterInfo { get; } + public DefaultInfo DefaultInfo { get; } + public bool HasDefaultInfo { get; } + public ParameterCategory OrderCategory { get; } + public bool DontShow { get; } + public bool IsMandatory { get; } + public bool SupportsWildcards { get; } + public bool IsComplexInterface { get; } + public ComplexInterfaceInfo ComplexInterfaceInfo { get; } + public InfoAttribute InfoAttribute { get; } + + public int? FirstPosition { get; } + public bool ValueFromPipeline { get; } + public bool ValueFromPipelineByPropertyName { get; } + public bool IsInputType { get; } + + public ParameterGroup(string parameterName, Parameter[] parameters, string[] allVariantNames) + { + ParameterName = parameterName; + Parameters = parameters; + + VariantNames = Parameters.Select(p => p.VariantName).ToArray(); + AllVariantNames = allVariantNames; + HasAllVariants = VariantNames.Any(vn => vn == AllParameterSets) || !AllVariantNames.Except(VariantNames).Any(); + var types = Parameters.Select(p => p.ParameterType).Distinct().ToArray(); + if (types.Length > 1) + { + throw new ParsingMetadataException($"The parameter '{ParameterName}' has multiple parameter types [{String.Join(", ", types.Select(t => t.Name))}] defined, which is not supported."); + } + ParameterType = types.First(); + Description = Parameters.Select(p => p.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); + + Aliases = Parameters.SelectMany(p => p.Attributes).ToAliasNames().ToArray(); + HasValidateNotNull = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); + HasAllowEmptyArray = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); + CompleterInfo = Parameters.Select(p => p.CompleterInfoAttribute).FirstOrDefault()?.ToCompleterInfo() + ?? Parameters.Select(p => p.PSArgumentCompleterAttribute).FirstOrDefault()?.ToPSArgumentCompleterInfo() + ?? Parameters.Select(p => p.ArgumentCompleterAttribute).FirstOrDefault()?.ToCompleterInfo(); + DefaultInfo = Parameters.Select(p => p.DefaultInfoAttribute).FirstOrDefault()?.ToDefaultInfo(this) + ?? Parameters.Select(p => p.DefaultValueAttribute).FirstOrDefault(dv => dv != null)?.ToDefaultInfo(this); + HasDefaultInfo = DefaultInfo != null && !String.IsNullOrEmpty(DefaultInfo.Script); + // When DefaultInfo is present, force all parameters from this group to be optional. + if (HasDefaultInfo) + { + foreach (var parameter in Parameters) + { + parameter.IsMandatory = false; + } + } + OrderCategory = Parameters.Select(p => p.OrderCategory).Distinct().DefaultIfEmpty(ParameterCategory.Body).Min(); + DontShow = Parameters.All(p => p.DontShow); + IsMandatory = HasAllVariants && Parameters.Any(p => p.IsMandatory); + SupportsWildcards = Parameters.Any(p => p.SupportsWildcards); + IsComplexInterface = Parameters.Any(p => p.IsComplexInterface); + ComplexInterfaceInfo = Parameters.Where(p => p.IsComplexInterface).Select(p => p.ComplexInterfaceInfo).FirstOrDefault(); + InfoAttribute = Parameters.Select(p => p.InfoAttribute).First(); + + FirstPosition = Parameters.Select(p => p.Position).FirstOrDefault(p => p != null); + ValueFromPipeline = Parameters.Any(p => p.ValueFromPipeline); + ValueFromPipelineByPropertyName = Parameters.Any(p => p.ValueFromPipelineByPropertyName); + IsInputType = ValueFromPipeline || ValueFromPipelineByPropertyName; + } + } + + internal class Parameter + { + public string VariantName { get; } + public string ParameterName { get; } + public ParameterMetadata Metadata { get; } + public PsParameterHelpInfo HelpInfo { get; } + public Type ParameterType { get; } + public Attribute[] Attributes { get; } + public ParameterCategory[] Categories { get; } + public ParameterCategory OrderCategory { get; } + public PSDefaultValueAttribute DefaultValueAttribute { get; } + public DefaultInfoAttribute DefaultInfoAttribute { get; } + public ParameterAttribute ParameterAttribute { get; } + public bool SupportsWildcards { get; } + public CompleterInfoAttribute CompleterInfoAttribute { get; } + public ArgumentCompleterAttribute ArgumentCompleterAttribute { get; } + public PSArgumentCompleterAttribute PSArgumentCompleterAttribute { get; } + + public bool ValueFromPipeline { get; } + public bool ValueFromPipelineByPropertyName { get; } + public int? Position { get; } + public bool DontShow { get; } + public bool IsMandatory { get; set; } + + public InfoAttribute InfoAttribute { get; } + public ComplexInterfaceInfo ComplexInterfaceInfo { get; } + public bool IsComplexInterface { get; } + public string Description { get; } + + public Parameter(string variantName, string parameterName, ParameterMetadata metadata, PsParameterHelpInfo helpInfo = null) + { + VariantName = variantName; + ParameterName = parameterName; + Metadata = metadata; + HelpInfo = helpInfo ?? new PsParameterHelpInfo(); + + Attributes = Metadata.Attributes.ToArray(); + ParameterType = Attributes.OfType().FirstOrDefault()?.Type ?? Metadata.ParameterType; + Categories = Attributes.OfType().SelectMany(ca => ca.Categories).Distinct().ToArray(); + OrderCategory = Categories.DefaultIfEmpty(ParameterCategory.Body).Min(); + DefaultValueAttribute = Attributes.OfType().FirstOrDefault(); + DefaultInfoAttribute = Attributes.OfType().FirstOrDefault(); + ParameterAttribute = Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == VariantName || pa.ParameterSetName == AllParameterSets); + if (ParameterAttribute == null) + { + throw new ParsingMetadataException($"The variant '{VariantName}' has multiple parameter sets defined, which is not supported."); + } + SupportsWildcards = Attributes.OfType().Any(); + CompleterInfoAttribute = Attributes.OfType().FirstOrDefault(); + PSArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(); + ArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(attr => !attr.GetType().Equals(typeof(PSArgumentCompleterAttribute))); + + ValueFromPipeline = ParameterAttribute.ValueFromPipeline; + ValueFromPipelineByPropertyName = ParameterAttribute.ValueFromPipelineByPropertyName; + Position = ParameterAttribute.Position == Int32.MinValue ? (int?)null : ParameterAttribute.Position; + DontShow = ParameterAttribute.DontShow; + IsMandatory = ParameterAttribute.Mandatory; + + var complexParameterName = ParameterName.ToUpperInvariant(); + var complexMessage = $"{Environment.NewLine}"; + var description = ParameterAttribute.HelpMessage.NullIfEmpty() ?? HelpInfo.Description.NullIfEmpty() ?? InfoAttribute?.Description.NullIfEmpty() ?? String.Empty; + // Remove the complex type message as it will be reinserted if this is a complex type + description = description.NormalizeNewLines(); + // Make an InfoAttribute for processing only if one isn't provided + InfoAttribute = Attributes.OfType().FirstOrDefault() ?? new InfoAttribute { PossibleTypes = new[] { ParameterType.Unwrap() }, Required = IsMandatory }; + // Set the description if the InfoAttribute does not have one since they are exported without a description + InfoAttribute.Description = String.IsNullOrEmpty(InfoAttribute.Description) ? description : InfoAttribute.Description; + ComplexInterfaceInfo = InfoAttribute.ToComplexInterfaceInfo(complexParameterName, ParameterType, true); + IsComplexInterface = ComplexInterfaceInfo.IsComplexInterface; + Description = $"{description}{(IsComplexInterface ? complexMessage : String.Empty)}"; + } + } + + internal class ComplexInterfaceInfo + { + public InfoAttribute InfoAttribute { get; } + + public string Name { get; } + public Type Type { get; } + public bool Required { get; } + public bool ReadOnly { get; } + public string Description { get; } + + public ComplexInterfaceInfo[] NestedInfos { get; } + public bool IsComplexInterface { get; } + + public ComplexInterfaceInfo(string name, Type type, InfoAttribute infoAttribute, bool? required, List seenTypes) + { + Name = name; + Type = type; + InfoAttribute = infoAttribute; + + Required = required ?? InfoAttribute.Required; + ReadOnly = InfoAttribute.ReadOnly; + Description = InfoAttribute.Description.ToPsSingleLine(); + + var unwrappedType = Type.Unwrap(); + var hasBeenSeen = seenTypes?.Contains(unwrappedType) ?? false; + (seenTypes ?? (seenTypes = new List())).Add(unwrappedType); + NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[] { } : + unwrappedType.GetInterfaces() + .Concat(InfoAttribute.PossibleTypes) + .SelectMany(pt => pt.GetProperties() + .SelectMany(pi => pi.GetCustomAttributes(true).OfType() + .Select(ia => ia.ToComplexInterfaceInfo(pi.Name, pi.PropertyType, seenTypes: seenTypes)))) + .Where(cii => !cii.ReadOnly).OrderByDescending(cii => cii.Required).ToArray(); + // https://stackoverflow.com/a/503359/294804 + var associativeArrayInnerType = Type.GetInterfaces() + .FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>)) + ?.GetTypeInfo().GetGenericArguments().First(); + if (!hasBeenSeen && associativeArrayInnerType != null) + { + var anyInfo = new InfoAttribute { Description = "This indicates any property can be added to this object." }; + NestedInfos = NestedInfos.Prepend(anyInfo.ToComplexInterfaceInfo("(Any)", associativeArrayInnerType)).ToArray(); + } + IsComplexInterface = NestedInfos.Any(); + } + } + + internal class CommentInfo + { + public string Description { get; } + public string Synopsis { get; } + + public string[] Examples { get; } + public string[] Inputs { get; } + public string[] Outputs { get; } + + public string OnlineVersion { get; } + public string[] RelatedLinks { get; } + public string[] ExternalUrls { get; } + + private const string HelpLinkPrefix = @"https://learn.microsoft.com/powershell/module/"; + + public CommentInfo(VariantGroup variantGroup) + { + var helpInfo = variantGroup.HelpInfo; + Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() + ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); + // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. + var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; + Synopsis = synopsis.NullIfEmpty() ?? Description; + + Examples = helpInfo.Examples.Select(rl => rl.Code).ToArray(); + + Inputs = (variantGroup.ParameterGroups.Where(pg => pg.IsInputType).Select(pg => pg.ParameterType.FullName).ToArray().NullIfEmpty() ?? + helpInfo.InputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(it => it.Name).ToArray()) + .Where(i => i != "None").Distinct().OrderBy(i => i).ToArray(); + Outputs = (variantGroup.OutputTypes.Select(ot => ot.Type.FullName).ToArray().NullIfEmpty() ?? + helpInfo.OutputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(ot => ot.Name).ToArray()) + .Where(o => o != "None").Distinct().OrderBy(o => o).ToArray(); + + // Use root module name in the help link + var moduleName = variantGroup.RootModuleName == "" ? variantGroup.ModuleName.ToLowerInvariant() : variantGroup.RootModuleName.ToLowerInvariant(); + OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{moduleName}/{variantGroup.CmdletName.ToLowerInvariant()}"; + RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray(); + + // Get external urls from attribute + ExternalUrls = variantGroup.Variants.SelectMany(v => v.Attributes).OfType()?.Select(e => e.Url)?.Distinct()?.ToArray(); + } + } + + internal class CompleterInfo + { + public string Name { get; } + public string Description { get; } + public string Script { get; } + public Type Type { get; } + public bool IsTypeCompleter { get; } + + public CompleterInfo(CompleterInfoAttribute infoAttribute) + { + Name = infoAttribute.Name; + Description = infoAttribute.Description; + Script = infoAttribute.Script; + } + + public CompleterInfo(ArgumentCompleterAttribute completerAttribute) + { + Script = completerAttribute.ScriptBlock?.ToString(); + if (completerAttribute.Type != null) + { + Type = completerAttribute.Type; + IsTypeCompleter = true; + } + } + } + + internal class PSArgumentCompleterInfo : CompleterInfo + { + public string[] ResourceTypes { get; } + + public PSArgumentCompleterInfo(PSArgumentCompleterAttribute completerAttribute) : base(completerAttribute) + { + ResourceTypes = completerAttribute.ResourceTypes; + } + } + + internal class DefaultInfo + { + public string Name { get; } + public string Description { get; } + public string Script { get; } + public string SetCondition { get; } + public ParameterGroup ParameterGroup { get; } + + public DefaultInfo(DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) + { + Name = infoAttribute.Name; + Description = infoAttribute.Description; + Script = infoAttribute.Script; + SetCondition = infoAttribute.SetCondition; + ParameterGroup = parameterGroup; + } + + public DefaultInfo(PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) + { + Description = defaultValueAttribute.Help; + ParameterGroup = parameterGroup; + if (defaultValueAttribute.Value != null) + { + Script = defaultValueAttribute.Value.ToString(); + } + } + } + + internal static class PsProxyTypeExtensions + { + public const string NoProfiles = "__NoProfiles"; + + public static bool IsValidDefaultParameterSetName(this string parameterSetName) => + !String.IsNullOrEmpty(parameterSetName) && parameterSetName != AllParameterSets; + + public static Variant[] ToVariants(this CommandInfo info, PsHelpInfo helpInfo) + { + var metadata = new CommandMetadata(info); + var privateCmdletName = metadata.Name.Split('!').First(); + var parts = privateCmdletName.Split('_'); + return parts.Length > 1 + ? new[] { new Variant(parts[0], parts[1], info, metadata, helpInfo: helpInfo) } + // Process multiple parameter sets, so we declare a variant per parameter set. + : info.ParameterSets.Select(ps => new Variant(privateCmdletName, ps.Name, info, metadata, true, helpInfo)).ToArray(); + } + + public static Variant[] ToVariants(this CmdletAndHelpInfo info) => info.CommandInfo.ToVariants(info.HelpInfo); + + public static Variant[] ToVariants(this CommandInfo info, PSObject helpInfo = null) => info.ToVariants(helpInfo?.ToPsHelpInfo()); + + public static Parameter[] ToParameters(this Variant variant) + { + var parameters = variant.Metadata.Parameters.AsEnumerable(); + var parameterHelp = variant.HelpInfo.Parameters.AsEnumerable(); + + if (variant.HasParameterSets) + { + parameters = parameters.Where(p => p.Value.ParameterSets.Keys.Any(k => k == variant.VariantName || k == AllParameterSets)); + parameterHelp = parameterHelp.Where(ph => (!ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)) && ph.Name != "IncludeTotalCount"); + } + var result = parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))); + if (variant.SupportsPaging) + { + // If supportsPaging is set, we will need to add First and Skip parameters since they are treated as common parameters which as not contained on Metadata>parameters + variant.Info.Parameters["First"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Gets only the first 'n' objects."; + variant.Info.Parameters["Skip"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Ignores the first 'n' objects and then gets the remaining objects."; + result = result.Append(new Parameter(variant.VariantName, "First", variant.Info.Parameters["First"], parameterHelp.FirstOrDefault(ph => ph.Name == "First"))); + result = result.Append(new Parameter(variant.VariantName, "Skip", variant.Info.Parameters["Skip"], parameterHelp.FirstOrDefault(ph => ph.Name == "Skip"))); + } + return result.ToArray(); + } + + public static Attribute[] ToAttributes(this Variant variant) => variant.IsFunction + ? ((FunctionInfo)variant.Info).ScriptBlock.Attributes.ToArray() + : variant.Metadata.CommandType.GetCustomAttributes(false).Cast().ToArray(); + + public static IEnumerable ToParameterGroups(this Variant[] variants) + { + var allVariantNames = variants.Select(vg => vg.VariantName).ToArray(); + return variants + .SelectMany(v => v.Parameters) + .GroupBy(p => p.ParameterName, StringComparer.InvariantCultureIgnoreCase) + .Select(pg => new ParameterGroup(pg.Key, pg.Select(p => p).ToArray(), allVariantNames)); + } + + public static ComplexInterfaceInfo ToComplexInterfaceInfo(this InfoAttribute infoAttribute, string name, Type type, bool? required = null, List seenTypes = null) + => new ComplexInterfaceInfo(name, type, infoAttribute, required, seenTypes); + + public static CompleterInfo ToCompleterInfo(this CompleterInfoAttribute infoAttribute) => new CompleterInfo(infoAttribute); + public static CompleterInfo ToCompleterInfo(this ArgumentCompleterAttribute completerAttribute) => new CompleterInfo(completerAttribute); + public static PSArgumentCompleterInfo ToPSArgumentCompleterInfo(this PSArgumentCompleterAttribute completerAttribute) => new PSArgumentCompleterInfo(completerAttribute); + public static DefaultInfo ToDefaultInfo(this DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) => new DefaultInfo(infoAttribute, parameterGroup); + public static DefaultInfo ToDefaultInfo(this PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) => new DefaultInfo(defaultValueAttribute, parameterGroup); + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsAttributes.cs new file mode 100644 index 000000000000..28c934111463 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -0,0 +1,136 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor +{ + [AttributeUsage(AttributeTargets.Class)] + public class DescriptionAttribute : Attribute + { + public string Description { get; } + + public DescriptionAttribute(string description) + { + Description = description; + } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class DoNotExportAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class InternalExportAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class GeneratedAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class DoNotFormatAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class ProfileAttribute : Attribute + { + public string[] Profiles { get; } + + public ProfileAttribute(params string[] profiles) + { + Profiles = profiles; + } + } + + [AttributeUsage(AttributeTargets.Class)] + public class HttpPathAttribute : Attribute + { + public string Path { get; set; } + public string ApiVersion { get; set; } + } + + [AttributeUsage(AttributeTargets.Class)] + public class NotSuggestDefaultParameterSetAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class CategoryAttribute : Attribute + { + public ParameterCategory[] Categories { get; } + + public CategoryAttribute(params ParameterCategory[] categories) + { + Categories = categories; + } + } + + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class ExportAsAttribute : Attribute + { + public Type Type { get; set; } + + public ExportAsAttribute(Type type) + { + Type = type; + } + } + + public enum ParameterCategory + { + // Note: Order is significant + Uri = 0, + Path, + Query, + Header, + Cookie, + Body, + Azure, + Runtime + } + + [AttributeUsage(AttributeTargets.Property)] + public class OriginAttribute : Attribute + { + public PropertyOrigin Origin { get; } + + public OriginAttribute(PropertyOrigin origin) + { + Origin = origin; + } + } + + public enum PropertyOrigin + { + // Note: Order is significant + Inherited = 0, + Owned, + Inlined + } + + [AttributeUsage(AttributeTargets.Property)] + public class ConstantAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Property)] + public class FormatTableAttribute : Attribute + { + public int Index { get; set; } = -1; + public bool HasIndex => Index != -1; + public string Label { get; set; } + public int Width { get; set; } = -1; + public bool HasWidth => Width != -1; + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsExtensions.cs new file mode 100644 index 000000000000..1fb77b6d8d1d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsExtensions.cs @@ -0,0 +1,176 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal static class PsExtensions + { + public static PSObject AddMultipleTypeNameIntoPSObject(this object obj, string multipleTag = "#Multiple") + { + var psObj = new PSObject(obj); + psObj.TypeNames.Insert(0, $"{psObj.TypeNames[0]}{multipleTag}"); + return psObj; + } + + // https://stackoverflow.com/a/863944/294804 + // https://stackoverflow.com/a/4452598/294804 + // https://stackoverflow.com/a/28701974/294804 + // Note: This will unwrap nested collections, but we don't generate nested collections. + public static Type Unwrap(this Type type) + { + if (type.IsArray) + { + return type.GetElementType().Unwrap(); + } + + var typeInfo = type.GetTypeInfo(); + if (typeInfo.IsGenericType + && (typeInfo.GetGenericTypeDefinition() == typeof(Nullable<>) || typeof(IEnumerable<>).IsAssignableFrom(type))) + { + return typeInfo.GetGenericArguments().First().Unwrap(); + } + + return type; + } + + // https://stackoverflow.com/a/863944/294804 + private static bool IsSimple(this Type type) + { + var typeInfo = type.GetTypeInfo(); + return typeInfo.IsPrimitive + || typeInfo.IsEnum + || type == typeof(string) + || type == typeof(decimal); + } + + // https://stackoverflow.com/a/32025393/294804 + private static bool HasImplicitConversion(this Type baseType, Type targetType) => + baseType.GetMethods(BindingFlags.Public | BindingFlags.Static) + .Where(mi => mi.Name == "op_Implicit" && mi.ReturnType == targetType) + .Any(mi => mi.GetParameters().FirstOrDefault()?.ParameterType == baseType); + + public static bool IsPsSimple(this Type type) + { + var unwrappedType = type.Unwrap(); + return unwrappedType.IsSimple() + || unwrappedType == typeof(SwitchParameter) + || unwrappedType == typeof(Hashtable) + || unwrappedType == typeof(PSCredential) + || unwrappedType == typeof(ScriptBlock) + || unwrappedType == typeof(DateTime) + || unwrappedType == typeof(Uri) + || unwrappedType.HasImplicitConversion(typeof(string)); + } + + public static string ToPsList(this IEnumerable items) => String.Join(", ", items.Select(i => $"'{i}'")); + + public static IEnumerable ToAliasNames(this IEnumerable attributes) => attributes.OfType().SelectMany(aa => aa.AliasNames).Distinct(); + + public static bool IsArrayAndElementTypeIsT(this object item) + { + var itemType = item.GetType(); + var tType = typeof(T); + return itemType.IsArray && !tType.IsArray && tType.IsAssignableFrom(itemType.GetElementType()); + } + + public static bool IsTArrayAndElementTypeIsItem(this object item) + { + var itemType = item.GetType(); + var tType = typeof(T); + return !itemType.IsArray && tType.IsArray && (tType.GetElementType()?.IsAssignableFrom(itemType) ?? false); + } + + public static bool IsTypeOrArrayOfType(this object item) => item is T || item.IsArrayAndElementTypeIsT() || item.IsTArrayAndElementTypeIsItem(); + + public static T NormalizeArrayType(this object item) + { + if (item is T result) + { + return result; + } + + if (item.IsArrayAndElementTypeIsT()) + { + var array = (T[])Convert.ChangeType(item, typeof(T[])); + return array.FirstOrDefault(); + } + + if (item.IsTArrayAndElementTypeIsItem()) + { + var tType = typeof(T); + var array = Array.CreateInstance(tType.GetElementType(), 1); + array.SetValue(item, 0); + return (T)Convert.ChangeType(array, tType); + } + + return default(T); + } + + public static T GetNestedProperty(this PSObject psObject, params string[] names) => psObject.Properties.GetNestedProperty(names); + + public static T GetNestedProperty(this PSMemberInfoCollection properties, params string[] names) + { + var lastName = names.Last(); + var nestedProperties = names.Take(names.Length - 1).Aggregate(properties, (p, n) => p?.GetProperty(n)?.Properties); + return nestedProperties != null ? nestedProperties.GetProperty(lastName) : default(T); + } + + public static T GetProperty(this PSObject psObject, string name) => psObject.Properties.GetProperty(name); + + public static T GetProperty(this PSMemberInfoCollection properties, string name) + { + switch (properties[name]?.Value) + { + case PSObject psObject when psObject.BaseObject is PSCustomObject && psObject.ImmediateBaseObject.IsTypeOrArrayOfType(): + return psObject.ImmediateBaseObject.NormalizeArrayType(); + case PSObject psObject when psObject.BaseObject.IsTypeOrArrayOfType(): + return psObject.BaseObject.NormalizeArrayType(); + case object value when value.IsTypeOrArrayOfType(): + return value.NormalizeArrayType(); + default: + return default(T); + } + } + + public static IEnumerable RunScript(this PSCmdlet cmdlet, string script) + => PsHelpers.RunScript(cmdlet.InvokeCommand, script); + + public static void RunScript(this PSCmdlet cmdlet, string script) + => cmdlet.RunScript(script); + + public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, string script) + => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, script); + + public static void RunScript(this EngineIntrinsics engineIntrinsics, string script) + => engineIntrinsics.RunScript(script); + + public static IEnumerable RunScript(this PSCmdlet cmdlet, ScriptBlock block) + => PsHelpers.RunScript(cmdlet.InvokeCommand, block.ToString()); + + public static void RunScript(this PSCmdlet cmdlet, ScriptBlock block) + => cmdlet.RunScript(block.ToString()); + + public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) + => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, block.ToString()); + + public static void RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) + => engineIntrinsics.RunScript(block.ToString()); + + /// + /// Returns if a parameter should be hidden by checking for . + /// + /// A PowerShell parameter. + public static bool IsHidden(this Parameter parameter) + { + return parameter.Attributes.Any(attr => attr is DoNotExportAttribute); + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsHelpers.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsHelpers.cs new file mode 100644 index 000000000000..a29a4c20f50b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsHelpers.cs @@ -0,0 +1,105 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using Pwsh = System.Management.Automation.PowerShell; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal static class PsHelpers + { + public static IEnumerable RunScript(string script) + => Pwsh.Create().AddScript(script).Invoke(); + + public static void RunScript(string script) + => RunScript(script); + + public static IEnumerable RunScript(CommandInvocationIntrinsics cii, string script) + => cii.InvokeScript(script).Select(o => o?.BaseObject).Where(o => o != null).OfType(); + + public static void RunScript(CommandInvocationIntrinsics cii, string script) + => RunScript(cii, script); + + public static IEnumerable GetModuleCmdlets(PSCmdlet cmdlet, params string[] modulePaths) + { + var getCmdletsCommand = String.Join(" + ", modulePaths.Select(mp => $"(Get-Command -Module (Import-Module '{mp}' -PassThru))")); + return (cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand)) + .Where(ci => ci.CommandType != CommandTypes.Alias); + } + + public static IEnumerable GetModuleCmdlets(params string[] modulePaths) + => GetModuleCmdlets(null, modulePaths); + + public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) + { + // https://stackoverflow.com/a/40969712/294804 + var wrappedFolder = scriptFolder.Contains("'") ? $@"""{scriptFolder}""" : $@"'{scriptFolder}'"; + var getCmdletsCommand = $@" +$currentFunctions = Get-ChildItem function: +Get-ChildItem -Path {wrappedFolder} -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} +Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} +"; + return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); + } + + public static IEnumerable GetScriptCmdlets(string scriptFolder) + => GetScriptCmdlets(null, scriptFolder); + + public static IEnumerable GetScriptHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) + { + var importModules = String.Join(Environment.NewLine, modulePaths.Select(mp => $"Import-Module '{mp}'")); + var getHelpCommand = $@" +$currentFunctions = Get-ChildItem function: +{importModules} +Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} | ForEach-Object {{ Get-Help -Name $_.Name -Full }} +"; + return cmdlet?.RunScript(getHelpCommand) ?? RunScript(getHelpCommand); + } + + public static IEnumerable GetScriptHelpInfo(params string[] modulePaths) + => GetScriptHelpInfo(null, modulePaths); + + public static IEnumerable GetModuleCmdletsAndHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) + { + var getCmdletAndHelp = String.Join(" + ", modulePaths.Select(mp => + $@"(Get-Command -Module (Import-Module '{mp}' -PassThru) | Where-Object {{ $_.CommandType -ne 'Alias' }} | ForEach-Object {{ @{{ CommandInfo = $_; HelpInfo = ( invoke-command {{ try {{ Get-Help -Name $_.Name -Full }} catch{{ '' }} }} ) }} }})" + )); + return (cmdlet?.RunScript(getCmdletAndHelp) ?? RunScript(getCmdletAndHelp)) + .Select(h => new CmdletAndHelpInfo { CommandInfo = (h["CommandInfo"] as PSObject)?.BaseObject as CommandInfo, HelpInfo = h["HelpInfo"] as PSObject }); + } + + public static IEnumerable GetModuleCmdletsAndHelpInfo(params string[] modulePaths) + => GetModuleCmdletsAndHelpInfo(null, modulePaths); + + public static CmdletAndHelpInfo ToCmdletAndHelpInfo(this CommandInfo commandInfo, PSObject helpInfo) => new CmdletAndHelpInfo { CommandInfo = commandInfo, HelpInfo = helpInfo }; + + public const string Psd1Indent = " "; + public const string GuidStart = Psd1Indent + "GUID"; + + public static Guid ReadGuidFromPsd1(string psd1Path) + { + var guid = Guid.NewGuid(); + if (File.Exists(psd1Path)) + { + var currentGuid = File.ReadAllLines(psd1Path) + .FirstOrDefault(l => l.TrimStart().StartsWith(GuidStart.TrimStart()))?.Split(new[] { " = " }, StringSplitOptions.RemoveEmptyEntries) + .LastOrDefault()?.Replace("'", String.Empty); + guid = currentGuid != null ? Guid.Parse(currentGuid) : guid; + } + + return guid; + } + } + + internal class CmdletAndHelpInfo + { + public CommandInfo CommandInfo { get; set; } + public PSObject HelpInfo { get; set; } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/StringExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/StringExtensions.cs new file mode 100644 index 000000000000..c00c4e23f594 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/StringExtensions.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal static class StringExtensions + { + public static string NullIfEmpty(this string text) => String.IsNullOrEmpty(text) ? null : text; + public static string NullIfWhiteSpace(this string text) => String.IsNullOrWhiteSpace(text) ? null : text; + public static string EmptyIfNull(this string text) => text ?? String.Empty; + + public static bool? ToNullableBool(this string text) => String.IsNullOrEmpty(text) ? (bool?)null : Convert.ToBoolean(text.ToLowerInvariant()); + + public static string ToUpperFirstCharacter(this string text) => String.IsNullOrEmpty(text) ? text : $"{text[0].ToString().ToUpperInvariant()}{text.Remove(0, 1)}"; + + public static string ReplaceNewLines(this string value, string replacer = " ", string[] newLineSymbols = null) + => (newLineSymbols ?? new []{ "\r\n", "\n" }).Aggregate(value.EmptyIfNull(), (current, symbol) => current.Replace(symbol, replacer)); + public static string NormalizeNewLines(this string value) => value.ReplaceNewLines("\u00A0").Replace("\u00A0", Environment.NewLine); + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/XmlExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/XmlExtensions.cs new file mode 100644 index 000000000000..f194a8393a44 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/XmlExtensions.cs @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.IO; +using System.Xml; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal static class XmlExtensions + { + public static string ToXmlString(this T inputObject, bool excludeDeclaration = false) + { + var serializer = new XmlSerializer(typeof(T)); + //https://stackoverflow.com/a/760290/294804 + //https://stackoverflow.com/a/3732234/294804 + var namespaces = new XmlSerializerNamespaces(new[] { XmlQualifiedName.Empty }); + var xmlSettings = new XmlWriterSettings { OmitXmlDeclaration = excludeDeclaration, Indent = true }; + using (var stringWriter = new StringWriter()) + using (var xmlWriter = XmlWriter.Create(stringWriter, xmlSettings)) + { + serializer.Serialize(xmlWriter, inputObject, namespaces); + return stringWriter.ToString(); + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/CmdInfoHandler.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/CmdInfoHandler.cs new file mode 100644 index 000000000000..03a92596cc89 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/CmdInfoHandler.cs @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Management.Automation; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using NextDelegate = Func, Task>, Task>; + using SignalDelegate = Func, Task>; + + public class CmdInfoHandler + { + private readonly string processRecordId; + private readonly string parameterSetName; + private readonly InvocationInfo invocationInfo; + + public CmdInfoHandler(string processRecordId, InvocationInfo invocationInfo, string parameterSetName) + { + this.processRecordId = processRecordId; + this.parameterSetName = parameterSetName; + this.invocationInfo = invocationInfo; + } + + public Task SendAsync(HttpRequestMessage request, CancellationToken token, Action cancel, SignalDelegate signal, NextDelegate next) + { + request.Headers.Add("x-ms-client-request-id", processRecordId); + request.Headers.Add("CommandName", invocationInfo?.InvocationName); + request.Headers.Add("FullCommandName", invocationInfo?.MyCommand?.Name); + request.Headers.Add("ParameterSetName", parameterSetName); + + // continue with pipeline. + return next(request, token, cancel, signal); + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Context.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Context.cs new file mode 100644 index 000000000000..953b1a99da39 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Context.cs @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + + using System; + using System.Linq; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData = System.Func; + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + /// + /// The IContext Interface defines the communication mechanism for input customization. + /// + /// + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. + /// + public interface IContext + { + System.Management.Automation.InvocationInfo InvocationInformation { get; set; } + System.Threading.CancellationTokenSource CancellationTokenSource { get; set; } + System.Collections.Generic.IDictionary ExtensibleParameters { get; } + HttpPipeline Pipeline { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client { get; } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/ConversionException.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/ConversionException.cs new file mode 100644 index 000000000000..ceb47406980c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/ConversionException.cs @@ -0,0 +1,17 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal class ConversionException : Exception + { + internal ConversionException(string message) + : base(message) { } + + internal ConversionException(JsonNode node, Type targetType) + : base($"Cannot convert '{node.Type}' to a {targetType.Name}") { } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/IJsonConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/IJsonConverter.cs new file mode 100644 index 000000000000..ccdd02367b26 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/IJsonConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal interface IJsonConverter + { + JsonNode ToJson(object value); + + object FromJson(JsonNode node); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs new file mode 100644 index 000000000000..0c60db40c2df --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class BinaryConverter : JsonConverter + { + internal override JsonNode ToJson(byte[] value) => new XBinary(value); + + internal override byte[] FromJson(JsonNode node) + { + switch (node.Type) + { + case JsonType.String : return Convert.FromBase64String(node.ToString()); // Base64 Encoded + case JsonType.Binary : return ((XBinary)node).Value; + } + + throw new ConversionException(node, typeof(byte[])); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs new file mode 100644 index 000000000000..6bde22db4372 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class BooleanConverter : JsonConverter + { + internal override JsonNode ToJson(bool value) => new JsonBoolean(value); + + internal override bool FromJson(JsonNode node) => (bool)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs new file mode 100644 index 000000000000..df4f69f59a61 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class DateTimeConverter : JsonConverter + { + internal override JsonNode ToJson(DateTime value) + { + return new JsonDate(value); + } + + internal override DateTime FromJson(JsonNode node) => (DateTime)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs new file mode 100644 index 000000000000..ee26d1a4ea9a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class DateTimeOffsetConverter : JsonConverter + { + internal override JsonNode ToJson(DateTimeOffset value) => new JsonDate(value); + + internal override DateTimeOffset FromJson(JsonNode node) => (DateTimeOffset)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs new file mode 100644 index 000000000000..578f7b7ceb15 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class DecimalConverter : JsonConverter + { + internal override JsonNode ToJson(decimal value) => new JsonNumber(value.ToString()); + + internal override decimal FromJson(JsonNode node) + { + return (decimal)node; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs new file mode 100644 index 000000000000..60c32d5d53e8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class DoubleConverter : JsonConverter + { + internal override JsonNode ToJson(double value) => new JsonNumber(value); + + internal override double FromJson(JsonNode node) => (double)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs new file mode 100644 index 000000000000..3e82ec68d9bc --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class EnumConverter : IJsonConverter + { + private readonly Type type; + + internal EnumConverter(Type type) + { + this.type = type ?? throw new ArgumentNullException(nameof(type)); + } + + public JsonNode ToJson(object value) => new JsonString(value.ToString()); + + public object FromJson(JsonNode node) + { + if (node.Type == JsonType.Number) + { + return Enum.ToObject(type, (int)node); + } + + return Enum.Parse(type, node.ToString(), ignoreCase: true); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs new file mode 100644 index 000000000000..4cc7ab5c9418 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class GuidConverter : JsonConverter + { + internal override JsonNode ToJson(Guid value) => new JsonString(value.ToString()); + + internal override Guid FromJson(JsonNode node) => (Guid)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs new file mode 100644 index 000000000000..d9fb49177dda --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class HashSetConverter : JsonConverter> + { + internal override JsonNode ToJson(HashSet value) + { + return new XSet(value); + } + + internal override HashSet FromJson(JsonNode node) + { + var collection = node as ICollection; + + if (collection.Count == 0) return null; + + // TODO: Remove Linq depedency + return new HashSet(collection.Cast()); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs new file mode 100644 index 000000000000..b0809d056767 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class Int16Converter : JsonConverter + { + internal override JsonNode ToJson(short value) => new JsonNumber(value); + + internal override short FromJson(JsonNode node) => (short)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs new file mode 100644 index 000000000000..a3b2ea06e6f9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class Int32Converter : JsonConverter + { + internal override JsonNode ToJson(int value) => new JsonNumber(value); + + internal override int FromJson(JsonNode node) => (int)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs new file mode 100644 index 000000000000..e2626b94d579 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class Int64Converter : JsonConverter + { + internal override JsonNode ToJson(long value) => new JsonNumber(value); + + internal override long FromJson(JsonNode node) => (long)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs new file mode 100644 index 000000000000..2ba4ffe0e245 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class JsonArrayConverter : JsonConverter + { + internal override JsonNode ToJson(JsonArray value) => value; + + internal override JsonArray FromJson(JsonNode node) => (JsonArray)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs new file mode 100644 index 000000000000..a561c4175ee7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class JsonObjectConverter : JsonConverter + { + internal override JsonNode ToJson(JsonObject value) => value; + + internal override JsonObject FromJson(JsonNode node) => (JsonObject)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs new file mode 100644 index 000000000000..dfc305bc3872 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class SingleConverter : JsonConverter + { + internal override JsonNode ToJson(float value) => new JsonNumber(value.ToString()); + + internal override float FromJson(JsonNode node) => (float)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs new file mode 100644 index 000000000000..06f490e301b6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class StringConverter : JsonConverter + { + internal override JsonNode ToJson(string value) => new JsonString(value); + + internal override string FromJson(JsonNode node) => node.ToString(); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs new file mode 100644 index 000000000000..1ca9f5f13925 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class TimeSpanConverter : JsonConverter + { + internal override JsonNode ToJson(TimeSpan value) => new JsonString(value.ToString()); + + internal override TimeSpan FromJson(JsonNode node) => (TimeSpan)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs new file mode 100644 index 000000000000..ec2599bb3124 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class UInt16Converter : JsonConverter + { + internal override JsonNode ToJson(ushort value) => new JsonNumber(value); + + internal override ushort FromJson(JsonNode node) => (ushort)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs new file mode 100644 index 000000000000..767039b47cda --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class UInt32Converter : JsonConverter + { + internal override JsonNode ToJson(uint value) => new JsonNumber(value); + + internal override uint FromJson(JsonNode node) => (uint)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs new file mode 100644 index 000000000000..445d6dfd9469 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class UInt64Converter : JsonConverter + { + internal override JsonNode ToJson(ulong value) => new JsonNumber(value.ToString()); + + internal override ulong FromJson(JsonNode node) => (ulong)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs new file mode 100644 index 000000000000..51a4c58fd1fa --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class UriConverter : JsonConverter + { + internal override JsonNode ToJson(Uri value) => new JsonString(value.AbsoluteUri); + + internal override Uri FromJson(JsonNode node) => (Uri)node; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverter.cs new file mode 100644 index 000000000000..d40c053e4f26 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverter.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public abstract class JsonConverter : IJsonConverter + { + internal abstract T FromJson(JsonNode node); + + internal abstract JsonNode ToJson(T value); + + #region IConverter + + object IJsonConverter.FromJson(JsonNode node) => FromJson(node); + + JsonNode IJsonConverter.ToJson(object value) => ToJson((T)value); + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs new file mode 100644 index 000000000000..4fcb3f1dc5b5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class JsonConverterAttribute : Attribute + { + internal JsonConverterAttribute(Type type) + { + Converter = (IJsonConverter)Activator.CreateInstance(type); + } + + internal IJsonConverter Converter { get; } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs new file mode 100644 index 000000000000..7a2ae749cabb --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs @@ -0,0 +1,91 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class JsonConverterFactory + { + private static readonly Dictionary converters = new Dictionary(); + + static JsonConverterFactory() + { + AddInternal(new BooleanConverter()); + AddInternal(new DateTimeConverter()); + AddInternal(new DateTimeOffsetConverter()); + AddInternal(new BinaryConverter()); + AddInternal(new DecimalConverter()); + AddInternal(new DoubleConverter()); + AddInternal(new GuidConverter()); + AddInternal(new Int16Converter()); + AddInternal(new Int32Converter()); + AddInternal(new Int64Converter()); + AddInternal(new SingleConverter()); + AddInternal(new StringConverter()); + AddInternal(new TimeSpanConverter()); + AddInternal(new UInt16Converter()); + AddInternal(new UInt32Converter()); + AddInternal(new UInt64Converter()); + AddInternal(new UriConverter()); + + // Hash sets + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + + // JSON + + AddInternal(new JsonObjectConverter()); + AddInternal(new JsonArrayConverter()); + } + + internal static Dictionary Instances => converters; + + internal static IJsonConverter Get(Type type) + { + var details = TypeDetails.Get(type); + + if (details.JsonConverter == null) + { + throw new ConversionException($"No converter found for '{type.Name}'."); + } + + return details.JsonConverter; + } + + internal static bool TryGet(Type type, out IJsonConverter converter) + { + var typeDetails = TypeDetails.Get(type); + + converter = typeDetails.JsonConverter; + + return converter != null; + } + + private static void AddInternal(JsonConverter converter) + => converters.Add(typeof(T), converter); + + private static void AddInternal(IJsonConverter converter) + => converters.Add(typeof(T), converter); + + internal static void Add(JsonConverter converter) + { + if (converter == null) + { + throw new ArgumentNullException(nameof(converter)); + } + + AddInternal(converter); + + var type = TypeDetails.Get(); + + type.JsonConverter = converter; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/StringLikeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/StringLikeConverter.cs new file mode 100644 index 000000000000..38613b4f1d11 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/StringLikeConverter.cs @@ -0,0 +1,45 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class StringLikeConverter : IJsonConverter + { + private readonly Type type; + private readonly MethodInfo parseMethod; + + internal StringLikeConverter(Type type) + { + this.type = type ?? throw new ArgumentNullException(nameof(type)); + this.parseMethod = StringLikeHelper.GetParseMethod(type); + } + + public object FromJson(JsonNode node) => + parseMethod.Invoke(null, new[] { node.ToString() }); + + public JsonNode ToJson(object value) => new JsonString(value.ToString()); + } + + internal static class StringLikeHelper + { + private static readonly Type[] parseMethodParamaterTypes = new[] { typeof(string) }; + + internal static bool IsStringLike(Type type) + { + return GetParseMethod(type) != null; + } + + internal static MethodInfo GetParseMethod(Type type) + { + MethodInfo method = type.GetMethod("Parse", parseMethodParamaterTypes); + + if (method?.IsPublic != true) return null; + + return method; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/IJsonSerializable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/IJsonSerializable.cs new file mode 100644 index 000000000000..653035f0aab7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/IJsonSerializable.cs @@ -0,0 +1,263 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json; +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + public interface IJsonSerializable + { + JsonNode ToJson(JsonObject container = null, SerializationMode serializationMode = SerializationMode.None); + } + internal static class JsonSerializable + { + /// + /// Serializes an enumerable and returns a JsonNode. + /// + /// an IEnumerable collection of items + /// A JsonNode that contains the collection of items serialized. + private static JsonNode ToJsonValue(System.Collections.IEnumerable enumerable) + { + if (enumerable != null) + { + // is it a byte array of some kind? + if (enumerable is System.Collections.Generic.IEnumerable byteEnumerable) + { + return new XBinary(System.Linq.Enumerable.ToArray(byteEnumerable)); + } + + var hasValues = false; + // just create an array of value nodes. + var result = new XNodeArray(); + foreach (var each in enumerable) + { + // we had at least one value. + hasValues = true; + + // try to serialize it. + var node = ToJsonValue(each); + if (null != node) + { + result.Add(node); + } + } + + // if we were able to add values, (or it was just empty), return it. + if (result.Count > 0 || !hasValues) + { + return result; + } + } + + // we couldn't serialize the values. Sorry. + return null; + } + + /// + /// Serializes a valuetype to a JsonNode. + /// + /// a ValueType (ie, a primitive, enum or struct) to be serialized + /// a JsonNode with the serialized value + private static JsonNode ToJsonValue(ValueType vValue) + { + // numeric type + if (vValue is SByte || vValue is Int16 || vValue is Int32 || vValue is Int64 || vValue is Byte || vValue is UInt16 || vValue is UInt32 || vValue is UInt64 || vValue is decimal || vValue is float || vValue is double) + { + return new JsonNumber(vValue.ToString()); + } + + // boolean type + if (vValue is bool bValue) + { + return new JsonBoolean(bValue); + } + + // dates + if (vValue is DateTime dtValue) + { + return new JsonDate(dtValue); + } + + // DictionaryEntity struct type + if (vValue is System.Collections.DictionaryEntry deValue) + { + return new JsonObject { { deValue.Key.ToString(), ToJsonValue(deValue.Value) } }; + } + + // sorry, no idea. + return null; + } + /// + /// Attempts to serialize an object by using ToJson() or ToJsonString() if they exist. + /// + /// the object to be serialized. + /// the serialized JsonNode (if successful), otherwise, null + private static JsonNode TryToJsonValue(dynamic oValue) + { + object jsonValue = null; + dynamic v = oValue; + try + { + jsonValue = v.ToJson().ToString(); + } + catch + { + // no harm... + try + { + jsonValue = v.ToJsonString().ToString(); + } + catch + { + // no worries here either. + } + } + + // if we got something out, let's use it. + if (null != jsonValue) + { + // JsonNumber is really a literal json value. Just don't try to cast that back to an actual number, ok? + return new JsonNumber(jsonValue.ToString()); + } + + return null; + } + + /// + /// Serialize an object by using a variety of methods. + /// + /// the object to be serialized. + /// the serialized JsonNode (if successful), otherwise, null + internal static JsonNode ToJsonValue(object value) + { + // things that implement our interface are preferred. + if (value is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable jsonSerializable) + { + return jsonSerializable.ToJson(); + } + + // strings are easy. + if (value is string || value is char) + { + return new JsonString(value.ToString()); + } + + // value types are fairly straightforward (fallback to ToJson()/ToJsonString() or literal JsonString ) + if (value is System.ValueType vValue) + { + return ToJsonValue(vValue) ?? TryToJsonValue(vValue) ?? new JsonString(vValue.ToString()); + } + + // dictionaries are objects that should be able to serialize + if (value is System.Collections.Generic.IDictionary dictionary) + { + return Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson(dictionary, null); + } + + // hashtables are converted to dictionaries for serialization + if (value is System.Collections.Hashtable hashtable) + { + var dict = new System.Collections.Generic.Dictionary(); + DictionaryExtensions.HashTableToDictionary(hashtable, dict); + return Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson(dict, null); + } + + // enumerable collections are handled like arrays (again, fallback to ToJson()/ToJsonString() or literal JsonString) + if (value is System.Collections.IEnumerable enumerableValue) + { + // some kind of enumerable value + return ToJsonValue(enumerableValue) ?? TryToJsonValue(value) ?? new JsonString(value.ToString()); + } + + // at this point, we're going to fallback to a string literal here, since we really have no idea what it is. + return new JsonString(value.ToString()); + } + + internal static JsonObject ToJson(System.Collections.Generic.Dictionary dictionary, JsonObject container) => ToJson((System.Collections.Generic.IDictionary)dictionary, container); + + /// + /// Serializes a dictionary into a JsonObject container. + /// + /// The dictionary to serailize + /// the container to serialize the dictionary into + /// the container + internal static JsonObject ToJson(System.Collections.Generic.IDictionary dictionary, JsonObject container) + { + container = container ?? new JsonObject(); + if (dictionary != null && dictionary.Count > 0) + { + foreach (var key in dictionary) + { + // currently, we don't serialize null values. + if (null != key.Value) + { + container.Add(key.Key, ToJsonValue(key.Value)); + continue; + } + } + } + return container; + } + + internal static Func> DeserializeDictionary(Func> dictionaryFactory) + { + return (node) => FromJson(node, dictionaryFactory(), (object)(DeserializeDictionary(dictionaryFactory)) as Func); + } + + internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.Dictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) => FromJson(json, (System.Collections.Generic.IDictionary)container, objectFactory, excludes); + + + internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.IDictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) + { + if (null == json) + { + return container; + } + + foreach (var key in json.Keys) + { + if (true == excludes?.Contains(key)) + { + continue; + } + + var value = json[key]; + try + { + switch (value.Type) + { + case JsonType.Null: + // skip null values. + continue; + + case JsonType.Array: + case JsonType.Boolean: + case JsonType.Date: + case JsonType.Binary: + case JsonType.Number: + case JsonType.String: + container.Add(key, (V)value.ToValue()); + break; + case JsonType.Object: + if (objectFactory != null) + { + var v = objectFactory(value as JsonObject); + if (null != v) + { + container.Add(key, v); + } + } + break; + } + } + catch + { + } + } + return container; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonArray.cs new file mode 100644 index 000000000000..08440bc0232e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonArray.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public partial class JsonArray + { + internal override object ToValue() => Count == 0 ? new object[0] : System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Select(this, each => each.ToValue())); + } + + +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonBoolean.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonBoolean.cs new file mode 100644 index 000000000000..cb633ee5d017 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonBoolean.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal partial class JsonBoolean + { + internal static JsonBoolean Create(bool? value) => value is bool b ? new JsonBoolean(b) : null; + internal bool ToBoolean() => Value; + + internal override object ToValue() => Value; + } + + +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNode.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNode.cs new file mode 100644 index 000000000000..36c9b2086b66 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNode.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + using System; + using System.Collections.Generic; + + public partial class JsonNode + { + /// + /// Returns the content of this node as the underlying value. + /// Will default to the string representation if not overridden in child classes. + /// + /// an object with the underlying value of the node. + internal virtual object ToValue() { + return this.ToString(); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNumber.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNumber.cs new file mode 100644 index 000000000000..3546e3277114 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNumber.cs @@ -0,0 +1,78 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + using System; + + public partial class JsonNumber + { + internal static readonly DateTime EpochDate = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); + private static long ToUnixTime(DateTime dateTime) + { + return (long)dateTime.Subtract(EpochDate).TotalSeconds; + } + private static DateTime FromUnixTime(long totalSeconds) + { + return EpochDate.AddSeconds(totalSeconds); + } + internal byte ToByte() => this; + internal int ToInt() => this; + internal long ToLong() => this; + internal short ToShort() => this; + internal UInt16 ToUInt16() => this; + internal UInt32 ToUInt32() => this; + internal UInt64 ToUInt64() => this; + internal decimal ToDecimal() => this; + internal double ToDouble() => this; + internal float ToFloat() => this; + + internal static JsonNumber Create(int? value) => value is int n ? new JsonNumber(n) : null; + internal static JsonNumber Create(long? value) => value is long n ? new JsonNumber(n) : null; + internal static JsonNumber Create(float? value) => value is float n ? new JsonNumber(n) : null; + internal static JsonNumber Create(double? value) => value is double n ? new JsonNumber(n) : null; + internal static JsonNumber Create(decimal? value) => value is decimal n ? new JsonNumber(n) : null; + internal static JsonNumber Create(DateTime? value) => value is DateTime date ? new JsonNumber(ToUnixTime(date)) : null; + + public static implicit operator DateTime(JsonNumber number) => FromUnixTime(number); + internal DateTime ToDateTime() => this; + + internal JsonNumber(decimal value) + { + this.value = value.ToString(); + } + internal override object ToValue() + { + if (IsInteger) + { + if (int.TryParse(this.value, out int iValue)) + { + return iValue; + } + if (long.TryParse(this.value, out long lValue)) + { + return lValue; + } + } + else + { + if (float.TryParse(this.value, out float fValue)) + { + return fValue; + } + if (double.TryParse(this.value, out double dValue)) + { + return dValue; + } + if (decimal.TryParse(this.value, out decimal dcValue)) + { + return dcValue; + } + } + return null; + } + } + + +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonObject.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonObject.cs new file mode 100644 index 000000000000..1c4c4d232aa4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonObject.cs @@ -0,0 +1,183 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + using System; + using System.Collections.Generic; + + public partial class JsonObject + { + internal override object ToValue() => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.FromJson(this, new System.Collections.Generic.Dictionary(), (obj) => obj.ToValue()); + + internal void SafeAdd(string name, Func valueFn) + { + if (valueFn != null) + { + var value = valueFn(); + if (null != value) + { + items.Add(name, value); + } + } + } + + internal void SafeAdd(string name, JsonNode value) + { + if (null != value) + { + items.Add(name, value); + } + } + + internal T NullableProperty(string propertyName) where T : JsonNode + { + if (this.TryGetValue(propertyName, out JsonNode value)) + { + if (value.IsNull) + { + return null; + } + if (value is T tval) + { + return tval; + } + /* it's present, but not the correct type... */ + //throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); + } + return null; + } + + internal JsonObject Property(string propertyName) + { + return PropertyT(propertyName); + } + + internal T PropertyT(string propertyName) where T : JsonNode + { + if (this.TryGetValue(propertyName, out JsonNode value)) + { + if (value.IsNull) + { + return null; // we're going to assume that the consumer knows what to do if null is explicity returned? + } + + if (value is T tval) + { + return tval; + } + /* it's present, but not the correct type... */ + // throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); + } + return null; + } + + internal int NumberProperty(string propertyName, ref int output) => output = this.PropertyT(propertyName)?.ToInt() ?? output; + internal float NumberProperty(string propertyName, ref float output) => output = this.PropertyT(propertyName)?.ToFloat() ?? output; + internal byte NumberProperty(string propertyName, ref byte output) => output = this.PropertyT(propertyName)?.ToByte() ?? output; + internal long NumberProperty(string propertyName, ref long output) => output = this.PropertyT(propertyName)?.ToLong() ?? output; + internal double NumberProperty(string propertyName, ref double output) => output = this.PropertyT(propertyName)?.ToDouble() ?? output; + internal decimal NumberProperty(string propertyName, ref decimal output) => output = this.PropertyT(propertyName)?.ToDecimal() ?? output; + internal short NumberProperty(string propertyName, ref short output) => output = this.PropertyT(propertyName)?.ToShort() ?? output; + internal DateTime NumberProperty(string propertyName, ref DateTime output) => output = this.PropertyT(propertyName)?.ToDateTime() ?? output; + + internal int? NumberProperty(string propertyName, ref int? output) => output = this.NullableProperty(propertyName)?.ToInt() ?? null; + internal float? NumberProperty(string propertyName, ref float? output) => output = this.NullableProperty(propertyName)?.ToFloat() ?? null; + internal byte? NumberProperty(string propertyName, ref byte? output) => output = this.NullableProperty(propertyName)?.ToByte() ?? null; + internal long? NumberProperty(string propertyName, ref long? output) => output = this.NullableProperty(propertyName)?.ToLong() ?? null; + internal double? NumberProperty(string propertyName, ref double? output) => output = this.NullableProperty(propertyName)?.ToDouble() ?? null; + internal decimal? NumberProperty(string propertyName, ref decimal? output) => output = this.NullableProperty(propertyName)?.ToDecimal() ?? null; + internal short? NumberProperty(string propertyName, ref short? output) => output = this.NullableProperty(propertyName)?.ToShort() ?? null; + + internal DateTime? NumberProperty(string propertyName, ref DateTime? output) => output = this.NullableProperty(propertyName)?.ToDateTime() ?? null; + + + internal string StringProperty(string propertyName) => this.PropertyT(propertyName)?.ToString(); + internal string StringProperty(string propertyName, ref string output) => output = this.PropertyT(propertyName)?.ToString() ?? output; + internal char StringProperty(string propertyName, ref char output) => output = this.PropertyT(propertyName)?.ToChar() ?? output; + internal char? StringProperty(string propertyName, ref char? output) => output = this.PropertyT(propertyName)?.ToChar() ?? null; + + internal DateTime StringProperty(string propertyName, ref DateTime output) => DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out output) ? output : output; + internal DateTime? StringProperty(string propertyName, ref DateTime? output) => output = DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out var o) ? o : output; + + + internal bool BooleanProperty(string propertyName, ref bool output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? output; + internal bool? BooleanProperty(string propertyName, ref bool? output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? null; + + internal T[] ArrayProperty(string propertyName, ref T[] output, Func deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + output = new T[array.Count]; + for (var i = 0; i < output.Length; i++) + { + output[i] = deserializer(array[i]); + } + } + return output; + } + internal T[] ArrayProperty(string propertyName, Func deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + var output = new T[array.Count]; + for (var i = 0; i < output.Length; i++) + { + output[i] = deserializer(array[i]); + } + return output; + } + return new T[0]; + } + internal void IterateArrayProperty(string propertyName, Action deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + for (var i = 0; i < array.Count; i++) + { + deserializer(array[i]); + } + } + } + + internal Dictionary DictionaryProperty(string propertyName, ref Dictionary output, Func deserializer) + { + var dictionary = this.PropertyT(propertyName); + if (output == null) + { + output = new Dictionary(); + } + else + { + output.Clear(); + } + if (dictionary != null) + { + foreach (var key in dictionary.Keys) + { + output[key] = deserializer(dictionary[key]); + } + } + return output; + } + + internal static JsonObject Create(IDictionary source, Func selector) + { + if (source == null || selector == null) + { + return null; + } + var result = new JsonObject(); + + foreach (var key in source.Keys) + { + result.SafeAdd(key, selector(source[key])); + } + return result; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonString.cs new file mode 100644 index 000000000000..0290ff82a404 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonString.cs @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + using System; + using System.Globalization; + using System.Linq; + + public partial class JsonString + { + internal static string DateFormat = "yyyy-MM-dd"; + internal static string DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK"; + internal static string DateTimeRfc1123Format = "R"; + + internal static JsonString Create(string value) => value == null ? null : new JsonString(value); + internal static JsonString Create(char? value) => value is char c ? new JsonString(c.ToString()) : null; + + internal static JsonString CreateDate(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateFormat, CultureInfo.CurrentCulture)) : null; + internal static JsonString CreateDateTime(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeFormat, CultureInfo.CurrentCulture)) : null; + internal static JsonString CreateDateTimeRfc1123(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeRfc1123Format, CultureInfo.CurrentCulture)) : null; + + internal char ToChar() => this.Value?.ToString()?.FirstOrDefault() ?? default(char); + public static implicit operator char(JsonString value) => value?.ToString()?.FirstOrDefault() ?? default(char); + public static implicit operator char? (JsonString value) => value?.ToString()?.FirstOrDefault(); + + public static implicit operator DateTime(JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime); + public static implicit operator DateTime? (JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime?); + + } + + +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/XNodeArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/XNodeArray.cs new file mode 100644 index 000000000000..005cbc1c7b52 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/XNodeArray.cs @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + using System; + using System.Linq; + + public partial class XNodeArray + { + internal static XNodeArray Create(T[] source, Func selector) + { + if (source == null || selector == null) + { + return null; + } + var result = new XNodeArray(); + foreach (var item in source.Select(selector)) + { + result.SafeAdd(item); + } + return result; + } + internal void SafeAdd(JsonNode item) + { + if (item != null) + { + items.Add(item); + } + } + internal void SafeAdd(Func itemFn) + { + if (itemFn != null) + { + var item = itemFn(); + if (item != null) + { + items.Add(item); + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Debugging.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Debugging.cs new file mode 100644 index 000000000000..154e38e38b08 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Debugging.cs @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + internal static class AttachDebugger + { + internal static void Break() + { + while (!System.Diagnostics.Debugger.IsAttached) + { + System.Console.Error.WriteLine($"Waiting for debugger to attach to process {System.Diagnostics.Process.GetCurrentProcess().Id}"); + for (int i = 0; i < 50; i++) + { + if (System.Diagnostics.Debugger.IsAttached) + { + break; + } + System.Threading.Thread.Sleep(100); + System.Console.Error.Write("."); + } + System.Console.Error.WriteLine(); + } + System.Diagnostics.Debugger.Break(); + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/DictionaryExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/DictionaryExtensions.cs new file mode 100644 index 000000000000..902edb238812 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/DictionaryExtensions.cs @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + internal static class DictionaryExtensions + { + internal static void HashTableToDictionary(System.Collections.Hashtable hashtable, System.Collections.Generic.IDictionary dictionary) + { + if (null == hashtable) + { + return; + } + foreach (var each in hashtable.Keys) + { + var key = each.ToString(); + var value = hashtable[key]; + if (null != value) + { + try + { + dictionary[key] = (V)value; + } + catch + { + // Values getting dropped; not compatible with target dictionary. Not sure what to do here. + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventData.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventData.cs new file mode 100644 index 000000000000..ac2756b8d07a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventData.cs @@ -0,0 +1,78 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + + using System; + using System.Threading; + + ///Represents the data in signaled event. + public partial class EventData + { + /// + /// The type of the event being signaled + /// + public string Id; + + /// + /// The user-ready message from the event. + /// + public string Message; + + /// + /// When the event is about a parameter, this is the parameter name. + /// Used in Validation Events + /// + public string Parameter; + + /// + /// This represents a numeric value associated with the event. + /// Use for progress-style events + /// + public double Value; + + /// + /// Any extended data for an event should be serialized and stored here. + /// + public string ExtendedData; + + /// + /// If the event triggers after the request message has been created, this will contain the Request Message (which in HTTP calls would be HttpRequestMessage) + /// + /// Typically you'd cast this to the expected type to use it: + /// + /// if(eventData.RequestMessgae is HttpRequestMessage httpRequest) + /// { + /// httpRequest.Headers.Add("x-request-flavor", "vanilla"); + /// } + /// + /// + public object RequestMessage; + + /// + /// If the event triggers after the response is back, this will contain the Response Message (which in HTTP calls would be HttpResponseMessage) + /// + /// Typically you'd cast this to the expected type to use it: + /// + /// if(eventData.ResponseMessage is HttpResponseMessage httpResponse){ + /// var flavor = httpResponse.Headers.GetValue("x-request-flavor"); + /// } + /// + /// + public object ResponseMessage; + + /// + /// Cancellation method for this event. + /// + /// If the event consumer wishes to cancel the request that initiated this event, call Cancel() + /// + /// + /// The original initiator of the request must provide the implementation of this. + /// + public System.Action Cancel; + } + +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventDataExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventDataExtensions.cs new file mode 100644 index 000000000000..368be982b25d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventDataExtensions.cs @@ -0,0 +1,94 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System; + + /// + /// PowerShell-specific data on top of the llc# EventData + /// + /// + /// In PowerShell, we add on the EventDataConverter to support sending events between modules. + /// Obviously, this code would need to be duplcated on both modules. + /// This is preferable to sharing a common library, as versioning makes that problematic. + /// + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] + public partial class EventData : EventArgs + { + } + + /// + /// A PowerShell PSTypeConverter to adapt an EventData object that has been passed. + /// Usually used between modules. + /// + public class EventDataConverter : System.Management.Automation.PSTypeConverter + { + public override bool CanConvertTo(object sourceValue, Type destinationType) => false; + public override object ConvertTo(object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => null; + public override bool CanConvertFrom(dynamic sourceValue, Type destinationType) => destinationType == typeof(EventData) && CanConvertFrom(sourceValue); + public override object ConvertFrom(dynamic sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Verifies that a given object has the required members to convert it to the target type (EventData) + /// + /// Uses a dynamic type so that it is able to use the simplest code without excessive checking. + /// + /// The instance to verify + /// True, if the object has all the required parameters. + public static bool CanConvertFrom(dynamic sourceValue) + { + try + { + // check if this has *required* parameters... + sourceValue?.Id?.GetType(); + sourceValue?.Message?.GetType(); + sourceValue?.Cancel?.GetType(); + + // remaining parameters are not *required*, + // and if they have values, it will copy them at conversion time. + } + catch + { + // if anything throws an exception (because it's null, or doesn't have that member) + return false; + } + return true; + } + + /// + /// Returns result of the delegate as the expected type, or default(T) + /// + /// This isolates any exceptions from the consumer. + /// + /// A delegate that returns a value + /// The desired output type + /// The value from the function if the type is correct + private static T To(Func srcValue) + { + try { return srcValue(); } + catch { return default(T); } + } + + /// + /// Converts an incoming object to the expected type by treating the incoming object as a dynamic, and coping the expected values. + /// + /// the incoming object + /// EventData + public static EventData ConvertFrom(dynamic sourceValue) + { + return new EventData + { + Id = To(() => sourceValue.Id), + Message = To(() => sourceValue.Message), + Parameter = To(() => sourceValue.Parameter), + Value = To(() => sourceValue.Value), + RequestMessage = To(() => sourceValue.RequestMessage), + ResponseMessage = To(() => sourceValue.ResponseMessage), + Cancel = To(() => sourceValue.Cancel) + }; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventListener.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventListener.cs new file mode 100644 index 000000000000..62c310b865af --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventListener.cs @@ -0,0 +1,247 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + + using System; + using System.Linq; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData = System.Func; + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public interface IValidates + { + Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener listener); + } + + /// + /// The IEventListener Interface defines the communication mechanism for Signaling events during a remote call. + /// + /// + /// The interface is designed to be as minimal as possible, allow for quick peeking of the event type (id) + /// and the cancellation status and provides a delegate for retrieving the event details themselves. + /// + public interface IEventListener + { + Task Signal(string id, CancellationToken token, GetEventData createMessage); + CancellationToken Token { get; } + System.Action Cancel { get; } + } + + internal static partial class Extensions + { + public static Task Signal(this IEventListener instance, string id, CancellationToken token, Func createMessage) => instance.Signal(id, token, createMessage); + public static Task Signal(this IEventListener instance, string id, CancellationToken token) => instance.Signal(id, token, () => new EventData { Id = id, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, EventData message) => instance.Signal(id, token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); + + public static Task Signal(this IEventListener instance, string id, Func createMessage) => instance.Signal(id, instance.Token, createMessage); + public static Task Signal(this IEventListener instance, string id) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, EventData message) => instance.Signal(id, instance.Token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); + + public static Task Signal(this IEventListener instance, string id, System.Uri uri) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = uri.ToString(), Cancel = instance.Cancel }); + + public static async Task AssertNotNull(this IEventListener instance, string parameterName, object value) + { + if (value == null) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' should not be null", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertMinimumLength(this IEventListener instance, string parameterName, string value, int length) + { + if (value != null && value.Length < length) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is less than {length}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertMaximumLength(this IEventListener instance, string parameterName, string value, int length) + { + if (value != null && value.Length > length) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is greater than {length}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + + public static async Task AssertRegEx(this IEventListener instance, string parameterName, string value, string regularExpression) + { + if (value != null && !System.Text.RegularExpressions.Regex.Match(value, regularExpression).Success) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' does not validate against pattern /{regularExpression}/", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertEnum(this IEventListener instance, string parameterName, string value, params string[] values) + { + if (!values.Any(each => each.Equals(value))) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' is not one of ({values.Aggregate((c, e) => $"'{e}',{c}")}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertObjectIsValid(this IEventListener instance, string parameterName, object inst) + { + await (inst as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates)?.Validate(instance); + } + + public static async Task AssertIsLessThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) >= 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsGreaterThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) <= 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsLessThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) > 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsGreaterThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) < 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, Int64? value, Int64 multiple) + { + if (null != value && value % multiple != 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, double? value, double multiple) + { + if (null != value) + { + var i = (Int64)(value / multiple); + if (i != value / multiple) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, decimal? value, decimal multiple) + { + if (null != value) + { + var i = (Int64)(value / multiple); + if (i != value / multiple) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + } + } + + /// + /// An Implementation of the IEventListener that supports subscribing to events and dispatching them + /// (used for manually using the lowlevel interface) + /// + public class EventListener : CancellationTokenSource, IEnumerable>, IEventListener + { + private Dictionary calls = new Dictionary(); + public IEnumerator> GetEnumerator() => calls.GetEnumerator(); + IEnumerator IEnumerable.GetEnumerator() => calls.GetEnumerator(); + public EventListener() + { + } + + public new Action Cancel => base.Cancel; + private Event tracer; + + public EventListener(params (string name, Event callback)[] initializer) + { + foreach (var each in initializer) + { + Add(each.name, each.callback); + } + } + + public void Add(string name, SynchEvent callback) + { + Add(name, (message) => { callback(message); return Task.CompletedTask; }); + } + + public void Add(string name, Event callback) + { + if (callback != null) + { + if (string.IsNullOrEmpty(name)) + { + if (calls.ContainsKey(name)) + { + tracer += callback; + } + else + { + tracer = callback; + } + } + else + { + if (calls.ContainsKey(name)) + { + calls[name ?? System.String.Empty] += callback; + } + else + { + calls[name ?? System.String.Empty] = callback; + } + } + } + } + + + public async Task Signal(string id, CancellationToken token, GetEventData createMessage) + { + using (NoSynchronizationContext) + { + if (!string.IsNullOrEmpty(id) && (calls.TryGetValue(id, out Event listener) || tracer != null)) + { + var message = createMessage(); + message.Id = id; + + await listener?.Invoke(message); + await tracer?.Invoke(message); + + if (token.IsCancellationRequested) + { + throw new OperationCanceledException($"Canceled by event {id} ", this.Token); + } + } + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Events.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Events.cs new file mode 100644 index 000000000000..f0eb75ba1be9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Events.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + public static partial class Events + { + public const string Log = nameof(Log); + public const string Validation = nameof(Validation); + public const string ValidationWarning = nameof(ValidationWarning); + public const string AfterValidation = nameof(AfterValidation); + public const string RequestCreated = nameof(RequestCreated); + public const string ResponseCreated = nameof(ResponseCreated); + public const string URLCreated = nameof(URLCreated); + public const string Finally = nameof(Finally); + public const string HeaderParametersAdded = nameof(HeaderParametersAdded); + public const string BodyContentSet = nameof(BodyContentSet); + public const string BeforeCall = nameof(BeforeCall); + public const string BeforeResponseDispatch = nameof(BeforeResponseDispatch); + public const string FollowingNextLink = nameof(FollowingNextLink); + public const string DelayBeforePolling = nameof(DelayBeforePolling); + public const string Polling = nameof(Polling); + public const string Progress = nameof(Progress); + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventsExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventsExtensions.cs new file mode 100644 index 000000000000..27fdb74858f9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventsExtensions.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + public static partial class Events + { + public const string CmdletProcessRecordStart = nameof(CmdletProcessRecordStart); + public const string CmdletProcessRecordAsyncStart = nameof(CmdletProcessRecordAsyncStart); + public const string CmdletException = nameof(CmdletException); + public const string CmdletGetPipeline = nameof(CmdletGetPipeline); + public const string CmdletBeforeAPICall = nameof(CmdletBeforeAPICall); + public const string CmdletBeginProcessing = nameof(CmdletBeginProcessing); + public const string CmdletEndProcessing = nameof(CmdletEndProcessing); + public const string CmdletProcessRecordEnd = nameof(CmdletProcessRecordEnd); + public const string CmdletProcessRecordAsyncEnd = nameof(CmdletProcessRecordAsyncEnd); + public const string CmdletAfterAPICall = nameof(CmdletAfterAPICall); + + public const string Verbose = nameof(Verbose); + public const string Debug = nameof(Debug); + public const string Information = nameof(Information); + public const string Error = nameof(Error); + public const string Warning = nameof(Warning); + } + +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Extensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Extensions.cs new file mode 100644 index 000000000000..a7c1377a2ca0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Extensions.cs @@ -0,0 +1,117 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System.Linq; + using System; + + internal static partial class Extensions + { + public static T[] SubArray(this T[] array, int offset, int length) + { + return new ArraySegment(array, offset, length) + .ToArray(); + } + + public static T ReadHeaders(this T instance, global::System.Net.Http.Headers.HttpResponseHeaders headers) where T : class + { + (instance as IHeaderSerializable)?.ReadHeaders(headers); + return instance; + } + + internal static bool If(T input, out T output) + { + if (null == input) + { + output = default(T); + return false; + } + output = input; + return true; + } + + internal static void AddIf(T value, System.Action addMethod) + { + // if value is present (and it's not just an empty JSON Object) + if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject)?.Keys.Count != 0) + { + addMethod(value); + } + } + + internal static void AddIf(T value, string serializedName, System.Action addMethod) + { + // if value is present (and it's not just an empty JSON Object) + if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject)?.Keys.Count != 0) + { + addMethod(serializedName, value); + } + } + + /// + /// Returns the first header value as a string from an HttpReponseMessage. + /// + /// the HttpResponseMessage to fetch a header from + /// the header name + /// the first header value as a string from an HttpReponseMessage. string.empty if there is no header value matching + internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => string.Equals(headerName, each.Key, System.StringComparison.OrdinalIgnoreCase)).Value?.FirstOrDefault() ?? string.Empty; + + /// + /// Sets the Synchronization Context to null, and returns an IDisposable that when disposed, + /// will restore the synchonization context to the original value. + /// + /// This is used a less-invasive means to ensure that code in the library that doesn't + /// need to be continued in the original context doesn't have to have ConfigureAwait(false) + /// on every single await + /// + /// If the SynchronizationContext is null when this is used, the resulting IDisposable + /// will not do anything (this prevents excessive re-setting of the SynchronizationContext) + /// + /// Usage: + /// + /// using(NoSynchronizationContext) { + /// await SomeAsyncOperation(); + /// await SomeOtherOperation(); + /// } + /// + /// + /// + /// An IDisposable that will return the SynchronizationContext to original state + internal static System.IDisposable NoSynchronizationContext => System.Threading.SynchronizationContext.Current == null ? Dummy : new NoSyncContext(); + + /// + /// An instance of the Dummy IDispoable. + /// + /// + internal static System.IDisposable Dummy = new DummyDisposable(); + + /// + /// An IDisposable that does absolutely nothing. + /// + internal class DummyDisposable : System.IDisposable + { + public void Dispose() + { + } + } + /// + /// An IDisposable that saves the SynchronizationContext,sets it to null and + /// restores it to the original upon Dispose(). + /// + /// NOTE: This is designed to be less invasive than using .ConfigureAwait(false) + /// on every single await in library code (ie, places where we know we don't need + /// to continue in the same context as we went async) + /// + internal class NoSyncContext : System.IDisposable + { + private System.Threading.SynchronizationContext original = System.Threading.SynchronizationContext.Current; + internal NoSyncContext() + { + System.Threading.SynchronizationContext.SetSynchronizationContext(null); + } + public void Dispose() => System.Threading.SynchronizationContext.SetSynchronizationContext(original); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs new file mode 100644 index 000000000000..ef27aa136902 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs @@ -0,0 +1,23 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal static class StringBuilderExtensions + { + /// + /// Extracts the buffered value and resets the buffer + /// + internal static string Extract(this StringBuilder builder) + { + var text = builder.ToString(); + + builder.Clear(); + + return text; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs new file mode 100644 index 000000000000..5de414c82f08 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs @@ -0,0 +1,61 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal static class TypeExtensions + { + internal static bool IsNullable(this Type type) => + type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>)); + + internal static Type GetOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) + { + + if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition() == openGenericInterfaceType) + { + return candidateType; + } + + // Check if it references it's own converter.... + + foreach (Type interfaceType in candidateType.GetInterfaces()) + { + if (interfaceType.IsGenericType + && interfaceType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) + { + return interfaceType; + } + } + + return null; + } + + // Author: Sebastian Good + // http://stackoverflow.com/questions/503263/how-to-determine-if-a-type-implements-a-specific-generic-interface-type + internal static bool ImplementsOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) + { + if (candidateType.Equals(openGenericInterfaceType)) + { + return true; + } + + if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) + { + return true; + } + + foreach (Type i in candidateType.GetInterfaces()) + { + if (i.IsGenericType && i.ImplementsOpenGenericInterface(openGenericInterfaceType)) + { + return true; + } + } + + return false; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Seperator.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Seperator.cs new file mode 100644 index 000000000000..f67f1176ab50 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Seperator.cs @@ -0,0 +1,11 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal static class Seperator + { + internal static readonly char[] Dash = { '-' }; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/TypeDetails.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/TypeDetails.cs new file mode 100644 index 000000000000..424b4e800f2a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/TypeDetails.cs @@ -0,0 +1,116 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + + + + internal class TypeDetails + { + private readonly Type info; + + internal TypeDetails(Type info) + { + this.info = info ?? throw new ArgumentNullException(nameof(info)); + } + + internal Type NonNullType { get; set; } + + internal object DefaultValue { get; set; } + + internal bool IsNullable { get; set; } + + internal bool IsList { get; set; } + + internal bool IsStringLike { get; set; } + + internal bool IsEnum => info.IsEnum; + + internal bool IsArray => info.IsArray; + + internal bool IsValueType => info.IsValueType; + + internal Type ElementType { get; set; } + + internal IJsonConverter JsonConverter { get; set; } + + #region Creation + + private static readonly ConcurrentDictionary cache = new ConcurrentDictionary(); + + internal static TypeDetails Get() => Get(typeof(T)); + + internal static TypeDetails Get(Type type) => cache.GetOrAdd(type, Create); + + private static TypeDetails Create(Type type) + { + var isGenericList = !type.IsPrimitive && type.ImplementsOpenGenericInterface(typeof(IList<>)); + var isList = !type.IsPrimitive && (isGenericList || typeof(IList).IsAssignableFrom(type)); + + var isNullable = type.IsNullable(); + + Type elementType; + + if (type.IsArray) + { + elementType = type.GetElementType(); + } + else if (isGenericList) + { + var iList = type.GetOpenGenericInterface(typeof(IList<>)); + + elementType = iList.GetGenericArguments()[0]; + } + else + { + elementType = null; + } + + var nonNullType = isNullable ? type.GetGenericArguments()[0] : type; + + var isStringLike = false; + + IJsonConverter converter; + + var jsonConverterAttribute = type.GetCustomAttribute(); + + if (jsonConverterAttribute != null) + { + converter = jsonConverterAttribute.Converter; + } + else if (nonNullType.IsEnum) + { + converter = new EnumConverter(nonNullType); + } + else if (JsonConverterFactory.Instances.TryGetValue(nonNullType, out converter)) + { + } + else if (StringLikeHelper.IsStringLike(nonNullType)) + { + isStringLike = true; + + converter = new StringLikeConverter(nonNullType); + } + + return new TypeDetails(nonNullType) { + NonNullType = nonNullType, + DefaultValue = type.IsValueType ? Activator.CreateInstance(type) : null, + IsNullable = isNullable, + IsList = isList, + IsStringLike = isStringLike, + ElementType = elementType, + JsonConverter = converter + }; + } + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/XHelper.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/XHelper.cs new file mode 100644 index 000000000000..804931d55af0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/XHelper.cs @@ -0,0 +1,75 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal static class XHelper + { + internal static JsonNode Create(JsonType type, TypeCode code, object value) + { + switch (type) + { + case JsonType.Binary : return new XBinary((byte[])value); + case JsonType.Boolean : return new JsonBoolean((bool)value); + case JsonType.Number : return new JsonNumber(value.ToString()); + case JsonType.String : return new JsonString((string)value); + } + + throw new Exception($"JsonType '{type}' does not have a fast conversion"); + } + + internal static bool TryGetElementType(TypeCode code, out JsonType type) + { + switch (code) + { + case TypeCode.Boolean : type = JsonType.Boolean; return true; + case TypeCode.Byte : type = JsonType.Number; return true; + case TypeCode.DateTime : type = JsonType.Date; return true; + case TypeCode.Decimal : type = JsonType.Number; return true; + case TypeCode.Double : type = JsonType.Number; return true; + case TypeCode.Empty : type = JsonType.Null; return true; + case TypeCode.Int16 : type = JsonType.Number; return true; + case TypeCode.Int32 : type = JsonType.Number; return true; + case TypeCode.Int64 : type = JsonType.Number; return true; + case TypeCode.SByte : type = JsonType.Number; return true; + case TypeCode.Single : type = JsonType.Number; return true; + case TypeCode.String : type = JsonType.String; return true; + case TypeCode.UInt16 : type = JsonType.Number; return true; + case TypeCode.UInt32 : type = JsonType.Number; return true; + case TypeCode.UInt64 : type = JsonType.Number; return true; + } + + type = default; + + return false; + } + + internal static JsonType GetElementType(TypeCode code) + { + switch (code) + { + case TypeCode.Boolean : return JsonType.Boolean; + case TypeCode.Byte : return JsonType.Number; + case TypeCode.DateTime : return JsonType.Date; + case TypeCode.Decimal : return JsonType.Number; + case TypeCode.Double : return JsonType.Number; + case TypeCode.Empty : return JsonType.Null; + case TypeCode.Int16 : return JsonType.Number; + case TypeCode.Int32 : return JsonType.Number; + case TypeCode.Int64 : return JsonType.Number; + case TypeCode.SByte : return JsonType.Number; + case TypeCode.Single : return JsonType.Number; + case TypeCode.String : return JsonType.String; + case TypeCode.UInt16 : return JsonType.Number; + case TypeCode.UInt32 : return JsonType.Number; + case TypeCode.UInt64 : return JsonType.Number; + default : return JsonType.Object; + } + + throw new Exception($"TypeCode '{code}' does not have a fast converter"); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipeline.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipeline.cs new file mode 100644 index 000000000000..12479b518f00 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipeline.cs @@ -0,0 +1,88 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System.Net.Http; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + using System.Collections; + using System.Linq; + + using GetEventData = System.Func; + using NextDelegate = System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; + + using SignalDelegate = System.Func, System.Threading.Tasks.Task>; + using GetParameterDelegate = System.Func, string, object>; + using SendAsyncStepDelegate = System.Func, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; + using PipelineChangeDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>; + using ModuleLoadPipelineDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; + using NewRequestPipelineDelegate = System.Action, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; + +/* + public class DelegateBasedEventListener : IEventListener + { + private EventListenerDelegate _listener; + public DelegateBasedEventListener(EventListenerDelegate listener) + { + _listener = listener; + } + public CancellationToken Token => CancellationToken.None; + public System.Action Cancel => () => { }; + + + public Task Signal(string id, CancellationToken token, GetEventData createMessage) + { + return _listener(id, token, () => createMessage()); + } + } +*/ + /// + /// This is a necessary extension to the SendAsyncFactory to support the 'generic' delegate format. + /// + public partial class SendAsyncFactory + { + /// + /// This translates a generic-defined delegate for a listener into one that fits our ISendAsync pattern. + /// (Provided to support out-of-module delegation for Azure Cmdlets) + /// + /// The Pipeline Step as a delegate + public SendAsyncFactory(SendAsyncStepDelegate step) => this.implementation = (request, listener, next) => + step( + request, + listener.Token, + listener.Cancel, + (id, token, getEventData) => listener.Signal(id, token, () => { + var data = EventDataConverter.ConvertFrom( getEventData() ) as EventData; + data.Id = id; + data.Cancel = listener.Cancel; + data.RequestMessage = request; + return data; + }), + (req, token, cancel, listenerDelegate) => next.SendAsync(req, listener)); + } + + public partial class HttpPipeline : ISendAsync + { + public HttpPipeline Append(SendAsyncStepDelegate item) + { + if (item != null) + { + Append(new SendAsyncFactory(item)); + } + return this; + } + + public HttpPipeline Prepend(SendAsyncStepDelegate item) + { + if (item != null) + { + Prepend(new SendAsyncFactory(item)); + } + return this; + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipelineMocking.ps1 b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipelineMocking.ps1 new file mode 100644 index 000000000000..4004315cd073 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipelineMocking.ps1 @@ -0,0 +1,110 @@ +$ErrorActionPreference = "Stop" + +# get the recording path +if (-not $TestRecordingFile) { + $TestRecordingFile = Join-Path $PSScriptRoot 'recording.json' +} + +# create the Http Pipeline Recorder +$Mock = New-Object -Type Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock $TestRecordingFile + +# set the recorder to the appropriate mode (default to 'live') +Write-Host -ForegroundColor Green "Running '$TestMode' mode..." +switch ($TestMode) { + 'record' { + Write-Host -ForegroundColor Green "Recording to $TestRecordingFile" + $Mock.SetRecord() + $null = erase -ea 0 $TestRecordingFile + } + 'playback' { + if (-not (Test-Path $TestRecordingFile)) { + Write-Host -fore:yellow "Recording file '$TestRecordingFile' is not present. Tests expecting recorded responses will fail" + } else { + Write-Host -ForegroundColor Green "Using recording $TestRecordingFile" + } + $Mock.SetPlayback() + $Mock.ForceResponseHeaders["Retry-After"] = "0"; + } + default: { + $Mock.SetLive() + } +} + +# overrides for Pester Describe/Context/It + +function Describe( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ValidateNotNull()] + [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") +) { + $Mock.PushDescription($Name) + try { + return pester\Describe -Name $Name -Tag $Tag -Fixture $fixture + } + finally { + $Mock.PopDescription() + } +} + +function Context( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ValidateNotNull()] + [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") +) { + $Mock.PushContext($Name) + try { + return pester\Context -Name $Name -Tag $Tag -Fixture $fixture + } + finally { + $Mock.PopContext() + } +} + +function It { + [CmdletBinding(DefaultParameterSetName = 'Normal')] + param( + [Parameter(Mandatory = $true, Position = 0)] + [string]$Name, + + [Parameter(Position = 1)] + [ScriptBlock] $Test = { }, + + [System.Collections.IDictionary[]] $TestCases, + + [Parameter(ParameterSetName = 'Pending')] + [Switch] $Pending, + + [Parameter(ParameterSetName = 'Skip')] + [Alias('Ignore')] + [Switch] $Skip + ) + $Mock.PushScenario($Name) + + try { + if ($skip) { + return pester\It -Name $Name -Test $Test -TestCases $TestCases -Skip + } + if ($pending) { + return pester\It -Name $Name -Test $Test -TestCases $TestCases -Pending + } + return pester\It -Name $Name -Test $Test -TestCases $TestCases + } + finally { + $null = $Mock.PopScenario() + } +} + +# set the HttpPipelineAppend for all the cmdlets +$PSDefaultParameterValues["*:HttpPipelinePrepend"] = $Mock diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IAssociativeArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IAssociativeArray.cs new file mode 100644 index 000000000000..2da68c20350c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IAssociativeArray.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +#define DICT_PROPERTIES +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + /// A subset of IDictionary that doesn't implement IEnumerable or IDictionary to work around PowerShell's aggressive formatter + public interface IAssociativeArray + { +#if DICT_PROPERTIES + System.Collections.Generic.IEnumerable Keys { get; } + System.Collections.Generic.IEnumerable Values { get; } + int Count { get; } +#endif + System.Collections.Generic.IDictionary AdditionalProperties { get; } + T this[string index] { get; set; } + void Add(string key, T value); + bool ContainsKey(string key); + bool Remove(string key); + bool TryGetValue(string key, out T value); + void Clear(); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IHeaderSerializable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IHeaderSerializable.cs new file mode 100644 index 000000000000..d124937f5115 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IHeaderSerializable.cs @@ -0,0 +1,14 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + public interface IHeaderSerializable + { + void ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/ISendAsync.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/ISendAsync.cs new file mode 100644 index 000000000000..c341ce1aee70 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/ISendAsync.cs @@ -0,0 +1,413 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System.Net.Http; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + using System.Collections; + using System.Linq; + using System; + + + /// + /// The interface for sending an HTTP request across the wire. + /// + public interface ISendAsync + { + Task SendAsync(HttpRequestMessage request, IEventListener callback); + } + + public class SendAsyncTerminalFactory : ISendAsyncTerminalFactory, ISendAsync + { + SendAsync implementation; + + public SendAsyncTerminalFactory(SendAsync implementation) => this.implementation = implementation; + public SendAsyncTerminalFactory(ISendAsync implementation) => this.implementation = implementation.SendAsync; + public ISendAsync Create() => this; + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback); + } + + public partial class SendAsyncFactory : ISendAsyncFactory + { + public class Sender : ISendAsync + { + internal ISendAsync next; + internal SendAsyncStep implementation; + + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback, next); + } + SendAsyncStep implementation; + + public SendAsyncFactory(SendAsyncStep implementation) => this.implementation = implementation; + public ISendAsync Create(ISendAsync next) => new Sender { next = next, implementation = implementation }; + + } + + public class HttpClientFactory : ISendAsyncTerminalFactory, ISendAsync + { + HttpClient client; + public HttpClientFactory() : this(new HttpClient()) + { + } + public HttpClientFactory(HttpClient client) => this.client = client; + public ISendAsync Create() => this; + + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, callback.Token); + } + + public interface ISendAsyncFactory + { + ISendAsync Create(ISendAsync next); + } + + public interface ISendAsyncTerminalFactory + { + ISendAsync Create(); + } + + public partial class HttpPipeline : ISendAsync + { + private const int DefaultMaxRetry = 3; + private ISendAsync pipeline; + private ISendAsyncTerminalFactory terminal; + private List steps = new List(); + + public HttpPipeline() : this(new HttpClientFactory()) + { + } + + public HttpPipeline(ISendAsyncTerminalFactory terminalStep) + { + if (terminalStep == null) + { + throw new System.ArgumentNullException(nameof(terminalStep), "Terminal Step Factory in HttpPipeline may not be null"); + } + TerminalFactory = terminalStep; + } + + /// + /// Returns an HttpPipeline with the current state of this pipeline. + /// + public HttpPipeline Clone() => new HttpPipeline(terminal) { steps = this.steps.ToList(), pipeline = this.pipeline }; + + private bool shouldRetry429(HttpResponseMessage response) + { + if (response.StatusCode == (System.Net.HttpStatusCode)429) + { + var retryAfter = response.Headers.RetryAfter; + if (retryAfter != null && retryAfter.Delta.HasValue) + { + return true; + } + } + return false; + } + /// + /// The step to handle 429 response with retry-after header. + /// + public async Task Retry429(HttpRequestMessage request, IEventListener callback, ISendAsync next) + { + int retryCount = int.MaxValue; + + try + { + try + { + retryCount = int.Parse(System.Environment.GetEnvironmentVariable("PS_HTTP_MAX_RETRIES_FOR_429")); + } + finally + { + retryCount = int.Parse(System.Environment.GetEnvironmentVariable("AZURE_PS_HTTP_MAX_RETRIES_FOR_429")); + } + } + catch (System.Exception) + { + //no action + } + var cloneRequest = await request.CloneWithContent(); + var response = await next.SendAsync(request, callback); + int count = 0; + while (shouldRetry429(response) && count++ < retryCount) + { + request = await cloneRequest.CloneWithContent(); + var retryAfter = response.Headers.RetryAfter; + await Task.Delay(retryAfter.Delta.Value, callback.Token); + await callback.Signal("Debug", $"Start to retry {count} time(s) on status code 429 after waiting {retryAfter.Delta.Value.TotalSeconds} seconds."); + response = await next.SendAsync(request, callback); + } + return response; + } + + private bool shouldRetryError(HttpResponseMessage response) + { + if (response.StatusCode >= System.Net.HttpStatusCode.InternalServerError) + { + if (response.StatusCode != System.Net.HttpStatusCode.NotImplemented && + response.StatusCode != System.Net.HttpStatusCode.HttpVersionNotSupported) + { + return true; + } + } + else if (response.StatusCode == System.Net.HttpStatusCode.RequestTimeout) + { + return true; + } + else if (response.StatusCode == (System.Net.HttpStatusCode)429 && response.Headers.RetryAfter == null) + { + return true; + } + return false; + } + + /// + /// Returns true if status code in HttpRequestExceptionWithStatus exception is greater + /// than or equal to 500 and not NotImplemented (501) or HttpVersionNotSupported (505). + /// Or it's 429 (TOO MANY REQUESTS) without Retry-After header. + /// + public async Task RetryError(HttpRequestMessage request, IEventListener callback, ISendAsync next) + { + int retryCount = DefaultMaxRetry; + + try + { + try + { + retryCount = int.Parse(System.Environment.GetEnvironmentVariable("PS_HTTP_MAX_RETRIES")); + } + finally + { + retryCount = int.Parse(System.Environment.GetEnvironmentVariable("AZURE_PS_HTTP_MAX_RETRIES")); + } + } + catch (System.Exception) + { + //no action + } + var cloneRequest = await request.CloneWithContent(); + var response = await next.SendAsync(request, callback); + int count = 0; + while (shouldRetryError(response) && count++ < retryCount) + { + await callback.Signal("Debug", $"Start to retry {count} time(s) on status code {response.StatusCode}"); + request = await cloneRequest.CloneWithContent(); + response = await next.SendAsync(request, callback); + } + return response; + } + + public ISendAsyncTerminalFactory TerminalFactory + { + get => terminal; + set + { + if (value == null) + { + throw new System.ArgumentNullException("TerminalFactory in HttpPipeline may not be null"); + } + terminal = value; + } + } + + public ISendAsync Pipeline + { + get + { + // if the pipeline has been created and not invalidated, return it. + if (this.pipeline != null) + { + return this.pipeline; + } + + // create the pipeline from scratch. + var next = terminal.Create(); + if (Convert.ToBoolean(@"true")) + { + next = (new SendAsyncFactory(Retry429)).Create(next) ?? next; + next = (new SendAsyncFactory(RetryError)).Create(next) ?? next; + } + foreach (var factory in steps) + { + // skip factories that return null. + next = factory.Create(next) ?? next; + } + return this.pipeline = next; + } + } + + public int Count => steps.Count; + + public HttpPipeline Prepend(ISendAsyncFactory item) + { + if (item != null) + { + steps.Add(item); + pipeline = null; + } + return this; + } + + public HttpPipeline Append(SendAsyncStep item) + { + if (item != null) + { + Append(new SendAsyncFactory(item)); + } + return this; + } + + public HttpPipeline Prepend(SendAsyncStep item) + { + if (item != null) + { + Prepend(new SendAsyncFactory(item)); + } + return this; + } + public HttpPipeline Append(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Append(new SendAsyncFactory(item)); + } + } + return this; + } + + public HttpPipeline Prepend(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Prepend(new SendAsyncFactory(item)); + } + } + return this; + } + + public HttpPipeline Append(ISendAsyncFactory item) + { + if (item != null) + { + steps.Insert(0, item); + pipeline = null; + } + return this; + } + public HttpPipeline Prepend(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Prepend(item); + } + } + return this; + } + + public HttpPipeline Append(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Append(item); + } + } + return this; + } + + // you can use this as the ISendAsync Implementation + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => Pipeline.SendAsync(request, callback); + } + + internal static partial class Extensions + { + internal static HttpRequestMessage CloneAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + using (original) + { + return original.Clone(requestUri, method); + } + } + + internal static Task CloneWithContentAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + using (original) + { + return original.CloneWithContent(requestUri, method); + } + } + + /// + /// Clones an HttpRequestMessage (without the content) + /// + /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// + /// A clone of the HttpRequestMessage + internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + var clone = new HttpRequestMessage + { + Method = method ?? original.Method, + RequestUri = requestUri ?? original.RequestUri, + Version = original.Version, + }; + + foreach (KeyValuePair prop in original.Properties) + { + clone.Properties.Add(prop); + } + + foreach (KeyValuePair> header in original.Headers) + { + /* + **temporarily skip cloning telemetry related headers** + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + */ + if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) + { + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + } + } + + return clone; + } + + /// + /// Clones an HttpRequestMessage (including the content stream and content headers) + /// + /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// + /// A clone of the HttpRequestMessage + internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + var clone = original.Clone(requestUri, method); + var stream = new System.IO.MemoryStream(); + if (original.Content != null) + { + await original.Content.CopyToAsync(stream).ConfigureAwait(false); + stream.Position = 0; + clone.Content = new StreamContent(stream); + if (original.Content.Headers != null) + { + foreach (var h in original.Content.Headers) + { + clone.Content.Headers.Add(h.Key, h.Value); + } + } + } + return clone; + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InfoAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InfoAttribute.cs new file mode 100644 index 000000000000..5f9c28342502 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InfoAttribute.cs @@ -0,0 +1,38 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System; + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class)] + public class InfoAttribute : Attribute + { + public bool Required { get; set; } = false; + public bool ReadOnly { get; set; } = false; + public bool Read { get; set; } = true; + public bool Create { get; set; } = true; + public bool Update { get; set; } = true; + public Type[] PossibleTypes { get; set; } = new Type[0]; + public string Description { get; set; } = ""; + public string SerializedName { get; set; } = ""; + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class CompleterInfoAttribute : Attribute + { + public string Script { get; set; } = ""; + public string Name { get; set; } = ""; + public string Description { get; set; } = ""; + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class DefaultInfoAttribute : Attribute + { + public string Script { get; set; } = ""; + public string Name { get; set; } = ""; + public string Description { get; set; } = ""; + public string SetCondition { get; set; } = ""; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InputHandler.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InputHandler.cs new file mode 100644 index 000000000000..df7ffda0ccc2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InputHandler.cs @@ -0,0 +1,22 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets +{ + public abstract class InputHandler + { + protected InputHandler NextHandler = null; + + public void SetNextHandler(InputHandler nextHandler) + { + this.NextHandler = nextHandler; + } + + public abstract void Process(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext context); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Iso/IsoDate.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Iso/IsoDate.cs new file mode 100644 index 000000000000..f665648c2f62 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Iso/IsoDate.cs @@ -0,0 +1,214 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal struct IsoDate + { + internal int Year { get; set; } // 0-3000 + + internal int Month { get; set; } // 1-12 + + internal int Day { get; set; } // 1-31 + + internal int Hour { get; set; } // 0-24 + + internal int Minute { get; set; } // 0-60 (60 is a special case) + + internal int Second { get; set; } // 0-60 (60 is used for leap seconds) + + internal double Millisecond { get; set; } // 0-999.9... + + internal TimeSpan Offset { get; set; } + + internal DateTimeKind Kind { get; set; } + + internal TimeSpan TimeOfDay => new TimeSpan(Hour, Minute, Second); + + internal DateTime ToDateTime() + { + if (Kind == DateTimeKind.Utc || Offset == TimeSpan.Zero) + { + return new DateTime(Year, Month, Day, Hour, Minute, Second, (int)Millisecond, DateTimeKind.Utc); + } + + return ToDateTimeOffset().DateTime; + } + + internal DateTimeOffset ToDateTimeOffset() + { + return new DateTimeOffset( + Year, + Month, + Day, + Hour, + Minute, + Second, + (int)Millisecond, + Offset + ); + } + + internal DateTime ToUtcDateTime() + { + return ToDateTimeOffset().UtcDateTime; + } + + public override string ToString() + { + var sb = new StringBuilder(); + + // yyyy-MM-dd + sb.Append($"{Year}-{Month:00}-{Day:00}"); + + if (TimeOfDay > new TimeSpan(0)) + { + sb.Append($"T{Hour:00}:{Minute:00}"); + + if (TimeOfDay.Seconds > 0) + { + sb.Append($":{Second:00}"); + } + } + + if (Offset.Ticks == 0) + { + sb.Append('Z'); // UTC + } + else + { + if (Offset.Ticks >= 0) + { + sb.Append('+'); + } + + sb.Append($"{Offset.Hours:00}:{Offset.Minutes:00}"); + } + + return sb.ToString(); + } + + internal static IsoDate FromDateTimeOffset(DateTimeOffset date) + { + return new IsoDate { + Year = date.Year, + Month = date.Month, + Day = date.Day, + Hour = date.Hour, + Minute = date.Minute, + Second = date.Second, + Offset = date.Offset, + Kind = date.Offset == TimeSpan.Zero ? DateTimeKind.Utc : DateTimeKind.Unspecified + }; + } + + private static readonly char[] timeSeperators = { ':', '.' }; + + internal static IsoDate Parse(string text) + { + var tzIndex = -1; + var timeIndex = text.IndexOf('T'); + + var builder = new IsoDate { Day = 1, Month = 1 }; + + // TODO: strip the time zone offset off the end + string dateTime = text; + string timeZone = null; + + if (dateTime.IndexOf('Z') > -1) + { + tzIndex = dateTime.LastIndexOf('Z'); + + builder.Kind = DateTimeKind.Utc; + } + else if (dateTime.LastIndexOf('+') > 10) + { + tzIndex = dateTime.LastIndexOf('+'); + } + else if (dateTime.LastIndexOf('-') > 10) + { + tzIndex = dateTime.LastIndexOf('-'); + } + + if (tzIndex > -1) + { + timeZone = dateTime.Substring(tzIndex); + dateTime = dateTime.Substring(0, tzIndex); + } + + string date = (timeIndex == -1) ? dateTime : dateTime.Substring(0, timeIndex); + + var dateParts = date.Split(Seperator.Dash); // '-' + + for (int i = 0; i < dateParts.Length; i++) + { + var part = dateParts[i]; + + switch (i) + { + case 0: builder.Year = int.Parse(part); break; + case 1: builder.Month = int.Parse(part); break; + case 2: builder.Day = int.Parse(part); break; + } + } + + if (timeIndex > -1) + { + string[] timeParts = dateTime.Substring(timeIndex + 1).Split(timeSeperators); + + for (int i = 0; i < timeParts.Length; i++) + { + var part = timeParts[i]; + + switch (i) + { + case 0: builder.Hour = int.Parse(part); break; + case 1: builder.Minute = int.Parse(part); break; + case 2: builder.Second = int.Parse(part); break; + case 3: builder.Millisecond = double.Parse("0." + part) * 1000; break; + } + } + } + + if (timeZone != null && timeZone != "Z") + { + var hours = int.Parse(timeZone.Substring(1, 2)); + var minutes = int.Parse(timeZone.Substring(4, 2)); + + if (timeZone[0] == '-') + { + hours = -hours; + minutes = -minutes; + } + + builder.Offset = new TimeSpan(hours, minutes, 0); + } + + return builder; + } + } + + /* + YYYY # eg 1997 + YYYY-MM # eg 1997-07 + YYYY-MM-DD # eg 1997-07-16 + YYYY-MM-DDThh:mmTZD # eg 1997-07-16T19:20+01:00 + YYYY-MM-DDThh:mm:ssTZD # eg 1997-07-16T19:20:30+01:00 + YYYY-MM-DDThh:mm:ss.sTZD # eg 1997-07-16T19:20:30.45+01:00 + + where: + + YYYY = four-digit year + MM = two-digit month (01=January, etc.) + DD = two-digit day of month (01 through 31) + hh = two digits of hour (00 through 23) (am/pm NOT allowed) + mm = two digits of minute (00 through 59) + ss = two digits of second (00 through 59) + s = one or more digits representing a decimal fraction of a second + TZD = time zone designator (Z or +hh:mm or -hh:mm) + */ +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/JsonType.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/JsonType.cs new file mode 100644 index 000000000000..4de627d92e62 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/JsonType.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal enum JsonType + { + Null = 0, + Object = 1, + Array = 2, + Binary = 3, + Boolean = 4, + Date = 5, + Number = 6, + String = 7 + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttribute.cs new file mode 100644 index 000000000000..684145ea2294 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttribute.cs @@ -0,0 +1,353 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.generated.runtime.Properties; + using System; + using System.Collections.Generic; + using System.Globalization; + using System.Linq; + using System.Management.Automation; + using System.Text; + + [AttributeUsage(AttributeTargets.All)] + public class GenericBreakingChangeAttribute : Attribute + { + private string _message; + //A description of what the change is about, non mandatory + public string ChangeDescription { get; set; } = null; + + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.FrontDoor" : @""; + + //The version the change is effective from, non mandatory + public string DeprecateByVersion { get; } + public string DeprecateByAzVersion { get; } + + //The date on which the change comes in effect + public DateTime ChangeInEfectByDate { get; } + public bool ChangeInEfectByDateSet { get; } = false; + + //Old way of calling the cmdlet + public string OldWay { get; set; } + //New way fo calling the cmdlet + public string NewWay { get; set; } + + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion) + { + _message = message; + this.DeprecateByAzVersion = deprecateByAzVersion; + this.DeprecateByVersion = deprecateByVersion; + } + + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) + { + _message = message; + this.DeprecateByVersion = deprecateByVersion; + this.DeprecateByAzVersion = deprecateByAzVersion; + + if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.ChangeInEfectByDate = result; + this.ChangeInEfectByDateSet = true; + } + } + + public DateTime getInEffectByDate() + { + return this.ChangeInEfectByDate.Date; + } + + + /** + * This function prints out the breaking change message for the attribute on the cmdline + * */ + public void PrintCustomAttributeInfo(Action writeOutput) + { + + if (!GetAttributeSpecificMessage().StartsWith(Environment.NewLine)) + { + writeOutput(Environment.NewLine); + } + writeOutput(string.Format(Resources.BreakingChangesAttributesDeclarationMessage, GetAttributeSpecificMessage())); + + + if (!string.IsNullOrWhiteSpace(ChangeDescription)) + { + writeOutput(string.Format(Resources.BreakingChangesAttributesChangeDescriptionMessage, this.ChangeDescription)); + } + + if (ChangeInEfectByDateSet) + { + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); + } + + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); + + if (OldWay != null && NewWay != null) + { + writeOutput(string.Format(Resources.BreakingChangesAttributesUsageChangeMessageConsole, OldWay, NewWay)); + } + } + + public virtual bool IsApplicableToInvocation(InvocationInfo invocation) + { + return true; + } + + protected virtual string GetAttributeSpecificMessage() + { + return _message; + } + } + + [AttributeUsage(AttributeTargets.All)] + public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute + { + + public string ReplacementCmdletName { get; set; } + + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) + { + } + + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) + { + } + + protected override string GetAttributeSpecificMessage() + { + if (string.IsNullOrWhiteSpace(ReplacementCmdletName)) + { + return Resources.BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement; + } + else + { + return string.Format(Resources.BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement, ReplacementCmdletName); + } + } + } + + [AttributeUsage(AttributeTargets.All)] + public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute + { + public string[] ChangedParameterSet { set; get; } + + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) + { + ChangedParameterSet = changedParameterSet; + } + + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) + { + ChangedParameterSet = changedParameterSet; + } + + protected override string GetAttributeSpecificMessage() + { + + return Resources.BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement; + + } + + public bool IsApplicableToInvocation(InvocationInfo invocation, string parameterSetName) + { + if (ChangedParameterSet != null) + return ChangedParameterSet.Contains(parameterSetName); + return false; + } + + } + + [AttributeUsage(AttributeTargets.All)] + public class PreviewMessageAttribute : Attribute + { + public string _message; + + public DateTime EstimatedGaDate { get; } + + public bool IsEstimatedGaDateSet { get; } = false; + + + public PreviewMessageAttribute() + { + this._message = Resources.PreviewCmdletMessage; + } + + public PreviewMessageAttribute(string message) + { + this._message = string.IsNullOrEmpty(message) ? Resources.PreviewCmdletMessage : message; + } + + public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this(message) + { + if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.EstimatedGaDate = result; + this.IsEstimatedGaDateSet = true; + } + } + + public void PrintCustomAttributeInfo(Action writeOutput) + { + writeOutput(this._message); + + if (IsEstimatedGaDateSet) + { + writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); + } + } + + public virtual bool IsApplicableToInvocation(InvocationInfo invocation) + { + return true; + } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute + { + public string NameOfParameterChanging { get; } + + public string ReplaceMentCmdletParameterName { get; set; } = null; + + public bool IsBecomingMandatory { get; set; } = false; + + public String OldParamaterType { get; set; } + + public String NewParameterType { get; set; } + + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) + { + this.NameOfParameterChanging = nameOfParameterChanging; + } + + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) + { + this.NameOfParameterChanging = nameOfParameterChanging; + } + + protected override string GetAttributeSpecificMessage() + { + StringBuilder message = new StringBuilder(); + if (!string.IsNullOrWhiteSpace(ReplaceMentCmdletParameterName)) + { + if (IsBecomingMandatory) + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterReplacedMandatory, NameOfParameterChanging, ReplaceMentCmdletParameterName)); + } + else + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterReplaced, NameOfParameterChanging, ReplaceMentCmdletParameterName)); + } + } + else + { + if (IsBecomingMandatory) + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterMandatoryNow, NameOfParameterChanging)); + } + else + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterChanging, NameOfParameterChanging)); + } + } + + //See if the type of the param is changing + if (OldParamaterType != null && !string.IsNullOrWhiteSpace(NewParameterType)) + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterTypeChange, OldParamaterType, NewParameterType)); + } + return message.ToString(); + } + + /// + /// See if the bound parameters contain the current parameter, if they do + /// then the attribbute is applicable + /// If the invocationInfo is null we return true + /// + /// + /// bool + public override bool IsApplicableToInvocation(InvocationInfo invocationInfo) + { + bool? applicable = invocationInfo == null ? true : invocationInfo.BoundParameters?.Keys?.Contains(this.NameOfParameterChanging); + return applicable.HasValue ? applicable.Value : false; + } + } + + [AttributeUsage(AttributeTargets.All)] + public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute + { + public string DeprecatedCmdLetOutputType { get; } + + //This is still a String instead of a Type as this + //might be undefined at the time of adding the attribute + public string ReplacementCmdletOutputType { get; set; } + + public string[] DeprecatedOutputProperties { get; set; } + + public string[] NewOutputProperties { get; set; } + + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) + { + this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; + } + + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) + { + this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; + } + + protected override string GetAttributeSpecificMessage() + { + StringBuilder message = new StringBuilder(); + + //check for the deprecation scenario + if (string.IsNullOrWhiteSpace(ReplacementCmdletOutputType) && NewOutputProperties == null && DeprecatedOutputProperties == null && string.IsNullOrWhiteSpace(ChangeDescription)) + { + message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputTypeDeprecated, DeprecatedCmdLetOutputType)); + } + else + { + if (!string.IsNullOrWhiteSpace(ReplacementCmdletOutputType)) + { + message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputChange1, DeprecatedCmdLetOutputType, ReplacementCmdletOutputType)); + } + else + { + message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputChange2, DeprecatedCmdLetOutputType)); + } + + if (DeprecatedOutputProperties != null && DeprecatedOutputProperties.Length > 0) + { + message.Append(Resources.BreakingChangesAttributesCmdLetOutputPropertiesRemoved); + foreach (string property in DeprecatedOutputProperties) + { + message.Append(" '" + property + "'"); + } + } + + if (NewOutputProperties != null && NewOutputProperties.Length > 0) + { + message.Append(Resources.BreakingChangesAttributesCmdLetOutputPropertiesAdded); + foreach (string property in NewOutputProperties) + { + message.Append(" '" + property + "'"); + } + } + } + return message.ToString(); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttributeHelper.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttributeHelper.cs new file mode 100644 index 000000000000..177cedff61ee --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttributeHelper.cs @@ -0,0 +1,184 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.generated.runtime.Properties; + using System; + using System.Collections.Generic; + using System.Linq; + using System.Management.Automation; + using System.Reflection; + using System.Text; + using System.Threading.Tasks; + public class MessageAttributeHelper + { + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings"; + public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings"; + + /** + * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) + * And reads all the deprecation attributes attached to it + * Prints a message on the cmdline For each of the attribute found + * + * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, + * We only process the Parameter beaking change attributes attached only params listed in this list (if present) + * */ + public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet, bool showPreviewMessage = true) + { + bool supressWarningOrError = false; + + try + { + supressWarningOrError = bool.Parse(System.Environment.GetEnvironmentVariable(SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME)); + } + catch (Exception) + { + //no action + } + + if (supressWarningOrError) + { + //Do not process the attributes at runtime... The env variable to override the warning messages is set + return; + } + if (IsAzure && invocationInfo.BoundParameters.ContainsKey("DefaultProfile")) + { + psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); + } + + ProcessBreakingChangeAttributesAtRuntime(commandInfo, invocationInfo, parameterSet, psCmdlet); + + } + + private static void ProcessBreakingChangeAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { + List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); + StringBuilder sb = new StringBuilder(); + Action appendAttributeMessage = (string s) => sb.Append(s); + + if (attributes != null && attributes.Count > 0) + { + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); + + foreach (GenericBreakingChangeAttribute attribute in attributes) + { + attribute.PrintCustomAttributeInfo(appendAttributeMessage); + } + + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); + + psCmdlet.WriteWarning(sb.ToString()); + } + } + + + public static void ProcessPreviewMessageAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { + List previewAttributes = new List(GetAllPreviewAttributesInType(commandInfo, invocationInfo)); + StringBuilder sb = new StringBuilder(); + Action appendAttributeMessage = (string s) => sb.Append(s); + + if (previewAttributes != null && previewAttributes.Count > 0) + { + foreach (PreviewMessageAttribute attribute in previewAttributes) + { + attribute.PrintCustomAttributeInfo(appendAttributeMessage); + } + psCmdlet.WriteWarning(sb.ToString()); + } + } + + /** + * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) + * And returns all the deprecation attributes attached to it + * + * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, + * We only process the Parameter beaking change attributes attached only params listed in this list (if present) + **/ + private static IEnumerable GetAllBreakingChangeAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet) + { + List attributeList = new List(); + + if (commandInfo.GetType() == typeof(CmdletInfo)) + { + var type = ((CmdletInfo)commandInfo).ImplementingType; + attributeList.AddRange(type.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); + + foreach (MethodInfo m in type.GetRuntimeMethods()) + { + attributeList.AddRange((m.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast())); + } + + foreach (FieldInfo f in type.GetRuntimeFields()) + { + attributeList.AddRange(f.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); + } + + foreach (PropertyInfo p in type.GetRuntimeProperties()) + { + attributeList.AddRange(p.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); + } + } + else if (commandInfo.GetType() == typeof(FunctionInfo)) + { + attributeList.AddRange(((FunctionInfo)commandInfo).ScriptBlock.Attributes.Where(e => typeof(GenericBreakingChangeAttribute).IsAssignableFrom(e.GetType())).Cast()); + foreach (var parameter in ((FunctionInfo)commandInfo).Parameters) + { + attributeList.AddRange(parameter.Value.Attributes.Where(e => typeof(GenericBreakingChangeAttribute).IsAssignableFrom(e.GetType())).Cast()); + } + } + return invocationInfo == null ? attributeList : attributeList.Where(e => e.GetType() == typeof(ParameterSetBreakingChangeAttribute) ? ((ParameterSetBreakingChangeAttribute)e).IsApplicableToInvocation(invocationInfo, parameterSet) : e.IsApplicableToInvocation(invocationInfo)); + } + + public static bool ContainsPreviewAttribute(CommandInfo commandInfo, InvocationInfo invocationInfo) + { + return GetAllPreviewAttributesInType(commandInfo, invocationInfo)?.Count() > 0; + } + + private static IEnumerable GetAllPreviewAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo) + { + List attributeList = new List(); + if (commandInfo.GetType() == typeof(CmdletInfo)) + { + var type = ((CmdletInfo)commandInfo).ImplementingType; + attributeList.AddRange(type.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); + + foreach (MethodInfo m in type.GetRuntimeMethods()) + { + attributeList.AddRange((m.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast())); + } + + foreach (FieldInfo f in type.GetRuntimeFields()) + { + attributeList.AddRange(f.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); + } + + foreach (PropertyInfo p in type.GetRuntimeProperties()) + { + attributeList.AddRange(p.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); + } + } + else if (commandInfo.GetType() == typeof(FunctionInfo)) + { + attributeList.AddRange(((FunctionInfo)commandInfo).ScriptBlock.Attributes.Where(e => typeof(PreviewMessageAttribute).IsAssignableFrom(e.GetType())).Cast()); + foreach (var parameter in ((FunctionInfo)commandInfo).Parameters) + { + attributeList.AddRange(parameter.Value.Attributes.Where(e => typeof(PreviewMessageAttribute).IsAssignableFrom(e.GetType())).Cast()); + } + } + return invocationInfo == null ? attributeList : attributeList.Where(e => e.IsApplicableToInvocation(invocationInfo)); + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Method.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Method.cs new file mode 100644 index 000000000000..34cdd7d492f9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Method.cs @@ -0,0 +1,19 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + internal static class Method + { + internal static System.Net.Http.HttpMethod Get = System.Net.Http.HttpMethod.Get; + internal static System.Net.Http.HttpMethod Put = System.Net.Http.HttpMethod.Put; + internal static System.Net.Http.HttpMethod Head = System.Net.Http.HttpMethod.Head; + internal static System.Net.Http.HttpMethod Post = System.Net.Http.HttpMethod.Post; + internal static System.Net.Http.HttpMethod Delete = System.Net.Http.HttpMethod.Delete; + internal static System.Net.Http.HttpMethod Options = System.Net.Http.HttpMethod.Options; + internal static System.Net.Http.HttpMethod Trace = System.Net.Http.HttpMethod.Trace; + internal static System.Net.Http.HttpMethod Patch = new System.Net.Http.HttpMethod("PATCH"); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonMember.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonMember.cs new file mode 100644 index 000000000000..007029d0e795 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonMember.cs @@ -0,0 +1,83 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Reflection; +using System.Runtime.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + + + internal sealed class JsonMember + { + private readonly TypeDetails type; + + private readonly Func getter; + private readonly Action setter; + + internal JsonMember(PropertyInfo property, int defaultOrder) + { + getter = property.GetValue; + setter = property.SetValue; + + var dataMember = property.GetCustomAttribute(); + + Name = dataMember?.Name ?? property.Name; + Order = dataMember?.Order ?? defaultOrder; + EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; + + this.type = TypeDetails.Get(property.PropertyType); + + CanRead = property.CanRead; + } + + internal JsonMember(FieldInfo field, int defaultOrder) + { + getter = field.GetValue; + setter = field.SetValue; + + var dataMember = field.GetCustomAttribute(); + + Name = dataMember?.Name ?? field.Name; + Order = dataMember?.Order ?? defaultOrder; + EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; + + this.type = TypeDetails.Get(field.FieldType); + + CanRead = true; + } + + internal string Name { get; } + + internal int Order { get; } + + internal TypeDetails TypeDetails => type; + + internal Type Type => type.NonNullType; + + internal bool IsList => type.IsList; + + // Arrays, Sets, ... + internal Type ElementType => type.ElementType; + + internal IJsonConverter Converter => type.JsonConverter; + + internal bool EmitDefaultValue { get; } + + internal bool IsStringLike => type.IsStringLike; + + internal object DefaultValue => type.DefaultValue; + + internal bool CanRead { get; } + + #region Helpers + + internal object GetValue(object instance) => getter(instance); + + internal void SetValue(object instance, object value) => setter(instance, value); + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModel.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModel.cs new file mode 100644 index 000000000000..fe19b0bd6099 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModel.cs @@ -0,0 +1,89 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal class JsonModel + { + private Dictionary map; + private readonly object _sync = new object(); + + private JsonModel(Type type, List members) + { + Type = type ?? throw new ArgumentNullException(nameof(type)); + Members = members ?? throw new ArgumentNullException(nameof(members)); + } + + internal string Name => Type.Name; + + internal Type Type { get; } + + internal List Members { get; } + + internal JsonMember this[string name] + { + get + { + if (map == null) + { + lock (_sync) + { + if (map == null) + { + map = new Dictionary(); + + foreach (JsonMember m in Members) + { + map[m.Name.ToLower()] = m; + } + } + } + } + + + map.TryGetValue(name.ToLower(), out JsonMember member); + + return member; + } + } + + internal static JsonModel FromType(Type type) + { + var members = new List(); + + int i = 0; + + // BindingFlags.Instance | BindingFlags.Public + + foreach (var member in type.GetFields()) + { + if (member.IsStatic) continue; + + if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; + + members.Add(new JsonMember(member, i)); + + i++; + } + + foreach (var member in type.GetProperties(BindingFlags.Public | BindingFlags.Instance)) + { + if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; + + members.Add(new JsonMember(member, i)); + + i++; + } + + members.Sort((a, b) => a.Order.CompareTo(b.Order)); // inline sort + + return new JsonModel(type, members); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModelCache.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModelCache.cs new file mode 100644 index 000000000000..33f61c65f7f8 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModelCache.cs @@ -0,0 +1,19 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Runtime.CompilerServices; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal static class JsonModelCache + { + private static readonly ConditionalWeakTable cache + = new ConditionalWeakTable(); + + internal static JsonModel Get(Type type) => cache.GetValue(type, Create); + + private static JsonModel Create(Type type) => JsonModel.FromType(type); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs new file mode 100644 index 000000000000..d4fefd6c90cc --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public abstract partial class JsonArray : JsonNode, IEnumerable + { + internal override JsonType Type => JsonType.Array; + + internal abstract JsonType? ElementType { get; } + + public abstract int Count { get; } + + internal virtual bool IsSet => false; + + internal bool IsEmpty => Count == 0; + + #region IEnumerable + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + #endregion + + #region Static Helpers + + internal static JsonArray Create(short[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(int[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(long[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(decimal[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(float[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(string[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(XBinary[] values) + => new XImmutableArray(values); + + #endregion + + internal static new JsonArray Parse(string text) + => (JsonArray)JsonNode.Parse(text); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs new file mode 100644 index 000000000000..4e4f510c222c --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs @@ -0,0 +1,62 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal sealed class XImmutableArray : JsonArray, IEnumerable + { + private readonly T[] values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XImmutableArray(T[] values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + public override JsonNode this[int index] => + XHelper.Create(elementType, elementCode, values[index]); + + internal override JsonType? ElementType => elementType; + + public override int Count => values.Length; + + public bool IsReadOnly => true; + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + + #region Static Constructor + + internal XImmutableArray Create(T[] items) + { + return new XImmutableArray(items); + } + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XList.cs new file mode 100644 index 000000000000..3d8fc4893b61 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XList.cs @@ -0,0 +1,64 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal sealed class XList : JsonArray, IEnumerable + { + private readonly IList values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XList(IList values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + public override JsonNode this[int index] => + XHelper.Create(elementType, elementCode, values[index]); + + internal override JsonType? ElementType => elementType; + + public override int Count => values.Count; + + public bool IsReadOnly => values.IsReadOnly; + + #region IList + + public void Add(T value) + { + values.Add(value); + } + + public bool Contains(T value) => values.Contains(value); + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs new file mode 100644 index 000000000000..a7189e3a0f10 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs @@ -0,0 +1,73 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed partial class XNodeArray : JsonArray, ICollection + { + private readonly List items; + + internal XNodeArray() + { + items = new List(); + } + + internal XNodeArray(params JsonNode[] values) + { + items = new List(values); + } + + internal XNodeArray(System.Collections.Generic.List values) + { + items = new List(values); + } + + public override JsonNode this[int index] => items[index]; + + internal override JsonType? ElementType => null; + + public bool IsReadOnly => false; + + public override int Count => items.Count; + + #region ICollection Members + + public void Add(JsonNode item) + { + items.Add(item); + } + + void ICollection.Clear() + { + items.Clear(); + } + + public bool Contains(JsonNode item) => items.Contains(item); + + void ICollection.CopyTo(JsonNode[] array, int arrayIndex) + { + items.CopyTo(array, arrayIndex); + } + + public bool Remove(JsonNode item) + { + return items.Remove(item); + } + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XSet.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XSet.cs new file mode 100644 index 000000000000..2d56e397737e --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XSet.cs @@ -0,0 +1,60 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal sealed class XSet : JsonArray, IEnumerable + { + private readonly HashSet values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XSet(IEnumerable values) + : this(new HashSet(values)) + { } + + internal XSet(HashSet values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + internal override JsonType Type => JsonType.Array; + + internal override JsonType? ElementType => elementType; + + public bool IsReadOnly => true; + + public override int Count => values.Count; + + internal override bool IsSet => true; + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + + internal HashSet AsHashSet() => values; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonBoolean.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonBoolean.cs new file mode 100644 index 000000000000..62dad47439bf --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonBoolean.cs @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal sealed partial class JsonBoolean : JsonNode + { + internal static readonly JsonBoolean True = new JsonBoolean(true); + internal static readonly JsonBoolean False = new JsonBoolean(false); + + internal JsonBoolean(bool value) + { + Value = value; + } + + internal bool Value { get; } + + internal override JsonType Type => JsonType.Boolean; + + internal static new JsonBoolean Parse(string text) + { + switch (text) + { + case "false": return False; + case "true": return True; + + default: throw new ArgumentException($"Expected true or false. Was {text}."); + } + } + + #region Implicit Casts + + public static implicit operator bool(JsonBoolean data) => data.Value; + + public static implicit operator JsonBoolean(bool data) => new JsonBoolean(data); + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonDate.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonDate.cs new file mode 100644 index 000000000000..26a5cd0a12f1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonDate.cs @@ -0,0 +1,173 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + + + internal sealed partial class JsonDate : JsonNode, IEquatable, IComparable + { + internal static bool AssumeUtcWhenKindIsUnspecified = true; + + private readonly DateTimeOffset value; + + internal JsonDate(DateTime value) + { + if (value.Kind == DateTimeKind.Unspecified && AssumeUtcWhenKindIsUnspecified) + { + value = DateTime.SpecifyKind(value, DateTimeKind.Utc); + } + + this.value = value; + } + + internal JsonDate(DateTimeOffset value) + { + this.value = value; + } + + internal override JsonType Type => JsonType.Date; + + #region Helpers + + internal DateTimeOffset ToDateTimeOffset() + { + return value; + } + + internal DateTime ToDateTime() + { + if (value.Offset == TimeSpan.Zero) + { + return value.UtcDateTime; + } + + return value.DateTime; + } + + internal DateTime ToUtcDateTime() => value.UtcDateTime; + + internal int ToUnixTimeSeconds() + { + return (int)value.ToUnixTimeSeconds(); + } + + internal long ToUnixTimeMilliseconds() + { + return (int)value.ToUnixTimeMilliseconds(); + } + + internal string ToIsoString() + { + return IsoDate.FromDateTimeOffset(value).ToString(); + } + + #endregion + + public override string ToString() + { + return ToIsoString(); + } + + internal static new JsonDate Parse(string text) + { + if (text == null) throw new ArgumentNullException(nameof(text)); + + // TODO support: unixtimeseconds.partialseconds + + if (text.Length > 4 && _IsNumber(text)) // UnixTime + { + var date = DateTimeOffset.FromUnixTimeSeconds(long.Parse(text)); + + return new JsonDate(date); + } + else if (text.Length <= 4 || text[4] == '-') // ISO: 2012- + { + return new JsonDate(IsoDate.Parse(text).ToDateTimeOffset()); + } + else + { + // NOT ISO ENCODED + // "Thu, 5 Apr 2012 16:59:01 +0200", + return new JsonDate(DateTimeOffset.Parse(text)); + } + } + + private static bool _IsNumber(string text) + { + foreach (var c in text) + { + if (!char.IsDigit(c)) return false; + } + + return true; + } + + internal static JsonDate FromUnixTime(int seconds) + { + return new JsonDate(DateTimeOffset.FromUnixTimeSeconds(seconds)); + } + + internal static JsonDate FromUnixTime(double seconds) + { + var milliseconds = (long)(seconds * 1000d); + + return new JsonDate(DateTimeOffset.FromUnixTimeMilliseconds(milliseconds)); + } + + #region Implicit Casts + + public static implicit operator DateTimeOffset(JsonDate value) + => value.ToDateTimeOffset(); + + public static implicit operator DateTime(JsonDate value) + => value.ToDateTime(); + + // From Date + public static implicit operator JsonDate(DateTimeOffset value) + { + return new JsonDate(value); + } + + public static implicit operator JsonDate(DateTime value) + { + return new JsonDate(value); + } + + // From String + public static implicit operator JsonDate(string value) + { + return Parse(value); + } + + #endregion + + #region Equality + + public override bool Equals(object obj) + { + return obj is JsonDate date && date.value == this.value; + } + + public bool Equals(JsonDate other) + { + return this.value == other.value; + } + + public override int GetHashCode() => value.GetHashCode(); + + #endregion + + #region IComparable Members + + int IComparable.CompareTo(JsonDate other) + { + return value.CompareTo(other.value); + } + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNode.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNode.cs new file mode 100644 index 000000000000..e6b4348dfaf6 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNode.cs @@ -0,0 +1,250 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + + + public abstract partial class JsonNode + { + internal abstract JsonType Type { get; } + + public virtual JsonNode this[int index] => throw new NotImplementedException(); + + public virtual JsonNode this[string name] + { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + #region Type Helpers + + internal bool IsArray => Type == JsonType.Array; + + internal bool IsDate => Type == JsonType.Date; + + internal bool IsObject => Type == JsonType.Object; + + internal bool IsNumber => Type == JsonType.Number; + + internal bool IsNull => Type == JsonType.Null; + + #endregion + + internal void WriteTo(TextWriter textWriter, bool pretty = true) + { + var writer = new JsonWriter(textWriter, pretty); + + writer.WriteNode(this); + } + + internal T As() + where T : new() + => new JsonSerializer().Deseralize((JsonObject)this); + + internal T[] ToArrayOf() + { + return (T[])new JsonSerializer().DeserializeArray(typeof(T[]), (JsonArray)this); + } + + #region ToString Overrides + + public override string ToString() => ToString(pretty: true); + + internal string ToString(bool pretty) + { + var sb = new StringBuilder(); + + using (var writer = new StringWriter(sb)) + { + WriteTo(writer, pretty); + + return sb.ToString(); + } + } + + #endregion + + #region Static Constructors + + internal static JsonNode Parse(string text) + { + return Parse(new SourceReader(new StringReader(text))); + } + + internal static JsonNode Parse(TextReader textReader) + => Parse(new SourceReader(textReader)); + + private static JsonNode Parse(SourceReader sourceReader) + { + using (var parser = new JsonParser(sourceReader)) + { + return parser.ReadNode(); + } + } + + internal static JsonNode FromObject(object instance) + => new JsonSerializer().Serialize(instance); + + #endregion + + #region Implict Casts + + public static implicit operator string(JsonNode node) => node.ToString(); + + #endregion + + #region Explict Casts + + public static explicit operator DateTime(JsonNode node) + { + switch (node.Type) + { + case JsonType.Date: + return ((JsonDate)node).ToDateTime(); + + case JsonType.String: + return JsonDate.Parse(node.ToString()).ToDateTime(); + + case JsonType.Number: + var num = (JsonNumber)node; + + if (num.IsInteger) + { + return DateTimeOffset.FromUnixTimeSeconds(num).UtcDateTime; + } + else + { + return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)).UtcDateTime; + } + } + + throw new ConversionException(node, typeof(DateTime)); + } + + public static explicit operator DateTimeOffset(JsonNode node) + { + switch (node.Type) + { + case JsonType.Date : return ((JsonDate)node).ToDateTimeOffset(); + case JsonType.String : return JsonDate.Parse(node.ToString()).ToDateTimeOffset(); + + case JsonType.Number: + var num = (JsonNumber)node; + + if (num.IsInteger) + { + return DateTimeOffset.FromUnixTimeSeconds(num); + } + else + { + return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)); + } + + } + + throw new ConversionException(node, typeof(DateTimeOffset)); + } + + public static explicit operator float(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return float.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(float)); + } + + public static explicit operator double(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return double.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(double)); + } + + public static explicit operator decimal(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number: return (JsonNumber)node; + case JsonType.String: return decimal.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(decimal)); + } + + public static explicit operator Guid(JsonNode node) + => new Guid(node.ToString()); + + public static explicit operator short(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return short.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(short)); + } + + public static explicit operator int(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return int.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(int)); + } + + public static explicit operator long(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number: return (JsonNumber)node; + case JsonType.String: return long.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(long)); + } + + public static explicit operator bool(JsonNode node) + => ((JsonBoolean)node).Value; + + public static explicit operator ushort(JsonNode node) + => (JsonNumber)node; + + public static explicit operator uint(JsonNode node) + => (JsonNumber)node; + + public static explicit operator ulong(JsonNode node) + => (JsonNumber)node; + + public static explicit operator TimeSpan(JsonNode node) + => TimeSpan.Parse(node.ToString()); + + public static explicit operator Uri(JsonNode node) + { + if (node.Type == JsonType.String) + { + return new Uri(node.ToString()); + } + + throw new ConversionException(node, typeof(Uri)); + } + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNumber.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNumber.cs new file mode 100644 index 000000000000..4eeaadeebe8f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNumber.cs @@ -0,0 +1,109 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed partial class JsonNumber : JsonNode + { + private readonly string value; + private readonly bool overflows = false; + + internal JsonNumber(string value) + { + this.value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal JsonNumber(int value) + { + this.value = value.ToString(); + } + + internal JsonNumber(long value) + { + this.value = value.ToString(); + + if (value > 9007199254740991) + { + overflows = true; + } + } + + internal JsonNumber(float value) + { + this.value = value.ToString(System.Globalization.CultureInfo.InvariantCulture); + } + + internal JsonNumber(double value) + { + this.value = value.ToString(System.Globalization.CultureInfo.InvariantCulture); + } + + internal override JsonType Type => JsonType.Number; + + internal string Value => value; + + #region Helpers + + internal bool Overflows => overflows; + + internal bool IsInteger => !value.Contains("."); + + internal bool IsFloat => value.Contains("."); + + #endregion + + #region Casting + + public static implicit operator byte(JsonNumber number) + => byte.Parse(number.Value); + + public static implicit operator short(JsonNumber number) + => short.Parse(number.Value); + + public static implicit operator int(JsonNumber number) + => int.Parse(number.Value); + + public static implicit operator long(JsonNumber number) + => long.Parse(number.value); + + public static implicit operator UInt16(JsonNumber number) + => ushort.Parse(number.Value); + + public static implicit operator UInt32(JsonNumber number) + => uint.Parse(number.Value); + + public static implicit operator UInt64(JsonNumber number) + => ulong.Parse(number.Value); + + public static implicit operator decimal(JsonNumber number) + => decimal.Parse(number.Value, System.Globalization.CultureInfo.InvariantCulture); + + public static implicit operator Double(JsonNumber number) + => double.Parse(number.value, System.Globalization.CultureInfo.InvariantCulture); + + public static implicit operator float(JsonNumber number) + => float.Parse(number.value, System.Globalization.CultureInfo.InvariantCulture); + + public static implicit operator JsonNumber(short data) + => new JsonNumber(data.ToString()); + + public static implicit operator JsonNumber(int data) + => new JsonNumber(data); + + public static implicit operator JsonNumber(long data) + => new JsonNumber(data); + + public static implicit operator JsonNumber(Single data) + => new JsonNumber(data.ToString()); + + public static implicit operator JsonNumber(double data) + => new JsonNumber(data.ToString()); + + #endregion + + public override string ToString() => value; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonObject.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonObject.cs new file mode 100644 index 000000000000..9fd26dc36ffd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonObject.cs @@ -0,0 +1,172 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public partial class JsonObject : JsonNode, IDictionary + { + private readonly Dictionary items; + + internal JsonObject() + { + items = new Dictionary(); + } + + internal JsonObject(IEnumerable> properties) + { + if (properties == null) throw new ArgumentNullException(nameof(properties)); + + items = new Dictionary(); + + foreach (var field in properties) + { + items.Add(field.Key, field.Value); + } + } + + #region IDictionary Constructors + + internal JsonObject(IDictionary dic) + { + items = new Dictionary(dic.Count); + + foreach (var pair in dic) + { + Add(pair.Key, pair.Value); + } + } + + #endregion + + internal override JsonType Type => JsonType.Object; + + #region Add Overloads + + public void Add(string name, JsonNode value) => + items.Add(name, value); + + public void Add(string name, byte[] value) => + items.Add(name, new XBinary(value)); + + public void Add(string name, DateTime value) => + items.Add(name, new JsonDate(value)); + + public void Add(string name, int value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, long value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, float value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, double value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, string value) => + items.Add(name, new JsonString(value)); + + public void Add(string name, bool value) => + items.Add(name, new JsonBoolean(value)); + + public void Add(string name, Uri url) => + items.Add(name, new JsonString(url.AbsoluteUri)); + + public void Add(string name, string[] values) => + items.Add(name, new XImmutableArray(values)); + + public void Add(string name, int[] values) => + items.Add(name, new XImmutableArray(values)); + + #endregion + + #region ICollection> Members + + void ICollection>.Add(KeyValuePair item) + { + items.Add(item.Key, item.Value); + } + + void ICollection>.Clear() + { + items.Clear(); + } + + bool ICollection>.Contains(KeyValuePair item) => + throw new NotImplementedException(); + + void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) => + throw new NotImplementedException(); + + + int ICollection>.Count => items.Count; + + bool ICollection>.IsReadOnly => false; + + bool ICollection>.Remove(KeyValuePair item) => + throw new NotImplementedException(); + + #endregion + + #region IDictionary Members + + public bool ContainsKey(string key) => items.ContainsKey(key); + + public ICollection Keys => items.Keys; + + public bool Remove(string key) => items.Remove(key); + + public bool TryGetValue(string key, out JsonNode value) => + items.TryGetValue(key, out value); + + public ICollection Values => items.Values; + + public override JsonNode this[string key] + { + get => items[key]; + set => items[key] = value; + } + + #endregion + + #region IEnumerable + + IEnumerator> IEnumerable>.GetEnumerator() + => items.GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + #endregion + + #region Helpers + + internal static new JsonObject FromObject(object instance) => + (JsonObject)new JsonSerializer().Serialize(instance); + + #endregion + + #region Static Constructors + + internal static JsonObject FromStream(Stream stream) + { + using (var tr = new StreamReader(stream)) + { + return (JsonObject)Parse(tr); + } + } + + internal static new JsonObject Parse(string text) + { + return (JsonObject)JsonNode.Parse(text); + } + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonString.cs new file mode 100644 index 000000000000..9f3d17f7747a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonString.cs @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed partial class JsonString : JsonNode, IEquatable + { + private readonly string value; + + internal JsonString(string value) + { + this.value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal override JsonType Type => JsonType.String; + + internal string Value => value; + + internal int Length => value.Length; + + #region #region Implicit Casts + + public static implicit operator string(JsonString data) => data.Value; + + public static implicit operator JsonString(string value) => new JsonString(value); + + #endregion + + public override int GetHashCode() => value.GetHashCode(); + + public override string ToString() => value; + + #region IEquatable + + bool IEquatable.Equals(JsonString other) => this.Value == other.Value; + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XBinary.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XBinary.cs new file mode 100644 index 000000000000..d1302ad1399f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XBinary.cs @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal sealed class XBinary : JsonNode + { + private readonly byte[] _value; + private readonly string _base64; + + internal XBinary(byte[] value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal XBinary(string base64EncodedString) + { + _base64 = base64EncodedString ?? throw new ArgumentNullException(nameof(base64EncodedString)); + } + + internal override JsonType Type => JsonType.Binary; + + internal byte[] Value => _value ?? Convert.FromBase64String(_base64); + + #region #region Implicit Casts + + public static implicit operator byte[] (XBinary data) => data.Value; + + public static implicit operator XBinary(byte[] data) => new XBinary(data); + + #endregion + + public override int GetHashCode() => Value.GetHashCode(); + + public override string ToString() => _base64 ?? Convert.ToBase64String(_value); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XNull.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XNull.cs new file mode 100644 index 000000000000..b98624861d80 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XNull.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal sealed class XNull : JsonNode + { + internal static readonly XNull Instance = new XNull(); + + private XNull() { } + + internal override JsonType Type => JsonType.Null; + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs new file mode 100644 index 000000000000..8a2d2b2121c5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal class ParserException : Exception + { + internal ParserException(string message) + : base(message) + { } + + internal ParserException(string message, SourceLocation location) + : base(message) + { + + Location = location; + } + + internal SourceLocation Location { get; } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonParser.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonParser.cs new file mode 100644 index 000000000000..d4284aac52d4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonParser.cs @@ -0,0 +1,180 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public class JsonParser : IDisposable + { + private readonly TokenReader reader; + + internal JsonParser(TextReader reader) + : this(new SourceReader(reader)) { } + + internal JsonParser(SourceReader sourceReader) + { + if (sourceReader == null) + throw new ArgumentNullException(nameof(sourceReader)); + + this.reader = new TokenReader(new JsonTokenizer(sourceReader)); + + this.reader.Next(); // Start with the first token + } + + internal IEnumerable ReadNodes() + { + JsonNode node; + + while ((node = ReadNode()) != null) yield return node; + } + + internal JsonNode ReadNode() + { + if (reader.Current.Kind == TokenKind.Eof || reader.Current.IsTerminator) + { + return null; + } + + switch (reader.Current.Kind) + { + case TokenKind.LeftBrace : return ReadObject(); // { + case TokenKind.LeftBracket : return ReadArray(); // [ + + default: throw new ParserException($"Expected '{{' or '['. Was {reader.Current}."); + } + } + + private JsonNode ReadFieldValue() + { + // Boolean, Date, Null, Number, String, Uri + if (reader.Current.IsLiteral) + { + return ReadLiteral(); + } + else + { + switch (reader.Current.Kind) + { + case TokenKind.LeftBracket: return ReadArray(); + case TokenKind.LeftBrace : return ReadObject(); + + default: throw new ParserException($"Unexpected token reading field value. Was {reader.Current}."); + } + } + } + + private JsonNode ReadLiteral() + { + var literal = reader.Current; + + reader.Next(); // Read the literal token + + switch (literal.Kind) + { + case TokenKind.Boolean : return JsonBoolean.Parse(literal.Value); + case TokenKind.Null : return XNull.Instance; + case TokenKind.Number : return new JsonNumber(literal.Value); + case TokenKind.String : return new JsonString(literal.Value); + + default: throw new ParserException($"Unexpected token reading literal. Was {literal}."); + } + } + + internal JsonObject ReadObject() + { + reader.Ensure(TokenKind.LeftBrace, "object"); + + reader.Next(); // Read '{' (Object start) + + var jsonObject = new JsonObject(); + + // Read the object's fields until we reach the end of the object ('}') + while (reader.Current.Kind != TokenKind.RightBrace) + { + if (reader.Current.Kind == TokenKind.Comma) + { + reader.Next(); // Read ',' (Seperator) + } + + // Ensure we have a field name + reader.Ensure(TokenKind.String, "Expected field name"); + + var field = ReadField(); + + jsonObject.Add(field.Key, field.Value); + } + + reader.Next(); // Read '}' (Object end) + + return jsonObject; + } + + + // TODO: Use ValueTuple in C#7 + private KeyValuePair ReadField() + { + var fieldName = reader.Current.Value; + + reader.Next(); // Read the field name + + reader.Ensure(TokenKind.Colon, "field"); + + reader.Next(); // Read ':' (Field value indicator) + + return new KeyValuePair(fieldName, ReadFieldValue()); + } + + + internal JsonArray ReadArray() + { + reader.Ensure(TokenKind.LeftBracket, "array"); + + var array = new XNodeArray(); + + reader.Next(); // Read the '[' (Array start) + + // Read the array's items + while (reader.Current.Kind != TokenKind.RightBracket) + { + if (reader.Current.Kind == TokenKind.Comma) + { + reader.Next(); // Read the ',' (Seperator) + } + + if (reader.Current.IsLiteral) + { + array.Add(ReadLiteral()); // Boolean, Date, Number, Null, String, Uri + } + else if (reader.Current.Kind == TokenKind.LeftBracket) + { + array.Add(ReadArray()); // Array + } + else if (reader.Current.Kind == TokenKind.LeftBrace) + { + array.Add(ReadObject()); // Object + } + else + { + throw new ParserException($"Expected comma, literal, or object. Was {reader.Current}."); + } + } + + reader.Next(); // Read the ']' (Array end) + + return array; + } + + #region IDisposable + + public void Dispose() + { + reader.Dispose(); + } + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonToken.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonToken.cs new file mode 100644 index 000000000000..ebad216e6f6f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonToken.cs @@ -0,0 +1,66 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal enum TokenKind + { + LeftBrace, // { Object start + RightBrace, // } Object end + + LeftBracket, // [ Array start + RightBracket, // ] Array end + + Comma, // , Comma + Colon, // : Value indicator + Dot, // . Access field indicator + Terminator, // \0 Stream terminator + + Boolean = 31, // true or false + Null = 33, // null + Number = 34, // i.e. -1.93, -1, 0, 1, 1.1 + String = 35, // i.e. "text" + + Eof = 50 + } + + internal /* readonly */ struct JsonToken + { + internal static readonly JsonToken BraceOpen = new JsonToken(TokenKind.LeftBrace, "{"); + internal static readonly JsonToken BraceClose = new JsonToken(TokenKind.RightBrace, "}"); + + internal static readonly JsonToken BracketOpen = new JsonToken(TokenKind.LeftBracket, "["); + internal static readonly JsonToken BracketClose = new JsonToken(TokenKind.RightBracket, "]"); + + internal static readonly JsonToken Colon = new JsonToken(TokenKind.Colon, ":"); + internal static readonly JsonToken Comma = new JsonToken(TokenKind.Comma, ","); + internal static readonly JsonToken Terminator = new JsonToken(TokenKind.Terminator, "\0"); + + internal static readonly JsonToken True = new JsonToken(TokenKind.Boolean, "true"); + internal static readonly JsonToken False = new JsonToken(TokenKind.Boolean, "false"); + internal static readonly JsonToken Null = new JsonToken(TokenKind.Null, "null"); + + internal static readonly JsonToken Eof = new JsonToken(TokenKind.Eof, null); + + internal JsonToken(TokenKind kind, string value) + { + Kind = kind; + Value = value; + } + + internal readonly TokenKind Kind; + + internal readonly string Value; + + public override string ToString() => Kind + ": " + Value; + + #region Helpers + + internal bool IsLiteral => (byte)Kind > 30 && (byte)Kind < 40; + + internal bool IsTerminator => Kind == TokenKind.Terminator; + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonTokenizer.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonTokenizer.cs new file mode 100644 index 000000000000..602c33ff331a --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonTokenizer.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + using System.IO; + + + public class JsonTokenizer : IDisposable + { + private readonly StringBuilder sb = new StringBuilder(); + + private readonly SourceReader reader; + + internal JsonTokenizer(TextReader reader) + : this(new SourceReader(reader)) { } + + internal JsonTokenizer(SourceReader reader) + { + this.reader = reader; + + reader.Next(); // Start with the first char + } + + internal JsonToken ReadNext() + { + reader.SkipWhitespace(); + + if (reader.IsEof) return JsonToken.Eof; + + switch (reader.Current) + { + case '"': return ReadQuotedString(); + + // Symbols + case '[' : reader.Next(); return JsonToken.BracketOpen; // Array start + case ']' : reader.Next(); return JsonToken.BracketClose; // Array end + case ',' : reader.Next(); return JsonToken.Comma; // Value seperator + case ':' : reader.Next(); return JsonToken.Colon; // Field value indicator + case '{' : reader.Next(); return JsonToken.BraceOpen; // Object start + case '}' : reader.Next(); return JsonToken.BraceClose; // Object end + case '\0' : reader.Next(); return JsonToken.Terminator; // Stream terminiator + + default: return ReadLiteral(); + } + } + + private JsonToken ReadQuotedString() + { + Expect('"', "quoted string indicator"); + + reader.Next(); // Read '"' (Starting quote) + + // Read until we reach an unescaped quote char + while (reader.Current != '"') + { + EnsureNotEof("quoted string"); + + if (reader.Current == '\\') + { + char escapedCharacter = reader.ReadEscapeCode(); + + sb.Append(escapedCharacter); + + continue; + } + + StoreCurrentCharacterAndReadNext(); + } + + reader.Next(); // Read '"' (Ending quote) + + return new JsonToken(TokenKind.String, value: sb.Extract()); + } + + private JsonToken ReadLiteral() + { + if (char.IsDigit(reader.Current) || + reader.Current == '-' || + reader.Current == '+') + { + return ReadNumber(); + } + + return ReadIdentifer(); + } + + private JsonToken ReadNumber() + { + // Read until we hit a non-numeric character + // -6.247737e-06 + // E + + while (char.IsDigit(reader.Current) + || reader.Current == '.' + || reader.Current == 'e' + || reader.Current == 'E' + || reader.Current == '-' + || reader.Current == '+') + { + StoreCurrentCharacterAndReadNext(); + } + + return new JsonToken(TokenKind.Number, value: sb.Extract()); + } + + int count = 0; + + private JsonToken ReadIdentifer() + { + count++; + + if (!char.IsLetter(reader.Current)) + { + throw new ParserException( + message : $"Expected literal (number, boolean, or null). Was '{reader.Current}'.", + location : reader.Location + ); + } + + // Read letters, numbers, and underscores '_' + while (char.IsLetterOrDigit(reader.Current) || reader.Current == '_') + { + StoreCurrentCharacterAndReadNext(); + } + + string text = sb.Extract(); + + switch (text) + { + case "true": return JsonToken.True; + case "false": return JsonToken.False; + case "null": return JsonToken.Null; + + default: return new JsonToken(TokenKind.String, text); + } + } + + private void Expect(char character, string description) + { + if (reader.Current != character) + { + throw new ParserException( + message: $"Expected {description} ('{character}'). Was '{reader.Current}'.", + location: reader.Location + ); + } + } + + private void EnsureNotEof(string tokenType) + { + if (reader.IsEof) + { + throw new ParserException( + message: $"Unexpected EOF while reading {tokenType}.", + location: reader.Location + ); + } + } + + private void StoreCurrentCharacterAndReadNext() + { + sb.Append(reader.Current); + + reader.Next(); + } + + public void Dispose() + { + reader.Dispose(); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Location.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Location.cs new file mode 100644 index 000000000000..88f85ce158ea --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Location.cs @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal struct SourceLocation + { + private int line; + private int column; + private int position; + + internal SourceLocation(int line = 0, int column = 0, int position = 0) + { + this.line = line; + this.column = column; + this.position = position; + } + + internal int Line => line; + + internal int Column => column; + + internal int Position => position; + + internal void Advance() + { + this.column++; + this.position++; + } + + internal void MarkNewLine() + { + this.line++; + this.column = 0; + } + + internal SourceLocation Clone() + { + return new SourceLocation(line, column, position); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Readers/SourceReader.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Readers/SourceReader.cs new file mode 100644 index 000000000000..f6049c300b57 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Readers/SourceReader.cs @@ -0,0 +1,130 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Globalization; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public sealed class SourceReader : IDisposable + { + private readonly TextReader source; + + private char current; + + private readonly SourceLocation location = new SourceLocation(); + + private bool isEof = false; + + internal SourceReader(TextReader textReader) + { + this.source = textReader ?? throw new ArgumentNullException(nameof(textReader)); + } + + /// + /// Advances to the next character + /// + internal void Next() + { + // Advance to the new line when we see a new line '\n'. + // A new line may be prefixed by a carriage return '\r'. + + if (current == '\n') + { + location.MarkNewLine(); + } + + int charCode = source.Read(); // -1 for end + + if (charCode >= 0) + { + current = (char)charCode; + } + else + { + // If we've already marked this as the EOF, throw an exception + if (isEof) + { + throw new EndOfStreamException("Cannot advance past end of stream."); + } + + isEof = true; + + current = '\0'; + } + + location.Advance(); + } + + internal void SkipWhitespace() + { + while (char.IsWhiteSpace(current)) + { + Next(); + } + } + + internal char ReadEscapeCode() + { + Next(); + + char escapedChar = current; + + Next(); // Consume escaped character + + switch (escapedChar) + { + // Special escape codes + case '"': return '"'; // " (Quotation mark) U+0022 + case '/': return '/'; // / (Solidus) U+002F + case '\\': return '\\'; // \ (Reverse solidus) U+005C + + // Control Characters + case '0': return '\0'; // Nul (0) U+0000 + case 'a': return '\a'; // Alert (7) + case 'b': return '\b'; // Backspace (8) U+0008 + case 'f': return '\f'; // Form feed (12) U+000C + case 'n': return '\n'; // Line feed (10) U+000A + case 'r': return '\r'; // Carriage return (13) U+000D + case 't': return '\t'; // Horizontal tab (9) U+0009 + case 'v': return '\v'; // Vertical tab + + // Unicode escape sequence + case 'u': return ReadUnicodeEscapeSequence(); // U+XXXX + + default: throw new Exception($"Unrecognized escape sequence '\\{escapedChar}'"); + } + } + + private readonly char[] hexCode = new char[4]; + + private char ReadUnicodeEscapeSequence() + { + hexCode[0] = current; Next(); + hexCode[1] = current; Next(); + hexCode[2] = current; Next(); + hexCode[3] = current; Next(); + + return Convert.ToChar(int.Parse( + s : new string(hexCode), + style : NumberStyles.HexNumber, + provider: NumberFormatInfo.InvariantInfo + )); + } + + internal char Current => current; + + internal bool IsEof => isEof; + + internal char Peek() => (char)source.Peek(); + + internal SourceLocation Location => location; + + public void Dispose() + { + source.Dispose(); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/TokenReader.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/TokenReader.cs new file mode 100644 index 000000000000..8b4e124274a2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/TokenReader.cs @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + public class TokenReader : IDisposable + { + private readonly JsonTokenizer tokenizer; + private JsonToken current; + + internal TokenReader(JsonTokenizer tokenizer) + { + this.tokenizer = tokenizer ?? throw new ArgumentNullException(nameof(tokenizer)); + } + + internal void Next() + { + current = tokenizer.ReadNext(); + } + + internal JsonToken Current => current; + + internal void Ensure(TokenKind kind, string readerName) + { + if (current.Kind != kind) + { + throw new ParserException($"Expected {kind} while reading {readerName}). Was {current}."); + } + } + + public void Dispose() + { + tokenizer.Dispose(); + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/PipelineMocking.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/PipelineMocking.cs new file mode 100644 index 000000000000..7fcffb0bb196 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/PipelineMocking.cs @@ -0,0 +1,262 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System.Threading.Tasks; + using System.Collections.Generic; + using System.Net.Http; + using System.Linq; + using System.Net; + using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json; + + public enum MockMode + { + Live, + Record, + Playback, + + } + + public class PipelineMock + { + + private System.Collections.Generic.Stack scenario = new System.Collections.Generic.Stack(); + private System.Collections.Generic.Stack context = new System.Collections.Generic.Stack(); + private System.Collections.Generic.Stack description = new System.Collections.Generic.Stack(); + + private readonly string recordingPath; + private int counter = 0; + + public static implicit operator Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep(PipelineMock instance) => instance.SendAsync; + + public MockMode Mode { get; set; } = MockMode.Live; + public PipelineMock(string recordingPath) + { + this.recordingPath = recordingPath; + } + + public void PushContext(string text) => context.Push(text); + + public void PushDescription(string text) => description.Push(text); + + + public void PushScenario(string it) + { + // reset counter too + counter = 0; + + scenario.Push(it); + } + + public void PopContext() => context.Pop(); + + public void PopDescription() => description.Pop(); + + public void PopScenario() => scenario.Pop(); + + public void SetRecord() => Mode = MockMode.Record; + + public void SetPlayback() => Mode = MockMode.Playback; + + public void SetLive() => Mode = MockMode.Live; + + public string Scenario => (scenario.Count > 0 ? scenario.Peek() : "[NoScenario]"); + public string Description => (description.Count > 0 ? description.Peek() : "[NoDescription]"); + public string Context => (context.Count > 0 ? context.Peek() : "[NoContext]"); + + /// + /// Headers that we substitute out blank values for in the recordings + /// Add additional headers as necessary + /// + public static HashSet Blacklist = new HashSet(System.StringComparer.CurrentCultureIgnoreCase) { + "Authorization", + }; + + public Dictionary ForceResponseHeaders = new Dictionary(); + + internal static XImmutableArray Removed = new XImmutableArray(new string[] { "[Filtered]" }); + + internal static IEnumerable> FilterHeaders(IEnumerable>> headers) => headers.Select(header => new KeyValuePair(header.Key, Blacklist.Contains(header.Key) ? Removed : new XImmutableArray(header.Value.ToArray()))); + + internal static JsonNode SerializeContent(HttpContent content, ref bool isBase64) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result, ref isBase64); + + internal static JsonNode SerializeContent(byte[] content, ref bool isBase64) + { + if (null == content || content.Length == 0) + { + return XNull.Instance; + } + var first = content[0]; + var last = content[content.Length - 1]; + + // plaintext for JSON/SGML/XML/HTML/STRINGS/ARRAYS + if ((first == '{' && last == '}') || (first == '<' && last == '>') || (first == '[' && last == ']') || (first == '"' && last == '"')) + { + return new JsonString(System.Text.Encoding.UTF8.GetString(content)); + } + + // base64 for everyone else + return new JsonString(System.Convert.ToBase64String(content)); + } + + internal static byte[] DeserializeContent(string content, bool isBase64) + { + if (string.IsNullOrWhiteSpace(content)) + { + return new byte[0]; + } + + if (isBase64) + { + try + { + return System.Convert.FromBase64String(content); + } + catch + { + // hmm. didn't work, return it as a string I guess. + } + } + return System.Text.Encoding.UTF8.GetBytes(content); + } + + public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMessage response) + { + var messages = System.IO.File.Exists(this.recordingPath) ? Load() : new JsonObject() ?? new JsonObject(); + bool isBase64Request = false; + bool isBase64Response = false; + messages[rqKey] = new JsonObject { + { "Request",new JsonObject { + { "Method", request.Method.Method }, + { "RequestUri", request.RequestUri }, + { "Content", SerializeContent( request.Content, ref isBase64Request) }, + { "isContentBase64", isBase64Request }, + { "Headers", new JsonObject(FilterHeaders(request.Headers)) }, + { "ContentHeaders", request.Content == null ? new JsonObject() : new JsonObject(FilterHeaders(request.Content.Headers))} + } }, + {"Response", new JsonObject { + { "StatusCode", (int)response.StatusCode}, + { "Headers", new JsonObject(FilterHeaders(response.Headers))}, + { "ContentHeaders", new JsonObject(FilterHeaders(response.Content.Headers))}, + { "Content", SerializeContent(response.Content, ref isBase64Response) }, + { "isContentBase64", isBase64Response }, + }} + }; + System.IO.File.WriteAllText(this.recordingPath, messages.ToString()); + } + + private JsonObject Load() + { + if (System.IO.File.Exists(this.recordingPath)) + { + try + { + return JsonObject.FromStream(System.IO.File.OpenRead(this.recordingPath)); + } + catch + { + throw new System.Exception($"Invalid recording file: '{recordingPath}'"); + } + } + + throw new System.ArgumentException($"Missing recording file: '{recordingPath}'", nameof(recordingPath)); + } + + public HttpResponseMessage LoadMessage(string rqKey) + { + var responses = Load(); + var message = responses.Property(rqKey); + + if (null == message) + { + throw new System.ArgumentException($"Missing Request '{rqKey}' in recording file", nameof(rqKey)); + } + + var sc = 0; + var reqMessage = message.Property("Request"); + var respMessage = message.Property("Response"); + + // --------------------------- deserialize response ---------------------------------------------------------------- + bool isBase64Response = false; + respMessage.BooleanProperty("isContentBase64", ref isBase64Response); + var response = new HttpResponseMessage + { + StatusCode = (HttpStatusCode)respMessage.NumberProperty("StatusCode", ref sc), + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"), isBase64Response)) + }; + + foreach (var each in respMessage.Property("Headers")) + { + response.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + foreach (var frh in ForceResponseHeaders) + { + response.Headers.Remove(frh.Key); + response.Headers.TryAddWithoutValidation(frh.Key, frh.Value); + } + + foreach (var each in respMessage.Property("ContentHeaders")) + { + response.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + // --------------------------- deserialize request ---------------------------------------------------------------- + bool isBase64Request = false; + reqMessage.BooleanProperty("isContentBase64", ref isBase64Request); + response.RequestMessage = new HttpRequestMessage + { + Method = new HttpMethod(reqMessage.StringProperty("Method")), + RequestUri = new System.Uri(reqMessage.StringProperty("RequestUri")), + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"), isBase64Request)) + }; + + foreach (var each in reqMessage.Property("Headers")) + { + response.RequestMessage.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + foreach (var each in reqMessage.Property("ContentHeaders")) + { + response.RequestMessage.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + return response; + } + + public async Task SendAsync(HttpRequestMessage request, IEventListener callback, ISendAsync next) + { + counter++; + var rqkey = $"{Description}+{Context}+{Scenario}+${request.Method.Method}+{request.RequestUri}+{counter}"; + + switch (Mode) + { + case MockMode.Record: + //Add following code since the request.Content will be released after sendAsync + var requestClone = request; + if (requestClone.Content != null) + { + requestClone = await request.CloneWithContent(request.RequestUri, request.Method); + } + // make the call + var response = await next.SendAsync(request, callback); + + // save the message to the recording file + SaveMessage(rqkey, requestClone, response); + + // return the response. + return response; + + case MockMode.Playback: + // load and return the response. + return LoadMessage(rqkey); + + default: + // pass-thru, do nothing + return await next.SendAsync(request, callback); + } + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.Designer.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.Designer.cs new file mode 100644 index 000000000000..0783d914152d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.Designer.cs @@ -0,0 +1,5655 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.generated.runtime.Properties +{ + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager + { + get + { + if (object.ReferenceEquals(resourceMan, null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.generated.runtime.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to The remote server returned an error: (401) Unauthorized.. + /// + public static string AccessDeniedExceptionMessage + { + get + { + return ResourceManager.GetString("AccessDeniedExceptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account id doesn't match one in subscription.. + /// + public static string AccountIdDoesntMatchSubscription + { + get + { + return ResourceManager.GetString("AccountIdDoesntMatchSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account needs to be specified. + /// + public static string AccountNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("AccountNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account "{0}" has been added.. + /// + public static string AddAccountAdded + { + get + { + return ResourceManager.GetString("AddAccountAdded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to To switch to a different subscription, please use Select-AzureSubscription.. + /// + public static string AddAccountChangeSubscription + { + get + { + return ResourceManager.GetString("AddAccountChangeSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Skipping external tenant {0}, because you are using a guest or a foreign principal object identity. In order to access this tenant, please run Add-AzureAccount without "-Credential".. + /// + public static string AddAccountNonInteractiveGuestOrFpo + { + get + { + return ResourceManager.GetString("AddAccountNonInteractiveGuestOrFpo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Subscription "{0}" is selected as the default subscription.. + /// + public static string AddAccountShowDefaultSubscription + { + get + { + return ResourceManager.GetString("AddAccountShowDefaultSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to To view all the subscriptions, please use Get-AzureSubscription.. + /// + public static string AddAccountViewSubscriptions + { + get + { + return ResourceManager.GetString("AddAccountViewSubscriptions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-On {0} is created successfully.. + /// + public static string AddOnCreatedMessage + { + get + { + return ResourceManager.GetString("AddOnCreatedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-on name {0} is already used.. + /// + public static string AddOnNameAlreadyUsed + { + get + { + return ResourceManager.GetString("AddOnNameAlreadyUsed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-On {0} not found.. + /// + public static string AddOnNotFound + { + get + { + return ResourceManager.GetString("AddOnNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-on {0} is removed successfully.. + /// + public static string AddOnRemovedMessage + { + get + { + return ResourceManager.GetString("AddOnRemovedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-On {0} is updated successfully.. + /// + public static string AddOnUpdatedMessage + { + get + { + return ResourceManager.GetString("AddOnUpdatedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role has been created at {0}\{1}.. + /// + public static string AddRoleMessageCreate + { + get + { + return ResourceManager.GetString("AddRoleMessageCreate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for Node.js by running ‘npm install azure’.. + /// + public static string AddRoleMessageCreateNode + { + get + { + return ResourceManager.GetString("AddRoleMessageCreateNode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for PHP by running "pear WindowsAzure/WindowsAzure".. + /// + public static string AddRoleMessageCreatePHP + { + get + { + return ResourceManager.GetString("AddRoleMessageCreatePHP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to set role permissions. Please give the 'Network Service' user 'Read & execute' and 'Modify' permissions to the role folder, or run PowerShell as an Administrator. + /// + public static string AddRoleMessageInsufficientPermissions + { + get + { + return ResourceManager.GetString("AddRoleMessageInsufficientPermissions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A role name '{0}' already exists. + /// + public static string AddRoleMessageRoleExists + { + get + { + return ResourceManager.GetString("AddRoleMessageRoleExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Profile {0} already has an endpoint with name {1}. + /// + public static string AddTrafficManagerEndpointFailed + { + get + { + return ResourceManager.GetString("AddTrafficManagerEndpointFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure PowerShell collects usage data in order to improve your experience. + ///The data is anonymous and does not include commandline argument values. + ///The data is collected by Microsoft. + /// + ///Use the Disable-AzDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Az.Accounts module. To disable data collection: PS > Disable-AzDataCollection. + ///Use the Enable-AzDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Az.Accounts module. To enable [rest of string was truncated]";. + /// + public static string ARMDataCollectionMessage + { + get + { + return ResourceManager.GetString("ARMDataCollectionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [Common.Authentication]: Authenticating for account {0} with single tenant {1}.. + /// + public static string AuthenticatingForSingleTenant + { + get + { + return ResourceManager.GetString("AuthenticatingForSingleTenant", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Windows Azure Powershell\. + /// + public static string AzureDirectory + { + get + { + return ResourceManager.GetString("AzureDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to https://manage.windowsazure.com. + /// + public static string AzurePortalUrl + { + get + { + return ResourceManager.GetString("AzurePortalUrl", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AZURE_PORTAL_URL. + /// + public static string AzurePortalUrlEnv + { + get + { + return ResourceManager.GetString("AzurePortalUrlEnv", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Selected profile must not be null.. + /// + public static string AzureProfileMustNotBeNull + { + get + { + return ResourceManager.GetString("AzureProfileMustNotBeNull", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure SDK\{0}\. + /// + public static string AzureSdkDirectory + { + get + { + return ResourceManager.GetString("AzureSdkDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to File '{0}' already exists. Use the -Force parameter to overwrite it.. + /// + public static string AzureVMDscArchiveAlreadyExists + { + get + { + return ResourceManager.GetString("AzureVMDscArchiveAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find configuration data file: {0}. + /// + public static string AzureVMDscCannotFindConfigurationDataFile + { + get + { + return ResourceManager.GetString("AzureVMDscCannotFindConfigurationDataFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Create Archive. + /// + public static string AzureVMDscCreateArchiveAction + { + get + { + return ResourceManager.GetString("AzureVMDscCreateArchiveAction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The configuration data must be a .psd1 file. + /// + public static string AzureVMDscInvalidConfigurationDataFile + { + get + { + return ResourceManager.GetString("AzureVMDscInvalidConfigurationDataFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Parsing configuration script: {0}. + /// + public static string AzureVMDscParsingConfiguration + { + get + { + return ResourceManager.GetString("AzureVMDscParsingConfiguration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Storage Blob '{0}' already exists. Use the -Force parameter to overwrite it.. + /// + public static string AzureVMDscStorageBlobAlreadyExists + { + get + { + return ResourceManager.GetString("AzureVMDscStorageBlobAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Upload '{0}'. + /// + public static string AzureVMDscUploadToBlobStorageAction + { + get + { + return ResourceManager.GetString("AzureVMDscUploadToBlobStorageAction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Execution failed because a background thread could not prompt the user.. + /// + public static string BaseShouldMethodFailureReason + { + get + { + return ResourceManager.GetString("BaseShouldMethodFailureReason", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Base Uri was empty.. + /// + public static string BaseUriEmpty + { + get + { + return ResourceManager.GetString("BaseUriEmpty", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} begin processing without ParameterSet.. + /// + public static string BeginProcessingWithoutParameterSetLog + { + get + { + return ResourceManager.GetString("BeginProcessingWithoutParameterSetLog", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} begin processing with ParameterSet '{1}'.. + /// + public static string BeginProcessingWithParameterSetLog + { + get + { + return ResourceManager.GetString("BeginProcessingWithParameterSetLog", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Blob with the name {0} already exists in the account.. + /// + public static string BlobAlreadyExistsInTheAccount + { + get + { + return ResourceManager.GetString("BlobAlreadyExistsInTheAccount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to https://{0}.blob.core.windows.net/. + /// + public static string BlobEndpointUri + { + get + { + return ResourceManager.GetString("BlobEndpointUri", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AZURE_BLOBSTORAGE_TEMPLATE. + /// + public static string BlobEndpointUriEnv + { + get + { + return ResourceManager.GetString("BlobEndpointUriEnv", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The parameter : '{0}' is changing.. + /// + public static string BreakingChangeAttributeParameterChanging + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterChanging", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The parameter : '{0}' is becoming mandatory.. + /// + public static string BreakingChangeAttributeParameterMandatoryNow + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterMandatoryNow", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The parameter : '{0}' is being replaced by parameter : '{1}'.. + /// + public static string BreakingChangeAttributeParameterReplaced + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterReplaced", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The parameter : '{0}' is being replaced by mandatory parameter : '{1}'.. + /// + public static string BreakingChangeAttributeParameterReplacedMandatory + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterReplacedMandatory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The type of the parameter is changing from '{0}' to '{1}'.. + /// + public static string BreakingChangeAttributeParameterTypeChange + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterTypeChange", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Change description : {0} + ///. + /// + public static string BreakingChangesAttributesChangeDescriptionMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesChangeDescriptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The cmdlet is being deprecated. There will be no replacement for it.. + /// + public static string BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The cmdlet is being deprecated. There will be no replacement for it.. + /// + public static string BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The cmdlet '{0}' is replacing this cmdlet.. + /// + public static string BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The output type is changing from the existing type :'{0}' to the new type :'{1}'. + /// + public static string BreakingChangesAttributesCmdLetOutputChange1 + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputChange1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "The output type '{0}' is changing". + /// + public static string BreakingChangesAttributesCmdLetOutputChange2 + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputChange2", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ///- The following properties are being added to the output type : + ///. + /// + public static string BreakingChangesAttributesCmdLetOutputPropertiesAdded + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputPropertiesAdded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + /// - The following properties in the output type are being deprecated : + ///. + /// + public static string BreakingChangesAttributesCmdLetOutputPropertiesRemoved + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputPropertiesRemoved", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The output type '{0}' is being deprecated without a replacement.. + /// + public static string BreakingChangesAttributesCmdLetOutputTypeDeprecated + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputTypeDeprecated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to - {0} + /// + ///. + /// + public static string BreakingChangesAttributesDeclarationMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesDeclarationMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to - Cmdlet : '{0}' + /// - {1} + ///. + /// + public static string BreakingChangesAttributesDeclarationMessageWithCmdletName + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesDeclarationMessageWithCmdletName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to NOTE : Go to {0} for steps to suppress (and other related information on) the breaking change messages.. + /// + public static string BreakingChangesAttributesFooterMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesFooterMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Breaking changes in the cmdlet '{0}' :. + /// + public static string BreakingChangesAttributesHeaderMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesHeaderMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note : This change will take effect on '{0}' + ///. + /// + public static string BreakingChangesAttributesInEffectByDateMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByDateMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByAzVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ```powershell + ///# Old + ///{0} + /// + ///# New + ///{1} + ///``` + /// + ///. + /// + public static string BreakingChangesAttributesUsageChangeMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesUsageChangeMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cmdlet invocation changes : + /// Old Way : {0} + /// New Way : {1}. + /// + public static string BreakingChangesAttributesUsageChangeMessageConsole + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesUsageChangeMessageConsole", resourceCulture); + } + } + + /// + /// The cmdlet is in experimental stage. The function may not be enabled in current subscription. + /// + public static string ExperimentalCmdletMessage + { + get + { + return ResourceManager.GetString("ExperimentalCmdletMessage", resourceCulture); + } + } + + + + /// + /// Looks up a localized string similar to CACHERUNTIMEURL. + /// + public static string CacheRuntimeUrl + { + get + { + return ResourceManager.GetString("CacheRuntimeUrl", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to cache. + /// + public static string CacheRuntimeValue + { + get + { + return ResourceManager.GetString("CacheRuntimeValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to CacheRuntimeVersion. + /// + public static string CacheRuntimeVersionKey + { + get + { + return ResourceManager.GetString("CacheRuntimeVersionKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installing caching version {0} for Role '{1}' (the caching version locally installed is: {2}). + /// + public static string CacheVersionWarningText + { + get + { + return ResourceManager.GetString("CacheVersionWarningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot change built-in environment {0}.. + /// + public static string CannotChangeBuiltinEnvironment + { + get + { + return ResourceManager.GetString("CannotChangeBuiltinEnvironment", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find {0} with name {1}.. + /// + public static string CannotFind + { + get + { + return ResourceManager.GetString("CannotFind", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deployment for service {0} with {1} slot doesn't exist. + /// + public static string CannotFindDeployment + { + get + { + return ResourceManager.GetString("CannotFindDeployment", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Can't find valid Microsoft Azure role in current directory {0}. + /// + public static string CannotFindRole + { + get + { + return ResourceManager.GetString("CannotFindRole", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service {0} configuration file (ServiceConfiguration.Cloud.cscfg) is either null or doesn't exist. + /// + public static string CannotFindServiceConfigurationFile + { + get + { + return ResourceManager.GetString("CannotFindServiceConfigurationFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid service path! Cannot locate ServiceDefinition.csdef in current folder or parent folders.. + /// + public static string CannotFindServiceRoot + { + get + { + return ResourceManager.GetString("CannotFindServiceRoot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription named {0} with id {1} is not currently imported. You must import this subscription before it can be updated.. + /// + public static string CannotUpdateUnknownSubscription + { + get + { + return ResourceManager.GetString("CannotUpdateUnknownSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ManagementCertificate. + /// + public static string CertificateElementName + { + get + { + return ResourceManager.GetString("CertificateElementName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to certificate.pfx. + /// + public static string CertificateFileName + { + get + { + return ResourceManager.GetString("CertificateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Certificate imported into CurrentUser\My\{0}. + /// + public static string CertificateImportedMessage + { + get + { + return ResourceManager.GetString("CertificateImportedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No certificate was found in the certificate store with thumbprint {0}. + /// + public static string CertificateNotFoundInStore + { + get + { + return ResourceManager.GetString("CertificateNotFoundInStore", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Your account does not have access to the private key for certificate {0}. + /// + public static string CertificatePrivateKeyAccessError + { + get + { + return ResourceManager.GetString("CertificatePrivateKeyAccessError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} {1} deployment for {2} service. + /// + public static string ChangeDeploymentStateWaitMessage + { + get + { + return ResourceManager.GetString("ChangeDeploymentStateWaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cloud service {0} is in {1} state.. + /// + public static string ChangeDeploymentStatusCompleteMessage + { + get + { + return ResourceManager.GetString("ChangeDeploymentStatusCompleteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Changing/Removing public environment '{0}' is not allowed.. + /// + public static string ChangePublicEnvironmentMessage + { + get + { + return ResourceManager.GetString("ChangePublicEnvironmentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service {0} is set to value {1}. + /// + public static string ChangeSettingsElementMessage + { + get + { + return ResourceManager.GetString("ChangeSettingsElementMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Changing public environment is not supported.. + /// + public static string ChangingDefaultEnvironmentNotSupported + { + get + { + return ResourceManager.GetString("ChangingDefaultEnvironmentNotSupported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Choose which publish settings file to use:. + /// + public static string ChoosePublishSettingsFile + { + get + { + return ResourceManager.GetString("ChoosePublishSettingsFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel. + /// + public static string ClientDiagnosticLevelName + { + get + { + return ResourceManager.GetString("ClientDiagnosticLevelName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 1. + /// + public static string ClientDiagnosticLevelValue + { + get + { + return ResourceManager.GetString("ClientDiagnosticLevelValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to cloud_package.cspkg. + /// + public static string CloudPackageFileName + { + get + { + return ResourceManager.GetString("CloudPackageFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ServiceConfiguration.Cloud.cscfg. + /// + public static string CloudServiceConfigurationFileName + { + get + { + return ResourceManager.GetString("CloudServiceConfigurationFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-ons for {0}. + /// + public static string CloudServiceDescription + { + get + { + return ResourceManager.GetString("CloudServiceDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Communication could not be established. This could be due to an invalid subscription ID. Note that subscription IDs are case sensitive.. + /// + public static string CommunicationCouldNotBeEstablished + { + get + { + return ResourceManager.GetString("CommunicationCouldNotBeEstablished", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Complete. + /// + public static string CompleteMessage + { + get + { + return ResourceManager.GetString("CompleteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to OperationID : '{0}'. + /// + public static string ComputeCloudExceptionOperationIdMessage + { + get + { + return ResourceManager.GetString("ComputeCloudExceptionOperationIdMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to config.json. + /// + public static string ConfigurationFileName + { + get + { + return ResourceManager.GetString("ConfigurationFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VirtualMachine creation failed.. + /// + public static string CreateFailedErrorMessage + { + get + { + return ResourceManager.GetString("CreateFailedErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating the website failed. If this is the first website for this subscription, please create it using the management portal instead.. + /// + public static string CreateWebsiteFailed + { + get + { + return ResourceManager.GetString("CreateWebsiteFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core. + /// + public static string DataCacheClientsType + { + get + { + return ResourceManager.GetString("DataCacheClientsType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to //blobcontainer[@datacenter='{0}']. + /// + public static string DatacenterBlobQuery + { + get + { + return ResourceManager.GetString("DatacenterBlobQuery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft Azure PowerShell Data Collection Confirmation. + /// + public static string DataCollectionActivity + { + get + { + return ResourceManager.GetString("DataCollectionActivity", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You choose not to participate in Microsoft Azure PowerShell data collection.. + /// + public static string DataCollectionConfirmNo + { + get + { + return ResourceManager.GetString("DataCollectionConfirmNo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This confirmation message will be dismissed in '{0}' second(s).... + /// + public static string DataCollectionConfirmTime + { + get + { + return ResourceManager.GetString("DataCollectionConfirmTime", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You choose to participate in Microsoft Azure PowerShell data collection.. + /// + public static string DataCollectionConfirmYes + { + get + { + return ResourceManager.GetString("DataCollectionConfirmYes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The setting profile has been saved to the following path '{0}'.. + /// + public static string DataCollectionSaveFileInformation + { + get + { + return ResourceManager.GetString("DataCollectionSaveFileInformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Setting: {0} as the default and current subscription. To view other subscriptions use Get-AzureSubscription. + /// + public static string DefaultAndCurrentSubscription + { + get + { + return ResourceManager.GetString("DefaultAndCurrentSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to none. + /// + public static string DefaultFileVersion + { + get + { + return ResourceManager.GetString("DefaultFileVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There are no hostnames which could be used for validation.. + /// + public static string DefaultHostnamesValidation + { + get + { + return ResourceManager.GetString("DefaultHostnamesValidation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 8080. + /// + public static string DefaultPort + { + get + { + return ResourceManager.GetString("DefaultPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 1000. + /// + public static string DefaultRoleCachingInMB + { + get + { + return ResourceManager.GetString("DefaultRoleCachingInMB", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Auto. + /// + public static string DefaultUpgradeMode + { + get + { + return ResourceManager.GetString("DefaultUpgradeMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 80. + /// + public static string DefaultWebPort + { + get + { + return ResourceManager.GetString("DefaultWebPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete. + /// + public static string Delete + { + get + { + return ResourceManager.GetString("Delete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The {0} slot for service {1} is already in {2} state. + /// + public static string DeploymentAlreadyInState + { + get + { + return ResourceManager.GetString("DeploymentAlreadyInState", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The deployment in {0} slot for service {1} is removed. + /// + public static string DeploymentRemovedMessage + { + get + { + return ResourceManager.GetString("DeploymentRemovedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel. + /// + public static string DiagnosticLevelName + { + get + { + return ResourceManager.GetString("DiagnosticLevelName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 1. + /// + public static string DiagnosticLevelValue + { + get + { + return ResourceManager.GetString("DiagnosticLevelValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The key to add already exists in the dictionary.. + /// + public static string DictionaryAddAlreadyContainsKey + { + get + { + return ResourceManager.GetString("DictionaryAddAlreadyContainsKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The array index cannot be less than zero.. + /// + public static string DictionaryCopyToArrayIndexLessThanZero + { + get + { + return ResourceManager.GetString("DictionaryCopyToArrayIndexLessThanZero", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The supplied array does not have enough room to contain the copied elements.. + /// + public static string DictionaryCopyToArrayTooShort + { + get + { + return ResourceManager.GetString("DictionaryCopyToArrayTooShort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided dns {0} doesn't exist. + /// + public static string DnsDoesNotExist + { + get + { + return ResourceManager.GetString("DnsDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft Azure Certificate. + /// + public static string EnableRemoteDesktop_FriendlyCertificateName + { + get + { + return ResourceManager.GetString("EnableRemoteDesktop_FriendlyCertificateName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Endpoint can't be retrieved for storage account. + /// + public static string EndPointNotFoundForBlobStorage + { + get + { + return ResourceManager.GetString("EndPointNotFoundForBlobStorage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} end processing.. + /// + public static string EndProcessingLog + { + get + { + return ResourceManager.GetString("EndProcessingLog", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to To use Active Directory authentication, you must configure the ActiveDirectoryEndpoint, ActiveDirectoryTenantId, and ActiveDirectorServiceEndpointResourceId for environment of '{0}'. You can configure these properties for this environment using the Set-AzureEnvironment cmdlet.. + /// + public static string EnvironmentDoesNotSupportActiveDirectory + { + get + { + return ResourceManager.GetString("EnvironmentDoesNotSupportActiveDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The environment '{0}' already exists.. + /// + public static string EnvironmentExists + { + get + { + return ResourceManager.GetString("EnvironmentExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Environment name doesn't match one in subscription.. + /// + public static string EnvironmentNameDoesntMatchSubscription + { + get + { + return ResourceManager.GetString("EnvironmentNameDoesntMatchSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Environment name needs to be specified.. + /// + public static string EnvironmentNameNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("EnvironmentNameNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Environment needs to be specified.. + /// + public static string EnvironmentNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("EnvironmentNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The environment name '{0}' is not found.. + /// + public static string EnvironmentNotFound + { + get + { + return ResourceManager.GetString("EnvironmentNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to environments.xml. + /// + public static string EnvironmentsFileName + { + get + { + return ResourceManager.GetString("EnvironmentsFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Error creating VirtualMachine. + /// + public static string ErrorCreatingVirtualMachine + { + get + { + return ResourceManager.GetString("ErrorCreatingVirtualMachine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to download available runtimes for location '{0}'. + /// + public static string ErrorRetrievingRuntimesForLocation + { + get + { + return ResourceManager.GetString("ErrorRetrievingRuntimesForLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Error updating VirtualMachine. + /// + public static string ErrorUpdatingVirtualMachine + { + get + { + return ResourceManager.GetString("ErrorUpdatingVirtualMachine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Job Id {0} failed. Error: {1}, ExceptionDetails: {2}. + /// + public static string FailedJobErrorMessage + { + get + { + return ResourceManager.GetString("FailedJobErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to File path is not valid.. + /// + public static string FilePathIsNotValid + { + get + { + return ResourceManager.GetString("FilePathIsNotValid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The HTTP request was forbidden with client authentication scheme 'Anonymous'.. + /// + public static string FirstPurchaseErrorMessage + { + get + { + return ResourceManager.GetString("FirstPurchaseErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This add-on requires you to purchase the first instance through the Microsoft Azure Portal. Subsequent purchases can be performed through PowerShell.. + /// + public static string FirstPurchaseMessage + { + get + { + return ResourceManager.GetString("FirstPurchaseMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operation Status:. + /// + public static string GatewayOperationStatus + { + get + { + return ResourceManager.GetString("GatewayOperationStatus", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resources\Scaffolding\General. + /// + public static string GeneralScaffolding + { + get + { + return ResourceManager.GetString("GeneralScaffolding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting all available Microsoft Azure Add-Ons, this may take few minutes.... + /// + public static string GetAllAddOnsWaitMessage + { + get + { + return ResourceManager.GetString("GetAllAddOnsWaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Name{0}Primary Key{0}Seconday Key. + /// + public static string GetStorageKeysHeader + { + get + { + return ResourceManager.GetString("GetStorageKeysHeader", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Git not found. Please install git and place it in your command line path.. + /// + public static string GitNotFound + { + get + { + return ResourceManager.GetString("GitNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Could not find publish settings. Please run Import-AzurePublishSettingsFile.. + /// + public static string GlobalSettingsManager_Load_PublishSettingsNotFound + { + get + { + return ResourceManager.GetString("GlobalSettingsManager_Load_PublishSettingsNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find the WadCfg end element in the config.. + /// + public static string IaasDiagnosticsBadConfigNoEndWadCfg + { + get + { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoEndWadCfg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WadCfg start element in the config is not matching the end element.. + /// + public static string IaasDiagnosticsBadConfigNoMatchingWadCfg + { + get + { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoMatchingWadCfg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find the WadCfg element in the config.. + /// + public static string IaasDiagnosticsBadConfigNoWadCfg + { + get + { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoWadCfg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iisnode.dll. + /// + public static string IISNodeDll + { + get + { + return ResourceManager.GetString("IISNodeDll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iisnode. + /// + public static string IISNodeEngineKey + { + get + { + return ResourceManager.GetString("IISNodeEngineKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iisnode-dev\\release\\x64. + /// + public static string IISNodePath + { + get + { + return ResourceManager.GetString("IISNodePath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iisnode. + /// + public static string IISNodeRuntimeValue + { + get + { + return ResourceManager.GetString("IISNodeRuntimeValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installing IISNode version {0} in Azure for WebRole '{1}' (the version locally installed is: {2}). + /// + public static string IISNodeVersionWarningText + { + get + { + return ResourceManager.GetString("IISNodeVersionWarningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Illegal characters in path.. + /// + public static string IllegalPath + { + get + { + return ResourceManager.GetString("IllegalPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal Server Error. + /// + public static string InternalServerErrorMessage + { + get + { + return ResourceManager.GetString("InternalServerErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot enable memcach protocol on a cache worker role {0}.. + /// + public static string InvalidCacheRoleName + { + get + { + return ResourceManager.GetString("InvalidCacheRoleName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid certificate format. Publish settings may be corrupted. Use Get-AzurePublishSettingsFile to download updated settings. + /// + public static string InvalidCertificate + { + get + { + return ResourceManager.GetString("InvalidCertificate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid certificate format.. + /// + public static string InvalidCertificateSingle + { + get + { + return ResourceManager.GetString("InvalidCertificateSingle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided configuration path is invalid or doesn't exist. + /// + public static string InvalidConfigPath + { + get + { + return ResourceManager.GetString("InvalidConfigPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The country name is invalid, please use a valid two character country code, as described in ISO 3166-1 alpha-2.. + /// + public static string InvalidCountryNameMessage + { + get + { + return ResourceManager.GetString("InvalidCountryNameMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription.. + /// + public static string InvalidDefaultSubscription + { + get + { + return ResourceManager.GetString("InvalidDefaultSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deployment with {0} does not exist. + /// + public static string InvalidDeployment + { + get + { + return ResourceManager.GetString("InvalidDeployment", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The deployment slot name {0} is invalid. Slot name must be either "Staging" or "Production".. + /// + public static string InvalidDeploymentSlot + { + get + { + return ResourceManager.GetString("InvalidDeploymentSlot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "{0}" is an invalid DNS name for {1}. + /// + public static string InvalidDnsName + { + get + { + return ResourceManager.GetString("InvalidDnsName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid service endpoint.. + /// + public static string InvalidEndpoint + { + get + { + return ResourceManager.GetString("InvalidEndpoint", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided file in {0} must be have {1} extension. + /// + public static string InvalidFileExtension + { + get + { + return ResourceManager.GetString("InvalidFileExtension", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to File {0} has invalid characters. + /// + public static string InvalidFileName + { + get + { + return ResourceManager.GetString("InvalidFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You must create your git publishing credentials using the Microsoft Azure portal. + ///Please follow these steps in the portal: + ///1. On the left side open "Web Sites" + ///2. Click on any website + ///3. Choose "Setup Git Publishing" or "Reset deployment credentials" + ///4. Back in the PowerShell window, rerun this command by typing "New-AzureWebSite {site name} -Git -PublishingUsername {username}. + /// + public static string InvalidGitCredentials + { + get + { + return ResourceManager.GetString("InvalidGitCredentials", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The value {0} provided is not a valid GUID. Please provide a valid GUID.. + /// + public static string InvalidGuid + { + get + { + return ResourceManager.GetString("InvalidGuid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The specified hostname does not exist. Please specify a valid hostname for the site.. + /// + public static string InvalidHostnameValidation + { + get + { + return ResourceManager.GetString("InvalidHostnameValidation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role {0} instances must be greater than or equal 0 and less than or equal 20. + /// + public static string InvalidInstancesCount + { + get + { + return ResourceManager.GetString("InvalidInstancesCount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There was an error creating your webjob. Please make sure that the script is in the root folder of the zip file.. + /// + public static string InvalidJobFile + { + get + { + return ResourceManager.GetString("InvalidJobFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Could not download a valid runtime manifest, Please check your internet connection and try again.. + /// + public static string InvalidManifestError + { + get + { + return ResourceManager.GetString("InvalidManifestError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The account {0} was not found. Please specify a valid account name.. + /// + public static string InvalidMediaServicesAccount + { + get + { + return ResourceManager.GetString("InvalidMediaServicesAccount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided name "{0}" does not match the service bus namespace naming rules.. + /// + public static string InvalidNamespaceName + { + get + { + return ResourceManager.GetString("InvalidNamespaceName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path must specify a valid path to an Azure profile.. + /// + public static string InvalidNewProfilePath + { + get + { + return ResourceManager.GetString("InvalidNewProfilePath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Value cannot be null. Parameter name: '{0}'. + /// + public static string InvalidNullArgument + { + get + { + return ResourceManager.GetString("InvalidNullArgument", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} is invalid or empty. + /// + public static string InvalidOrEmptyArgumentMessage + { + get + { + return ResourceManager.GetString("InvalidOrEmptyArgumentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided package path is invalid or doesn't exist. + /// + public static string InvalidPackagePath + { + get + { + return ResourceManager.GetString("InvalidPackagePath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to '{0}' is an invalid parameter set name.. + /// + public static string InvalidParameterSetName + { + get + { + return ResourceManager.GetString("InvalidParameterSetName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} doesn't exist in {1} or you've not passed valid value for it. + /// + public static string InvalidPath + { + get + { + return ResourceManager.GetString("InvalidPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path {0} has invalid characters. + /// + public static string InvalidPathName + { + get + { + return ResourceManager.GetString("InvalidPathName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property bag Hashtable must contain one of the following sets of properties: {SubscriptionId, Certificate}, {SubscriptionId, Username, Password}, {SubscriptionId, ServicePrincipal, Password, Tenant}, {SubscriptionId, AccountId, Token}. + /// + public static string InvalidProfileProperties + { + get + { + return ResourceManager.GetString("InvalidProfileProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided publish settings file {0} has invalid content. Please get valid by running cmdlet Get-AzurePublishSettingsFile. + /// + public static string InvalidPublishSettingsSchema + { + get + { + return ResourceManager.GetString("InvalidPublishSettingsSchema", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided role name "{0}" has invalid characters. + /// + public static string InvalidRoleNameMessage + { + get + { + return ResourceManager.GetString("InvalidRoleNameMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A valid name for the service root folder is required. + /// + public static string InvalidRootNameMessage + { + get + { + return ResourceManager.GetString("InvalidRootNameMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} is not a recognized runtime type. + /// + public static string InvalidRuntimeError + { + get + { + return ResourceManager.GetString("InvalidRuntimeError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A valid language is required. + /// + public static string InvalidScaffoldingLanguageArg + { + get + { + return ResourceManager.GetString("InvalidScaffoldingLanguageArg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No subscription is currently selected. Use Select-Subscription to activate a subscription.. + /// + public static string InvalidSelectedSubscription + { + get + { + return ResourceManager.GetString("InvalidSelectedSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided location "{0}" does not exist in the available locations use Get-AzureSBLocation for listing available locations.. + /// + public static string InvalidServiceBusLocation + { + get + { + return ResourceManager.GetString("InvalidServiceBusLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please provide a service name or run this command from inside a service project directory.. + /// + public static string InvalidServiceName + { + get + { + return ResourceManager.GetString("InvalidServiceName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You must provide valid value for {0}. + /// + public static string InvalidServiceSettingElement + { + get + { + return ResourceManager.GetString("InvalidServiceSettingElement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to settings.json is invalid or doesn't exist. + /// + public static string InvalidServiceSettingMessage + { + get + { + return ResourceManager.GetString("InvalidServiceSettingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription named '{0}' cannot be found. Use Set-AzureSubscription to initialize the subscription data.. + /// + public static string InvalidSubscription + { + get + { + return ResourceManager.GetString("InvalidSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided subscription id {0} is not valid. + /// + public static string InvalidSubscriptionId + { + get + { + return ResourceManager.GetString("InvalidSubscriptionId", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Must specify a non-null subscription name.. + /// + public static string InvalidSubscriptionName + { + get + { + return ResourceManager.GetString("InvalidSubscriptionName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A valid subscription name is required. This can be provided using the -Subscription parameter or by setting the subscription via the Set-AzureSubscription cmdlet. + /// + public static string InvalidSubscriptionNameMessage + { + get + { + return ResourceManager.GetString("InvalidSubscriptionNameMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided subscriptions file {0} has invalid content.. + /// + public static string InvalidSubscriptionsDataSchema + { + get + { + return ResourceManager.GetString("InvalidSubscriptionsDataSchema", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role {0} VM size should be ExtraSmall, Small, Medium, Large or ExtraLarge.. + /// + public static string InvalidVMSize + { + get + { + return ResourceManager.GetString("InvalidVMSize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The web job file must have *.zip extension. + /// + public static string InvalidWebJobFile + { + get + { + return ResourceManager.GetString("InvalidWebJobFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Singleton option works for continuous jobs only.. + /// + public static string InvalidWebJobSingleton + { + get + { + return ResourceManager.GetString("InvalidWebJobSingleton", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The website {0} was not found. Please specify a valid website name.. + /// + public static string InvalidWebsite + { + get + { + return ResourceManager.GetString("InvalidWebsite", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No job for id: {0} was found.. + /// + public static string JobNotFound + { + get + { + return ResourceManager.GetString("JobNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to engines. + /// + public static string JsonEnginesSectionName + { + get + { + return ResourceManager.GetString("JsonEnginesSectionName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Scaffolding for this language is not yet supported. + /// + public static string LanguageScaffoldingIsNotSupported + { + get + { + return ResourceManager.GetString("LanguageScaffoldingIsNotSupported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Link already established. + /// + public static string LinkAlreadyEstablished + { + get + { + return ResourceManager.GetString("LinkAlreadyEstablished", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to local_package.csx. + /// + public static string LocalPackageFileName + { + get + { + return ResourceManager.GetString("LocalPackageFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ServiceConfiguration.Local.cscfg. + /// + public static string LocalServiceConfigurationFileName + { + get + { + return ResourceManager.GetString("LocalServiceConfigurationFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Looking for {0} deployment for {1} cloud service.... + /// + public static string LookingForDeploymentMessage + { + get + { + return ResourceManager.GetString("LookingForDeploymentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Looking for cloud service {0}.... + /// + public static string LookingForServiceMessage + { + get + { + return ResourceManager.GetString("LookingForServiceMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure Long-Running Job. + /// + public static string LROJobName + { + get + { + return ResourceManager.GetString("LROJobName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The cmdlet failed in background execution. The returned error was '{0}'. Please execute the cmdlet again. You may need to execute this cmdlet synchronously, by omitting the '-AsJob' parameter.. + /// + public static string LROTaskExceptionMessage + { + get + { + return ResourceManager.GetString("LROTaskExceptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to managementCertificate.pem. + /// + public static string ManagementCertificateFileName + { + get + { + return ResourceManager.GetString("ManagementCertificateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ?whr={0}. + /// + public static string ManagementPortalRealmFormat + { + get + { + return ResourceManager.GetString("ManagementPortalRealmFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to //baseuri. + /// + public static string ManifestBaseUriQuery + { + get + { + return ResourceManager.GetString("ManifestBaseUriQuery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to uri. + /// + public static string ManifestBlobUriKey + { + get + { + return ResourceManager.GetString("ManifestBlobUriKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to http://az413943.vo.msecnd.net/node/runtimemanifest_0.7.5.2.xml. + /// + public static string ManifestUri + { + get + { + return ResourceManager.GetString("ManifestUri", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property bag Hashtable must contain a 'Certificate' of type 'X509Certificate2'.. + /// + public static string MissingCertificateInProfileProperties + { + get + { + return ResourceManager.GetString("MissingCertificateInProfileProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property bag Hashtable must contain a 'Password' with an associated 'Username' or 'ServicePrincipal'.. + /// + public static string MissingPasswordInProfileProperties + { + get + { + return ResourceManager.GetString("MissingPasswordInProfileProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property bag Hashtable must contain a 'SubscriptionId'.. + /// + public static string MissingSubscriptionInProfileProperties + { + get + { + return ResourceManager.GetString("MissingSubscriptionInProfileProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Multiple Add-Ons found holding name {0}. + /// + public static string MultipleAddOnsFoundMessage + { + get + { + return ResourceManager.GetString("MultipleAddOnsFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Multiple possible publishing users. Please go to the Portal and use the listed deployment user, or click 'set/reset deployment credentials' to set up a new user account, then reurn this cmdlet and specify PublishingUsername.. + /// + public static string MultiplePublishingUsernames + { + get + { + return ResourceManager.GetString("MultiplePublishingUsernames", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The first publish settings file "{0}" is used. If you want to use another file specify the file name.. + /// + public static string MultiplePublishSettingsFilesFoundMessage + { + get + { + return ResourceManager.GetString("MultiplePublishSettingsFilesFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.NamedCaches. + /// + public static string NamedCacheSettingName + { + get + { + return ResourceManager.GetString("NamedCacheSettingName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {"caches":[{"name":"default","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":1},"serverNotification":{"isEnabled":false}},"secondaries":0}]}. + /// + public static string NamedCacheSettingValue + { + get + { + return ResourceManager.GetString("NamedCacheSettingValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A publishing username is required. Please specify one using the argument PublishingUsername.. + /// + public static string NeedPublishingUsernames + { + get + { + return ResourceManager.GetString("NeedPublishingUsernames", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Add-On Confirmation. + /// + public static string NewAddOnConformation + { + get + { + return ResourceManager.GetString("NewAddOnConformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis + ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) + ///agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my + ///contact information with {2}.. + /// + public static string NewMicrosoftAddOnMessage + { + get + { + return ResourceManager.GetString("NewMicrosoftAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal Server Error. This could happen because the namespace name is already used or due to an incorrect location name. Use Get-AzureSBLocation cmdlet to list valid names.. + /// + public static string NewNamespaceErrorMessage + { + get + { + return ResourceManager.GetString("NewNamespaceErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis + ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) + ///acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of + ///use and privacy statement at {0} and (c) agree to sharing my contact information with {2}.. + /// + public static string NewNonMicrosoftAddOnMessage + { + get + { + return ResourceManager.GetString("NewNonMicrosoftAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service has been created at {0}. + /// + public static string NewServiceCreatedMessage + { + get + { + return ResourceManager.GetString("NewServiceCreatedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No. + /// + public static string No + { + get + { + return ResourceManager.GetString("No", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There is no access token cached for subscription {0}, user id {1}. Use the Add-AzureAccount cmdlet to log in again and get a token for this subscription.. + /// + public static string NoCachedToken + { + get + { + return ResourceManager.GetString("NoCachedToken", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The service does not have any cache worker roles, add one first by running cmdlet Add-AzureCacheWorkerRole.. + /// + public static string NoCacheWorkerRoles + { + get + { + return ResourceManager.GetString("NoCacheWorkerRoles", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No clouds available. + /// + public static string NoCloudsAvailable + { + get + { + return ResourceManager.GetString("NoCloudsAvailable", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "There is no current context, please log in using Connect-AzAccount.". + /// + public static string NoCurrentContextForDataCmdlet + { + get + { + return ResourceManager.GetString("NoCurrentContextForDataCmdlet", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to nodejs. + /// + public static string NodeDirectory + { + get + { + return ResourceManager.GetString("NodeDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to node. + /// + public static string NodeEngineKey + { + get + { + return ResourceManager.GetString("NodeEngineKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to node.exe. + /// + public static string NodeExe + { + get + { + return ResourceManager.GetString("NodeExe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There is no default subscription set, please set a default subscription by running Set-AzureSubscription -Default <subscription name>. + /// + public static string NoDefaultSubscriptionMessage + { + get + { + return ResourceManager.GetString("NoDefaultSubscriptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft SDKs\Azure\Nodejs\Nov2011. + /// + public static string NodeModulesPath + { + get + { + return ResourceManager.GetString("NodeModulesPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to nodejs. + /// + public static string NodeProgramFilesFolderName + { + get + { + return ResourceManager.GetString("NodeProgramFilesFolderName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to node. + /// + public static string NodeRuntimeValue + { + get + { + return ResourceManager.GetString("NodeRuntimeValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resources\Scaffolding\Node. + /// + public static string NodeScaffolding + { + get + { + return ResourceManager.GetString("NodeScaffolding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.Node. + /// + public static string NodeScaffoldingResources + { + get + { + return ResourceManager.GetString("NodeScaffoldingResources", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installing Node version {0} in Azure for Role '{1}' (the Node version locally installed is: {2}). + /// + public static string NodeVersionWarningText + { + get + { + return ResourceManager.GetString("NodeVersionWarningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No, I do not agree. + /// + public static string NoHint + { + get + { + return ResourceManager.GetString("NoHint", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please connect to internet before executing this cmdlet. + /// + public static string NoInternetConnection + { + get + { + return ResourceManager.GetString("NoInternetConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to <NONE>. + /// + public static string None + { + get + { + return ResourceManager.GetString("None", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No publish settings files with extension *.publishsettings are found in the directory "{0}".. + /// + public static string NoPublishSettingsFilesFoundMessage + { + get + { + return ResourceManager.GetString("NoPublishSettingsFilesFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There is no subscription associated with account {0}.. + /// + public static string NoSubscriptionAddedMessage + { + get + { + return ResourceManager.GetString("NoSubscriptionAddedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or co-administrator for any account.\r\nDid you mean to execute Connect-AzAccount?. + /// + public static string NoSubscriptionFoundForTenant + { + get + { + return ResourceManager.GetString("NoSubscriptionFoundForTenant", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to '{0}' must be a cache worker role. Verify that it has proper cache worker role configuration.. + /// + public static string NotCacheWorkerRole + { + get + { + return ResourceManager.GetString("NotCacheWorkerRole", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Certificate can't be null.. + /// + public static string NullCertificateMessage + { + get + { + return ResourceManager.GetString("NullCertificateMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} could not be null or empty. + /// + public static string NullObjectMessage + { + get + { + return ResourceManager.GetString("NullObjectMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to add a null RoleSettings to {0}. + /// + public static string NullRoleSettingsMessage + { + get + { + return ResourceManager.GetString("NullRoleSettingsMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to add new role to null service definition. + /// + public static string NullServiceDefinitionMessage + { + get + { + return ResourceManager.GetString("NullServiceDefinitionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The request offer '{0}' is not found.. + /// + public static string OfferNotFoundMessage + { + get + { + return ResourceManager.GetString("OfferNotFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operation "{0}" failed on VM with ID: {1}. + /// + public static string OperationFailedErrorMessage + { + get + { + return ResourceManager.GetString("OperationFailedErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The REST operation failed with message '{0}' and error code '{1}'. + /// + public static string OperationFailedMessage + { + get + { + return ResourceManager.GetString("OperationFailedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Job Id {0} did not complete within expected time or it is in Failed/Canceled/Invalid state.. + /// + public static string OperationTimedOutOrError + { + get + { + return ResourceManager.GetString("OperationTimedOutOrError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to package. + /// + public static string Package + { + get + { + return ResourceManager.GetString("Package", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Package is created at service root path {0}.. + /// + public static string PackageCreated + { + get + { + return ResourceManager.GetString("PackageCreated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {{ + /// "author": "", + /// + /// "name": "{0}", + /// "version": "0.0.0", + /// "dependencies":{{}}, + /// "devDependencies":{{}}, + /// "optionalDependencies": {{}}, + /// "engines": {{ + /// "node": "*", + /// "iisnode": "*" + /// }} + /// + ///}} + ///. + /// + public static string PackageJsonDefaultFile + { + get + { + return ResourceManager.GetString("PackageJsonDefaultFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to package.json. + /// + public static string PackageJsonFileName + { + get + { + return ResourceManager.GetString("PackageJsonFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path {0} doesn't exist.. + /// + public static string PathDoesNotExist + { + get + { + return ResourceManager.GetString("PathDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path for {0} doesn't exist in {1}.. + /// + public static string PathDoesNotExistForElement + { + get + { + return ResourceManager.GetString("PathDoesNotExistForElement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A value for the Peer Asn has to be provided.. + /// + public static string PeerAsnRequired + { + get + { + return ResourceManager.GetString("PeerAsnRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 5.4.0. + /// + public static string PHPDefaultRuntimeVersion + { + get + { + return ResourceManager.GetString("PHPDefaultRuntimeVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to php. + /// + public static string PhpRuntimeValue + { + get + { + return ResourceManager.GetString("PhpRuntimeValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resources\Scaffolding\PHP. + /// + public static string PHPScaffolding + { + get + { + return ResourceManager.GetString("PHPScaffolding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.PHP. + /// + public static string PHPScaffoldingResources + { + get + { + return ResourceManager.GetString("PHPScaffoldingResources", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installing PHP version {0} for Role '{1}' (the PHP version locally installed is: {2}). + /// + public static string PHPVersionWarningText + { + get + { + return ResourceManager.GetString("PHPVersionWarningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You must create your first web site using the Microsoft Azure portal. + ///Please follow these steps in the portal: + ///1. At the bottom of the page, click on New > Web Site > Quick Create + ///2. Type {0} in the URL field + ///3. Click on "Create Web Site" + ///4. Once the site has been created, click on the site name + ///5. Click on "Set up Git publishing" or "Reset deployment credentials" and setup a publishing username and password. Use those credentials for all new websites you create.. + /// + public static string PortalInstructions + { + get + { + return ResourceManager.GetString("PortalInstructions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 6. Back in the console window, rerun this command by typing "New-AzureWebsite <site name> -Git". + /// + public static string PortalInstructionsGit + { + get + { + return ResourceManager.GetString("PortalInstructionsGit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The estimated generally available date is '{0}'.. + /// + public static string PreviewCmdletETAMessage { + get { + return ResourceManager.GetString("PreviewCmdletETAMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This cmdlet is in preview. Its behavior is subject to change based on customer feedback.. + /// + public static string PreviewCmdletMessage + { + get + { + return ResourceManager.GetString("PreviewCmdletMessage", resourceCulture); + } + } + + + /// + /// Looks up a localized string similar to A value for the Primary Peer Subnet has to be provided.. + /// + public static string PrimaryPeerSubnetRequired + { + get + { + return ResourceManager.GetString("PrimaryPeerSubnetRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Promotion code can be used only when updating to a new plan.. + /// + public static string PromotionCodeWithCurrentPlanMessage + { + get + { + return ResourceManager.GetString("PromotionCodeWithCurrentPlanMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service not published at user request.. + /// + public static string PublishAbortedAtUserRequest + { + get + { + return ResourceManager.GetString("PublishAbortedAtUserRequest", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Complete.. + /// + public static string PublishCompleteMessage + { + get + { + return ResourceManager.GetString("PublishCompleteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connecting.... + /// + public static string PublishConnectingMessage + { + get + { + return ResourceManager.GetString("PublishConnectingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Created Deployment ID: {0}.. + /// + public static string PublishCreatedDeploymentMessage + { + get + { + return ResourceManager.GetString("PublishCreatedDeploymentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Created hosted service '{0}'.. + /// + public static string PublishCreatedServiceMessage + { + get + { + return ResourceManager.GetString("PublishCreatedServiceMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Created Website URL: {0}.. + /// + public static string PublishCreatedWebsiteMessage + { + get + { + return ResourceManager.GetString("PublishCreatedWebsiteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating.... + /// + public static string PublishCreatingServiceMessage + { + get + { + return ResourceManager.GetString("PublishCreatingServiceMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Initializing.... + /// + public static string PublishInitializingMessage + { + get + { + return ResourceManager.GetString("PublishInitializingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to busy. + /// + public static string PublishInstanceStatusBusy + { + get + { + return ResourceManager.GetString("PublishInstanceStatusBusy", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to creating the virtual machine. + /// + public static string PublishInstanceStatusCreating + { + get + { + return ResourceManager.GetString("PublishInstanceStatusCreating", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Instance {0} of role {1} is {2}.. + /// + public static string PublishInstanceStatusMessage + { + get + { + return ResourceManager.GetString("PublishInstanceStatusMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ready. + /// + public static string PublishInstanceStatusReady + { + get + { + return ResourceManager.GetString("PublishInstanceStatusReady", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Preparing deployment for {0} with Subscription ID: {1}.... + /// + public static string PublishPreparingDeploymentMessage + { + get + { + return ResourceManager.GetString("PublishPreparingDeploymentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Publishing {0} to Microsoft Azure. This may take several minutes.... + /// + public static string PublishServiceStartMessage + { + get + { + return ResourceManager.GetString("PublishServiceStartMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to publish settings. + /// + public static string PublishSettings + { + get + { + return ResourceManager.GetString("PublishSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure. + /// + public static string PublishSettingsElementName + { + get + { + return ResourceManager.GetString("PublishSettingsElementName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to .PublishSettings. + /// + public static string PublishSettingsFileExtention + { + get + { + return ResourceManager.GetString("PublishSettingsFileExtention", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to publishSettings.xml. + /// + public static string PublishSettingsFileName + { + get + { + return ResourceManager.GetString("PublishSettingsFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &whr={0}. + /// + public static string PublishSettingsFileRealmFormat + { + get + { + return ResourceManager.GetString("PublishSettingsFileRealmFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Publish settings imported. + /// + public static string PublishSettingsSetSuccessfully + { + get + { + return ResourceManager.GetString("PublishSettingsSetSuccessfully", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AZURE_PUBLISHINGPROFILE_URL. + /// + public static string PublishSettingsUrlEnv + { + get + { + return ResourceManager.GetString("PublishSettingsUrlEnv", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Starting.... + /// + public static string PublishStartingMessage + { + get + { + return ResourceManager.GetString("PublishStartingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Upgrading.... + /// + public static string PublishUpgradingMessage + { + get + { + return ResourceManager.GetString("PublishUpgradingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Uploading Package to storage service {0}.... + /// + public static string PublishUploadingPackageMessage + { + get + { + return ResourceManager.GetString("PublishUploadingPackageMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Verifying storage account '{0}'.... + /// + public static string PublishVerifyingStorageMessage + { + get + { + return ResourceManager.GetString("PublishVerifyingStorageMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path '{0}' not found.. + /// + public static string PublishVMDscExtensionAdditionalContentPathNotExist + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionAdditionalContentPathNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Configuration published to {0}. + /// + public static string PublishVMDscExtensionArchiveUploadedMessage + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionArchiveUploadedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy '{0}' to '{1}'.. + /// + public static string PublishVMDscExtensionCopyFileVerbose + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionCopyFileVerbose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy the module '{0}' to '{1}'.. + /// + public static string PublishVMDscExtensionCopyModuleVerbose + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionCopyModuleVerbose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid configuration file: {0}. + ///The file needs to be a PowerShell script (.ps1 or .psm1).. + /// + public static string PublishVMDscExtensionCreateArchiveConfigFileInvalidExtension + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionCreateArchiveConfigFileInvalidExtension", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deleted '{0}'. + /// + public static string PublishVMDscExtensionDeletedFileMessage + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionDeletedFileMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot delete '{0}': {1}. + /// + public static string PublishVMDscExtensionDeleteErrorMessage + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionDeleteErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path '{0}' not found.. + /// + public static string PublishVMDscExtensionDirectoryNotExist + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionDirectoryNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot get module for DscResource '{0}'. Possible solutions: + ///1) Specify -ModuleName for Import-DscResource in your configuration. + ///2) Unblock module that contains resource. + ///3) Move Import-DscResource inside Node block. + ///. + /// + public static string PublishVMDscExtensionGetDscResourceFailed + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionGetDscResourceFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to List of required modules: [{0}].. + /// + public static string PublishVMDscExtensionRequiredModulesVerbose + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionRequiredModulesVerbose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Your current PowerShell version {1} is less then required by this cmdlet {0}. Consider download and install latest PowerShell version.. + /// + public static string PublishVMDscExtensionRequiredPsVersion + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionRequiredPsVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Configuration script '{0}' contained parse errors: + ///{1}. + /// + public static string PublishVMDscExtensionStorageParserErrors + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionStorageParserErrors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Temp folder '{0}' created.. + /// + public static string PublishVMDscExtensionTempFolderVerbose + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionTempFolderVerbose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid configuration file: {0}. + ///The file needs to be a PowerShell script (.ps1 or .psm1) or a ZIP archive (.zip).. + /// + public static string PublishVMDscExtensionUploadArchiveConfigFileInvalidExtension + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionUploadArchiveConfigFileInvalidExtension", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Configuration file '{0}' not found.. + /// + public static string PublishVMDscExtensionUploadArchiveConfigFileNotExist + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionUploadArchiveConfigFileNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure PowerShell collects usage data in order to improve your experience. + ///The data is anonymous and does not include commandline argument values. + ///The data is collected by Microsoft. + /// + ///Use the Disable-AzureDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Azure module. To disable data collection: PS > Disable-AzureDataCollection. + ///Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Azure module. To enable data collection: PS > Enab [rest of string was truncated]";. + /// + public static string RDFEDataCollectionMessage + { + get + { + return ResourceManager.GetString("RDFEDataCollectionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Replace current deployment with '{0}' Id ?. + /// + public static string RedeployCommit + { + get + { + return ResourceManager.GetString("RedeployCommit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to regenerate key?. + /// + public static string RegenerateKeyWarning + { + get + { + return ResourceManager.GetString("RegenerateKeyWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Generate new key.. + /// + public static string RegenerateKeyWhatIfMessage + { + get + { + return ResourceManager.GetString("RegenerateKeyWhatIfMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove account '{0}'?. + /// + public static string RemoveAccountConfirmation + { + get + { + return ResourceManager.GetString("RemoveAccountConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing account. + /// + public static string RemoveAccountMessage + { + get + { + return ResourceManager.GetString("RemoveAccountMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove Add-On Confirmation. + /// + public static string RemoveAddOnConformation + { + get + { + return ResourceManager.GetString("RemoveAddOnConformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to If you delete this add-on, your data may be deleted and the operation may not be undone. You may have to purchase it again from the Microsoft Azure Store to use it. The price of the add-on may not be refunded. Are you sure you want to delete this add-on? Enter “Yes” to confirm.. + /// + public static string RemoveAddOnMessage + { + get + { + return ResourceManager.GetString("RemoveAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove-AzureBGPPeering Operation failed.. + /// + public static string RemoveAzureBGPPeeringFailed + { + get + { + return ResourceManager.GetString("RemoveAzureBGPPeeringFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing Bgp Peering. + /// + public static string RemoveAzureBGPPeeringMessage + { + get + { + return ResourceManager.GetString("RemoveAzureBGPPeeringMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Successfully removed Azure Bgp Peering with Service Key {0}.. + /// + public static string RemoveAzureBGPPeeringSucceeded + { + get + { + return ResourceManager.GetString("RemoveAzureBGPPeeringSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the Bgp Peering with service key '{0}'?. + /// + public static string RemoveAzureBGPPeeringWarning + { + get + { + return ResourceManager.GetString("RemoveAzureBGPPeeringWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the Dedicated Circuit with service key '{0}'?. + /// + public static string RemoveAzureDedicatdCircuitWarning + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatdCircuitWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove-AzureDedicatedCircuit Operation failed.. + /// + public static string RemoveAzureDedicatedCircuitFailed + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove-AzureDedicatedCircuitLink Operation failed.. + /// + public static string RemoveAzureDedicatedCircuitLinkFailed + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing Dedicated Circui Link. + /// + public static string RemoveAzureDedicatedCircuitLinkMessage + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Successfully removed Azure Dedicated Circuit Link with Service Key {0} and Vnet Name {1}. + /// + public static string RemoveAzureDedicatedCircuitLinkSucceeded + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the Dedicated Circuit Link with service key '{0}' and virtual network name '{1}'?. + /// + public static string RemoveAzureDedicatedCircuitLinkWarning + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing Dedicated Circuit. + /// + public static string RemoveAzureDedicatedCircuitMessage + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Successfully removed Azure Dedicated Circuit with Service Key {0}.. + /// + public static string RemoveAzureDedicatedCircuitSucceeded + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing cloud service {0}.... + /// + public static string RemoveAzureServiceWaitMessage + { + get + { + return ResourceManager.GetString("RemoveAzureServiceWaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a new default subscription.. + /// + public static string RemoveDefaultSubscription + { + get + { + return ResourceManager.GetString("RemoveDefaultSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing {0} deployment for {1} service. + /// + public static string RemoveDeploymentWaitMessage + { + get + { + return ResourceManager.GetString("RemoveDeploymentWaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing an environment will remove all associated subscriptions and accounts. Are you sure you want to remove an environment '{0}'?. + /// + public static string RemoveEnvironmentConfirmation + { + get + { + return ResourceManager.GetString("RemoveEnvironmentConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing environment. + /// + public static string RemoveEnvironmentMessage + { + get + { + return ResourceManager.GetString("RemoveEnvironmentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing job collection. + /// + public static string RemoveJobCollectionMessage + { + get + { + return ResourceManager.GetString("RemoveJobCollectionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the job collection "{0}". + /// + public static string RemoveJobCollectionWarning + { + get + { + return ResourceManager.GetString("RemoveJobCollectionWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing job. + /// + public static string RemoveJobMessage + { + get + { + return ResourceManager.GetString("RemoveJobMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the job "{0}". + /// + public static string RemoveJobWarning + { + get + { + return ResourceManager.GetString("RemoveJobWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the account?. + /// + public static string RemoveMediaAccountWarning + { + get + { + return ResourceManager.GetString("RemoveMediaAccountWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account removed.. + /// + public static string RemoveMediaAccountWhatIfMessage + { + get + { + return ResourceManager.GetString("RemoveMediaAccountWhatIfMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal Server Error. This could happen because the namespace does not exist or it does not exist under your subscription.. + /// + public static string RemoveNamespaceErrorMessage + { + get + { + return ResourceManager.GetString("RemoveNamespaceErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing old package {0}.... + /// + public static string RemovePackage + { + get + { + return ResourceManager.GetString("RemovePackage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing the Azure profile will remove all associated environments, subscriptions, and accounts. Are you sure you want to remove the Azure profile?. + /// + public static string RemoveProfileConfirmation + { + get + { + return ResourceManager.GetString("RemoveProfileConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing the Azure profile. + /// + public static string RemoveProfileMessage + { + get + { + return ResourceManager.GetString("RemoveProfileMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the namespace '{0}'?. + /// + public static string RemoveServiceBusNamespaceConfirmation + { + get + { + return ResourceManager.GetString("RemoveServiceBusNamespaceConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove cloud service?. + /// + public static string RemoveServiceWarning + { + get + { + return ResourceManager.GetString("RemoveServiceWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove cloud service and all it's deployments. + /// + public static string RemoveServiceWhatIfMessage + { + get + { + return ResourceManager.GetString("RemoveServiceWhatIfMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove subscription '{0}'?. + /// + public static string RemoveSubscriptionConfirmation + { + get + { + return ResourceManager.GetString("RemoveSubscriptionConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing subscription. + /// + public static string RemoveSubscriptionMessage + { + get + { + return ResourceManager.GetString("RemoveSubscriptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The endpoint {0} cannot be removed from profile {1} because it's not in the profile.. + /// + public static string RemoveTrafficManagerEndpointMissing + { + get + { + return ResourceManager.GetString("RemoveTrafficManagerEndpointMissing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove-AzureTrafficManagerProfile Operation failed.. + /// + public static string RemoveTrafficManagerProfileFailed + { + get + { + return ResourceManager.GetString("RemoveTrafficManagerProfileFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Successfully removed Traffic Manager profile with name {0}.. + /// + public static string RemoveTrafficManagerProfileSucceeded + { + get + { + return ResourceManager.GetString("RemoveTrafficManagerProfileSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the Traffic Manager profile "{0}"?. + /// + public static string RemoveTrafficManagerProfileWarning + { + get + { + return ResourceManager.GetString("RemoveTrafficManagerProfileWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the VM '{0}'?. + /// + public static string RemoveVMConfirmationMessage + { + get + { + return ResourceManager.GetString("RemoveVMConfirmationMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deleting VM.. + /// + public static string RemoveVMMessage + { + get + { + return ResourceManager.GetString("RemoveVMMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing WebJob.... + /// + public static string RemoveWebJobMessage + { + get + { + return ResourceManager.GetString("RemoveWebJobMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove job '{0}'?. + /// + public static string RemoveWebJobWarning + { + get + { + return ResourceManager.GetString("RemoveWebJobWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing website. + /// + public static string RemoveWebsiteMessage + { + get + { + return ResourceManager.GetString("RemoveWebsiteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the website "{0}". + /// + public static string RemoveWebsiteWarning + { + get + { + return ResourceManager.GetString("RemoveWebsiteWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing public environment is not supported.. + /// + public static string RemovingDefaultEnvironmentsNotSupported + { + get + { + return ResourceManager.GetString("RemovingDefaultEnvironmentsNotSupported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deleting namespace. + /// + public static string RemovingNamespaceMessage + { + get + { + return ResourceManager.GetString("RemovingNamespaceMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Repository is not setup. You need to pass a valid site name.. + /// + public static string RepositoryNotSetup + { + get + { + return ResourceManager.GetString("RepositoryNotSetup", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reserved IP with the Name:'{0}' will no longer be in use after the deployment is deleted, and it is still reserved for later use.. + /// + public static string ReservedIPNameNoLongerInUseButStillBeingReserved + { + get + { + return ResourceManager.GetString("ReservedIPNameNoLongerInUseButStillBeingReserved", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resource with ID : {0} does not exist.. + /// + public static string ResourceNotFound + { + get + { + return ResourceManager.GetString("ResourceNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Restart. + /// + public static string Restart + { + get + { + return ResourceManager.GetString("Restart", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resume. + /// + public static string Resume + { + get + { + return ResourceManager.GetString("Resume", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /role:{0};"{1}/{0}" . + /// + public static string RoleArgTemplate + { + get + { + return ResourceManager.GetString("RoleArgTemplate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to bin. + /// + public static string RoleBinFolderName + { + get + { + return ResourceManager.GetString("RoleBinFolderName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role {0} is {1}. + /// + public static string RoleInstanceWaitMsg + { + get + { + return ResourceManager.GetString("RoleInstanceWaitMsg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 20. + /// + public static string RoleMaxInstances + { + get + { + return ResourceManager.GetString("RoleMaxInstances", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to role name. + /// + public static string RoleName + { + get + { + return ResourceManager.GetString("RoleName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided role name {0} doesn't exist. + /// + public static string RoleNotFoundMessage + { + get + { + return ResourceManager.GetString("RoleNotFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RoleSettings.xml. + /// + public static string RoleSettingsTemplateFileName + { + get + { + return ResourceManager.GetString("RoleSettingsTemplateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role type {0} doesn't exist. + /// + public static string RoleTypeDoesNotExist + { + get + { + return ResourceManager.GetString("RoleTypeDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to public static Dictionary<string, Location> ReverseLocations { get; private set; }. + /// + public static string RuntimeDeploymentLocationError + { + get + { + return ResourceManager.GetString("RuntimeDeploymentLocationError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Preparing runtime deployment for service '{0}'. + /// + public static string RuntimeDeploymentStart + { + get + { + return ResourceManager.GetString("RuntimeDeploymentStart", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WARNING Runtime Mismatch: Are you sure that you want to publish service '{0}' using an Azure runtime version that does not match your local runtime version?. + /// + public static string RuntimeMismatchWarning + { + get + { + return ResourceManager.GetString("RuntimeMismatchWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RUNTIMEOVERRIDEURL. + /// + public static string RuntimeOverrideKey + { + get + { + return ResourceManager.GetString("RuntimeOverrideKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /runtimemanifest/runtimes/runtime. + /// + public static string RuntimeQuery + { + get + { + return ResourceManager.GetString("RuntimeQuery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RUNTIMEID. + /// + public static string RuntimeTypeKey + { + get + { + return ResourceManager.GetString("RuntimeTypeKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RUNTIMEURL. + /// + public static string RuntimeUrlKey + { + get + { + return ResourceManager.GetString("RuntimeUrlKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RUNTIMEVERSIONPRIMARYKEY. + /// + public static string RuntimeVersionPrimaryKey + { + get + { + return ResourceManager.GetString("RuntimeVersionPrimaryKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to scaffold.xml. + /// + public static string ScaffoldXml + { + get + { + return ResourceManager.GetString("ScaffoldXml", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid location entered. Pick one of the locations from Get-AzureSchedulerLocation. + /// + public static string SchedulerInvalidLocation + { + get + { + return ResourceManager.GetString("SchedulerInvalidLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A value for the Secondary Peer Subnet has to be provided.. + /// + public static string SecondaryPeerSubnetRequired + { + get + { + return ResourceManager.GetString("SecondaryPeerSubnetRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service {0} already exists on disk in location {1}. + /// + public static string ServiceAlreadyExistsOnDisk + { + get + { + return ResourceManager.GetString("ServiceAlreadyExistsOnDisk", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No ServiceBus authorization rule with the given characteristics was found. + /// + public static string ServiceBusAuthorizationRuleNotFound + { + get + { + return ResourceManager.GetString("ServiceBusAuthorizationRuleNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The service bus entity '{0}' is not found.. + /// + public static string ServiceBusEntityTypeNotFound + { + get + { + return ResourceManager.GetString("ServiceBusEntityTypeNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal Server Error. This could happen due to an incorrect/missing namespace. + /// + public static string ServiceBusNamespaceMissingMessage + { + get + { + return ResourceManager.GetString("ServiceBusNamespaceMissingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service configuration. + /// + public static string ServiceConfiguration + { + get + { + return ResourceManager.GetString("ServiceConfiguration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service definition. + /// + public static string ServiceDefinition + { + get + { + return ResourceManager.GetString("ServiceDefinition", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ServiceDefinition.csdef. + /// + public static string ServiceDefinitionFileName + { + get + { + return ResourceManager.GetString("ServiceDefinitionFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0}Deploy. + /// + public static string ServiceDeploymentName + { + get + { + return ResourceManager.GetString("ServiceDeploymentName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The specified cloud service "{0}" does not exist.. + /// + public static string ServiceDoesNotExist + { + get + { + return ResourceManager.GetString("ServiceDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} slot for service {1} is in {2} state, please wait until it finish and update it's status. + /// + public static string ServiceIsInTransitionState + { + get + { + return ResourceManager.GetString("ServiceIsInTransitionState", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "An exception occurred when calling the ServiceManagement API. HTTP Status Code: {0}. Service Management Error Code: {1}. Message: {2}. Operation Tracking ID: {3}.". + /// + public static string ServiceManagementClientExceptionStringFormat + { + get + { + return ResourceManager.GetString("ServiceManagementClientExceptionStringFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Begin Operation: {0}. + /// + public static string ServiceManagementExecuteClientActionBeginOperation + { + get + { + return ResourceManager.GetString("ServiceManagementExecuteClientActionBeginOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Completed Operation: {0}. + /// + public static string ServiceManagementExecuteClientActionCompletedOperation + { + get + { + return ResourceManager.GetString("ServiceManagementExecuteClientActionCompletedOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Begin Operation: {0}. + /// + public static string ServiceManagementExecuteClientActionInOCSBeginOperation + { + get + { + return ResourceManager.GetString("ServiceManagementExecuteClientActionInOCSBeginOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Completed Operation: {0}. + /// + public static string ServiceManagementExecuteClientActionInOCSCompletedOperation + { + get + { + return ResourceManager.GetString("ServiceManagementExecuteClientActionInOCSCompletedOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service name. + /// + public static string ServiceName + { + get + { + return ResourceManager.GetString("ServiceName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided service name {0} already exists, please pick another name. + /// + public static string ServiceNameExists + { + get + { + return ResourceManager.GetString("ServiceNameExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please provide name for the hosted service. + /// + public static string ServiceNameMissingMessage + { + get + { + return ResourceManager.GetString("ServiceNameMissingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service parent directory. + /// + public static string ServiceParentDirectory + { + get + { + return ResourceManager.GetString("ServiceParentDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service {0} removed successfully. + /// + public static string ServiceRemovedMessage + { + get + { + return ResourceManager.GetString("ServiceRemovedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service directory. + /// + public static string ServiceRoot + { + get + { + return ResourceManager.GetString("ServiceRoot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service settings. + /// + public static string ServiceSettings + { + get + { + return ResourceManager.GetString("ServiceSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The storage account name '{0}' is invalid. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.. + /// + public static string ServiceSettings_ValidateStorageAccountName_InvalidName + { + get + { + return ResourceManager.GetString("ServiceSettings_ValidateStorageAccountName_InvalidName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The {0} slot for cloud service {1} doesn't exist.. + /// + public static string ServiceSlotDoesNotExist + { + get + { + return ResourceManager.GetString("ServiceSlotDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} slot for service {1} is {2}. + /// + public static string ServiceStatusChanged + { + get + { + return ResourceManager.GetString("ServiceStatusChanged", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Set Add-On Confirmation. + /// + public static string SetAddOnConformation + { + get + { + return ResourceManager.GetString("SetAddOnConformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Profile {0} does not contain endpoint {1}. Adding it.. + /// + public static string SetInexistentTrafficManagerEndpointMessage + { + get + { + return ResourceManager.GetString("SetInexistentTrafficManagerEndpointMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note - You will be charged the amount for the new plan, without being refunded for time remaining + ///in the existing plan. + ///By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis + ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) + ///agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my + ///contact information with {2}.. + /// + public static string SetMicrosoftAddOnMessage + { + get + { + return ResourceManager.GetString("SetMicrosoftAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note - You will be charged the amount for the new plan, without being refunded for time remaining + ///in the existing plan. + ///By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis + ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) + ///acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of + ///use and privacy statement at <url> and (c) agree to sharing my contact information with {2}.. + /// + public static string SetNonMicrosoftAddOnMessage + { + get + { + return ResourceManager.GetString("SetNonMicrosoftAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role {0} instances are set to {1}. + /// + public static string SetRoleInstancesMessage + { + get + { + return ResourceManager.GetString("SetRoleInstancesMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {"Slot":"","Location":"","Subscription":"","StorageAccountName":""}. + /// + public static string SettingsFileEmptyContent + { + get + { + return ResourceManager.GetString("SettingsFileEmptyContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to deploymentSettings.json. + /// + public static string SettingsFileName + { + get + { + return ResourceManager.GetString("SettingsFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insufficient parameters passed to create a new endpoint.. + /// + public static string SetTrafficManagerEndpointNeedsParameters + { + get + { + return ResourceManager.GetString("SetTrafficManagerEndpointNeedsParameters", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ambiguous operation: the profile name specified doesn't match the name of the profile object.. + /// + public static string SetTrafficManagerProfileAmbiguous + { + get + { + return ResourceManager.GetString("SetTrafficManagerProfileAmbiguous", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please execute the cmdlet again and include the 'Force' parameter, if available, to avoid unnecessary prompts.. + /// + public static string ShouldContinueFail + { + get + { + return ResourceManager.GetString("ShouldContinueFail", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Confirm. + /// + public static string ShouldProcessCaption + { + get + { + return ResourceManager.GetString("ShouldProcessCaption", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please execute the cmdlet again and omit the 'Confirm' parameter when using the 'AsJob' parameter.. + /// + public static string ShouldProcessFailConfirm + { + get + { + return ResourceManager.GetString("ShouldProcessFailConfirm", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please increase the user $ConfirmPreference setting, or include turn off confirmation using '-Confirm:$false' when using the 'AsJob' parameter and execute the cmdet again.. + /// + public static string ShouldProcessFailImpact + { + get + { + return ResourceManager.GetString("ShouldProcessFailImpact", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please execute the cmdlet again and omit the 'WhatIf' parameter when using the 'AsJob' parameter.. + /// + public static string ShouldProcessFailWhatIf + { + get + { + return ResourceManager.GetString("ShouldProcessFailWhatIf", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Shutdown. + /// + public static string Shutdown + { + get + { + return ResourceManager.GetString("Shutdown", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /sites:{0};{1};"{2}/{0}" . + /// + public static string SitesArgTemplate + { + get + { + return ResourceManager.GetString("SitesArgTemplate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 1000. + /// + public static string StandardRetryDelayInMs + { + get + { + return ResourceManager.GetString("StandardRetryDelayInMs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Start. + /// + public static string Start + { + get + { + return ResourceManager.GetString("Start", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Started. + /// + public static string StartedEmulator + { + get + { + return ResourceManager.GetString("StartedEmulator", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Starting Emulator.... + /// + public static string StartingEmulator + { + get + { + return ResourceManager.GetString("StartingEmulator", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to start. + /// + public static string StartStorageEmulatorCommandArgument + { + get + { + return ResourceManager.GetString("StartStorageEmulatorCommandArgument", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stop. + /// + public static string Stop + { + get + { + return ResourceManager.GetString("Stop", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stopping emulator.... + /// + public static string StopEmulatorMessage + { + get + { + return ResourceManager.GetString("StopEmulatorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stopped. + /// + public static string StoppedEmulatorMessage + { + get + { + return ResourceManager.GetString("StoppedEmulatorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to stop. + /// + public static string StopStorageEmulatorCommandArgument + { + get + { + return ResourceManager.GetString("StopStorageEmulatorCommandArgument", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account Name:. + /// + public static string StorageAccountName + { + get + { + return ResourceManager.GetString("StorageAccountName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find storage account '{0}' please type the name of an existing storage account.. + /// + public static string StorageAccountNotFound + { + get + { + return ResourceManager.GetString("StorageAccountNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AzureStorageEmulator.exe. + /// + public static string StorageEmulatorExe + { + get + { + return ResourceManager.GetString("StorageEmulatorExe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to InstallPath. + /// + public static string StorageEmulatorInstallPathRegistryKeyValue + { + get + { + return ResourceManager.GetString("StorageEmulatorInstallPathRegistryKeyValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SOFTWARE\Microsoft\Windows Azure Storage Emulator. + /// + public static string StorageEmulatorRegistryKey + { + get + { + return ResourceManager.GetString("StorageEmulatorRegistryKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Primary Key:. + /// + public static string StoragePrimaryKey + { + get + { + return ResourceManager.GetString("StoragePrimaryKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Secondary Key:. + /// + public static string StorageSecondaryKey + { + get + { + return ResourceManager.GetString("StorageSecondaryKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription named {0} already exists.. + /// + public static string SubscriptionAlreadyExists + { + get + { + return ResourceManager.GetString("SubscriptionAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The SubscriptionDataFile parameter is deprecated. This parameter will be removed in a future release. See https://github.com/Azure/azure-powershell/wiki/Proposed-Design-Stateless-Azure-Profile for a description of the upcoming mechanism for providing alternate sources of subscription information.. + /// + public static string SubscriptionDataFileDeprecated + { + get + { + return ResourceManager.GetString("SubscriptionDataFileDeprecated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to DefaultSubscriptionData.xml. + /// + public static string SubscriptionDataFileName + { + get + { + return ResourceManager.GetString("SubscriptionDataFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription data file {0} does not exist.. + /// + public static string SubscriptionDataFileNotFound + { + get + { + return ResourceManager.GetString("SubscriptionDataFileNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription id {0} doesn't exist.. + /// + public static string SubscriptionIdNotFoundMessage + { + get + { + return ResourceManager.GetString("SubscriptionIdNotFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Subscription must not be null. + /// + public static string SubscriptionMustNotBeNull + { + get + { + return ResourceManager.GetString("SubscriptionMustNotBeNull", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Subscription name needs to be specified.. + /// + public static string SubscriptionNameNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("SubscriptionNameNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription name {0} doesn't exist.. + /// + public static string SubscriptionNameNotFoundMessage + { + get + { + return ResourceManager.GetString("SubscriptionNameNotFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Subscription needs to be specified.. + /// + public static string SubscriptionNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("SubscriptionNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Suspend. + /// + public static string Suspend + { + get + { + return ResourceManager.GetString("Suspend", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Swapping website production slot .... + /// + public static string SwappingWebsite + { + get + { + return ResourceManager.GetString("SwappingWebsite", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to swap the website '{0}' production slot with slot '{1}'?. + /// + public static string SwapWebsiteSlotWarning + { + get + { + return ResourceManager.GetString("SwapWebsiteSlotWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The Switch-AzureMode cmdlet is deprecated and will be removed in a future release.. + /// + public static string SwitchAzureModeDeprecated + { + get + { + return ResourceManager.GetString("SwitchAzureModeDeprecated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Starting cmdlet execution, setting for cmdlet confirmation required: '{0}'. + /// + public static string TraceBeginLROJob + { + get + { + return ResourceManager.GetString("TraceBeginLROJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Blocking job for ShouldMethod '{0}'. + /// + public static string TraceBlockLROThread + { + get + { + return ResourceManager.GetString("TraceBlockLROThread", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Completing cmdlet execution in RunJob. + /// + public static string TraceEndLROJob + { + get + { + return ResourceManager.GetString("TraceEndLROJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: State change from '{0}' to '{1}' because '{2}'. + /// + public static string TraceHandleLROStateChange + { + get + { + return ResourceManager.GetString("TraceHandleLROStateChange", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Unblocking job due to stoppage or failure. + /// + public static string TraceHandlerCancelJob + { + get + { + return ResourceManager.GetString("TraceHandlerCancelJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Unblocking job that was previously blocked.. + /// + public static string TraceHandlerUnblockJob + { + get + { + return ResourceManager.GetString("TraceHandlerUnblockJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Error in cmdlet execution. + /// + public static string TraceLROJobException + { + get + { + return ResourceManager.GetString("TraceLROJobException", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Removing state changed event handler, exception '{0}'. + /// + public static string TraceRemoveLROEventHandler + { + get + { + return ResourceManager.GetString("TraceRemoveLROEventHandler", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: ShouldMethod '{0}' unblocked.. + /// + public static string TraceUnblockLROThread + { + get + { + return ResourceManager.GetString("TraceUnblockLROThread", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to decode string from base 64. Please make sure the string is correctly encoded: {0}.. + /// + public static string UnableToDecodeBase64String + { + get + { + return ResourceManager.GetString("UnableToDecodeBase64String", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to update mismatching Json structured: {0} {1}.. + /// + public static string UnableToPatchJson + { + get + { + return ResourceManager.GetString("UnableToPatchJson", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provider {0} is unknown.. + /// + public static string UnknownProviderMessage + { + get + { + return ResourceManager.GetString("UnknownProviderMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Update. + /// + public static string Update + { + get + { + return ResourceManager.GetString("Update", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Updated settings for subscription '{0}'. Current subscription is '{1}'.. + /// + public static string UpdatedSettings + { + get + { + return ResourceManager.GetString("UpdatedSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to User name is not valid.. + /// + public static string UserNameIsNotValid + { + get + { + return ResourceManager.GetString("UserNameIsNotValid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to User name needs to be specified.. + /// + public static string UserNameNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("UserNameNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A value for the VLan Id has to be provided.. + /// + public static string VlanIdRequired + { + get + { + return ResourceManager.GetString("VlanIdRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please wait.... + /// + public static string WaitMessage + { + get + { + return ResourceManager.GetString("WaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The azure storage emulator is not installed, skip launching.... + /// + public static string WarningWhenStorageEmulatorIsMissing + { + get + { + return ResourceManager.GetString("WarningWhenStorageEmulatorIsMissing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Web.cloud.config. + /// + public static string WebCloudConfig + { + get + { + return ResourceManager.GetString("WebCloudConfig", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to web.config. + /// + public static string WebConfigTemplateFileName + { + get + { + return ResourceManager.GetString("WebConfigTemplateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to MSDeploy. + /// + public static string WebDeployKeywordInWebSitePublishProfile + { + get + { + return ResourceManager.GetString("WebDeployKeywordInWebSitePublishProfile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot build the project successfully. Please see logs in {0}.. + /// + public static string WebProjectBuildFailTemplate + { + get + { + return ResourceManager.GetString("WebProjectBuildFailTemplate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WebRole. + /// + public static string WebRole + { + get + { + return ResourceManager.GetString("WebRole", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to setup_web.cmd > log.txt. + /// + public static string WebRoleStartupTaskCommandLine + { + get + { + return ResourceManager.GetString("WebRoleStartupTaskCommandLine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WebRole.xml. + /// + public static string WebRoleTemplateFileName + { + get + { + return ResourceManager.GetString("WebRoleTemplateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WebSite with given name {0} already exists in the specified Subscription and Webspace.. + /// + public static string WebsiteAlreadyExists + { + get + { + return ResourceManager.GetString("WebsiteAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WebSite with given name {0} already exists in the specified Subscription and Location.. + /// + public static string WebsiteAlreadyExistsReplacement + { + get + { + return ResourceManager.GetString("WebsiteAlreadyExistsReplacement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Site {0} already has repository created for it.. + /// + public static string WebsiteRepositoryAlreadyExists + { + get + { + return ResourceManager.GetString("WebsiteRepositoryAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Workspaces/WebsiteExtension/Website/{0}/dashboard/. + /// + public static string WebsiteSufixUrl + { + get + { + return ResourceManager.GetString("WebsiteSufixUrl", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to https://{0}/msdeploy.axd?site={1}. + /// + public static string WebSiteWebDeployUriTemplate + { + get + { + return ResourceManager.GetString("WebSiteWebDeployUriTemplate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WorkerRole. + /// + public static string WorkerRole + { + get + { + return ResourceManager.GetString("WorkerRole", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to setup_worker.cmd > log.txt. + /// + public static string WorkerRoleStartupTaskCommandLine + { + get + { + return ResourceManager.GetString("WorkerRoleStartupTaskCommandLine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WorkerRole.xml. + /// + public static string WorkerRoleTemplateFileName + { + get + { + return ResourceManager.GetString("WorkerRoleTemplateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (x86). + /// + public static string x86InProgramFiles + { + get + { + return ResourceManager.GetString("x86InProgramFiles", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Yes. + /// + public static string Yes + { + get + { + return ResourceManager.GetString("Yes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Yes, I agree. + /// + public static string YesHint + { + get + { + return ResourceManager.GetString("YesHint", resourceCulture); + } + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.resx b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.resx new file mode 100644 index 000000000000..4ef90b70573d --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.resx @@ -0,0 +1,1747 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + The remote server returned an error: (401) Unauthorized. + + + Account "{0}" has been added. + + + To switch to a different subscription, please use Select-AzureSubscription. + + + Subscription "{0}" is selected as the default subscription. + + + To view all the subscriptions, please use Get-AzureSubscription. + + + Add-On {0} is created successfully. + + + Add-on name {0} is already used. + + + Add-On {0} not found. + + + Add-on {0} is removed successfully. + + + Add-On {0} is updated successfully. + + + Role has been created at {0}\{1}. + + + Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for Node.js by running ‘npm install azure’. + + + Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for PHP by running "pear WindowsAzure/WindowsAzure". + + + Unable to set role permissions. Please give the 'Network Service' user 'Read & execute' and 'Modify' permissions to the role folder, or run PowerShell as an Administrator + + + A role name '{0}' already exists + + + Windows Azure Powershell\ + + + https://manage.windowsazure.com + + + AZURE_PORTAL_URL + + + Azure SDK\{0}\ + + + Base Uri was empty. + WAPackIaaS + + + {0} begin processing without ParameterSet. + + + {0} begin processing with ParameterSet '{1}'. + + + Blob with the name {0} already exists in the account. + + + https://{0}.blob.core.windows.net/ + + + AZURE_BLOBSTORAGE_TEMPLATE + + + CACHERUNTIMEURL + + + cache + + + CacheRuntimeVersion + + + Installing caching version {0} for Role '{1}' (the caching version locally installed is: {2}) + + + Cannot find {0} with name {1}. + + + Deployment for service {0} with {1} slot doesn't exist + + + Can't find valid Microsoft Azure role in current directory {0} + + + service {0} configuration file (ServiceConfiguration.Cloud.cscfg) is either null or doesn't exist + + + Invalid service path! Cannot locate ServiceDefinition.csdef in current folder or parent folders. + + + The subscription named {0} with id {1} is not currently imported. You must import this subscription before it can be updated. + + + ManagementCertificate + + + certificate.pfx + + + Certificate imported into CurrentUser\My\{0} + + + Your account does not have access to the private key for certificate {0} + + + {0} {1} deployment for {2} service + + + Cloud service {0} is in {1} state. + + + Changing/Removing public environment '{0}' is not allowed. + + + Service {0} is set to value {1} + + + Choose which publish settings file to use: + + + Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel + + + 1 + + + cloud_package.cspkg + + + ServiceConfiguration.Cloud.cscfg + + + Add-ons for {0} + + + Communication could not be established. This could be due to an invalid subscription ID. Note that subscription IDs are case sensitive. + + + Complete + + + config.json + + + VirtualMachine creation failed. + WAPackIaaS + + + Creating the website failed. If this is the first website for this subscription, please create it using the management portal instead. + + + Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core + + + //blobcontainer[@datacenter='{0}'] + + + Setting: {0} as the default and current subscription. To view other subscriptions use Get-AzureSubscription + + + none + + + There are no hostnames which could be used for validation. + + + 8080 + + + 1000 + + + Auto + + + 80 + + + Delete + WAPackIaaS + + + The {0} slot for service {1} is already in {2} state + + + The deployment in {0} slot for service {1} is removed + + + Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel + + + 1 + + + The key to add already exists in the dictionary. + + + The array index cannot be less than zero. + + + The supplied array does not have enough room to contain the copied elements. + + + The provided dns {0} doesn't exist + + + Microsoft Azure Certificate + + + Endpoint can't be retrieved for storage account + + + {0} end processing. + + + To use Active Directory authentication, you must configure the ActiveDirectoryEndpoint, ActiveDirectoryTenantId, and ActiveDirectorServiceEndpointResourceId for environment of '{0}'. You can configure these properties for this environment using the Set-AzureEnvironment cmdlet. + + + The environment '{0}' already exists. + + + environments.xml + + + Error creating VirtualMachine + WAPackIaaS + + + Unable to download available runtimes for location '{0}' + + + Error updating VirtualMachine + WAPackIaaS + + + Job Id {0} failed. Error: {1}, ExceptionDetails: {2} + WAPackIaaS + + + The HTTP request was forbidden with client authentication scheme 'Anonymous'. + + + This add-on requires you to purchase the first instance through the Microsoft Azure Portal. Subsequent purchases can be performed through PowerShell. + + + Operation Status: + + + Resources\Scaffolding\General + + + Getting all available Microsoft Azure Add-Ons, this may take few minutes... + + + Name{0}Primary Key{0}Seconday Key + + + Git not found. Please install git and place it in your command line path. + + + Could not find publish settings. Please run Import-AzurePublishSettingsFile. + + + iisnode.dll + + + iisnode + + + iisnode-dev\\release\\x64 + + + iisnode + + + Installing IISNode version {0} in Azure for WebRole '{1}' (the version locally installed is: {2}) + + + Internal Server Error + + + Cannot enable memcach protocol on a cache worker role {0}. + + + Invalid certificate format. + + + The provided configuration path is invalid or doesn't exist + + + The country name is invalid, please use a valid two character country code, as described in ISO 3166-1 alpha-2. + + + Deployment with {0} does not exist + + + The deployment slot name {0} is invalid. Slot name must be either "Staging" or "Production". + + + Invalid service endpoint. + + + File {0} has invalid characters + + + You must create your git publishing credentials using the Microsoft Azure portal. +Please follow these steps in the portal: +1. On the left side open "Web Sites" +2. Click on any website +3. Choose "Setup Git Publishing" or "Reset deployment credentials" +4. Back in the PowerShell window, rerun this command by typing "New-AzureWebSite {site name} -Git -PublishingUsername {username} + + + The value {0} provided is not a valid GUID. Please provide a valid GUID. + + + The specified hostname does not exist. Please specify a valid hostname for the site. + + + Role {0} instances must be greater than or equal 0 and less than or equal 20 + + + There was an error creating your webjob. Please make sure that the script is in the root folder of the zip file. + + + Could not download a valid runtime manifest, Please check your internet connection and try again. + + + The account {0} was not found. Please specify a valid account name. + + + The provided name "{0}" does not match the service bus namespace naming rules. + + + Value cannot be null. Parameter name: '{0}' + + + The provided package path is invalid or doesn't exist + + + '{0}' is an invalid parameter set name. + + + {0} doesn't exist in {1} or you've not passed valid value for it + + + Path {0} has invalid characters + + + The provided publish settings file {0} has invalid content. Please get valid by running cmdlet Get-AzurePublishSettingsFile + + + The provided role name "{0}" has invalid characters + + + A valid name for the service root folder is required + + + {0} is not a recognized runtime type + + + A valid language is required + + + No subscription is currently selected. Use Select-Subscription to activate a subscription. + + + The provided location "{0}" does not exist in the available locations use Get-AzureSBLocation for listing available locations. + + + Please provide a service name or run this command from inside a service project directory. + + + You must provide valid value for {0} + + + settings.json is invalid or doesn't exist + + + The subscription named '{0}' cannot be found. Use Set-AzureSubscription to initialize the subscription data. + + + The provided subscription id {0} is not valid + + + A valid subscription name is required. This can be provided using the -Subscription parameter or by setting the subscription via the Set-AzureSubscription cmdlet + + + The provided subscriptions file {0} has invalid content. + + + Role {0} VM size should be ExtraSmall, Small, Medium, Large or ExtraLarge. + + + The web job file must have *.zip extension + + + Singleton option works for continuous jobs only. + + + The website {0} was not found. Please specify a valid website name. + + + No job for id: {0} was found. + WAPackIaaS + + + engines + + + Scaffolding for this language is not yet supported + + + Link already established + + + local_package.csx + + + ServiceConfiguration.Local.cscfg + + + Looking for {0} deployment for {1} cloud service... + + + Looking for cloud service {0}... + + + managementCertificate.pem + + + ?whr={0} + + + //baseuri + + + uri + + + http://az413943.vo.msecnd.net/node/runtimemanifest_0.7.5.2.xml + + + Multiple Add-Ons found holding name {0} + + + Multiple possible publishing users. Please go to the Portal and use the listed deployment user, or click 'set/reset deployment credentials' to set up a new user account, then reurn this cmdlet and specify PublishingUsername. + + + The first publish settings file "{0}" is used. If you want to use another file specify the file name. + + + Microsoft.WindowsAzure.Plugins.Caching.NamedCaches + + + {"caches":[{"name":"default","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":1},"serverNotification":{"isEnabled":false}},"secondaries":0}]} + + + A publishing username is required. Please specify one using the argument PublishingUsername. + + + New Add-On Confirmation + + + By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis +for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) +agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my +contact information with {2}. + + + Internal Server Error. This could happen because the namespace name is already used or due to an incorrect location name. Use Get-AzureSBLocation cmdlet to list valid names. + + + By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis +for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) +acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of +use and privacy statement at {0} and (c) agree to sharing my contact information with {2}. + + + Service has been created at {0} + + + No + + + There is no access token cached for subscription {0}, user id {1}. Use the Add-AzureAccount cmdlet to log in again and get a token for this subscription. + + + The service does not have any cache worker roles, add one first by running cmdlet Add-AzureCacheWorkerRole. + + + No clouds available + WAPackIaaS + + + nodejs + + + node + + + node.exe + + + There is no default subscription set, please set a default subscription by running Set-AzureSubscription -Default <subscription name> + + + Microsoft SDKs\Azure\Nodejs\Nov2011 + + + nodejs + + + node + + + Resources\Scaffolding\Node + + + Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.Node + + + Installing Node version {0} in Azure for Role '{1}' (the Node version locally installed is: {2}) + + + No, I do not agree + + + No publish settings files with extension *.publishsettings are found in the directory "{0}". + + + '{0}' must be a cache worker role. Verify that it has proper cache worker role configuration. + + + Certificate can't be null. + + + {0} could not be null or empty + + + Unable to add a null RoleSettings to {0} + + + Unable to add new role to null service definition + + + The request offer '{0}' is not found. + + + Operation "{0}" failed on VM with ID: {1} + WAPackIaaS + + + The REST operation failed with message '{0}' and error code '{1}' + + + Job Id {0} did not complete within expected time or it is in Failed/Canceled/Invalid state. + WAPackIaaS + + + package + + + Package is created at service root path {0}. + + + {{ + "author": "", + + "name": "{0}", + "version": "0.0.0", + "dependencies":{{}}, + "devDependencies":{{}}, + "optionalDependencies": {{}}, + "engines": {{ + "node": "*", + "iisnode": "*" + }} + +}} + + + + package.json + + + A value for the Peer Asn has to be provided. + + + 5.4.0 + + + php + + + Resources\Scaffolding\PHP + + + Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.PHP + + + Installing PHP version {0} for Role '{1}' (the PHP version locally installed is: {2}) + + + You must create your first web site using the Microsoft Azure portal. +Please follow these steps in the portal: +1. At the bottom of the page, click on New > Web Site > Quick Create +2. Type {0} in the URL field +3. Click on "Create Web Site" +4. Once the site has been created, click on the site name +5. Click on "Set up Git publishing" or "Reset deployment credentials" and setup a publishing username and password. Use those credentials for all new websites you create. + + + 6. Back in the console window, rerun this command by typing "New-AzureWebsite <site name> -Git" + + + A value for the Primary Peer Subnet has to be provided. + + + Promotion code can be used only when updating to a new plan. + + + Service not published at user request. + + + Complete. + + + Connecting... + + + Created Deployment ID: {0}. + + + Created hosted service '{0}'. + + + Created Website URL: {0}. + + + Creating... + + + Initializing... + + + busy + + + creating the virtual machine + + + Instance {0} of role {1} is {2}. + + + ready + + + Preparing deployment for {0} with Subscription ID: {1}... + + + Publishing {0} to Microsoft Azure. This may take several minutes... + + + publish settings + + + Azure + + + .PublishSettings + + + publishSettings.xml + + + Publish settings imported + + + AZURE_PUBLISHINGPROFILE_URL + + + Starting... + + + Upgrading... + + + Uploading Package to storage service {0}... + + + Verifying storage account '{0}'... + + + Replace current deployment with '{0}' Id ? + + + Are you sure you want to regenerate key? + + + Generate new key. + + + Are you sure you want to remove account '{0}'? + + + Removing account + + + Remove Add-On Confirmation + + + If you delete this add-on, your data may be deleted and the operation may not be undone. You may have to purchase it again from the Microsoft Azure Store to use it. The price of the add-on may not be refunded. Are you sure you want to delete this add-on? Enter “Yes” to confirm. + + + Remove-AzureBGPPeering Operation failed. + + + Removing Bgp Peering + + + Successfully removed Azure Bgp Peering with Service Key {0}. + + + Are you sure you want to remove the Bgp Peering with service key '{0}'? + + + Are you sure you want to remove the Dedicated Circuit with service key '{0}'? + + + Remove-AzureDedicatedCircuit Operation failed. + + + Remove-AzureDedicatedCircuitLink Operation failed. + + + Removing Dedicated Circui Link + + + Successfully removed Azure Dedicated Circuit Link with Service Key {0} and Vnet Name {1} + + + Are you sure you want to remove the Dedicated Circuit Link with service key '{0}' and virtual network name '{1}'? + + + Removing Dedicated Circuit + + + Successfully removed Azure Dedicated Circuit with Service Key {0}. + + + Removing cloud service {0}... + + + Removing {0} deployment for {1} service + + + Removing job collection + + + Are you sure you want to remove the job collection "{0}" + + + Removing job + + + Are you sure you want to remove the job "{0}" + + + Are you sure you want to remove the account? + + + Account removed. + + + Internal Server Error. This could happen because the namespace does not exist or it does not exist under your subscription. + + + Removing old package {0}... + + + Are you sure you want to delete the namespace '{0}'? + + + Are you sure you want to remove cloud service? + + + Remove cloud service and all it's deployments + + + Are you sure you want to remove subscription '{0}'? + + + Removing subscription + + + Are you sure you want to delete the VM '{0}'? + + + Deleting VM. + + + Removing WebJob... + + + Are you sure you want to remove job '{0}'? + + + Removing website + + + Are you sure you want to remove the website "{0}" + + + Deleting namespace + + + Repository is not setup. You need to pass a valid site name. + + + Reserved IP with the Name:'{0}' will no longer be in use after the deployment is deleted, and it is still reserved for later use. + + + Resource with ID : {0} does not exist. + WAPackIaaS + + + Restart + WAPackIaaS + + + Resume + WAPackIaaS + + + /role:{0};"{1}/{0}" + + + bin + + + Role {0} is {1} + + + 20 + + + role name + + + The provided role name {0} doesn't exist + + + RoleSettings.xml + + + Role type {0} doesn't exist + + + public static Dictionary<string, Location> ReverseLocations { get; private set; } + + + Preparing runtime deployment for service '{0}' + + + WARNING Runtime Mismatch: Are you sure that you want to publish service '{0}' using an Azure runtime version that does not match your local runtime version? + + + RUNTIMEOVERRIDEURL + + + /runtimemanifest/runtimes/runtime + + + RUNTIMEID + + + RUNTIMEURL + + + RUNTIMEVERSIONPRIMARYKEY + + + scaffold.xml + + + Invalid location entered. Pick one of the locations from Get-AzureSchedulerLocation + + + A value for the Secondary Peer Subnet has to be provided. + + + Service {0} already exists on disk in location {1} + + + No ServiceBus authorization rule with the given characteristics was found + + + The service bus entity '{0}' is not found. + + + Internal Server Error. This could happen due to an incorrect/missing namespace + + + service configuration + + + service definition + + + ServiceDefinition.csdef + + + {0}Deploy + + + The specified cloud service "{0}" does not exist. + + + {0} slot for service {1} is in {2} state, please wait until it finish and update it's status + + + Begin Operation: {0} + + + Completed Operation: {0} + + + Begin Operation: {0} + + + Completed Operation: {0} + + + service name + + + Please provide name for the hosted service + + + service parent directory + + + Service {0} removed successfully + + + service directory + + + service settings + + + The storage account name '{0}' is invalid. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + + + The {0} slot for cloud service {1} doesn't exist. + + + {0} slot for service {1} is {2} + + + Set Add-On Confirmation + + + Note - You will be charged the amount for the new plan, without being refunded for time remaining +in the existing plan. +By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis +for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) +agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my +contact information with {2}. + + + Note - You will be charged the amount for the new plan, without being refunded for time remaining +in the existing plan. +By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis +for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) +acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of +use and privacy statement at <url> and (c) agree to sharing my contact information with {2}. + + + Role {0} instances are set to {1} + + + {"Slot":"","Location":"","Subscription":"","StorageAccountName":""} + + + deploymentSettings.json + + + Confirm + + + Shutdown + WAPackIaaS + + + /sites:{0};{1};"{2}/{0}" + + + 1000 + + + Start + WAPackIaaS + + + Started + + + Starting Emulator... + + + start + + + Stop + WAPackIaaS + + + Stopping emulator... + + + Stopped + + + stop + + + Account Name: + + + Cannot find storage account '{0}' please type the name of an existing storage account. + + + AzureStorageEmulator.exe + + + InstallPath + + + SOFTWARE\Microsoft\Windows Azure Storage Emulator + + + Primary Key: + + + Secondary Key: + + + The subscription named {0} already exists. + + + DefaultSubscriptionData.xml + + + The subscription data file {0} does not exist. + + + Subscription must not be null + WAPackIaaS + + + Suspend + WAPackIaaS + + + Swapping website production slot ... + + + Are you sure you want to swap the website '{0}' production slot with slot '{1}'? + + + The provider {0} is unknown. + + + Update + WAPackIaaS + + + Updated settings for subscription '{0}'. Current subscription is '{1}'. + + + A value for the VLan Id has to be provided. + + + Please wait... + + + The azure storage emulator is not installed, skip launching... + + + Web.cloud.config + + + web.config + + + MSDeploy + + + Cannot build the project successfully. Please see logs in {0}. + + + WebRole + + + setup_web.cmd > log.txt + + + WebRole.xml + + + WebSite with given name {0} already exists in the specified Subscription and Webspace. + + + WebSite with given name {0} already exists in the specified Subscription and Location. + + + Site {0} already has repository created for it. + + + Workspaces/WebsiteExtension/Website/{0}/dashboard/ + + + https://{0}/msdeploy.axd?site={1} + + + WorkerRole + + + setup_worker.cmd > log.txt + + + WorkerRole.xml + + + Yes + + + Yes, I agree + + + Remove-AzureTrafficManagerProfile Operation failed. + + + Successfully removed Traffic Manager profile with name {0}. + + + Are you sure you want to remove the Traffic Manager profile "{0}"? + + + Profile {0} already has an endpoint with name {1} + + + Profile {0} does not contain endpoint {1}. Adding it. + + + The endpoint {0} cannot be removed from profile {1} because it's not in the profile. + + + Insufficient parameters passed to create a new endpoint. + + + Ambiguous operation: the profile name specified doesn't match the name of the profile object. + + + <NONE> + + + "An exception occurred when calling the ServiceManagement API. HTTP Status Code: {0}. Service Management Error Code: {1}. Message: {2}. Operation Tracking ID: {3}." + {0} is the HTTP status code. {1} is the Service Management Error Code. {2} is the Service Management Error message. {3} is the operation tracking ID. + + + Unable to decode string from base 64. Please make sure the string is correctly encoded: {0}. + {0} is the string that is not in a valid base 64 format. + + + Skipping external tenant {0}, because you are using a guest or a foreign principal object identity. In order to access this tenant, please run Add-AzureAccount without "-Credential". + + + Removing an environment will remove all associated subscriptions and accounts. Are you sure you want to remove an environment '{0}'? + + + Removing environment + + + There is no subscription associated with account {0}. + + + Account id doesn't match one in subscription. + + + Environment name doesn't match one in subscription. + + + Removing the Azure profile will remove all associated environments, subscriptions, and accounts. Are you sure you want to remove the Azure profile? + + + Removing the Azure profile + + + The SubscriptionDataFile parameter is deprecated. This parameter will be removed in a future release. See https://github.com/Azure/azure-powershell/wiki/Proposed-Design-Stateless-Azure-Profile for a description of the upcoming mechanism for providing alternate sources of subscription information. + + + Account needs to be specified + + + No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription. + + + Path must specify a valid path to an Azure profile. + + + Property bag Hashtable must contain one of the following sets of properties: {SubscriptionId, Certificate}, {SubscriptionId, Username, Password}, {SubscriptionId, ServicePrincipal, Password, Tenant}, {SubscriptionId, AccountId, Token} + + + Property bag Hashtable must contain a 'Certificate' of type 'X509Certificate2'. + + + Property bag Hashtable must contain a 'Password' with an associated 'Username' or 'ServicePrincipal'. + + + Property bag Hashtable must contain a 'SubscriptionId'. + + + Selected profile must not be null. + + + The Switch-AzureMode cmdlet is deprecated and will be removed in a future release. + + + OperationID : '{0}' + + + Cannot get module for DscResource '{0}'. Possible solutions: +1) Specify -ModuleName for Import-DscResource in your configuration. +2) Unblock module that contains resource. +3) Move Import-DscResource inside Node block. + + 0 = name of DscResource + + + Your current PowerShell version {1} is less then required by this cmdlet {0}. Consider download and install latest PowerShell version. + {0} = minimal required PS version, {1} = current PS version + + + Parsing configuration script: {0} + {0} is the path to a script file + + + Configuration script '{0}' contained parse errors: +{1} + 0 = path to the configuration script, 1 = parser errors + + + List of required modules: [{0}]. + {0} = list of modules + + + Temp folder '{0}' created. + {0} = temp folder path + + + Copy '{0}' to '{1}'. + {0} = source, {1} = destination + + + Copy the module '{0}' to '{1}'. + {0} = source, {1} = destination + + + File '{0}' already exists. Use the -Force parameter to overwrite it. + {0} is the path to a file + + + Configuration file '{0}' not found. + 0 = path to the configuration file + + + Path '{0}' not found. + 0 = path to the additional content file/directory + + + Path '{0}' not found. + 0 = path to the additional content file/directory + + + Invalid configuration file: {0}. +The file needs to be a PowerShell script (.ps1 or .psm1) or a ZIP archive (.zip). + 0 = path to the configuration file + + + Invalid configuration file: {0}. +The file needs to be a PowerShell script (.ps1 or .psm1). + 0 = path to the configuration file + + + Create Archive + + + Upload '{0}' + {0} is the name of an storage blob + + + Storage Blob '{0}' already exists. Use the -Force parameter to overwrite it. + {0} is the name of an storage blob + + + Configuration published to {0} + {0} is an URI + + + Deleted '{0}' + {0} is the path of a file + + + Cannot delete '{0}': {1} + {0} is the path of a file, {1} is an error message + + + Cannot find the WadCfg end element in the config. + + + WadCfg start element in the config is not matching the end element. + + + Cannot find the WadCfg element in the config. + + + Cannot find configuration data file: {0} + + + The configuration data must be a .psd1 file + + + Cannot change built-in environment {0}. + + + Azure PowerShell collects usage data in order to improve your experience. +The data is anonymous and does not include commandline argument values. +The data is collected by Microsoft. + +Use the Disable-AzDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Az.Accounts module. To disable data collection: PS > Disable-AzDataCollection. +Use the Enable-AzDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Az.Accounts module. To enable data collection: PS > Enable-AzDataCollection. + + + Microsoft Azure PowerShell Data Collection Confirmation + + + You choose not to participate in Microsoft Azure PowerShell data collection. + + + This confirmation message will be dismissed in '{0}' second(s)... + + + You choose to participate in Microsoft Azure PowerShell data collection. + + + The setting profile has been saved to the following path '{0}'. + + + [Common.Authentication]: Authenticating for account {0} with single tenant {1}. + + + Changing public environment is not supported. + + + Environment name needs to be specified. + + + Environment needs to be specified. + + + The environment name '{0}' is not found. + + + File path is not valid. + + + Must specify a non-null subscription name. + + + The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a new default subscription. + + + Removing public environment is not supported. + + + The subscription id {0} doesn't exist. + + + Subscription name needs to be specified. + + + The subscription name {0} doesn't exist. + + + Subscription needs to be specified. + + + User name is not valid. + + + User name needs to be specified. + + + "There is no current context, please log in using Connect-AzAccount." + + + No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or co-administrator for any account.\r\nDid you mean to execute Connect-AzAccount? + + + No certificate was found in the certificate store with thumbprint {0} + + + Illegal characters in path. + + + Invalid certificate format. Publish settings may be corrupted. Use Get-AzurePublishSettingsFile to download updated settings + + + "{0}" is an invalid DNS name for {1} + + + The provided file in {0} must be have {1} extension + + + {0} is invalid or empty + + + Please connect to internet before executing this cmdlet + + + Path {0} doesn't exist. + + + Path for {0} doesn't exist in {1}. + + + &whr={0} + + + The provided service name {0} already exists, please pick another name + + + Unable to update mismatching Json structured: {0} {1}. + + + (x86) + + + Azure PowerShell collects usage data in order to improve your experience. +The data is anonymous and does not include commandline argument values. +The data is collected by Microsoft. + +Use the Disable-AzureDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Azure module. To disable data collection: PS > Disable-AzureDataCollection. +Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Azure module. To enable data collection: PS > Enable-AzureDataCollection. + + + Execution failed because a background thread could not prompt the user. + + + Azure Long-Running Job + + + The cmdlet failed in background execution. The returned error was '{0}'. Please execute the cmdlet again. You may need to execute this cmdlet synchronously, by omitting the '-AsJob' parameter. + 0(string): exception message in background task + + + Please execute the cmdlet again and include the 'Force' parameter, if available, to avoid unnecessary prompts. + + + Please execute the cmdlet again and omit the 'Confirm' parameter when using the 'AsJob' parameter. + + + Please increase the user $ConfirmPreference setting, or include turn off confirmation using '-Confirm:$false' when using the 'AsJob' parameter and execute the cmdet again. + + + Please execute the cmdlet again and omit the 'WhatIf' parameter when using the 'AsJob' parameter. + + + [AzureLongRunningJob]: Starting cmdlet execution, setting for cmdlet confirmation required: '{0}' + 0(bool): whether cmdlet confirmation is required + + + [AzureLongRunningJob]: Blocking job for ShouldMethod '{0}' + 0(string): method type + + + [AzureLongRunningJob]: Completing cmdlet execution in RunJob + + + [AzureLongRunningJob]: State change from '{0}' to '{1}' because '{2}' + 0(string): last state, 1(string): new state, 2(string): state change reason + + + [AzureLongRunningJob]: Unblocking job due to stoppage or failure + + + [AzureLongRunningJob]: Unblocking job that was previously blocked. + + + [AzureLongRunningJob]: Error in cmdlet execution + + + [AzureLongRunningJob]: Removing state changed event handler, exception '{0}' + 0(string): exception message + + + [AzureLongRunningJob]: ShouldMethod '{0}' unblocked. + 0(string): methodType + + + +- The parameter : '{0}' is changing. + + + +- The parameter : '{0}' is becoming mandatory. + + + +- The parameter : '{0}' is being replaced by parameter : '{1}'. + + + +- The parameter : '{0}' is being replaced by mandatory parameter : '{1}'. + + + +- Change description : {0} + + + The cmdlet is being deprecated. There will be no replacement for it. + + + The cmdlet parameter set is being deprecated. There will be no replacement for it. + + + The cmdlet '{0}' is replacing this cmdlet. + + + +- The output type is changing from the existing type :'{0}' to the new type :'{1}' + + + +- The output type '{0}' is changing + + + +- The following properties are being added to the output type : + + + +- The following properties in the output type are being deprecated : + + + {0} + + + +- Cmdlet : '{0}' + - {1} + + + Upcoming breaking changes in the cmdlet '{0}' : + + + +- This change will take effect on '{0}' + + + +- The change is expected to take effect in '{0}' from version : '{1}' + + + ```powershell +# Old +{0} + +# New +{1} +``` + + + + +Cmdlet invocation changes : + Old Way : {0} + New Way : {1} + + + +The output type '{0}' is being deprecated without a replacement. + + + +The type of the parameter is changing from '{0}' to '{1}'. + + + +Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell. + + + This cmdlet is in preview. Its behavior is subject to change based on customer feedback. + + + The estimated generally available date is '{0}'. + + + - The change is expected to take effect from Az version : '{0}' + + \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Response.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Response.cs new file mode 100644 index 000000000000..1c7ab745fa51 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Response.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System; + using System.Threading.Tasks; + public class Response : EventData + { + public Response() : base() + { + } + } + + public class Response : Response + { + private Func> _resultDelegate; + private Task _resultValue; + + public Response(T value) : base() => _resultValue = Task.FromResult(value); + public Response(Func value) : base() => _resultDelegate = () => Task.FromResult(value()); + public Response(Func> value) : base() => _resultDelegate = value; + public Task Result => _resultValue ?? (_resultValue = this._resultDelegate()); + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/JsonSerializer.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/JsonSerializer.cs new file mode 100644 index 000000000000..b66cce9cf99b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/JsonSerializer.cs @@ -0,0 +1,350 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal class JsonSerializer + { + private int depth = 0; + + private SerializationOptions options = new SerializationOptions(); + + #region Deserialization + + internal T Deseralize(JsonObject json) + where T : new() + { + var contract = JsonModelCache.Get(typeof(T)); + + return (T)DeserializeObject(contract, json); + } + + internal object DeserializeObject(JsonModel contract, JsonObject json) + { + var instance = Activator.CreateInstance(contract.Type); + + depth++; + + // Ensure we don't recurse forever + if (depth > 5) throw new Exception("Depth greater than 5"); + + foreach (var field in json) + { + var member = contract[field.Key]; + + if (member != null) + { + var value = DeserializeValue(member, field.Value); + + member.SetValue(instance, value); + } + } + + depth--; + + return instance; + } + + private object DeserializeValue(JsonMember member, JsonNode value) + { + if (value.Type == JsonType.Null) return null; + + var type = member.Type; + + if (member.IsStringLike && value.Type != JsonType.String) + { + // Take the long path... + return DeserializeObject(JsonModelCache.Get(type), (JsonObject)value); + } + else if (member.Converter != null) + { + return member.Converter.FromJson(value); + } + else if (type.IsArray) + { + return DeserializeArray(type, (JsonArray)value); + } + else if (member.IsList) + { + return DeserializeList(type, (JsonArray)value); + } + else + { + var contract = JsonModelCache.Get(type); + + return DeserializeObject(contract, (JsonObject)value); + } + } + + private object DeserializeValue(Type type, JsonNode value) + { + if (type == null) throw new ArgumentNullException(nameof(type)); + + if (value.Type == JsonType.Null) return null; + + var typeDetails = TypeDetails.Get(type); + + if (typeDetails.JsonConverter != null) + { + return typeDetails.JsonConverter.FromJson(value); + } + else if (typeDetails.IsEnum) + { + return Enum.Parse(type, value.ToString(), ignoreCase: true); + } + else if (type.IsArray) + { + return DeserializeArray(type, (JsonArray)value); + } + else if (typeDetails.IsList) + { + return DeserializeList(type, (JsonArray)value); + } + else + { + var contract = JsonModelCache.Get(type); + + return DeserializeObject(contract, (JsonObject)value); + } + } + + internal Array DeserializeArray(Type type, JsonArray elements) + { + var elementType = type.GetElementType(); + + var elementTypeDetails = TypeDetails.Get(elementType); + + var array = Array.CreateInstance(elementType, elements.Count); + + int i = 0; + + if (elementTypeDetails.JsonConverter != null) + { + foreach (var value in elements) + { + array.SetValue(elementTypeDetails.JsonConverter.FromJson(value), i); + + i++; + } + } + else + { + foreach (var value in elements) + { + array.SetValue(DeserializeValue(elementType, value), i); + + i++; + } + } + + return array; + } + + internal IList DeserializeList(Type type, JsonArray jsonArray) + { + // TODO: Handle non-generic types + if (!type.IsGenericType) + throw new ArgumentException("Must be a generic type", nameof(type)); + + var elementType = type.GetGenericArguments()[0]; + + IList list; + + if (type.IsInterface) + { + // Create a concrete generic list + list = (IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(elementType)); + } + else + { + list = (IList)Activator.CreateInstance(type); + } + + foreach (var value in jsonArray) + { + list.Add(DeserializeValue(elementType, value)); + } + + return list; + } + + #endregion + + #region Serialization + + internal JsonNode Serialize(object instance) => + Serialize(instance, SerializationOptions.Default); + + internal JsonNode Serialize(object instance, string[] include) => + Serialize(instance, new SerializationOptions { Include = include }); + + internal JsonNode Serialize(object instance, SerializationOptions options) + { + this.options = options; + + if (instance == null) + { + return XNull.Instance; + } + + return ReadValue(instance.GetType(), instance); + } + + #region Readers + + internal JsonArray ReadArray(IEnumerable collection) + { + var array = new XNodeArray(); + + foreach (var item in collection) + { + array.Add(ReadValue(item.GetType(), item)); + } + + return array; + } + + internal IEnumerable> ReadProperties(object instance) + { + var contract = JsonModelCache.Get(instance.GetType()); + + foreach (var member in contract.Members) + { + string name = member.Name; + + if (options.PropertyNameTransformer != null) + { + name = options.PropertyNameTransformer.Invoke(name); + } + + // Skip the field if it's not included + if ((depth == 1 && !options.IsIncluded(name))) + { + continue; + } + + var value = member.GetValue(instance); + + if (!member.EmitDefaultValue && (value == null || (member.IsList && ((IList)value).Count == 0) || value.Equals(member.DefaultValue))) + { + continue; + } + else if (options.IgnoreNullValues && value == null) // Ignore null values + { + continue; + } + + // Transform the value if there is one + if (options.Transformations != null) + { + var transform = options.GetTransformation(name); + + if (transform != null) + { + value = transform.Transformer(value); + } + } + + yield return new KeyValuePair(name, ReadValue(member.TypeDetails, value)); + } + } + + private JsonObject ReadObject(object instance) + { + depth++; + + // TODO: Guard against a self referencing graph + if (depth > options.MaxDepth) + { + depth--; + + return new JsonObject(); + } + + var node = new JsonObject(ReadProperties(instance)); + + depth--; + + return node; + } + + private JsonNode ReadValue(Type type, object value) + { + if (value == null) + { + return XNull.Instance; + } + + var member = TypeDetails.Get(type); + + return ReadValue(member, value); + } + + private JsonNode ReadValue(TypeDetails type, object value) + { + if (value == null) + { + return XNull.Instance; + } + + if (type.JsonConverter != null) + { + return type.JsonConverter.ToJson(value); + } + else if (type.IsArray) + { + switch (Type.GetTypeCode(type.ElementType)) + { + case TypeCode.String: return CreateArray((string[])value); + case TypeCode.UInt16: return CreateArray((ushort[])value); + case TypeCode.UInt32: return CreateArray((uint[])value); + case TypeCode.UInt64: return CreateArray((ulong[])value); + case TypeCode.Int16: return CreateArray((short[])value); + case TypeCode.Int32: return CreateArray((int[])value); + case TypeCode.Int64: return CreateArray((long[])value); + case TypeCode.Single: return CreateArray((float[])value); + case TypeCode.Double: return CreateArray((double[])value); + default: return ReadArray((IEnumerable)value); + } + } + else if (value is IEnumerable) + { + if (type.IsList && type.ElementType != null) + { + switch (Type.GetTypeCode(type.ElementType)) + { + case TypeCode.String: return CreateList(value); + case TypeCode.UInt16: return CreateList(value); + case TypeCode.UInt32: return CreateList(value); + case TypeCode.UInt64: return CreateList(value); + case TypeCode.Int16: return CreateList(value); + case TypeCode.Int32: return CreateList(value); + case TypeCode.Int64: return CreateList(value); + case TypeCode.Single: return CreateList(value); + case TypeCode.Double: return CreateList(value); + } + } + + return ReadArray((IEnumerable)value); + } + else + { + // Complex object + return ReadObject(value); + } + } + + private XList CreateList(object value) => new XList((IList)value); + + private XImmutableArray CreateArray(T[] array) => new XImmutableArray(array); + + #endregion + + #endregion + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/PropertyTransformation.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/PropertyTransformation.cs new file mode 100644 index 000000000000..ccd81d29ce71 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/PropertyTransformation.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal class PropertyTransformation + { + internal PropertyTransformation(string name, Func transformer) + { + Name = name ?? throw new ArgumentNullException(nameof(name)); + Transformer = transformer ?? throw new ArgumentNullException(nameof(transformer)); + } + + internal string Name { get; } + + internal Func Transformer { get; } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/SerializationOptions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/SerializationOptions.cs new file mode 100644 index 000000000000..850ea40306c4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/SerializationOptions.cs @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal class SerializationOptions + { + internal static readonly SerializationOptions Default = new SerializationOptions(); + + internal SerializationOptions() { } + + internal SerializationOptions( + string[] include = null, + bool ingoreNullValues = false) + { + Include = include; + IgnoreNullValues = ingoreNullValues; + } + + internal string[] Include { get; set; } + + internal string[] Exclude { get; set; } + + internal bool IgnoreNullValues { get; set; } + + internal PropertyTransformation[] Transformations { get; set; } + + internal Func PropertyNameTransformer { get; set; } + + internal int MaxDepth { get; set; } = 5; + + internal bool IsIncluded(string name) + { + if (Exclude != null) + { + return !Exclude.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); + } + else if (Include != null) + { + return Include.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); + } + + return true; + } + + internal PropertyTransformation GetTransformation(string propertyName) + { + if (Transformations == null) return null; + + foreach (var t in Transformations) + { + if (t.Name.Equals(propertyName, StringComparison.OrdinalIgnoreCase)) + { + return t; + } + } + + return null; + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/SerializationMode.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/SerializationMode.cs new file mode 100644 index 000000000000..27b9be3b93a7 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/SerializationMode.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + [System.Flags] + public enum SerializationMode + { + None = 0, + IncludeHeaders = 1 << 0, + IncludeRead = 1 << 1, + IncludeCreate = 1 << 2, + IncludeUpdate = 1 << 3, + IncludeAll = IncludeHeaders | IncludeRead | IncludeCreate | IncludeUpdate, + IncludeCreateOrUpdate = IncludeCreate | IncludeUpdate + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/TypeConverterExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/TypeConverterExtensions.cs new file mode 100644 index 000000000000..7076c04ca8e5 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/TypeConverterExtensions.cs @@ -0,0 +1,261 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.IO; +using System.Linq; +using System.Xml; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell +{ + internal static class TypeConverterExtensions + { + internal static T[] SelectToArray(object source, System.Func converter) + { + // null begets null + if (source == null) + { + return null; + } + + // single values and strings are just encapsulated in the array. + if (source is string || !(source is System.Collections.IEnumerable)) + { + try + { + return new T[] { (T)converter(source) }; + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + return new T[0]; // empty result if couldn't convert. + } + + var result = new System.Collections.Generic.List(); + foreach (var each in (System.Collections.IEnumerable)source) + { + try + { + result.Add((T)converter(each)); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + } + return result.ToArray(); + } + + internal static System.Collections.Generic.List SelectToList(object source, System.Func converter) + { + // null begets null + if (source == null) + { + return null; + } + + // single values and strings are just encapsulated in the array. + if (source is string || !(source is System.Collections.IEnumerable)) + { + try + { + return new T[] { (T)converter(source) }.ToList(); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + return new T[0].ToList(); // empty result if couldn't convert. + } + + var result = new System.Collections.Generic.List(); + foreach (var each in (System.Collections.IEnumerable)source) + { + try + { + result.Add((T)converter(each)); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + } + return result; + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.Generic.IDictionary dictionary) + { + if (null != dictionary) + { + foreach (var each in dictionary.Keys) + { + yield return each; + } + } + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.IDictionary dictionary) + { + if (null != dictionary) + { + foreach (var each in dictionary.Keys) + { + yield return each; + } + } + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Management.Automation.PSObject instance) + { + if (null != instance) + { + foreach (var each in instance.Properties) + { + yield return each; + } + } + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.Generic.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + return (null == instance || instance.Count == 0) ? + Enumerable.Empty>() : + instance.Keys + .Where(key => + !(true == exclusions?.Contains(key?.ToString())) + && (false != inclusions?.Contains(key?.ToString()))) + .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + return (null == instance || instance.Count == 0) ? + Enumerable.Empty>() : + instance.Keys.OfType() + .Where(key => + !(true == exclusions?.Contains(key?.ToString())) + && (false != inclusions?.Contains(key?.ToString()))) + .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Management.Automation.PSObject instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + // new global::System.Collections.Generic.HashSet(System.StringComparer.InvariantCultureIgnoreCase) + return (null == instance || !instance.Properties.Any()) ? + Enumerable.Empty>() : + instance.Properties + .Where(property => + !(true == exclusions?.Contains(property.Name)) + && (false != inclusions?.Contains(property.Name))) + .Select(property => new System.Collections.Generic.KeyValuePair(property.Name, property.Value)); + } + + + internal static T GetValueForProperty(this System.Collections.Generic.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) + { + try + { + var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys, each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return key == null ? defaultValue : (T)converter(dictionary[key]); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + internal static T GetValueForProperty(this System.Collections.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) + { + try + { + var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys.OfType(), each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return key == null ? defaultValue : (T)converter(dictionary[key]); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + + internal static T GetValueForProperty(this System.Management.Automation.PSObject psObject, string propertyName, T defaultValue, System.Func converter) + { + try + { + var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return property == null ? defaultValue : (T)converter(property.Value); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + + internal static bool Contains(this System.Management.Automation.PSObject psObject, string propertyName) + { + bool result = false; + try + { + var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + result = property == null ? false : true; + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return result; + } + } +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/UndeclaredResponseException.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/UndeclaredResponseException.cs new file mode 100644 index 000000000000..c1f06c3511b0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/UndeclaredResponseException.cs @@ -0,0 +1,112 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System; + using System.Net.Http; + using System.Net.Http.Headers; + using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; + + public class RestException : Exception, IDisposable + { + public System.Net.HttpStatusCode StatusCode { get; set; } + public string Code { get; protected set; } + protected string message; + public HttpRequestMessage RequestMessage { get; protected set; } + public HttpResponseHeaders ResponseHeaders { get; protected set; } + + public string ResponseBody { get; protected set; } + public string ClientRequestId { get; protected set; } + public string RequestId { get; protected set; } + + public override string Message => message; + public string Action { get; protected set; } + + public RestException(System.Net.Http.HttpResponseMessage response) + { + StatusCode = response.StatusCode; + //CloneWithContent will not work here since the content is disposed after sendAsync + //Besides, it seems there is no need for the request content cloned here. + RequestMessage = response.RequestMessage.Clone(); + ResponseBody = response.Content.ReadAsStringAsync().Result; + ResponseHeaders = response.Headers; + + RequestId = response.GetFirstHeader("x-ms-request-id"); + ClientRequestId = response.GetFirstHeader("x-ms-client-request-id"); + + try + { + // try to parse the body as JSON, and see if a code and message are in there. + var json = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(ResponseBody) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject; + + // error message could be in properties.statusMessage + { message = If(json?.Property("properties"), out var p) + && If(p?.PropertyT("statusMessage"), out var sm) + ? (string)sm : (string)Message; } + + // see if there is an error block in the body + json = json?.Property("error") ?? json; + + { Code = If(json?.PropertyT("code"), out var c) ? (string)c : (string)StatusCode.ToString(); } + { message = If(json?.PropertyT("message"), out var m) ? (string)m : (string)Message; } + { Action = If(json?.PropertyT("action"), out var a) ? (string)a : (string)Action; } + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // couldn't get the code/message from the body response. + // In this case, we will assume the response is the expected error message + if(!string.IsNullOrEmpty(ResponseBody)) { + message = ResponseBody; + } + } +#endif + if (string.IsNullOrEmpty(message)) + { + if (StatusCode >= System.Net.HttpStatusCode.BadRequest && StatusCode < System.Net.HttpStatusCode.InternalServerError) + { + message = $"The server responded with a Request Error, Status: {StatusCode}"; + } + else if (StatusCode >= System.Net.HttpStatusCode.InternalServerError) + { + message = $"The server responded with a Server Error, Status: {StatusCode}"; + } + else + { + message = $"The server responded with an unrecognized response, Status: {StatusCode}"; + } + } + } + + public void Dispose() + { + ((IDisposable)RequestMessage).Dispose(); + } + } + + public class RestException : RestException + { + public T Error { get; protected set; } + public RestException(System.Net.Http.HttpResponseMessage response, T error) : base(response) + { + Error = error; + } + } + + + public class UndeclaredResponseException : RestException + { + public UndeclaredResponseException(System.Net.Http.HttpResponseMessage response) : base(response) + { + + } + } +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Writers/JsonWriter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Writers/JsonWriter.cs new file mode 100644 index 000000000000..dc33d902f55b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Writers/JsonWriter.cs @@ -0,0 +1,223 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Web; + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json +{ + internal class JsonWriter + { + const string indentation = " "; // 2 spaces + + private readonly bool pretty; + private readonly TextWriter writer; + + protected int currentLevel = 0; + + internal JsonWriter(TextWriter writer, bool pretty = true) + { + this.writer = writer ?? throw new ArgumentNullException(nameof(writer)); + this.pretty = pretty; + } + + internal void WriteNode(JsonNode node) + { + switch (node.Type) + { + case JsonType.Array: WriteArray((IEnumerable)node); break; + case JsonType.Object: WriteObject((JsonObject)node); break; + + // Primitives + case JsonType.Binary: WriteBinary((XBinary)node); break; + case JsonType.Boolean: WriteBoolean((bool)node); break; + case JsonType.Date: WriteDate((JsonDate)node); break; + case JsonType.Null: WriteNull(); break; + case JsonType.Number: WriteNumber((JsonNumber)node); break; + case JsonType.String: WriteString(node); break; + } + } + + internal void WriteArray(IEnumerable array) + { + currentLevel++; + + writer.Write('['); + + bool doIndentation = false; + + if (pretty) + { + foreach (var node in array) + { + if (node.Type == JsonType.Object || node.Type == JsonType.Array) + { + doIndentation = true; + + break; + } + } + } + + bool isFirst = true; + + foreach (JsonNode node in array) + { + if (!isFirst) writer.Write(','); + + if (doIndentation) + { + WriteIndent(); + } + else if (pretty) + { + writer.Write(' '); + } + + WriteNode(node); + + isFirst = false; + } + + currentLevel--; + + if (doIndentation) + { + WriteIndent(); + } + else if (pretty) + { + writer.Write(' '); + } + + writer.Write(']'); + } + + internal void WriteIndent() + { + if (pretty) + { + writer.Write(Environment.NewLine); + + for (int level = 0; level < currentLevel; level++) + { + writer.Write(indentation); + } + } + } + + internal void WriteObject(JsonObject obj) + { + currentLevel++; + + writer.Write('{'); + + bool isFirst = true; + + foreach (var field in obj) + { + if (!isFirst) writer.Write(','); + + WriteIndent(); + + WriteFieldName(field.Key); + + writer.Write(':'); + + if (pretty) + { + writer.Write(' '); + } + + // Write the field value + WriteNode(field.Value); + + isFirst = false; + } + + currentLevel--; + + WriteIndent(); + + writer.Write('}'); + } + + internal void WriteFieldName(string fieldName) + { + writer.Write('"'); + writer.Write(HttpUtility.JavaScriptStringEncode(fieldName)); + writer.Write('"'); + } + + #region Primitives + + internal void WriteBinary(XBinary value) + { + writer.Write('"'); + writer.Write(value.ToString()); + writer.Write('"'); + } + + internal void WriteBoolean(bool value) + { + writer.Write(value ? "true" : "false"); + } + + internal void WriteDate(JsonDate date) + { + if (date.ToDateTime().Year == 1) + { + WriteNull(); + } + else + { + writer.Write('"'); + writer.Write(date.ToIsoString()); + writer.Write('"'); + } + } + + internal void WriteNull() + { + writer.Write("null"); + } + + internal void WriteNumber(JsonNumber number) + { + if (number.Overflows) + { + writer.Write('"'); + writer.Write(number.Value); + writer.Write('"'); + } + else + { + writer.Write(number.Value); + } + } + + internal void WriteString(string text) + { + if (text == null) + { + WriteNull(); + } + else + { + writer.Write('"'); + + writer.Write(HttpUtility.JavaScriptStringEncode(text)); + + writer.Write('"'); + } + } + + #endregion + } +} + + +// TODO: Replace with System.Text.Json when available diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/delegates.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/delegates.cs new file mode 100644 index 000000000000..3ac71403eda2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/delegates.cs @@ -0,0 +1,23 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData=System.Func; + + public delegate Task SendAsync(HttpRequestMessage request, IEventListener callback); + public delegate Task SendAsyncStep(HttpRequestMessage request, IEventListener callback, ISendAsync next); + public delegate Task SignalEvent(string id, CancellationToken token, GetEventData getEventData); + public delegate Task Event(EventData message); + public delegate void SynchEvent(EventData message); + public delegate Task OnResponse(Response message); + public delegate Task OnResponse(Response message); +} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Az.FrontDoor.internal.psm1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Az.FrontDoor.internal.psm1 new file mode 100644 index 000000000000..00a473e839e0 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Az.FrontDoor.internal.psm1 @@ -0,0 +1,38 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.FrontDoor.private.dll') + + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module]::Instance + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export proxy cmdlet scripts + $exportsPath = $PSScriptRoot + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } +# endregion diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Enable-AzFrontDoorCustomDomainHttps.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Enable-AzFrontDoorCustomDomainHttps.ps1 new file mode 100644 index 000000000000..110318e0cd46 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Enable-AzFrontDoorCustomDomainHttps.ps1 @@ -0,0 +1,334 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Enables a frontendEndpoint for HTTPS traffic +.Description +Enables a frontendEndpoint for HTTPS traffic +.Example +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" +.Example +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" +.Example +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps +.Example +Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +.Example +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMHTTPSCONFIGURATION : Https settings for a domain + CertificateSource : Defines the source of the SSL certificate + MinimumTlsVersion : The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [FrontDoorCertificateSourceParameterCertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [KeyVaultCertificateSourceParameterSecretName ]: The name of the Key Vault secret representing the full certificate PFX + [KeyVaultCertificateSourceParameterSecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [VaultId ]: Resource ID. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps +#> +function Enable-AzFrontDoorCustomDomainHttps { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${FrontendEndpointName}, + + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Enable')] + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaJsonFilePath')] + [Parameter(ParameterSetName='EnableViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter(ParameterSetName='Enable', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration] + # Https settings for a domain + ${CustomHttpsConfiguration}, + + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the source of the SSL certificate + ${CertificateSource}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] + [System.String] + # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + ${MinimumTlsVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the type of the certificate used for secure connections to a frontendEndpoint + ${CertificateType}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Key Vault secret representing the full certificate PFX + ${SecretName}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The version of the Key Vault secret representing the full certificate PFX + ${SecretVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${VaultId}, + + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Enable operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Enable operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Enable = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_Enable'; + EnableExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableExpanded'; + EnableViaIdentity = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentity'; + EnableViaIdentityExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded'; + EnableViaIdentityFrontDoor = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor'; + EnableViaIdentityFrontDoorExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded'; + EnableViaJsonFilePath = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaJsonFilePath'; + EnableViaJsonString = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaJsonString'; + } + if (('Enable', 'EnableExpanded', 'EnableViaJsonFilePath', 'EnableViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('EnableExpanded', 'EnableViaIdentityExpanded', 'EnableViaIdentityFrontDoorExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('MinimumTlsVersion') ) { + $PSBoundParameters['MinimumTlsVersion'] = 1.2 + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Get-AzFrontDoorFrontendEndpoint.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Get-AzFrontDoorFrontendEndpoint.ps1 new file mode 100644 index 000000000000..79547f03fa14 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Get-AzFrontDoorFrontendEndpoint.ps1 @@ -0,0 +1,208 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Description +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint +#> +function Get-AzFrontDoorFrontendEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] + [Alias('FrontendEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Get = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_Get'; + GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_GetViaIdentity'; + GetViaIdentityFrontDoor = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor'; + List = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoor.ps1 new file mode 100644 index 000000000000..e179e2286588 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoor.ps1 @@ -0,0 +1,321 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Create a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor +#> +function New-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='"Enabled"')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoor_CreateExpanded'; + CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoor_CreateViaJsonFilePath'; + CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoor_CreateViaJsonString'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('EnabledState') ) { + $PSBoundParameters['EnabledState'] = "Enabled" + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..b61bb18b93e4 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,282 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create policy with specified rule set name within a resource group. +.Description +Create policy with specified rule set name within a resource group. +.Example +New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. + +POLICYSETTING : Describes settings for the policy. + [CaptchaExpirationInMinutes ]: 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. + [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. + [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + [JavascriptChallengeExpirationInMinutes ]: 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. + [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + [Mode ]: Describes if it is in detection mode or prevention mode at policy level. + [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. + [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy +#> +function New-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] + # Describes settings for the policy. + ${PolicySetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateExpanded'; + CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateViaJsonFilePath'; + CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateViaJsonString'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/ProxyCmdletDefinitions.ps1 new file mode 100644 index 000000000000..24c33368ea8f --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -0,0 +1,3015 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Enables a frontendEndpoint for HTTPS traffic +.Description +Enables a frontendEndpoint for HTTPS traffic +.Example +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" +.Example +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" +.Example +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps +.Example +Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId +.Example +$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId +Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMHTTPSCONFIGURATION : Https settings for a domain + CertificateSource : Defines the source of the SSL certificate + MinimumTlsVersion : The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [FrontDoorCertificateSourceParameterCertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [KeyVaultCertificateSourceParameterSecretName ]: The name of the Key Vault secret representing the full certificate PFX + [KeyVaultCertificateSourceParameterSecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [VaultId ]: Resource ID. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps +#> +function Enable-AzFrontDoorCustomDomainHttps { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${FrontendEndpointName}, + + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Enable')] + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaJsonFilePath')] + [Parameter(ParameterSetName='EnableViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter(ParameterSetName='Enable', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration] + # Https settings for a domain + ${CustomHttpsConfiguration}, + + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the source of the SSL certificate + ${CertificateSource}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] + [System.String] + # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + ${MinimumTlsVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Defines the type of the certificate used for secure connections to a frontendEndpoint + ${CertificateType}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Key Vault secret representing the full certificate PFX + ${SecretName}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The version of the Key Vault secret representing the full certificate PFX + ${SecretVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityExpanded')] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${VaultId}, + + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Enable operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Enable operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Enable = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_Enable'; + EnableExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableExpanded'; + EnableViaIdentity = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentity'; + EnableViaIdentityExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded'; + EnableViaIdentityFrontDoor = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor'; + EnableViaIdentityFrontDoorExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded'; + EnableViaJsonFilePath = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaJsonFilePath'; + EnableViaJsonString = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaJsonString'; + } + if (('Enable', 'EnableExpanded', 'EnableViaJsonFilePath', 'EnableViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('EnableExpanded', 'EnableViaIdentityExpanded', 'EnableViaIdentityFrontDoorExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('MinimumTlsVersion') ) { + $PSBoundParameters['MinimumTlsVersion'] = 1.2 + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Description +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint +#> +function Get-AzFrontDoorFrontendEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] + [Alias('FrontendEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Get = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_Get'; + GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_GetViaIdentity'; + GetViaIdentityFrontDoor = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor'; + List = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Create policy with specified rule set name within a resource group. +.Description +Create policy with specified rule set name within a resource group. +.Example +New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. + +POLICYSETTING : Describes settings for the policy. + [CaptchaExpirationInMinutes ]: 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. + [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. + [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + [JavascriptChallengeExpirationInMinutes ]: 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. + [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + [Mode ]: Describes if it is in detection mode or prevention mode at policy level. + [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. + [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy +#> +function New-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] + # Describes settings for the policy. + ${PolicySetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateExpanded'; + CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateViaJsonFilePath'; + CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateViaJsonString'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Create a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Create a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor +#> +function New-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='"Enabled"')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoor_CreateExpanded'; + CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoor_CreateViaJsonFilePath'; + CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoor_CreateViaJsonString'; + } + if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('EnabledState') ) { + $PSBoundParameters['EnabledState'] = "Enabled" + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +RULE : A list of rules that define a particular Rules Engine Configuration. + Action : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + Name : A name to refer to this specific rule. + Priority : A priority assigned to this rule. + [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms + [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine +#> +function Set-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] + # A list of rules that define a particular Rules Engine Configuration. + ${Rule}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateExpanded'; + UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateViaJsonFilePath'; + UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateViaJsonString'; + } + if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Update policy with specified rule set name within a resource group. +.Description +Update policy with specified rule set name within a resource group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. + +POLICYSETTING : Describes settings for the policy. + [CaptchaExpirationInMinutes ]: 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. + [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. + [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + [JavascriptChallengeExpirationInMinutes ]: 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. + [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + [Mode ]: Describes if it is in detection mode or prevention mode at policy level. + [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. + [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorwafpolicy +#> +function Set-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] + # Describes settings for the policy. + ${PolicySetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateExpanded'; + UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateViaJsonFilePath'; + UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateViaJsonString'; + } + if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor +#> +function Set-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateExpanded'; + UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateViaJsonFilePath'; + UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateViaJsonString'; + } + if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. +.Description +Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMDOMAINPROPERTY : Input of the custom domain to be validated for DNS mapping. + HostName : The host name of the custom domain. Must be a domain name. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoorcustomdomain +#> +function Test-AzFrontDoorCustomDomain { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput])] +[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Validate', Mandatory)] + [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] + [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Validate', Mandatory)] + [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] + [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Validate')] + [Parameter(ParameterSetName='ValidateExpanded')] + [Parameter(ParameterSetName='ValidateViaJsonFilePath')] + [Parameter(ParameterSetName='ValidateViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput] + # Input of the custom domain to be validated for DNS mapping. + ${CustomDomainProperty}, + + [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] + [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The host name of the custom domain. + # Must be a domain name. + ${HostName}, + + [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Validate operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Validate operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Validate = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_Validate'; + ValidateExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateExpanded'; + ValidateViaIdentity = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaIdentity'; + ValidateViaIdentityExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaIdentityExpanded'; + ValidateViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaJsonFilePath'; + ValidateViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaJsonString'; + } + if (('Validate', 'ValidateExpanded', 'ValidateViaJsonFilePath', 'ValidateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Check the availability of a Front Door subdomain. +.Description +Check the availability of a Front Door subdomain. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CHECKFRONTDOORNAMEAVAILABILITYINPUT : Input of CheckNameAvailability API. + Name : The resource name to validate. + Type : The type of the resource whose name is to be validated. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoornameavailabilitywithsubscription +#> +function Test-AzFrontDoorNameAvailabilityWithSubscription { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput])] +[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput] + # Input of CheckNameAvailability API. + ${CheckFrontDoorNameAvailabilityInput}, + + [Parameter(ParameterSetName='CheckExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The resource name to validate. + ${Name}, + + [Parameter(ParameterSetName='CheckExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The type of the resource whose name is to be validated. + ${Type}, + + [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Check operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Check operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Check = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_Check'; + CheckExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckExpanded'; + CheckViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath'; + CheckViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString'; + } + if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Check the availability of a Front Door resource name. +.Description +Check the availability of a Front Door resource name. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CHECKFRONTDOORNAMEAVAILABILITYINPUT : Input of CheckNameAvailability API. + Name : The resource name to validate. + Type : The type of the resource whose name is to be validated. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoornameavailability +#> +function Test-AzFrontDoorNameAvailability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput])] +[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput] + # Input of CheckNameAvailability API. + ${CheckFrontDoorNameAvailabilityInput}, + + [Parameter(ParameterSetName='CheckExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The resource name to validate. + ${Name}, + + [Parameter(ParameterSetName='CheckExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The type of the resource whose name is to be validated. + ${Type}, + + [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Check operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Check operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Check = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_Check'; + CheckExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckExpanded'; + CheckViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckViaJsonFilePath'; + CheckViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckViaJsonString'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Update policy with specified rule set name within a resource group. +.Description +Update policy with specified rule set name within a resource group. +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. + +POLICYSETTING : Describes settings for the policy. + [CaptchaExpirationInMinutes ]: 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. + [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. + [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + [JavascriptChallengeExpirationInMinutes ]: 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. + [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + [Mode ]: Describes if it is in detection mode or prevention mode at policy level. + [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. + [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy +#> +function Update-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] + # Describes settings for the policy. + ${PolicySetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Update-AzFrontDoorWafPolicy_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.FrontDoor.private\Update-AzFrontDoorWafPolicy_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoor +#> +function Update-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Update-AzFrontDoor_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.FrontDoor.private\Update-AzFrontDoor_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/README.md b/generated/FrontDoor/FrontDoor.Autorest/internal/README.md new file mode 100644 index 000000000000..ed771c9dec04 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/README.md @@ -0,0 +1,14 @@ +# Internal +This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. + +## Info +- Modifiable: no +- Generated: all +- Committed: no +- Packaged: yes + +## Details +The `Az.FrontDoor.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.FrontDoor`. Instead, this sub-module is imported by the `..\custom\Az.FrontDoor.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.FrontDoor.internal\Get-Example` would call an internal cmdlet named `Get-Example`. + +## Purpose +This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.FrontDoor`. diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoor.ps1 new file mode 100644 index 000000000000..8a6e9240dc1b --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoor.ps1 @@ -0,0 +1,323 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 +.Example +Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor +#> +function Set-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateExpanded'; + UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateViaJsonFilePath'; + UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateViaJsonString'; + } + if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorRulesEngine.ps1 new file mode 100644 index 000000000000..cfa0b6c4a730 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorRulesEngine.ps1 @@ -0,0 +1,222 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Description +Update a new Rules Engine Configuration with the specified name within the specified Front Door. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +RULE : A list of rules that define a particular Rules Engine Configuration. + Action : Actions to perform on the request and response if all of the match conditions are met. + [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. + HeaderActionType : Which type of manipulation to apply to the header. + HeaderName : The name of the header this action will apply to. + [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. + [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. + [RouteConfigurationOverride ]: Override the route configuration. + OdataType : + Name : A name to refer to this specific rule. + Priority : A priority assigned to this rule. + [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. + MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. + MatchVariable : Match Variable + Operator : Describes operator to apply to the match condition. + [NegateCondition ]: Describes if this is negate condition or not + [Selector ]: Name of selector in RequestHeader or RequestBody to be matched + [Transform >]: List of transforms + [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine +#> +function Set-AzFrontDoorRulesEngine { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(Mandatory)] + [Alias('RulesEngineName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Rules Engine which is unique within the Front Door. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] + # A list of rules that define a particular Rules Engine Configuration. + ${Rule}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateExpanded'; + UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateViaJsonFilePath'; + UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateViaJsonString'; + } + if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..74c7fc769b77 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,284 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update policy with specified rule set name within a resource group. +.Description +Update policy with specified rule set name within a resource group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. + +POLICYSETTING : Describes settings for the policy. + [CaptchaExpirationInMinutes ]: 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. + [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. + [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + [JavascriptChallengeExpirationInMinutes ]: 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. + [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + [Mode ]: Describes if it is in detection mode or prevention mode at policy level. + [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. + [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorwafpolicy +#> +function Set-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] + # Describes settings for the policy. + ${PolicySetting}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateExpanded'; + UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateViaJsonFilePath'; + UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateViaJsonString'; + } + if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorCustomDomain.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorCustomDomain.ps1 new file mode 100644 index 000000000000..ce17047e2b51 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorCustomDomain.ps1 @@ -0,0 +1,226 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. +.Description +Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMDOMAINPROPERTY : Input of the custom domain to be validated for DNS mapping. + HostName : The host name of the custom domain. Must be a domain name. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoorcustomdomain +#> +function Test-AzFrontDoorCustomDomain { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput])] +[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Validate', Mandatory)] + [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] + [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Validate', Mandatory)] + [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] + [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Validate')] + [Parameter(ParameterSetName='ValidateExpanded')] + [Parameter(ParameterSetName='ValidateViaJsonFilePath')] + [Parameter(ParameterSetName='ValidateViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput] + # Input of the custom domain to be validated for DNS mapping. + ${CustomDomainProperty}, + + [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] + [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The host name of the custom domain. + # Must be a domain name. + ${HostName}, + + [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Validate operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Validate operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Validate = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_Validate'; + ValidateExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateExpanded'; + ValidateViaIdentity = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaIdentity'; + ValidateViaIdentityExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaIdentityExpanded'; + ValidateViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaJsonFilePath'; + ValidateViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaJsonString'; + } + if (('Validate', 'ValidateExpanded', 'ValidateViaJsonFilePath', 'ValidateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailability.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailability.ps1 new file mode 100644 index 000000000000..7f27186f52b1 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailability.ps1 @@ -0,0 +1,175 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Check the availability of a Front Door resource name. +.Description +Check the availability of a Front Door resource name. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CHECKFRONTDOORNAMEAVAILABILITYINPUT : Input of CheckNameAvailability API. + Name : The resource name to validate. + Type : The type of the resource whose name is to be validated. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoornameavailability +#> +function Test-AzFrontDoorNameAvailability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput])] +[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput] + # Input of CheckNameAvailability API. + ${CheckFrontDoorNameAvailabilityInput}, + + [Parameter(ParameterSetName='CheckExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The resource name to validate. + ${Name}, + + [Parameter(ParameterSetName='CheckExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The type of the resource whose name is to be validated. + ${Type}, + + [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Check operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Check operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Check = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_Check'; + CheckExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckExpanded'; + CheckViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckViaJsonFilePath'; + CheckViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckViaJsonString'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailabilityWithSubscription.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailabilityWithSubscription.ps1 new file mode 100644 index 000000000000..f38b46c500bd --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailabilityWithSubscription.ps1 @@ -0,0 +1,190 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Check the availability of a Front Door subdomain. +.Description +Check the availability of a Front Door subdomain. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CHECKFRONTDOORNAMEAVAILABILITYINPUT : Input of CheckNameAvailability API. + Name : The resource name to validate. + Type : The type of the resource whose name is to be validated. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoornameavailabilitywithsubscription +#> +function Test-AzFrontDoorNameAvailabilityWithSubscription { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput])] +[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput] + # Input of CheckNameAvailability API. + ${CheckFrontDoorNameAvailabilityInput}, + + [Parameter(ParameterSetName='CheckExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The resource name to validate. + ${Name}, + + [Parameter(ParameterSetName='CheckExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The type of the resource whose name is to be validated. + ${Type}, + + [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Check operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Check operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + Check = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_Check'; + CheckExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckExpanded'; + CheckViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath'; + CheckViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString'; + } + if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoor.ps1 new file mode 100644 index 000000000000..daea5182dde9 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoor.ps1 @@ -0,0 +1,323 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Description +Update a new Front Door with a Front Door name under the specified subscription and resource group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKENDPOOL : Backend pools available to routing rules. + [Id ]: Resource ID. + [Backend >]: The set of backends for this pool + [Address ]: Location of the backend (IP address or FQDN) + [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. + [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. + [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link + [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated + [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' + [Weight ]: Weight of this endpoint for load balancing purposes. + [HealthProbeSettingId ]: Resource ID. + [LoadBalancingSettingId ]: Resource ID. + [Name ]: Resource name. + +BACKENDPOOLSSETTING : Settings for all backendPools + [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. + [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + +FRONTENDENDPOINT : Frontend endpoints available to routing rules. + [Id ]: Resource ID. + [CertificateSource ]: Defines the source of the SSL certificate + [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint + [HostName ]: The host name of the frontendEndpoint. Must be a domain name. + [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + [Name ]: Resource name. + [SecretName ]: The name of the Key Vault secret representing the full certificate PFX + [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX + [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + [Vault ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. + +HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. + [Id ]: Resource ID. + [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. + [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. + [IntervalInSeconds ]: The number of seconds between health probes. + [Name ]: Resource name. + [Path ]: The path to use for the health probe. Default is / + [Protocol ]: Protocol scheme to use for this probe + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. + [Id ]: Resource ID. + [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket + [Name ]: Resource name. + [SampleSize ]: The number of samples to consider for load balancing decisions + [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed + +ROUTINGRULE : Routing rules associated with this Front Door. + [Id ]: Resource ID. + [AcceptedProtocol >]: Protocol schemes to match for this rule + [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + [FrontendEndpoint >]: Frontend endpoints associated with this rule + [Id ]: Resource ID. + [Name ]: Resource name. + [PatternsToMatch >]: The route patterns of the rule. + [RouteConfiguration ]: A reference to the routing configuration. + OdataType : + [RuleEngineId ]: Resource ID. + [WebApplicationFirewallPolicyLinkId ]: Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoor +#> +function Update-AzFrontDoor { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('FrontDoorName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] + # Backend pools available to routing rules. + ${BackendPool}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] + # Settings for all backendPools + ${BackendPoolsSetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Operational status of the Front Door load balancer. + # Permitted values are 'Enabled' or 'Disabled' + ${EnabledState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # A friendly name for the frontDoor + ${FriendlyName}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] + # Frontend endpoints available to routing rules. + ${FrontendEndpoint}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] + # Health probe settings associated with this Front Door instance. + ${HealthProbeSetting}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] + # Load balancing settings associated with this Front Door instance. + ${LoadBalancingSetting}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] + # Routing rules associated with this Front Door. + ${RoutingRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Update-AzFrontDoor_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.FrontDoor.private\Update-AzFrontDoor_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoorWafPolicy.ps1 new file mode 100644 index 000000000000..0e66970a5515 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoorWafPolicy.ps1 @@ -0,0 +1,292 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update policy with specified rule set name within a resource group. +.Description +Update policy with specified rule set name within a resource group. +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CUSTOMRULE : List of rules + Action : Describes what action to be applied when rule matches. + MatchCondition >: List of match conditions. + MatchValue >: List of possible match values. + MatchVariable : Request variable to compare with. + OperatorProperty : Comparison type to use for matching with the variable value. + [NegateCondition ]: Describes if the result of this condition should be negated. + [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + [Transform >]: List of transforms. + Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + RuleType : Describes type of rule. + [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + [GroupBy >]: Describes the list of variables to group the rate limit requests + VariableName : Describes the supported variable for group by + [Name ]: Describes the name of the rule. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitThreshold ]: Number of allowed requests per client within the time window. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +MANAGEDRULESET : List of rule sets. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. + [Exclusion >]: Describes the exclusions that are applied to all rules in the set. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Selector : Selector value for which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. + [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. + RuleGroupName : Describes the managed rule group to override. + [Exclusion >]: Describes the exclusions that are applied to all rules in the group. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + RuleId : Identifier for the managed rule. + [Action ]: Describes the override action to be applied when rule matches. + [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. + [Exclusion >]: Describes the exclusions that are applied to this specific rule. + [RuleSetAction ]: Defines the rule set action. + +POLICYSETTING : Describes settings for the policy. + [CaptchaExpirationInMinutes ]: 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. + [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. + [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + [JavascriptChallengeExpirationInMinutes ]: 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. + [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. + [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. + MatchVariable : The variable to be scrubbed from the logs. + SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + [State ]: Defines the state of a log scrubbing rule. Default value is enabled. + [State ]: State of the log scrubbing config. Default value is Enabled. + [Mode ]: Describes if it is in detection mode or prevention mode at policy level. + [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. + [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy +#> +function Update-AzFrontDoorWafPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('PolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # The name of the Web Application Firewall Policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] + # List of rules + ${CustomRule}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Gets a unique read-only string that changes whenever the resource is updated. + ${Etag}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] + # List of rule sets. + ${ManagedRuleSet}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] + # Describes settings for the policy. + ${PolicySetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Name of the pricing tier. + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $mapping = @{ + UpdateExpanded = 'Az.FrontDoor.private\Update-AzFrontDoorWafPolicy_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.FrontDoor.private\Update-AzFrontDoorWafPolicy_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { + $PSBoundParameters['Location'] = "global" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/generated/FrontDoor/FrontDoor.Autorest/resources/README.md b/generated/FrontDoor/FrontDoor.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/test-module.ps1 b/generated/FrontDoor/FrontDoor.Autorest/test-module.ps1 new file mode 100644 index 000000000000..4c7770804777 --- /dev/null +++ b/generated/FrontDoor/FrontDoor.Autorest/test-module.ps1 @@ -0,0 +1,98 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- +param([switch]$NotIsolated, [switch]$Live, [switch]$Record, [switch]$Playback, [switch]$RegenerateSupportModule, [switch]$UsePreviousConfigForRecord, [string[]]$TestName) +$ErrorActionPreference = 'Stop' + +if(-not $NotIsolated) +{ + Write-Host -ForegroundColor Green 'Creating isolated process...' + if ($PSBoundParameters.ContainsKey("TestName")) { + $PSBoundParameters["TestName"] = $PSBoundParameters["TestName"] -join "," + } + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated + return +} + +# This is a workaround, since for string array parameter, pwsh -File will only take the first element +if ($PSBoundParameters.ContainsKey("TestName") -and ($TestName.count -eq 1) -and ($TestName[0].Contains(','))) { + $TestName = $TestName[0].Split(",") +} + +$ProgressPreference = 'SilentlyContinue' +$baseName = $PSScriptRoot.BaseName +$requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent)) +. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -NotIsolated -Accounts:$false -Pester -Resources:$requireResourceModule -RegenerateSupportModule:$RegenerateSupportModule +. ("$PSScriptRoot\test\utils.ps1") + +if ($requireResourceModule) +{ + # Load the latest Az.Accounts installed + Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version + $resourceModulePSD = Get-Item -Path (Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psd1') + Import-Module -Name $resourceModulePSD.FullName +} + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) +{ + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.FrontDoor.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +Import-Module -Name Pester +Import-Module -Name $modulePath + +$TestMode = 'playback' +$ExcludeTag = @("LiveOnly") +if($Live) +{ + $TestMode = 'live' + $ExcludeTag = @() +} +if($Record) +{ + $TestMode = 'record' +} +try +{ + if ($TestMode -ne 'playback') + { + setupEnv + } else { + $env:AzPSAutorestTestPlaybackMode = $true + } + $testFolder = Join-Path $PSScriptRoot 'test' + if ($null -ne $TestName) + { + Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") + } else { + Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") + } +} Finally +{ + if ($TestMode -ne 'playback') + { + cleanupEnv + } + else { + $env:AzPSAutorestTestPlaybackMode = '' + } +} + +Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs index b6db8e525a56..97a9784bd2b0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -24,3 +24,7 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + + + + diff --git a/src/FrontDoor/FrontDoor.Autorest/README.md b/src/FrontDoor/FrontDoor.Autorest/README.md index cbf6ed681cf2..aa2486e2373c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/README.md +++ b/src/FrontDoor/FrontDoor.Autorest/README.md @@ -28,15 +28,15 @@ For information on how to develop for `Az.FrontDoor`, see [how-to.md](how-to.md) ```yaml # pin the swagger version by using the commit id instead of branch name -commit: cf9f241708ed82f2dad218fed3c09ca5fd191311 +commit: f11631f1c1057d8363f9e3f9597c73b90f8924c8 require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md # If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally input-file: # You need to specify your swagger files here. - - $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/webapplicationfirewall.json - - $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/network.json + - $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-03-01/webapplicationfirewall.json + - $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-03-01/network.json - $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/frontdoor.json try-require: @@ -173,6 +173,11 @@ directive: verb: Set subject: FrontDoor hide: true + + - where: + verb: Get + subject: FrontendEndpoint + hide: true - where: subject: FrontendEndpointHttps @@ -249,6 +254,13 @@ directive: verb: Remove subject: Content + - where: + verb: Remove + subject: Content + parameter-name: FrontDoorName + set: + parameter-name: Name + # Update Rules Engine rename, and hide set - where: verb: Set @@ -404,6 +416,11 @@ directive: property-name: JavascriptChallengeExpirationInMinute set: property-name: JavascriptChallengeExpirationInMinutes + - where: + model-name: PolicySettings + property-name: CaptchaExpirationInMinute + set: + property-name: CaptchaExpirationInMinutes - where: model-name: PolicySettings property-name: LogScrubbing diff --git a/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies.json b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies.json index 729750fe8174..4cafef8c9525 100644 --- a/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies.json +++ b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies.json @@ -1,6 +1,6 @@ { "resourceType": "FrontDoorWebApplicationFirewallPolicies", - "apiVersion": "2024-02-01", + "apiVersion": "2025-03-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.frontdoor" }, diff --git a/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-frontendEndpoints.json b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-frontendEndpoints.json index 4951d4cf66e1..172014bd68ec 100644 --- a/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-frontendEndpoints.json +++ b/src/FrontDoor/FrontDoor.Autorest/UX/Microsoft.Network/frontDoors-frontendEndpoints.json @@ -47,49 +47,6 @@ ] } ] - }, - { - "name": "Get-AzFrontDoorFrontendEndpoint", - "description": "Gets a Frontend endpoint with the specified name within the specified Front Door.", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint" - }, - "parameterSets": [ - { - "parameters": [ - "-FrontDoorName ", - "-Name ", - "-ResourceGroupName ", - "[-SubscriptionId ]" - ] - } - ] - }, - "examples": [ - { - "description": "Gets a Frontend endpoint with the specified name within the specified Front Door.", - "parameters": [ - { - "name": "-FrontDoorName", - "value": "[Path.frontDoorName]" - }, - { - "name": "-Name", - "value": "[Path.frontendEndpointName]" - }, - { - "name": "-ResourceGroupName", - "value": "[Path.resourceGroupName]" - }, - { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - } - ] - } - ] } ] } diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 index ab252e9acec0..11864ab2eac6 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 @@ -124,6 +124,7 @@ function Enable-AzFrontDoorCustomDomainHttps { [Parameter(ParameterSetName='EnableExpanded')] [Parameter(ParameterSetName='EnableViaIdentityExpanded')] [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] @@ -134,6 +135,7 @@ function Enable-AzFrontDoorCustomDomainHttps { [Parameter(ParameterSetName='EnableExpanded')] [Parameter(ParameterSetName='EnableViaIdentityExpanded')] [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] # The name of the Key Vault secret representing the full certificate PFX @@ -142,6 +144,7 @@ function Enable-AzFrontDoorCustomDomainHttps { [Parameter(ParameterSetName='EnableExpanded')] [Parameter(ParameterSetName='EnableViaIdentityExpanded')] [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] # The version of the Key Vault secret representing the full certificate PFX @@ -150,6 +153,7 @@ function Enable-AzFrontDoorCustomDomainHttps { [Parameter(ParameterSetName='EnableExpanded')] [Parameter(ParameterSetName='EnableViaIdentityExpanded')] [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] # Resource ID. @@ -168,6 +172,7 @@ function Enable-AzFrontDoorCustomDomainHttps { ${JsonString}, [Parameter()] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Get-AzFrontDoorFrontendEndpoint.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Get-AzFrontDoorFrontendEndpoint.ps1 new file mode 100644 index 000000000000..4f023f2e5b97 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Get-AzFrontDoorFrontendEndpoint.ps1 @@ -0,0 +1,158 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Description +Gets a Frontend endpoint with the specified name within the specified Front Door. +.Example +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" +.Example +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" -Name "frontdoor1-azurefd-net" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTDOORINPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + +INPUTOBJECT : Identity Parameter + [FrontDoorName ]: Name of the Front Door which is globally unique. + [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. + [Id ]: Resource identity path + [PolicyName ]: The name of the Web Application Firewall Policy. + [ResourceGroupName ]: Name of the Resource group within the Azure subscription. + [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. + [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +.Link +https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint +#> +function Get-AzFrontDoorFrontendEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] + [Parameter(ParameterSetName='ByObjectParameterSet')] + [Alias('FrontendEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ByObjectParameterSet', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + [alias('FrontDoorObject')] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + + process { + Az.FrontDoor.internal\Get-AzFrontDoorFrontendEndpoint @PSBoundParameters + } +} diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 index e7c2c579a4d7..04ddd6782164 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 @@ -28,7 +28,7 @@ https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutin function New-AzFrontDoorRoutingRuleObject { [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule')] - [CmdletBinding(DefaultParameterSetName= 'ForwardingParameterSet')] + [CmdletBinding(DefaultParameterSetName= 'ByFieldsWithForwardingParameterSet')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -68,63 +68,63 @@ function New-AzFrontDoorRoutingRuleObject { [string] $Id, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="Resource ID.")] [string] $BackendPoolName, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] [System.TimeSpan] $CacheDuration, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="Whether to use dynamic compression for cached content.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] [string] $DynamicCompression, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")] [string] $QueryParameter, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="Treatment of URL query terms when forming the cache key.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] [string] $QueryParameterStripDirective, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] [string] $CustomForwardingPath, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] [string] $ForwardingProtocol = 'MatchRequest', - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [bool] $EnableCaching, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] [string] $CustomFragment, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] [string] $CustomHost, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] [string] $CustomPath, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] [string] $CustomQueryString, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="The protocol of the destination to where the traffic is redirected.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] [string] $RedirectProtocol, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="The redirect type the rule will use when redirecting traffic.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] [string] @@ -136,7 +136,7 @@ function New-AzFrontDoorRoutingRuleObject { $subId = (Get-AzContext).Subscription.Id switch ($PSCmdlet.ParameterSetName) { - "ForwardingParameterSet" { + "ByFieldsWithForwardingParameterSet" { $ForwardingConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration]::New() $BackendPoolId = "/subscriptions/$subid/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/frontDoors/$FrontDoorName/BackendPools/$BackendPoolName" @@ -165,7 +165,7 @@ function New-AzFrontDoorRoutingRuleObject { $ForwardingConfiguration.ForwardingProtocol = $PSBoundParameters.ContainsKey('ForwardingProtocol')? $ForwardingProtocol : 'MatchRequest' $Object.RouteConfiguration = $ForwardingConfiguration } - "RedirectParameterSet" { + "ByFieldsWithRedirectParameterSet" { $RedirectConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration]::New() if ($PSBoundParameters.ContainsKey('CustomFragment')) { diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 index b3acf15acdab..967523d06c34 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 @@ -28,7 +28,7 @@ https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulese function New-AzFrontDoorRulesEngineActionObject { [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction')] - [CmdletBinding(DefaultParameterSetName= 'ForwardingParameterSet')] + [CmdletBinding(DefaultParameterSetName= 'ByFieldsWithForwardingParameterSet')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="A list of header actions to apply from the request from AFD to the origin.")] @@ -41,71 +41,71 @@ function New-AzFrontDoorRulesEngineActionObject { [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] $RouteConfigurationOverride, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="Resource ID.")] [string] $BackendPoolName, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="The name of the Front Door to which this routing rule belongs.")] [string] $FrontDoorName, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="The resource group name that the RoutingRule will be created in.")] [string] $ResourceGroupName, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] [System.TimeSpan] $CacheDuration, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="Whether to use dynamic compression for cached content.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] [string] $DynamicCompression, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")] [string] $QueryParameter, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="Treatment of URL query terms when forming the cache key.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] [string] $QueryParameterStripDirective, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] [string] $CustomForwardingPath, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [Parameter(HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] [string] $ForwardingProtocol, - [Parameter(ParameterSetName= 'ForwardingParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] [bool] $EnableCaching, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] [string] $CustomFragment, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] [string] $CustomHost, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] [string] $CustomPath, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] [string] $CustomQueryString, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="The protocol of the destination to where the traffic is redirected.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] [string] $RedirectProtocol, - [Parameter(ParameterSetName= 'RedirectParameterSet')] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] [Parameter(HelpMessage="The redirect type the rule will use when redirecting traffic.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] [string] @@ -125,7 +125,7 @@ function New-AzFrontDoorRulesEngineActionObject { } switch ($PSCmdlet.ParameterSetName) { - "ForwardingParameterSet" { + "ByFieldsWithForwardingParameterSet" { if ( !$PSBoundParameters.ContainsKey("BackendPoolName") -and !$PSBoundParameters.ContainsKey("FrontDoorName") -and @@ -174,7 +174,7 @@ function New-AzFrontDoorRulesEngineActionObject { $Object.RouteConfigurationOverride = $ForwardingConfiguration break } - "RedirectParameterSet" { + "ByFieldsWithRedirectParameterSet" { $RedirectConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration]::New() if ($PSBoundParameters.ContainsKey('CustomFragment')) { diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 index 689cb1d93834..54cd1950ce7f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 @@ -54,7 +54,7 @@ function New-AzFrontDoorWafCustomRuleObject { [ValidateRange(0, [int]::MaxValue)] $Priority = 0, [Parameter(HelpMessage="Time window for resetting the rate limit count. Default is 1 minute.")] - [int] + [System.Nullable`1[System.Int32]] $RateLimitDurationInMinutes = 1, [Parameter(HelpMessage="Number of allowed requests per client within the time window.")] [int] diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 index 113cafc512cb..1465085f8f5a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 @@ -37,7 +37,7 @@ function New-AzFrontDoorWafManagedRuleOverrideObject { $Action, [Parameter(HelpMessage="Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [string] + [System.Management.Automation.SwitchParameter] $Disabled, [Parameter(HelpMessage="Describes the exclusions that are applied to this specific rule.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] @@ -53,8 +53,8 @@ function New-AzFrontDoorWafManagedRuleOverrideObject { if ($PSBoundParameters.ContainsKey('Action')) { $Object.Action = $Action } - if ($PSBoundParameters.ContainsKey('EnabledState')) { - $Object.EnabledState = $Disabled + if ($PSBoundParameters.ContainsKey('Disabled')) { + $Object.EnabledState = if ($Disabled) { "Disabled" } else { "Enabled" } } if ($PSBoundParameters.ContainsKey('Exclusion')) { $Object.Exclusion = $Exclusion diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 index 9f86bbb807bf..ca06a95540a4 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 @@ -43,7 +43,7 @@ CUSTOMRULE : List of rules Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. RuleType : Describes type of rule. [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests + [GroupBy >]: Descriibes the list of variables to group the rate limit requests VariableName : Describes the supported variable for group by [Name ]: Describes the name of the rule. [RateLimitDurationInMinute ]: Time window for resetting the rate limit count. Default is 1 minute. @@ -137,12 +137,20 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] + [System.Nullable`1[System.Int32]] # 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. ${JavascriptChallengeExpirationInMinutes}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable`1[System.Int32]] + # 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. + ${CaptchaExpirationInMinutes}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] @@ -151,6 +159,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] + [Alias("ManagedRule")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] # List of rule sets. @@ -180,6 +189,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] + [Alias("Sku")] # Name of the pricing tier. ${SkuName}, @@ -304,6 +314,11 @@ param( $null = $PSBoundParameters.Remove('JavascriptChallengeExpirationInMinutes') } + $CaptchaExpirationInMinutes = $CaptchaExpirationInMinutes + if ($PSBoundParameters.ContainsKey('CaptchaExpirationInMinutes')) { + $null = $PSBoundParameters.Remove('CaptchaExpirationInMinutes') + } + try { $duplicateCheck = Get-AzFrontDoorWafPolicy @PSBoundParameters foreach ($policy in $duplicateCheck) { @@ -345,6 +360,9 @@ param( if ($JavascriptChallengeExpirationInMinutes -gt 0) { $PSBoundParameters.Add('JavascriptChallengeExpirationInMinutes', $JavascriptChallengeExpirationInMinutes) } + if ($CaptchaExpirationInMinutes -gt 0) { + $PSBoundParameters.Add('CaptchaExpirationInMinutes', $CaptchaExpirationInMinutes) + } $PolicySettings = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings]::New() if ($PSBoundParameters.ContainsKey('CustomBlockResponseBody')) { @@ -362,6 +380,10 @@ param( $null = $PSBoundParameters.Remove('JavascriptChallengeExpirationInMinutes') $PolicySettings.JavascriptChallengeExpirationInMinutes = $JavascriptChallengeExpirationInMinutes } + if ($PSBoundParameters.ContainsKey('CaptchaExpirationInMinutes')) { + $null = $PSBoundParameters.Remove('CaptchaExpirationInMinutes') + $PolicySettings.CaptchaExpirationInMinutes = $CaptchaExpirationInMinutes + } if ($PSBoundParameters.ContainsKey('LogScrubbingSetting')) { $null = $PSBoundParameters.Remove('LogScrubbingSetting') $PolicySettings.LogScrubbingSetting = $LogScrubbingSetting diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoor.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoor.ps1 index 6a9095be8f11..c6faf734d333 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoor.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Set-AzFrontDoor.ps1 @@ -124,6 +124,9 @@ param( ${SubscriptionId}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] @@ -131,15 +134,20 @@ param( ${BackendPool}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] # Settings for all backendPools ${BackendPoolsSetting}, + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] [switch] ${DisableCertificateNameCheck}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] @@ -154,6 +162,9 @@ param( ${FriendlyName}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] @@ -161,6 +172,9 @@ param( ${FrontendEndpoint}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] @@ -168,6 +182,9 @@ param( ${HealthProbeSetting}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] @@ -175,6 +192,9 @@ param( ${LoadBalancingSetting}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] @@ -182,6 +202,9 @@ param( ${RoutingRule}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] [System.Collections.Hashtable] @@ -201,6 +224,9 @@ param( ${JsonString}, [Parameter()] + [Parameter(ParameterSetName='ByResourceIdParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] + [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 index 1c27635f5fe6..f48bf7adf040 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 @@ -100,6 +100,7 @@ function Update-AzFrontDoorWafPolicy { [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet')] [Alias('PolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] [System.String] @@ -107,12 +108,14 @@ param( ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] [System.String] # Name of the Resource group within the Azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ByFieldsParameterSet')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -141,25 +144,26 @@ param( [Parameter()] [AllowEmptyCollection()] + [Alias('ManagedRule')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] # List of rule sets. ${ManagedRuleSet}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] # If the action type is block, customer can override the response body. # The body must be specified in base64 encoding. ${CustomBlockResponseBody}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] + [System.Nullable`1[System.Int32]] # If the action type is block, customer can override the response status code. ${CustomBlockResponseStatusCode}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] @@ -167,39 +171,47 @@ param( # Defaults to Enabled if not specified. ${EnabledState}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] # Defines rules that scrub sensitive fields in the Web Application Firewall logs. ${LogScrubbingSetting}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] # Describes if it is in detection mode or prevention mode at policy level. ${Mode}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] # If action type is redirect, this field represents redirect URL for the client. ${RedirectUrl}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [System.String] # Describes if policy managed rules will inspect the request body content. ${RequestBodyCheck}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] + [System.Nullable`1[System.Int32]] # 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. ${JavascriptChallengeExpirationInMinutes}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.Nullable`1[System.Int32]] + # 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. + ${CaptchaExpirationInMinutes}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] @@ -317,6 +329,11 @@ process { $null = $PSBoundParameters.Remove('JavascriptChallengeExpirationInMinutes') } + $CaptchaExpirationInMinute = $CaptchaExpirationInMinute + if ($PSBoundParameters.ContainsKey('CaptchaExpirationInMinutes')) { + $null = $PSBoundParameters.Remove('CaptchaExpirationInMinutes') + } + try { $retrievedPolicy = Get-AzFrontDoorWafPolicy @PSBoundParameters } @@ -360,7 +377,10 @@ process { if ($JavascriptChallengeExpirationInMinutes -gt 0) { $PSBoundParameters.Add('JavascriptChallengeExpirationInMinutes', $JavascriptChallengeExpirationInMinutes) } - + if ($CaptchaExpirationInMinutes -gt 0) { + $PSBoundParameters.Add('CaptchaExpirationInMinutes', $CaptchaExpirationInMinutes) + } + $UpdatePolicySetting = $retrievedPolicy.PolicySetting if ($PSBoundParameters.ContainsKey("CustomBlockResponseBody")) { $null = $PSBoundParameters.Remove("CustomBlockResponseBody") @@ -395,6 +415,11 @@ process { $null = $PSBoundParameters.Remove("JavascriptChallengeExpirationInMinutes") $UpdatePolicySetting.JavascriptChallengeExpirationInMinutes = $JavascriptChallengeExpirationInMinutes } + + if ($PSBoundParameters.ContainsKey("CaptchaExpirationInMinutes")) { + $null = $PSBoundParameters.Remove("CaptchaExpirationInMinutes") + $UpdatePolicySetting.CaptchaExpirationInMinutes = $CaptchaExpirationInMinutes + } $PSBoundParameters.PolicySetting = $UpdatePolicySetting diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorPolicySettingsObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorPolicySettingsObject.ps1 index 4e6426e87eda..64541ec3a580 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorPolicySettingsObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorPolicySettingsObject.ps1 @@ -31,6 +31,9 @@ function New-AzFrontDoorPolicySettingsObject { [CmdletBinding(PositionalBinding=$false)] Param( + [Parameter(HelpMessage="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.")] + [int] + $CaptchaExpirationInMinutes, [Parameter(HelpMessage="If the action type is block, customer can override the response body. The body must be specified in base64 encoding.")] [string] $CustomBlockResponseBody, @@ -63,6 +66,9 @@ function New-AzFrontDoorPolicySettingsObject { process { $Object = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings]::New() + if ($PSBoundParameters.ContainsKey('CaptchaExpirationInMinutes')) { + $Object.CaptchaExpirationInMinutes = $CaptchaExpirationInMinutes + } if ($PSBoundParameters.ContainsKey('CustomBlockResponseBody')) { $Object.CustomBlockResponseBody = $CustomBlockResponseBody } diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 4f83c518be46..719dcab9c782 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: cf98442d-353b-4270-9299-8a4bb7c977e6 +Module Guid: c532c78c-a4bd-4c06-9cc6-f87f4cb06ee0 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md index a98e6ab2077f..d1dde8c2be1d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md @@ -20,6 +20,13 @@ Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointNam [-Confirm] [-WhatIf] [] ``` +### ByResourceIdWithVaultParameterSet +``` +Enable-AzFrontDoorCustomDomainHttps [-MinimumTlsVersion ] [-SecretName ] + [-SecretVersion ] [-VaultId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + ### Enable ``` Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName @@ -347,7 +354,7 @@ The minimum TLS version required from the clients to establish an SSL handshake ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded Aliases: Required: False @@ -407,7 +414,7 @@ The name of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded Aliases: Required: False @@ -422,7 +429,7 @@ The version of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded Aliases: Required: False @@ -453,7 +460,7 @@ Resource ID. ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md index e92de2f4eeed..ae35eb24531e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md @@ -18,6 +18,12 @@ Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName ] [-DefaultProfile ] [] ``` +### ByObjectParameterSet +``` +Get-AzFrontDoorFrontendEndpoint -FrontDoorInputObject [-Name ] + [-DefaultProfile ] [] +``` + ### Get ``` Get-AzFrontDoorFrontendEndpoint -FrontDoorName -Name -ResourceGroupName @@ -41,80 +47,27 @@ Gets a Frontend endpoint with the specified name within the specified Front Door ## EXAMPLES -### Example 1: Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" +{{ Add code here }} ``` ```output -HostName : frontdoor1.azurefd.net -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net -Name : frontdoor1-azurefd-net -Type : Microsoft.Network/frontdoors/frontendendpoints - -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". - -### Example 2: Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" -Name "frontdoor1-azurefd-net" +{{ Add code here }} ``` ```output -HostName : frontdoor1.azurefd.net -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net -Name : frontdoor1-azurefd-net -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS @@ -139,8 +92,8 @@ Identity Parameter ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -Parameter Sets: GetViaIdentityFrontDoor -Aliases: +Parameter Sets: ByObjectParameterSet, GetViaIdentityFrontDoor +Aliases: FrontDoorObject Required: True Position: Named @@ -184,7 +137,7 @@ Name of the Frontend endpoint which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentityFrontDoor +Parameter Sets: ByObjectParameterSet, Get, GetViaIdentityFrontDoor Aliases: FrontendEndpointName Required: True diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md index 95aa27b4d93f..8f2a00378fd6 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorPolicySettingsObject.md @@ -13,7 +13,7 @@ Create an in-memory object for PolicySettings. ## SYNTAX ``` -New-AzFrontDoorPolicySettingsObject [-CustomBlockResponseBody ] +New-AzFrontDoorPolicySettingsObject [-CaptchaExpirationInMinutes ] [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-EnabledState ] [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [] @@ -45,6 +45,23 @@ Create a comprehensive WAF policy settings object with prevention mode enabled, ## PARAMETERS +### -CaptchaExpirationInMinutes +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -CustomBlockResponseBody If the action type is block, customer can override the response body. The body must be specified in base64 encoding. diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md index 886d6546bb1e..27cdf5e28555 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md @@ -12,7 +12,7 @@ Create an in-memory object for RoutingRule. ## SYNTAX -### ForwardingParameterSet (Default) +### ByFieldsWithForwardingParameterSet (Default) ``` New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-BackendPoolName ] [-CacheDuration ] [-CustomForwardingPath ] [-CustomFragment ] @@ -24,7 +24,7 @@ New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-BackendPoolNam [-RuleEngineName ] [-WebApplicationFirewallPolicyLinkId ] [] ``` -### RedirectParameterSet +### ByFieldsWithRedirectParameterSet ``` New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-BackendPoolName ] [-CacheDuration ] [-CustomForwardingPath ] [-CustomFragment ] @@ -240,7 +240,7 @@ Accept wildcard characters: False ```yaml Type: System.Boolean -Parameter Sets: ForwardingParameterSet +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md index 12d2e130a1b4..71d7eaf74892 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md @@ -12,7 +12,7 @@ Create an in-memory object for RulesEngineAction. ## SYNTAX -### ForwardingParameterSet (Default) +### ByFieldsWithForwardingParameterSet (Default) ``` New-AzFrontDoorRulesEngineActionObject [-BackendPoolName ] [-CacheDuration ] [-CustomForwardingPath ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] @@ -24,7 +24,7 @@ New-AzFrontDoorRulesEngineActionObject [-BackendPoolName ] [-CacheDurati [] ``` -### RedirectParameterSet +### ByFieldsWithRedirectParameterSet ``` New-AzFrontDoorRulesEngineActionObject [-BackendPoolName ] [-CacheDuration ] [-CustomForwardingPath ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] @@ -250,7 +250,7 @@ Accept wildcard characters: False ```yaml Type: System.Boolean -Parameter Sets: ForwardingParameterSet +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md index 0a6882df76e5..63a3ca482256 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md @@ -15,7 +15,7 @@ Create an in-memory object for CustomRule. ``` New-AzFrontDoorWafCustomRuleObject -Action -MatchCondition -Priority -RuleType [-EnabledState ] [-GroupBy ] [-Name ] - [-RateLimitDurationInMinutes ] [-RateLimitThreshold ] [] + [-RateLimitDurationInMinutes ] [-RateLimitThreshold ] [] ``` ## DESCRIPTION @@ -135,7 +135,7 @@ Time window for resetting the rate limit count. Default is 1 minute. ```yaml -Type: System.Int32 +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md index 4fe6796ebeef..c90a8105dc01 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -13,7 +13,7 @@ Create an in-memory object for ManagedRuleOverride. ## SYNTAX ``` -New-AzFrontDoorWafManagedRuleOverrideObject -RuleId [-Action ] [-Disabled ] +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId [-Action ] [-Disabled] [-Exclusion ] [] ``` @@ -57,7 +57,7 @@ Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. ```yaml -Type: System.String +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md index f9d5fa0133cd..ec61860b2397 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md @@ -15,8 +15,9 @@ Create policy with specified rule set name within a resource group. ### CreateExpanded (Default) ``` New-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] - [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] - [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] + [-CaptchaExpirationInMinutes ] [-CustomBlockResponseBody ] + [-CustomBlockResponseStatusCode ] [-CustomRule ] [-EnabledState ] + [-Etag ] [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] @@ -71,6 +72,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -CaptchaExpirationInMinutes +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. + +```yaml +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -CustomBlockResponseBody If the action type is block, customer can override the response body. The body must be specified in base64 encoding. @@ -170,7 +188,7 @@ This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. ```yaml -Type: System.Int32 +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: CreateExpanded Aliases: @@ -232,7 +250,7 @@ List of rule sets. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] Parameter Sets: CreateExpanded -Aliases: +Aliases: ManagedRule Required: False Position: Named @@ -337,7 +355,7 @@ Name of the pricing tier. ```yaml Type: System.String Parameter Sets: CreateExpanded -Aliases: +Aliases: Sku Required: False Position: Named diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md index 0a79d56afac8..75f6396eb50d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Remove-AzFrontDoorContent.md @@ -14,16 +14,16 @@ Removes a content from Front Door. ### PurgeExpanded (Default) ``` -Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName -ContentPath +Remove-AzFrontDoorContent -Name -ResourceGroupName -ContentPath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### Purge ``` -Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName - -ContentFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzFrontDoorContent -Name -ResourceGroupName -ContentFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] ``` ### PurgeViaIdentity @@ -40,14 +40,14 @@ Remove-AzFrontDoorContent -InputObject -ContentPath -ResourceGroupName -JsonFilePath +Remove-AzFrontDoorContent -Name -ResourceGroupName -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### PurgeViaJsonString ``` -Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName -JsonString +Remove-AzFrontDoorContent -Name -ResourceGroupName -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -128,21 +128,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FrontDoorName -Name of the Front Door which is globally unique. - -```yaml -Type: System.String -Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -InputObject Identity Parameter @@ -188,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Name +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md index e6b83a59c37a..144eaef06f27 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md @@ -15,25 +15,50 @@ Update a new Front Door with a Front Door name under the specified subscription ### UpdateExpanded (Default) ``` Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] - [-BackendPool ] [-BackendPoolsSetting ] [-DisableCertificateNameCheck] - [-EnabledState ] [-FriendlyName ] [-FrontendEndpoint ] + [-BackendPool ] [-BackendPoolsSetting ] [-EnabledState ] + [-FriendlyName ] [-FrontendEndpoint ] [-HealthProbeSetting ] [-LoadBalancingSetting ] [-RoutingRule ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### ByResourceIdParameterSet +``` +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-BackendPool ] [-EnabledState ] [-FrontendEndpoint ] + [-HealthProbeSetting ] [-LoadBalancingSetting ] + [-RoutingRule ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### ByResourceIdWithBackendPoolsSettingParameterSet +``` +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-BackendPool ] [-BackendPoolsSetting ] [-EnabledState ] + [-FrontendEndpoint ] [-HealthProbeSetting ] + [-LoadBalancingSetting ] [-RoutingRule ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### ByResourceIdWithCertificateNameCheckParameterSet +``` +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-BackendPool ] [-DisableCertificateNameCheck] [-EnabledState ] + [-FrontendEndpoint ] [-HealthProbeSetting ] + [-LoadBalancingSetting ] [-RoutingRule ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + ### UpdateViaJsonFilePath ``` Set-AzFrontDoor -Name -ResourceGroupName -JsonFilePath [-SubscriptionId ] - [-DisableCertificateNameCheck] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaJsonString ``` Set-AzFrontDoor -Name -ResourceGroupName -JsonString [-SubscriptionId ] - [-DisableCertificateNameCheck] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -167,7 +192,7 @@ Backend pools available to routing rules. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] -Parameter Sets: UpdateExpanded +Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, UpdateExpanded Aliases: Required: False @@ -182,7 +207,7 @@ Settings for all backendPools ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings -Parameter Sets: UpdateExpanded +Parameter Sets: ByResourceIdWithBackendPoolsSettingParameterSet, UpdateExpanded Aliases: Required: False @@ -213,7 +238,7 @@ Accept wildcard characters: False ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: ByResourceIdWithCertificateNameCheckParameterSet Aliases: Required: False @@ -229,7 +254,7 @@ Permitted values are 'Enabled' or 'Disabled' ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, UpdateExpanded Aliases: Required: False @@ -259,7 +284,7 @@ Frontend endpoints available to routing rules. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] -Parameter Sets: UpdateExpanded +Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, UpdateExpanded Aliases: Required: False @@ -274,7 +299,7 @@ Health probe settings associated with this Front Door instance. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] -Parameter Sets: UpdateExpanded +Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, UpdateExpanded Aliases: Required: False @@ -319,7 +344,7 @@ Load balancing settings associated with this Front Door instance. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] -Parameter Sets: UpdateExpanded +Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, UpdateExpanded Aliases: Required: False @@ -379,7 +404,7 @@ Routing rules associated with this Front Door. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] -Parameter Sets: UpdateExpanded +Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, UpdateExpanded Aliases: Required: False @@ -410,7 +435,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: UpdateExpanded +Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, UpdateExpanded Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md index d6f055b19422..0891a6714916 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md @@ -23,23 +23,27 @@ Update a new Rules Engine Configuration with the specified name within the speci ## EXAMPLES -### Example 1: Get an existing rules engine configuration and add another rules engine rule to it. +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1} +{{ Add description here }} -$rulesEngineRule2 = New-AzFrontDoorRulesEngineRuleObject -Name rules2 -Priority 3 -Action $rulesEngineAction -Set-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1, $rulesEngineRule2 +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1, rules2} +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get an existing rules engine configuration and add another rules engine rule to it. +{{ Add description here }} ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md index ad2de5a97c70..6eee3e2a39ba 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md @@ -15,8 +15,20 @@ Update policy with specified rule set name within a resource group. ### UpdateExpanded (Default) ``` Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] - [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] - [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] + [-CaptchaExpirationInMinutes ] [-CustomBlockResponseBody ] + [-CustomBlockResponseStatusCode ] [-CustomRule ] [-EnabledState ] + [-Etag ] [-JavascriptChallengeExpirationInMinutes ] + [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] + [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### ByFieldsParameterSet +``` +Update-AzFrontDoorWafPolicy [-Name ] [-ResourceGroupName ] [-SubscriptionId ] + [-CaptchaExpirationInMinutes ] [-CustomBlockResponseBody ] + [-CustomBlockResponseStatusCode ] [-CustomRule ] [-EnabledState ] + [-Etag ] [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] @@ -24,9 +36,12 @@ Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-Subscri ### UpdateViaIdentityExpanded ``` -Update-AzFrontDoorWafPolicy -InputObject [-CustomRule ] [-Etag ] - [-ManagedRuleSet ] [-SkuName ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Update-AzFrontDoorWafPolicy -InputObject [-CaptchaExpirationInMinutes ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] + [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] + [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] + [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -97,13 +112,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -CaptchaExpirationInMinutes +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. + +```yaml +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -CustomBlockResponseBody If the action type is block, customer can override the response body. The body must be specified in base64 encoding. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -117,8 +149,8 @@ Accept wildcard characters: False If the action type is block, customer can override the response status code. ```yaml -Type: System.Int32 -Parameter Sets: UpdateExpanded +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: (All) Aliases: Required: False @@ -165,7 +197,7 @@ Defaults to Enabled if not specified. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -211,8 +243,8 @@ This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. ```yaml -Type: System.Int32 -Parameter Sets: UpdateExpanded +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: (All) Aliases: Required: False @@ -227,7 +259,7 @@ Defines rules that scrub sensitive fields in the Web Application Firewall logs. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -243,7 +275,7 @@ List of rule sets. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] Parameter Sets: (All) -Aliases: +Aliases: ManagedRule Required: False Position: Named @@ -257,7 +289,7 @@ Describes if it is in detection mode or prevention mode at policy level. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -272,7 +304,7 @@ The name of the Web Application Firewall Policy. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: ByFieldsParameterSet, UpdateExpanded Aliases: PolicyName Required: True @@ -302,7 +334,7 @@ If action type is redirect, this field represents redirect URL for the client. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -317,7 +349,7 @@ Describes if policy managed rules will inspect the request body content. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -332,7 +364,7 @@ Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: ByFieldsParameterSet, UpdateExpanded Aliases: Required: True @@ -363,7 +395,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: ByFieldsParameterSet, UpdateExpanded Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md index ee19b3aefd08..0371f56c36d2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md @@ -1,74 +1,22 @@ -### Example 1: Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" +{{ Add code here }} ``` ```output -HostName : frontdoor1.azurefd.net -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net -Name : frontdoor1-azurefd-net -Type : Microsoft.Network/frontdoors/frontendendpoints - -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". +{{ Add description here }} -### Example 2: Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" -Name "frontdoor1-azurefd-net" +{{ Add code here }} ``` ```output -HostName : frontdoor1.azurefd.net -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net -Name : frontdoor1-azurefd-net -Type : Microsoft.Network/frontdoors/frontendendpoints +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" \ No newline at end of file +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md index 2ffec0af8762..0371f56c36d2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md @@ -1,18 +1,22 @@ -### Example 1: Get an existing rules engine configuration and add another rules engine rule to it. - +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1} +{{ Add description here }} -$rulesEngineRule2 = New-AzFrontDoorRulesEngineRuleObject -Name rules2 -Priority 3 -Action $rulesEngineAction -Set-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1, $rulesEngineRule2 +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1, rules2} +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get an existing rules engine configuration and add another rules engine rule to it. +{{ Add description here }} + diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 99a65c3803f2..f9d345d6452c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "85da455b-7d46-4dd0-957d-bf82cf4d34f0" + "generate_Id": "a05f6c49-36aa-4490-8c7d-fd18593ec772" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json index 11b2c0520e88..1291bebb7710 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv?api-version=2021-06-01+1": { + "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "94ef4686-223b-4aeb-97ba-97653a30b4a2" ], + "x-ms-client-request-id": [ "d30eaa5c-4fc3-4276-9dfa-f5894e546ba8" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "4ee2130d-0c4b-4c57-a811-2d646894ea3a" ], - "x-ms-client-request-id": [ "94ef4686-223b-4aeb-97ba-97653a30b4a2" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "9f9bf196-29a8-4cc8-85fb-11568e27b6da" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025541Z:9f9bf196-29a8-4cc8-85fb-11568e27b6da" ], + "x-ms-request-id": [ "0803caec-2ad6-4fe2-99ce-13188900a67b" ], + "x-ms-client-request-id": [ "d30eaa5c-4fc3-4276-9dfa-f5894e546ba8" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "5e75e148-266b-48c0-82dc-643c2b1bcf8f" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000421Z:5e75e148-266b-48c0-82dc-643c2b1bcf8f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D17EAA81580E43A98A04A4F1550537E8 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:41Z" ], - "Date": [ "Thu, 16 Oct 2025 02:55:40 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E46A523B673A421DAB67F36F5E40C4E5 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:20Z" ], + "Date": [ "Wed, 22 Oct 2025 00:04:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "6398" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-zycv\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"6a7250f4-9a3f-4ede-bd1b-2506419b7ddd\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-zycv/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-zycv.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-zycv.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-de80\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"2b4a1289-3970-4907-84db-ec5fcc0ad72a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-de80.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-de80.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json index 537df3e3da25..6661262e4c1a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/frontendEndpoints?api-version=2021-06-01+1": { + "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/frontendEndpoints?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/frontendEndpoints?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/frontendEndpoints?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "cf2c63e8-ea66-4908-841e-08d09b008898" ], - "CommandName": [ "Get-AzFrontDoorFrontendEndpoint" ], + "x-ms-client-request-id": [ "fa9c7f78-311b-4d7d-a31c-79a9d8acad13" ], + "CommandName": [ "Az.FrontDoor.internal\\Get-AzFrontDoorFrontendEndpoint" ], "FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,24 +23,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "ea8286b2-a349-4bf8-8138-de4b93026200" ], - "x-ms-client-request-id": [ "cf2c63e8-ea66-4908-841e-08d09b008898" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/77801922-4f08-4d30-bd28-d574b358fa03" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "08192854-25c2-43bf-a130-5b72d7545828" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025543Z:08192854-25c2-43bf-a130-5b72d7545828" ], + "x-ms-request-id": [ "ea63c2a3-f650-4f74-a979-622f77212f29" ], + "x-ms-client-request-id": [ "fa9c7f78-311b-4d7d-a31c-79a9d8acad13" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/11614a35-135d-4ffd-bee6-07c42025eb4d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "1bccb792-9478-4c59-bcf9-87ae636de263" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000422Z:1bccb792-9478-4c59-bcf9-87ae636de263" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D977608724C1440E8A26E326019FBF55 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:42Z" ], - "Date": [ "Thu, 16 Oct 2025 02:55:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DF08045681694380AA966E00F073D43B Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:22Z" ], + "Date": [ "Wed, 22 Oct 2025 00:04:22 GMT" ] }, "ContentHeaders": { "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-zycv.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-de80.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json index 55cfbf5ac5b2..f99a02cfe74f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorWafManagedRuleSetDefinition+[NoContext]+List+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets?api-version=2024-02-01+1": { + "Get-AzFrontDoorWafManagedRuleSetDefinition+[NoContext]+List+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "b783472b-758b-4890-be89-47b8d0de4220" ], + "x-ms-client-request-id": [ "692ce893-a40a-49bc-9f63-32f189f5b7d4" ], "CommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition" ], "FullCommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,17 +23,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e66b1141-cf72-42d2-b5cb-cb52b3d14ead" ], - "x-ms-client-request-id": [ "b783472b-758b-4890-be89-47b8d0de4220" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/599f3173-46ba-4e7e-bb34-e46e68bf86ea" ], + "x-ms-request-id": [ "48ff2089-687e-441d-92ef-7768f191599e" ], + "x-ms-client-request-id": [ "692ce893-a40a-49bc-9f63-32f189f5b7d4" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/89510590-ca0f-41d6-b8ff-880c191edd44" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "a72d2a54-650b-4162-806f-e288ae98fbcf" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025545Z:a72d2a54-650b-4162-806f-e288ae98fbcf" ], + "x-ms-correlation-request-id": [ "1061875b-b3b0-426e-aff8-e1908d1b32b3" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000424Z:1061875b-b3b0-426e-aff8-e1908d1b32b3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C330B9EAA86444FB8B490DAAEC877EE9 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:44Z" ], - "Date": [ "Thu, 16 Oct 2025 02:55:44 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B490E07FE81E4D949D5C2014E313F823 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:24Z" ], + "Date": [ "Wed, 22 Oct 2025 00:04:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "162977" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json index 568664cb80f3..05a86ea6c582 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+1": { + "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "c2287543-b12b-4ce8-9842-3cd978314d01" ], + "x-ms-client-request-id": [ "43e23652-3806-455f-8eac-0a4602d46237" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fd0781c9-738b-4c57-8f9a-eb89f116d5fc" ], - "x-ms-client-request-id": [ "c2287543-b12b-4ce8-9842-3cd978314d01" ], + "x-ms-request-id": [ "0f25ca8e-504c-457d-9f45-58615b552b47" ], + "x-ms-client-request-id": [ "43e23652-3806-455f-8eac-0a4602d46237" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "65fff7b6-6e37-4daf-b209-3f783fee0a90" ], - "x-ms-routing-request-id": [ "AUSTRALIAEAST:20251016T025547Z:65fff7b6-6e37-4daf-b209-3f783fee0a90" ], + "x-ms-correlation-request-id": [ "98ac8e19-30b8-44c6-ace4-01fdc3d1bc3e" ], + "x-ms-routing-request-id": [ "AUSTRALIASOUTHEAST:20251022T000427Z:98ac8e19-30b8-44c6-ace4-01fdc3d1bc3e" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: AAFE5EA192B64E29B7588A819F5EEA99 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:46Z" ], - "Date": [ "Thu, 16 Oct 2025 02:55:46 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 02C2B224F93C47B3A2B2C9EB95E1F301 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:26Z" ], + "Date": [ "Wed, 22 Oct 2025 00:04:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json index bbdc72d2d2ea..6d0369760216 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+1": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,41 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "eb668b51-e679-4360-be12-9adbe9feb692" ], - "x-ms-client-request-id": [ "236d50b9-1a3b-4c76-8760-cf601d2b67d0" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3300355b-5be3-455a-923c-47801adc1ae2" ], + "x-ms-request-id": [ "192cf945-c026-4af8-b2d5-2c3b5df8a951" ], + "x-ms-client-request-id": [ "09c41eec-1a9f-4797-aca7-f410088ca4fd" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/11e7d553-b76f-4798-a76b-8a628917af69" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "9bfe6a29-1af5-4dec-8e2d-965a427e59fa" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025559Z:9bfe6a29-1af5-4dec-8e2d-965a427e59fa" ], + "x-ms-correlation-request-id": [ "afd89621-0253-4aee-9093-25d0fbb88a86" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000439Z:afd89621-0253-4aee-9093-25d0fbb88a86" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 964563143D854FD9A991CDBD604E0BBA Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:58Z" ], - "Date": [ "Thu, 16 Oct 2025 02:55:58 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 17E3C8A2BB984DBB99AD6F3CAEF79E65 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:38Z" ], + "Date": [ "Wed, 22 Oct 2025 00:04:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+2": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "236d50b9-1a3b-4c76-8760-cf601d2b67d0" ], + "x-ms-client-request-id": [ "09c41eec-1a9f-4797-aca7-f410088ca4fd" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -63,24 +63,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "630077ee-d4c0-4fa1-b56d-e545d708b9f5" ], - "x-ms-client-request-id": [ "236d50b9-1a3b-4c76-8760-cf601d2b67d0" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b984f307-fddb-44ee-92b6-c8262cdd57f8" ], + "x-ms-request-id": [ "63b094df-b084-44bb-8735-4399b7a152dc" ], + "x-ms-client-request-id": [ "09c41eec-1a9f-4797-aca7-f410088ca4fd" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c77f39e4-cfae-4683-b3a4-0b70e5dab075" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "cd1144ca-9046-4414-ac8d-79e96d9d0226" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025629Z:cd1144ca-9046-4414-ac8d-79e96d9d0226" ], + "x-ms-correlation-request-id": [ "ed6d5e9d-6d19-4e26-8b7e-9b8e4a7667cf" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000510Z:ed6d5e9d-6d19-4e26-8b7e-9b8e4a7667cf" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8B8E85594C9443AEA41B84166C208BEC Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:56:29Z" ], - "Date": [ "Thu, 16 Oct 2025 02:56:29 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B196424E6C5F42C8B7E505A0E174BC88 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:09Z" ], + "Date": [ "Wed, 22 Oct 2025 00:05:10 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json index b7c848ad4d7d..b802b4a3d1b0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01+1": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "dc5ab563-227e-462f-a7af-c620a583c98c" ], + "x-ms-client-request-id": [ "1b0478e6-7dee-41c8-ba11-eb74dbf27d19" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,28 +23,28 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "e39c3b51-b0ab-4458-a733-ae4ad4bae148" ], - "x-ms-correlation-request-id": [ "e39c3b51-b0ab-4458-a733-ae4ad4bae148" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025639Z:e39c3b51-b0ab-4458-a733-ae4ad4bae148" ], + "x-ms-request-id": [ "1c01e6ca-4424-491a-9fd8-64681a669565" ], + "x-ms-correlation-request-id": [ "1c01e6ca-4424-491a-9fd8-64681a669565" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000519Z:1c01e6ca-4424-491a-9fd8-64681a669565" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 1255F5DE89334670ACDAD9E9E232F3FC Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:56:39Z" ], - "Date": [ "Thu, 16 Oct 2025 02:56:38 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 46D7A1539B5347EEB76AA8A584069871 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:19Z" ], + "Date": [ "Wed, 22 Oct 2025 00:05:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "257" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafdwo0\u0027 under resource group \u0027testps-rg-woz4\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafnudq\u0027 under resource group \u0027testps-rg-2xfo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01+2": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -60,41 +60,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "acf1c9c7-5502-4539-aca9-51ad57d36ea1" ], - "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/74e6af5e-f612-4fe1-ab89-788c75ee7b38" ], + "x-ms-request-id": [ "0c4f2006-1fc5-4760-b5b8-ffb0c2d5b7b9" ], + "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6670a2b1-76de-4e6b-a133-3e31b37b17a1" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "4c1a8317-4e42-4490-9e5a-8184e3adde61" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025640Z:4c1a8317-4e42-4490-9e5a-8184e3adde61" ], + "x-ms-correlation-request-id": [ "97675fce-4de4-403d-84f8-7708f68fb6ab" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000521Z:97675fce-4de4-403d-84f8-7708f68fb6ab" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8F4F6C95AAD649E4984BCE14A42F8E6C Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:56:39Z" ], - "Date": [ "Thu, 16 Oct 2025 02:56:39 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 666383BCFCE44173B1A3F480C470C637 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:19Z" ], + "Date": [ "Wed, 22 Oct 2025 00:05:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafdwo0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafdwo0\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafnudq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafnudq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01+3": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], + "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -105,40 +105,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "15e28a0c-725f-4ad9-8f11-28e5a8aff28b" ], - "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], + "x-ms-request-id": [ "15b6ee08-a8f6-4017-b16a-ddf5ef19e4e9" ], + "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "52575c7b-4e52-4352-a5b9-53305d9839d2" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025711Z:52575c7b-4e52-4352-a5b9-53305d9839d2" ], + "x-ms-correlation-request-id": [ "fa82c71e-9ab3-431a-90b7-e744ed38be23" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000552Z:fa82c71e-9ab3-431a-90b7-e744ed38be23" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4683D1CA8C1641A989B37E3582B6EFAE Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:11Z" ], - "Date": [ "Thu, 16 Oct 2025 02:57:11 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 95D8AE355A8547EB81FAA8DA34C00200 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:51Z" ], + "Date": [ "Wed, 22 Oct 2025 00:05:51 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafdwo0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafdwo0\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafnudq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafnudq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01+4": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafdwo0?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], + "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -149,23 +149,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c0513e97-49e8-40b0-8ee5-258d596187d0" ], - "x-ms-client-request-id": [ "8ebbbca3-f07a-4114-bdb7-9caa3abeb92a" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "10111e29-936b-40cf-96f3-58d3cf46c172" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025712Z:10111e29-936b-40cf-96f3-58d3cf46c172" ], + "x-ms-request-id": [ "d09f2a14-c46c-42a3-be37-cbb96fc84f66" ], + "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "22e7c92d-ad6c-4140-ac70-18f3493cd2b8" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000552Z:22e7c92d-ad6c-4140-ac70-18f3493cd2b8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B7E7E49C4BF94B6AA2790B2B83E888C8 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:12Z" ], - "Date": [ "Thu, 16 Oct 2025 02:57:11 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DCDB29654862450484102E00BA897CBB Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:52Z" ], + "Date": [ "Wed, 22 Oct 2025 00:05:52 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafdwo0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafdwo0\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafnudq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafnudq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json index 4ed561ffab0c..3180c5acdf00 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01+1": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "6edf7462-79d1-456c-9d69-119a7c96697c" ], + "x-ms-client-request-id": [ "c165594c-349d-4cc8-be17-2bc6d376c8a5" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,29 +23,29 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "b41d86eb-9615-4ae5-82bc-66f033a7bba8" ], - "x-ms-correlation-request-id": [ "b41d86eb-9615-4ae5-82bc-66f033a7bba8" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025714Z:b41d86eb-9615-4ae5-82bc-66f033a7bba8" ], + "x-ms-request-id": [ "a1836e96-d03d-4987-9005-cf9182db05b3" ], + "x-ms-correlation-request-id": [ "a1836e96-d03d-4987-9005-cf9182db05b3" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000554Z:a1836e96-d03d-4987-9005-cf9182db05b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4B972E00C24343A48E3A12669AC46381 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:14Z" ], - "Date": [ "Thu, 16 Oct 2025 02:57:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A60E5D2F68EA441CBBF6C6E898B83519 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:54Z" ], + "Date": [ "Wed, 22 Oct 2025 00:05:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "229" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-uzv9\u0027 under resource group \u0027testps-rg-woz4\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-bp6l\u0027 under resource group \u0027testps-rg-2xfo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01+2": { + "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-uzv9.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-bp6l.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -61,42 +61,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "db1155bf-990c-47d4-b0af-bd66477573bf" ], - "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/61adadbe-ef3a-40bc-92e3-740b3adf59cb?api-version=2021-06-01\u0026t=638961802368856985\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5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EHKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=ZopObJ6sHdgl7azP0_QxpCDftje1JEXrxrmk5W2snzEVDMh1_DMF7uC6I317gDqLNossIe40eQMOHW_2rNZAuZSK8hb_nWFFQt-Jifxyvoo24rgfR9V0RVMt1zDl0WyoTEepsSJhGlz7t4Vm1-gVdJjDoq4372kz_R9rCSEbjh6lm0LZx-IAmiULK4izrs3addF8Ir4FcDFm6d8cc1e4aw12ycFNzH6B8px3vmNKyDp6Pjgo1UigFMfVsB5uF5mns_wnW_0BVQoAEbz8NCDHQnN9aVUEuO4_GjBIndBYTTbDcOBLY-tuHsm2k91OkgXyjdclwfYPIpTPLNqgLj9SCw\u0026h=u4MIrSdBbbPO57iJqwv_xFejOI4jOpNStylzhesHSD8" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f408b30e-c89c-4ff9-8452-ebc50796c61a" ], + "x-ms-request-id": [ "f8a221c0-8f5b-4281-8317-81acb368303e" ], + "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/e63b8bad-ebb0-461a-870b-d1930fe52b77?api-version=2021-06-01\u0026t=638966883566524807\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-h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fQJonQmY7SCYZUwHEXAVufRJ-PC1yKbdWtjc" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6e44ebb8-0ae1-4723-a912-57930a533c26" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "f97e6ed1-748a-4f76-88f4-bec01820536a" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025716Z:f97e6ed1-748a-4f76-88f4-bec01820536a" ], + "x-ms-correlation-request-id": [ "32fdf557-7efb-482b-9454-bde859a6c91a" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000556Z:32fdf557-7efb-482b-9454-bde859a6c91a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 1F58806A339440679D89565307483CD1 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:14Z" ], - "Date": [ "Thu, 16 Oct 2025 02:57:16 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 1E89AA3C2AF14B4AAC7F82F6A8AA4D94 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:54Z" ], + "Date": [ "Wed, 22 Oct 2025 00:05:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-uzv9\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-uzv9\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"d78ce0a4-3c84-425c-9ddc-edbd0728d406\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-uzv9.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-uzv9.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-bp6l\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-bp6l\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e012c123-e93b-4162-901a-0aefe7c8538e\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-bp6l.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-bp6l.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/61adadbe-ef3a-40bc-92e3-740b3adf59cb?api-version=2021-06-01\u0026t=638961802368856985\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MT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Door+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/e63b8bad-ebb0-461a-870b-d1930fe52b77?api-version=2021-06-01\u0026t=638966883566524807\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jv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ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=w1KPaa9TOVjeJHMI2GkfIRKIgkT9K97JIfY-aEVw5IivOF4j9CiZWf7sJtMdxWWta_3mQoRSnEK-7dbv1JeJ5rTf1NyxyIWMmldKx0EgwKG2yO9dZgtcSI28ZDvTRDHE-jfwcGBX0_gvuToZ6Nd5_U_RQ8V1xI5VwLqRNLTl-3M86JZ1QS032GWQ8Zp2POLIw1G21YNMDIUTkN8hRhskwzrE0S1zpfukJmU1Dn-LXUpSbarWb2Wlrj1P-Q03Nn8ahTh7KtGbC5bF41pX9CkPGywA0xZrko1kQJMVWRq0yaBtoSDhZnySP08-e2ZFykjM3nk0prG6gUTHjaaz4yJAtQ\u0026h=QRmWH7zfQJonQmY7SCYZUwHEXAVufRJ-PC1yKbdWtjc+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/61adadbe-ef3a-40bc-92e3-740b3adf59cb?api-version=2021-06-01\u0026t=638961802368856985\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvbWVsMDFwa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RVMt1zDl0WyoTEepsSJhGlz7t4Vm1-gVdJjDoq4372kz_R9rCSEbjh6lm0LZx-IAmiULK4izrs3addF8Ir4FcDFm6d8cc1e4aw12ycFNzH6B8px3vmNKyDp6Pjgo1UigFMfVsB5uF5mns_wnW_0BVQoAEbz8NCDHQnN9aVUEuO4_GjBIndBYTTbDcOBLY-tuHsm2k91OkgXyjdclwfYPIpTPLNqgLj9SCw\u0026h=u4MIrSdBbbPO57iJqwv_xFejOI4jOpNStylzhesHSD8", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/e63b8bad-ebb0-461a-870b-d1930fe52b77?api-version=2021-06-01\u0026t=638966883566524807\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X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w1G21YNMDIUTkN8hRhskwzrE0S1zpfukJmU1Dn-LXUpSbarWb2Wlrj1P-Q03Nn8ahTh7KtGbC5bF41pX9CkPGywA0xZrko1kQJMVWRq0yaBtoSDhZnySP08-e2ZFykjM3nk0prG6gUTHjaaz4yJAtQ\u0026h=QRmWH7zfQJonQmY7SCYZUwHEXAVufRJ-PC1yKbdWtjc", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], + "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -107,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d75f853e-ce2e-4325-8510-25f6388819bd" ], - "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f77db44c-83de-4081-bccf-132efb0e4c06" ], + "x-ms-request-id": [ "d14d572b-5582-4044-b440-b63759fbca8d" ], + "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/526acad1-d5ba-4132-be4b-36fb8ff2cc37" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "302620ef-1538-4014-9f11-d46f1ec26669" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025727Z:302620ef-1538-4014-9f11-d46f1ec26669" ], + "x-ms-correlation-request-id": [ "c18f714d-4ed0-49c1-9b6b-f8cf1517d42c" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000607Z:c18f714d-4ed0-49c1-9b6b-f8cf1517d42c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4069F1CDCFE54F2494515216B926DE92 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:27Z" ], - "Date": [ "Thu, 16 Oct 2025 02:57:26 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 5966EDB45AA448A8A679777B5DF227C7 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:06:06Z" ], + "Date": [ "Wed, 22 Oct 2025 00:06:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -128,20 +128,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01+4": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], + "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -152,39 +152,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "800b53f1-4e3f-4130-b846-7dacbcdeeaee" ], - "x-ms-client-request-id": [ "f7b7f980-70c3-47de-a8b6-190b26ed92f1" ], + "x-ms-request-id": [ "8b2dbf33-3cd3-4f9d-aa29-57ed1f3e65ed" ], + "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "93b271f8-cb23-43ac-8019-81ca5dc5a8e3" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025727Z:93b271f8-cb23-43ac-8019-81ca5dc5a8e3" ], + "x-ms-correlation-request-id": [ "0f491517-7f48-4f4a-b968-fa7051e11758" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000608Z:0f491517-7f48-4f4a-b968-fa7051e11758" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 1829E5126D3949E4BFD3F4F6CD86884F Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:27Z" ], - "Date": [ "Thu, 16 Oct 2025 02:57:26 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A105EB1815BE41B38ECD54DA3DB43951 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:06:07Z" ], + "Date": [ "Wed, 22 Oct 2025 00:06:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-uzv9\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-uzv9\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"d78ce0a4-3c84-425c-9ddc-edbd0728d406\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-uzv9/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-uzv9.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-uzv9.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-bp6l\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-bp6l\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e012c123-e93b-4162-901a-0aefe7c8538e\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-bp6l.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-bp6l.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01+5": { + "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-uzv9?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -195,21 +195,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b/frontdoorresults/testps-fd-uzv9?api-version=2021-06-01\u0026t=638961802690529488\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBg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lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=q9MM7yA3VUFcjKkTJQKYIS1VycIxRYp-FOmpiq47IyG0jdttfYHiawigxNDuKCH6EmGfvM5cPxepZAl3FKO_bMEe4OSkGqwhQ_omHTniwHZT70tIy30DjipOxu4JualtB0UkscBcPcwXTdh5YmL6Q-S4KJ5MNw5lWB0SJWoR26pY_OANiRg0WFWz2okdjX1TLkIAWkNGaY7kj9W-El_Oz6KCHrePA94yAm4y6TGzhDOKCJ4vb3AfqzdyBx5ZwRK14Q22U4nb_EbVmz9NixYBrKuP-iVe7Icg6fonRu3U1S4x_RWJQxggb6VoyTT6WCmMMziY0Soi7i2V1_yrFGJOuA\u0026h=JcgDktrMRMgbct-CMJkYBlb6bhYjyg7s7mvLWFC6UTw" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea/frontdoorresults/testps-fd-bp6l?api-version=2021-06-01\u0026t=638966883899825358\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4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RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=MZCT6I4gzbM8wtxZOGVFfi6kMNVELgQq2u3OvoUsDfGuSU4JQgpl5vFIiq6J3FUCNMgC-qLCm8jMQ4arxOWWoIVJpCozrjITUArCMbjoJYvbE0s9sChUCjhmnRMAABgF_iwp_-dlxO7NGnYV2sEWZoPSifEpgQHeL-4NcfyDJzdgKChtnK1bwjEovJnAr3Xoiq2OJYYqZDb4EsB2EtuQVbDzZrHQ3BLPRB2fHibj__LaJD4Zt00CuDO1Jw_xggXRu8fz7MGmR8k1eZUL4vaO7dNdH6a28ov3d4Ezqlx_UI6pV9PrBUWVgQ7RQaGOIl5FyDrav36uV2kHq0S5Fvhz4Q\u0026h=_IZYwqh_cZepzzfBxsZjkqgSV6MkcTXzCR5FZIsWLlo" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "4d7a1f32-b425-48d4-9995-1402c148ea92" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmN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pZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a3c3be13-6ff1-4e07-9344-598a7f2db2b1" ], + "x-ms-request-id": [ "2a2d390c-e567-4253-9a41-ac1f07b301b4" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4Wsm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ePlZZR-CLImjY" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/120b930a-efc9-4f60-8a33-d93d1636bc26" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "99b298ce-7f33-4227-ae40-23f002155e2f" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025749Z:99b298ce-7f33-4227-ae40-23f002155e2f" ], + "x-ms-correlation-request-id": [ "9fa58631-3abf-42ff-9d83-f292393190fd" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000629Z:9fa58631-3abf-42ff-9d83-f292393190fd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: BDF3051EA04F43DBAF4C6B0E9D1E70FA Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:47Z" ], - "Date": [ "Thu, 16 Oct 2025 02:57:48 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 87D030598237464CB5F4B0565B24A613 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:06:28Z" ], + "Date": [ "Wed, 22 Oct 2025 00:06:29 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -219,20 +219,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDV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II0YVMLgQnsSdGBdpMdWYOjxTs+6": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSC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"RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHkBggrBgEFBQcBAQSCAdYwggHSMGgGCCsGAQUFBzAChlxodHRwOi8vY3JsLm1pY3Jvc29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MB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDj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fBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -243,17 +243,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "5d014640-54c4-4b8b-abcb-b4ce9c96eff7" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e3e19ac3-8f8e-404a-973d-ddd533322fc7" ], + "x-ms-request-id": [ "34ecc181-32e9-4086-b447-36ccb6b752fa" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6e0d4791-e75f-4a6c-ae27-c4850eafc117" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "132c0ba3-2835-4b32-bcf2-111ef272449e" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025759Z:132c0ba3-2835-4b32-bcf2-111ef272449e" ], + "x-ms-correlation-request-id": [ "450ae9a1-4076-4824-b7c0-27849406925a" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000640Z:450ae9a1-4076-4824-b7c0-27849406925a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F6D473428C834AC883E2C935F7FE6087 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:57:59Z" ], - "Date": [ "Thu, 16 Oct 2025 02:57:58 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 36ED6D68FD80459BB74C89E1676C677D Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:06:40Z" ], + "Date": [ "Wed, 22 Oct 2025 00:06:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -264,20 +264,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDE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4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU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5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooro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QFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwgg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Ow4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -288,17 +288,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0f3f1875-2224-435b-b8ec-447dbfd5a25b" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/bd5b360a-52f9-42a5-8837-2c9125d3583f" ], + "x-ms-request-id": [ "5488f598-28bc-4773-981c-390f9a166700" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/20ac3c45-9c02-4dfd-a8e3-42586707822d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "3660802a-fba6-434b-9b8f-2b2d0b7889b6" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025830Z:3660802a-fba6-434b-9b8f-2b2d0b7889b6" ], + "x-ms-correlation-request-id": [ "9df0660e-b87d-43c8-ba6c-ba43ff40425a" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000712Z:9df0660e-b87d-43c8-ba6c-ba43ff40425a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 55735B61ECFB4BFABCFF15EC0EF2357F Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:58:30Z" ], - "Date": [ "Thu, 16 Oct 2025 02:58:30 GMT" ] + "X-MSEdge-Ref": [ "Ref A: E26A4D64A6534FCEAC3FF4E3D362F7B2 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:07:11Z" ], + "Date": [ "Wed, 22 Oct 2025 00:07:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -309,20 +309,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNv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ZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+8": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd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BkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAw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gxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCN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bcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -333,17 +333,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "08b7d899-a471-4539-b50c-b1debeec7c1b" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cddc3cdc-899e-407c-9d73-6b0ea422dce4" ], + "x-ms-request-id": [ "94c6925d-8867-4c33-b5ea-972467451772" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/26848548-72d7-4ec9-9fb7-f979fbfe27e0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "bc96c4f4-6759-4647-b873-066b855de804" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025901Z:bc96c4f4-6759-4647-b873-066b855de804" ], + "x-ms-correlation-request-id": [ "c7d85c0f-ddc5-4b17-b9f6-1ed61b7e652e" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000743Z:c7d85c0f-ddc5-4b17-b9f6-1ed61b7e652e" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D6B80DDACE7045B895F77FCCBE2BAA79 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:59:00Z" ], - "Date": [ "Thu, 16 Oct 2025 02:59:01 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 767D6D9F93B64F5AA91FCA485B859C4F Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:07:42Z" ], + "Date": [ "Wed, 22 Oct 2025 00:07:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -354,20 +354,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9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YU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+9": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QR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UIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0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0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLB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": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -378,17 +378,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "970c1ce3-04fa-4b09-bfc6-df050fd72901" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/74d5876a-4553-4dde-a846-aad3beab8756" ], + "x-ms-request-id": [ "20371416-9b05-4bef-94b3-0b6b81403a7b" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/da033220-4c19-4952-b078-262b46bae485" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "6b268cc9-55bb-4b4d-b00d-7db5db4c0d0b" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T025931Z:6b268cc9-55bb-4b4d-b00d-7db5db4c0d0b" ], + "x-ms-correlation-request-id": [ "3793204e-83ad-45b7-b7b5-9b5bd1ce6c2c" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000814Z:3793204e-83ad-45b7-b7b5-9b5bd1ce6c2c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 126A08CAA2D34CA4A210096CD47F36A7 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:59:31Z" ], - "Date": [ "Thu, 16 Oct 2025 02:59:31 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 025CCD79D4A94CF488DB87C672F535F8 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:08:14Z" ], + "Date": [ "Wed, 22 Oct 2025 00:08:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -399,20 +399,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTN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KEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+10": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKC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51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcN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ri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vc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KwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -423,17 +423,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "42675482-38bd-4cef-921a-55bf32130903" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0b5513e1-f3a9-4048-bcd5-225813543464" ], + "x-ms-request-id": [ "37c822cd-7871-496d-888f-2267133a31b8" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c767110a-fdf5-4641-a3e0-82f1b77b785e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "60964aa9-21e9-4364-b9bc-6933fdf8e5be" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030003Z:60964aa9-21e9-4364-b9bc-6933fdf8e5be" ], + "x-ms-correlation-request-id": [ "87d2e2a1-691f-4acf-8910-893b69bbc560" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000845Z:87d2e2a1-691f-4acf-8910-893b69bbc560" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D984506B0D90408E9EA9BCED9FAEA0F4 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:00:02Z" ], - "Date": [ "Thu, 16 Oct 2025 03:00:03 GMT" ] + "X-MSEdge-Ref": [ "Ref A: FA268E317C854795A4B9F764B2D62BB1 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:08:45Z" ], + "Date": [ "Wed, 22 Oct 2025 00:08:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -444,20 +444,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtu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4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+11": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4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-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0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cT-VPGF7VZHrEHKa7b6ZR0_aUw_msh7FWtVxpZNW3Lq26ebDEtB-rbUQ_BDwH2K2tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4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mAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -468,17 +468,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "76281e93-97c1-4cf2-a9a3-afb2f40c725c" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2bcc0ab6-091f-4ac2-8828-25a10e365e9b" ], + "x-ms-request-id": [ "1b4a3ce2-fe74-4444-913d-513a5b3eb22d" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/aba58dc3-3b32-4bb8-aaa9-b72d1927ef5b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "4897b207-98a9-443c-97cc-5bdaf602ed32" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030033Z:4897b207-98a9-443c-97cc-5bdaf602ed32" ], + "x-ms-correlation-request-id": [ "bc0d2faa-0974-4f63-a0fa-923413fa787b" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000916Z:bc0d2faa-0974-4f63-a0fa-923413fa787b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 3C3F4D85EA514E2C878F05D4A7AA5EC2 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:00:33Z" ], - "Date": [ "Thu, 16 Oct 2025 03:00:33 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 62AAA94754D4444F985457C1AA02FCB5 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:09:15Z" ], + "Date": [ "Wed, 22 Oct 2025 00:09:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -489,20 +489,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4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QeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+12": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2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QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggE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tb_oKc8WzIVNBwAoAWWDHyVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhz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WgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -513,17 +513,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7cd71d53-9ba0-4952-b3f3-5ad60ab5236f" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b6bbc380-239d-4781-ab3d-7adb52a01f36" ], + "x-ms-request-id": [ "2ad50c30-59a9-4e1f-ae49-73c4da749f1f" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/816d2d94-7eb9-45e8-a8a3-a5cfab073d41" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "54ac9feb-896f-4805-aa30-d413c1065c1b" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030104Z:54ac9feb-896f-4805-aa30-d413c1065c1b" ], + "x-ms-correlation-request-id": [ "59a0cb50-2455-4f10-9513-5e22a19816a4" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000947Z:59a0cb50-2455-4f10-9513-5e22a19816a4" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 80EE4549EEF2445487FAD376946C1192 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:04Z" ], - "Date": [ "Thu, 16 Oct 2025 03:01:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: FEB215900BC740F684A01D2B7E3950A1 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:09:47Z" ], + "Date": [ "Wed, 22 Oct 2025 00:09:47 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -534,20 +534,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_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f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs+13": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpi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wlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/725a5023-66ec-4d1d-a49e-52048e14593b?api-version=2021-06-01\u0026t=638961802690373245\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrS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sdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=maRRd6CYNnA5ArLHLINUjspy-zn4__5E9MsArq2VEI36yecigZ6phsQogglQTr2hGmGu5h4zu5iJWpKMB5fqANWTzAxkiWAR_iDeMpnZ6spaaLoza043tl5bLUULvDZlxMzXDGxFr3mhbylGo2clA1yd_zwIT1c6cs9jwxmIbeKQFWntEd2um8843hJlmM_HPQzk62jDHcxeVeLyQhjtSR6BBFUn8kiJy77X1d3Dvj1txK8Bcas7eoLpgxNdSeRkUw8ddA2RiEM2sFiqSSyQauz10opwe53XiVJ4tqryRZDUeEI1HMddSoUoDmVv-MHoNy0x-qJ0UaUsJEKcqOi0KQ\u0026h=0UjeK9-xUurtrdSYEII0YVMLgQnsSdGBdpMdWYOjxTs", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBG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hvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -558,17 +558,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "88c3d2bd-1665-484b-ba10-0b82b02dc754" ], - "x-ms-client-request-id": [ "1f569c36-c8a0-4a90-8c39-fdb214e48fb2" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e88febed-25d7-460c-8b94-f000e871d52c" ], + "x-ms-request-id": [ "976ef575-996a-48c2-a7b5-5c6672a88a43" ], + "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b40d0b57-8bd3-4c08-a002-5abd37db1fdd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "a8143247-9092-463f-a701-46c35412daa6" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030105Z:a8143247-9092-463f-a701-46c35412daa6" ], + "x-ms-correlation-request-id": [ "7ced1717-987f-441f-81d3-cd9714a2ce98" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000948Z:7ced1717-987f-441f-81d3-cd9714a2ce98" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C9090A5F5F4E47F0B48211EC4D1CCDBE Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:05Z" ], - "Date": [ "Thu, 16 Oct 2025 03:01:04 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C7A52746D69E4C018AE97FDD9527FA66 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:09:48Z" ], + "Date": [ "Wed, 22 Oct 2025 00:09:47 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json index 173c632b7a29..38f6ca77d51c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01+1": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,41 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0ce6d704-117e-42a2-85bc-9c7c65200b45" ], - "x-ms-client-request-id": [ "fbdd05f8-acde-4a39-93ac-964062892be6" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2a6e43f3-1d02-4f6b-8e17-951efacfa75c" ], + "x-ms-request-id": [ "141f1686-47d3-4197-8eb2-f081f88ca365" ], + "x-ms-client-request-id": [ "4d53d215-45ac-4e47-a001-2fa7d0f9d9be" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2cb238e9-48da-4921-a7a3-26ab461585f0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "07198ab1-1574-4125-835c-030d42d27efe" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030108Z:07198ab1-1574-4125-835c-030d42d27efe" ], + "x-ms-correlation-request-id": [ "b0561444-04bc-4e38-9113-5f61a785b393" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T000951Z:b0561444-04bc-4e38-9113-5f61a785b393" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 205626A08E084B12BA42D7B9E4564ED3 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:07Z" ], - "Date": [ "Thu, 16 Oct 2025 03:01:07 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A795EEC134BB43FC9D232FF06DADB89F Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:09:50Z" ], + "Date": [ "Wed, 22 Oct 2025 00:09:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01+2": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "fbdd05f8-acde-4a39-93ac-964062892be6" ], + "x-ms-client-request-id": [ "4d53d215-45ac-4e47-a001-2fa7d0f9d9be" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -63,40 +63,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9bf68cb1-b022-4b73-bf05-d6bb4ddcde46" ], - "x-ms-client-request-id": [ "fbdd05f8-acde-4a39-93ac-964062892be6" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/608c337c-74aa-4169-befa-11c6101cc505" ], + "x-ms-request-id": [ "aafaa714-7d93-4024-a1a3-fc1d02ab8fa4" ], + "x-ms-client-request-id": [ "4d53d215-45ac-4e47-a001-2fa7d0f9d9be" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ea177f24-777e-4ac8-be95-2b5c139b7eeb" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "2034587b-087b-4259-ad70-b85d7816644b" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030139Z:2034587b-087b-4259-ad70-b85d7816644b" ], + "x-ms-correlation-request-id": [ "ad53ff15-299a-43ae-8b9a-89e2631bd64d" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001022Z:ad53ff15-299a-43ae-8b9a-89e2631bd64d" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2007834DA7AA433D91750918B68F4756 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:38Z" ], - "Date": [ "Thu, 16 Oct 2025 03:01:39 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B63B27C92437402F9E60F0DEC71F3EFE Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:21Z" ], + "Date": [ "Wed, 22 Oct 2025 00:10:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01+3": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "dfa20101-5d4d-4cfc-bb3e-95aafcbc17b8" ], + "x-ms-client-request-id": [ "2c595fcc-84db-42e6-aa40-fed57b871447" ], "CommandName": [ "Remove-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Remove-AzFrontDoorRulesEngine_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -108,17 +108,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "2d51fbe6-51af-4a8a-ab61-abad42aa60b1" ], - "x-ms-client-request-id": [ "dfa20101-5d4d-4cfc-bb3e-95aafcbc17b8" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0f8ab87e-d233-4c4e-b8d4-d527e037eade" ], + "x-ms-request-id": [ "dab81d7f-9311-4198-9f5a-6e5d32228c2f" ], + "x-ms-client-request-id": [ "2c595fcc-84db-42e6-aa40-fed57b871447" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f144a9a2-2a92-440b-b6d9-e26bfd1b55ea" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "26d3a2c7-60c8-4ad3-80af-3e83612266d2" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030140Z:26d3a2c7-60c8-4ad3-80af-3e83612266d2" ], + "x-ms-correlation-request-id": [ "bc225f73-74a1-4a37-8407-e6b27623b3bd" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001023Z:bc225f73-74a1-4a37-8407-e6b27623b3bd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 51DCEF39698541A2A217137A18999923 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:39Z" ], - "Date": [ "Thu, 16 Oct 2025 03:01:40 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 724CBA481C1A4A17BE61F5C08CCC4600 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:22Z" ], + "Date": [ "Wed, 22 Oct 2025 00:10:22 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json index 2ba7a54baf19..f55e0cbf303c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+1": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "6c8bac8a-2423-4b4a-b60b-9cf5fbd82b63" ], + "x-ms-client-request-id": [ "b2dc50f3-ac7f-4d62-8e25-70beb26f848d" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,28 +23,28 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "b798cdf2-3662-4978-b9a3-f9c285521729" ], - "x-ms-correlation-request-id": [ "b798cdf2-3662-4978-b9a3-f9c285521729" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030142Z:b798cdf2-3662-4978-b9a3-f9c285521729" ], + "x-ms-request-id": [ "41adc943-0543-4668-9107-44c6277b6b27" ], + "x-ms-correlation-request-id": [ "41adc943-0543-4668-9107-44c6277b6b27" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001024Z:41adc943-0543-4668-9107-44c6277b6b27" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 30979857B82740D0A69314BC4E0A91A6 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:41Z" ], - "Date": [ "Thu, 16 Oct 2025 03:01:41 GMT" ] + "X-MSEdge-Ref": [ "Ref A: CF529664FB8B40209FC25202A926BFA8 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:24Z" ], + "Date": [ "Wed, 22 Oct 2025 00:10:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "257" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafi7nt\u0027 under resource group \u0027testps-rg-woz4\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafrvue\u0027 under resource group \u0027testps-rg-2xfo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+2": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -60,41 +60,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c2b066f1-5ec2-4394-aa4d-1040f0b4f310" ], - "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/12435e3f-526b-4047-a26c-bbc386651edf" ], + "x-ms-request-id": [ "149e1417-7b08-4335-9460-863cb6214856" ], + "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/00a155b0-5737-4246-98af-558372d0cf00" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "3a7278af-6b00-434a-a6b3-319033b1b72a" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030143Z:3a7278af-6b00-434a-a6b3-319033b1b72a" ], + "x-ms-correlation-request-id": [ "9a9973f8-5b2e-483b-b4b5-906a80b48790" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001025Z:9a9973f8-5b2e-483b-b4b5-906a80b48790" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 0C01A28469504969AA6E93345DBF4089 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:01:42Z" ], - "Date": [ "Thu, 16 Oct 2025 03:01:43 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 637CC7C8AACC427B87550512B27AA9DC Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:24Z" ], + "Date": [ "Wed, 22 Oct 2025 00:10:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafi7nt\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafi7nt\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafrvue\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafrvue\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+3": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], + "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -105,40 +105,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fe80c963-ac45-4c0e-8d0b-c776808428da" ], - "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], + "x-ms-request-id": [ "72c77e1d-439b-4e22-8efb-57e4d67c5fef" ], + "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "8c9785f6-520c-4cf2-bb08-ef59d9deb8c3" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030214Z:8c9785f6-520c-4cf2-bb08-ef59d9deb8c3" ], + "x-ms-correlation-request-id": [ "d1cdc571-c05e-41eb-8f9a-2ff8143d59cb" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001057Z:d1cdc571-c05e-41eb-8f9a-2ff8143d59cb" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 83DBCF7F59AF4F48B7D0A60690BCF625 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:14Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:14 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 06871B35936B4305B41B4267E03EC007 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:56Z" ], + "Date": [ "Wed, 22 Oct 2025 00:10:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafi7nt\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafi7nt\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafrvue\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafrvue\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+4": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], + "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -149,39 +149,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "ad699d5f-9a5c-4469-af1a-63143c7a1255" ], - "x-ms-client-request-id": [ "553d8715-7fd8-49c9-9dbc-2b12b1a6e3fd" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9593096d-6e37-4efc-9355-a2d7886b27c3" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030214Z:9593096d-6e37-4efc-9355-a2d7886b27c3" ], + "x-ms-request-id": [ "17ca541b-0fa1-4dd8-bc84-ae3a0ca48247" ], + "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "b37bf6cd-6f9b-4e8b-a35d-9f088b864795" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001057Z:b37bf6cd-6f9b-4e8b-a35d-9f088b864795" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 7EEC04087FD845368674D8808C9A9DA6 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:14Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:14 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 51660DA586074B559AA98BAD8BF977D4 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:57Z" ], + "Date": [ "Wed, 22 Oct 2025 00:10:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafi7nt\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafi7nt\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafrvue\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafrvue\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01+5": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafi7nt?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "49d36261-c751-4486-8a81-18159c8a073c" ], + "x-ms-client-request-id": [ "c1c96df0-f722-43d6-a587-18a9c26ac8f9" ], "CommandName": [ "Remove-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Remove-AzFrontDoorWafPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -193,17 +193,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f7783547-55c6-4166-8b75-a4fa45a8c684" ], - "x-ms-client-request-id": [ "49d36261-c751-4486-8a81-18159c8a073c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/67a3a483-40b5-40c0-ae3a-1395a2ff0d0e" ], + "x-ms-request-id": [ "9d19df00-b956-4356-857b-e7b5cd36c9d9" ], + "x-ms-client-request-id": [ "c1c96df0-f722-43d6-a587-18a9c26ac8f9" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7e5935f2-a2ef-4ee3-91d5-886490b5bb0b" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "fcceb480-3a34-4af0-8b37-81fcbe8da58f" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030215Z:fcceb480-3a34-4af0-8b37-81fcbe8da58f" ], + "x-ms-correlation-request-id": [ "ae34de08-d709-4445-b1e7-3d81a591cd4e" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001058Z:ae34de08-d709-4445-b1e7-3d81a591cd4e" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 81EB4A06593642589214D38C1468D35E Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:15Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:15 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 6FC752FE079E427B818E63CB3808A494 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:57Z" ], + "Date": [ "Wed, 22 Oct 2025 00:10:57 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json index 66e4e40b0a8b..13e661be12fb 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+1": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "f3f6c735-84c6-4397-8944-8c8f721dc806" ], + "x-ms-client-request-id": [ "f786e138-226b-4574-9270-86c7a05bef68" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,29 +23,29 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "0ba00057-2c2f-4808-97be-630e8fbec93a" ], - "x-ms-correlation-request-id": [ "0ba00057-2c2f-4808-97be-630e8fbec93a" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030216Z:0ba00057-2c2f-4808-97be-630e8fbec93a" ], + "x-ms-request-id": [ "a014ba76-87cc-4baf-b306-906e83ac5867" ], + "x-ms-correlation-request-id": [ "a014ba76-87cc-4baf-b306-906e83ac5867" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001059Z:a014ba76-87cc-4baf-b306-906e83ac5867" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: DB754146890A4995B816F6298FDB0259 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:16Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:16 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D1F365ECA16747B39737E64182992389 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:59Z" ], + "Date": [ "Wed, 22 Oct 2025 00:10:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "229" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-4gso\u0027 under resource group \u0027testps-rg-woz4\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-35am\u0027 under resource group \u0027testps-rg-2xfo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+2": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-4gso.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-35am.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -61,42 +61,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e9b7fa4e-4535-4bea-83d0-bd45d2340e2f" ], - "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/a066bbeb-c66d-4ecc-8f18-c2fb4d9b6716?api-version=2021-06-01\u0026t=638961805392669807\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fO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gkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=BraeLGNFFsbmEaLooiMtfg5HnQvFsbpPYuEwEQGIJmRO-4Vkp3Ug2ym3tq4l2P7W4kaF9VMOSmJU6qL54iPOfkrqVBGZJONbnrmFlCB1KUdrr8wnUfnmv5W0UAlkJjlvOt-t6WHvk63RKSU5CQofgybMifsGVxcSxrfTYgKe0B_UkXfaf16P_kRAEFwncMEsqf8GbJO9iEx3XZqgsTfDv91eWOdu7hWF35mVw9LD9_AvQsYisEhjL4ya4hgttihRKWnhNSckfitemUXic1iWORruMk8ugNSyL-WYeVmY823Z8C377ThRj5CZn0u6TWeqyWycVo1pv7ASc8rDNd-qdQ\u0026h=9NX8y1kHQuJ5pOJOmUh-M-8vMxillODCE6GHBn8gkV0" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0f6b64c0-8d8d-4d3a-af47-cc3a02e27dde" ], + "x-ms-request-id": [ "e3855ec3-0aeb-4895-ab34-4e74184d0e96" ], + "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/3f8fae4f-e0d1-42f6-98bb-d97439db481e?api-version=2021-06-01\u0026t=638966886616882538\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHM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AMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=PnbbQ3qCubp6MuNHqkYO1kShVlvZj4w715TdsnsSlcf84SRNN1gCJuQ3-JdkxIbZgUhONsyB3pSjYn8kPpi7s5TfGvqcO7q_vlgxXYFCH3u_QujLiJsofEXZDaNiEZIYd16SH3nQ8IGDFbNgUhLnRMq7ZqnODZ9bt6ySv84rr3qRRWH3dhIs2lv649zrQnsQ7G8RET4JJMicrT0ktTxxKvdPjbt_z1zEc3NADxtaO9TCcG-Vr4BIEE-1b2yQHvNGXPsQMzGkNvFW7QDhRBnz2TZONdE1mGxLpvTAPuq8FvW7OpYoY4YVuIiEVZ7hw05FcPKpCbS8mlPrmii6_F-KXw\u0026h=xL1hnHp26IOwumCelcZpS92v2UrTqBAeRFippRpAdPc" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/5da7582d-8819-4c72-aa90-d1874cabf2da" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "3b2ae244-1de7-465a-96d7-a88a5e9a7726" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030219Z:3b2ae244-1de7-465a-96d7-a88a5e9a7726" ], + "x-ms-correlation-request-id": [ "219f3126-05a6-473a-9399-e7714711eed5" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001101Z:219f3126-05a6-473a-9399-e7714711eed5" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F05D2A45CA0640AC929DC845135A3A57 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:17Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:18 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F2CA52BA4A3641B5BB4250F44E6A8A85 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:59Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/a066bbeb-c66d-4ecc-8f18-c2fb4d9b6716?api-version=2021-06-01\u0026t=638961805392669807\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwov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yVWJKRoEVp59P5KYLdqvg8VrchPaYU3B1ZYbSol1dPcoTFBbiR1xTC4gihNsdye7dgkDwJThyhtefnZZ1zeiWxnXwiLxuZk6pf7cEKEN0xfBtqSBq-ShHoa0RC1xAzAdGngTv75eYqs7hVFdEIZwytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=BraeLGNFFsbmEaLooiMtfg5HnQvFsbpPYuEwEQGIJmRO-4Vkp3Ug2ym3tq4l2P7W4kaF9VMOSmJU6qL54iPOfkrqVBGZJONbnrmFlCB1KUdrr8wnUfnmv5W0UAlkJjlvOt-t6WHvk63RKSU5CQofgybMifsGVxcSxrfTYgKe0B_UkXfaf16P_kRAEFwncMEsqf8GbJO9iEx3XZqgsTfDv91eWOdu7hWF35mVw9LD9_AvQsYisEhjL4ya4hgttihRKWnhNSckfitemUXic1iWORruMk8ugNSyL-WYeVmY823Z8C377ThRj5CZn0u6TWeqyWycVo1pv7ASc8rDNd-qdQ\u0026h=9NX8y1kHQuJ5pOJOmUh-M-8vMxillODCE6GHBn8gkV0+3": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/3f8fae4f-e0d1-42f6-98bb-d97439db481e?api-version=2021-06-01\u0026t=638966886616882538\u0026c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HSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=PnbbQ3qCubp6MuNHqkYO1kShVlvZj4w715TdsnsSlcf84SRNN1gCJuQ3-JdkxIbZgUhONsyB3pSjYn8kPpi7s5TfGvqcO7q_vlgxXYFCH3u_QujLiJsofEXZDaNiEZIYd16SH3nQ8IGDFbNgUhLnRMq7ZqnODZ9bt6ySv84rr3qRRWH3dhIs2lv649zrQnsQ7G8RET4JJMicrT0ktTxxKvdPjbt_z1zEc3NADxtaO9TCcG-Vr4BIEE-1b2yQHvNGXPsQMzGkNvFW7QDhRBnz2TZONdE1mGxLpvTAPuq8FvW7OpYoY4YVuIiEVZ7hw05FcPKpCbS8mlPrmii6_F-KXw\u0026h=xL1hnHp26IOwumCelcZpS92v2UrTqBAeRFippRpAdPc+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/a066bbeb-c66d-4ecc-8f18-c2fb4d9b6716?api-version=2021-06-01\u0026t=638961805392669807\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0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SyL-WYeVmY823Z8C377ThRj5CZn0u6TWeqyWycVo1pv7ASc8rDNd-qdQ\u0026h=9NX8y1kHQuJ5pOJOmUh-M-8vMxillODCE6GHBn8gkV0", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/3f8fae4f-e0d1-42f6-98bb-d97439db481e?api-version=2021-06-01\u0026t=638966886616882538\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZ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umCelcZpS92v2UrTqBAeRFippRpAdPc", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], + "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -107,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6c69d73b-19c3-4897-9d72-004dffa110a5" ], - "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a5ce0718-83a1-46c5-a8da-ebb11ea76dd6" ], + "x-ms-request-id": [ "62865946-6a74-426a-9cf8-233b5144554e" ], + "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/59a5f73f-e7ec-4313-b9e5-89b0c8712ff0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "4fce34ef-8b5b-4b5b-8770-255093cfcafb" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030229Z:4fce34ef-8b5b-4b5b-8770-255093cfcafb" ], + "x-ms-correlation-request-id": [ "0d939e65-3c0b-4f05-a899-a23479c0dc99" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001112Z:0d939e65-3c0b-4f05-a899-a23479c0dc99" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 9732D42A220F4C53A4DBFF4D8FBE8938 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:29Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:29 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2F60C0BF50504C6689332DE9A206F5AA Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:11Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -128,20 +128,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+4": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], + "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -152,39 +152,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1944178d-cf74-4884-aa11-22b575a79f69" ], - "x-ms-client-request-id": [ "fc44dd31-4890-4e0b-9423-3765d7e673bf" ], + "x-ms-request-id": [ "f0663c8b-9e33-40b0-aab8-cf764deaf2bc" ], + "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "09bdc902-5df2-442b-a4ee-2e6db1e00729" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030230Z:09bdc902-5df2-442b-a4ee-2e6db1e00729" ], + "x-ms-correlation-request-id": [ "96a3c4a7-b550-4327-901d-d6dcc097deec" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001113Z:96a3c4a7-b550-4327-901d-d6dcc097deec" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: BAB5954BB07546BD8435FF7904949A50 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:29Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:29 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C2364A9B6F244889B88F38523D60218F Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:12Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+5": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], + "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -196,31 +196,31 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "552cf795-f4e1-4e4a-8329-1456219b3aac" ], - "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "c565fe73-29e6-4c9d-9e7d-d6201259400c" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030231Z:c565fe73-29e6-4c9d-9e7d-d6201259400c" ], + "x-ms-request-id": [ "5d8b92f7-9201-46c8-a957-17c2d90c9881" ], + "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1097" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16497" ], + "x-ms-correlation-request-id": [ "4e7a068d-6551-4753-a4ca-46e859e0d722" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001113Z:4e7a068d-6551-4753-a4ca-46e859e0d722" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: ED2E9252433C40B98B4F33C2E39F72F2 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:30Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:30 GMT" ] + "X-MSEdge-Ref": [ "Ref A: EFA8588C82044FAABDD00325A7A909A2 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:13Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+6": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+6": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value3\",\r\n \"tag2\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-4gso.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value3\",\r\n \"tag2\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-35am.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -234,45 +234,45 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/be7ac5ae-9705-449a-b1be-df62a96286d3/frontdoorresults/testps-fd-4gso?api-version=2021-06-01\u0026t=638961805525260793\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA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ytl9j_DVoh7vDwgUi0D3gu_ArliQZQbJaOgadOSsCvfyC4FDs0zFzh5gJEl4CTM9fYPZWGJPQPaH1nAoBwgqHZE1WF0uh4144LhpYs9GlduCWQ3jQeVjXsFsZdZPSYXdPojWuL34Voqf1gb07y4lB4vNsjgX0MCWgmfG4Jm7I_MwoL3FGM3SQN_84HB4tHG58f3-ztGcxleLHe1VBfPj-Efh6FPeHNFg7Lyc28aIJf6Lti8Bv9FjBGl_x8j5VVCMC3OI6aRMl9fqjNw4qBFbYmAY9f42CiaGsbnlC2k4FIKuYBkHw9mEe9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=W-q2nkKLKvFyT5dD_0bgTtR6iQ8tXF3VMVrBttbvMT6zFPI2Gy0Jt8aYcYbJicaXfsTw5Apx46mnAjDOigp9sHR_AxR1BNuHKecgINoPC75oZbIBIsThoHFfp_iEyvDZfx6oAykmOsmG42maaVnX8teJnp0uPFd0WegzfRUFzmBcL4BE5xH_GEKla2cXnTyflgbdKquLLDtEvc68PT6T1IWyJ5DAGFmaOju_FHZx5Mxw7UtXdpkf5k6U7ZdGbx7Te9I79QagMLkxBqkyML3nOnDLPYFVGAMHG0rnnY78r3qXxq7NfTzxKrO3RFa3Aww7qmmagGIIBdg0ZKkb7tDh3g\u0026h=0g-AoVlxwPIU6IsVyeHbXTO4GcaWItD1bVmbge0mD9E" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/275e74c5-1f30-44b2-b919-c31c18280a64/frontdoorresults/testps-fd-35am?api-version=2021-06-01\u0026t=638966886751706192\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ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emG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=fQYWnNVQz8IHRrJXY0EefOy7yzZtgO3uccvvWzEpWHJdx_u-hkm7OABEl7c0qrt1d22wHSA_SpdA2svnearv3nnB_6M48SsG0u56V_VHun0JMnwbRwHL4XVpmWt58aV3NPyH4QFOiRiYDkMOEB9CGY9Yma8iTkncLGm10HhtZTdB9itWoZmiRfdhhdYpUrskjZTxGk3tlv8e3t38Zf8i1yLXaxhDPKv2fdqmdsYpbvKp55XLja_vTv-LNIG0nEw9xwuSjMEWK_AMFZW0f4btL8M1CvUyxkch2XDLv1SzgZ9TnpXPE603X1P1qR-oqxaKtqYEEEAEj9758znsca6A9Q\u0026h=50AYpcadSLnpytnkvtpJ5vyXfGx0gU1MM_Y_YtxSLQE" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f6a9a55e-ffe1-4de2-aecc-957c9d31523a" ], - "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/be7ac5ae-9705-449a-b1be-df62a96286d3?api-version=2021-06-01\u0026t=638961805525104560\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQ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MO5_Fx5ZMGdXl1cngcjlRV-MN_A3kg\u0026h=zXoU4YzNSv6ReqUFMyBYxMGG1sg-SzVVbRTmE7VyB5c" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/393c2031-0a64-4b2d-a0cf-6f2bd4c99576" ], + "x-ms-request-id": [ "243f74c7-4a4c-4311-a094-4e3ae5beb2cd" ], + "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/275e74c5-1f30-44b2-b919-c31c18280a64?api-version=2021-06-01\u0026t=638966886751237571\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaR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LrAbvEH3-HMNjiyFQrJphxU9jxJcyGkJDVf-MqnFtXO-eYdItpK01WX7FXuAXdkmyNMKt__hRkfFYa7d2LIm-sPIzS0JLDm1Le3hjta3tEijYLJ0SqdWxUleGHE_QgH-yeJMwQwj-E-SRhRqtC7l9bHxIIFxPmt8VG-SjqfQ\u0026h=93VCwLhBtlnoJXi9cowdRlrRpb6ihmj7NhA7ARLPwj4" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/39a44219-7fec-4307-ab83-bee68b94e366" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "fc67c244-954b-4538-a933-b93cfeaff505" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030232Z:fc67c244-954b-4538-a933-b93cfeaff505" ], + "x-ms-correlation-request-id": [ "5b1dfa4a-b4fc-4697-a91f-03e606bc85b8" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001115Z:5b1dfa4a-b4fc-4697-a91f-03e606bc85b8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 896319DD1BBB428E9A96DEEB29F20200 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:31Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:32 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 156714FF81D347DAA324CF2917966291 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:13Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/be7ac5ae-9705-449a-b1be-df62a96286d3?api-version=2021-06-01\u0026t=638961805525104560\u0026c=MIIIrzCCBpegAwIBAg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FtEHgD2ywSy81sj2GUEfYWTwW8MlD2PkhlO0YjasJuIXWr-mmEVuBpcQcIt__R3-Z2MO5_Fx5ZMGdXl1cngcjlRV-MN_A3kg\u0026h=zXoU4YzNSv6ReqUFMyBYxMGG1sg-SzVVbRTmE7VyB5c+7": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/275e74c5-1f30-44b2-b919-c31c18280a64?api-version=2021-06-01\u0026t=638966886751237571\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCg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_QgH-yeJMwQwj-E-SRhRqtC7l9bHxIIFxPmt8VG-SjqfQ\u0026h=93VCwLhBtlnoJXi9cowdRlrRpb6ihmj7NhA7ARLPwj4+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdooroperationresults/be7ac5ae-9705-449a-b1be-df62a96286d3?api-version=2021-06-01\u0026t=638961805525104560\u0026c=MIIIrzCCBpegAwIBAgITUQB9VQ7j8TP8msVbVQABAH1VDjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNzE3MTAxMTQxWhcNMjYwMTEzMTAxMTQxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9uFRCckwovJWtl1-Qq22Rnc8i5ftzF4eCW9m-t2gMd0gI4H3ggHFS8o7Lgo7NFrSHde_fOw5TG4ClBFPIvYtP-yRXA_gQTjDDxbdEKLTNE3lXVjb2lGS92EXrq2q8SW9iUszX4c5rv7wvK4PYYmWBgrA0pnZoN3Sb-PCkHdwTiQ6s-KaN9TaDX22q-VAiBKtuEV3lfxq84cdn8poLqbGH9aJs3mwzZSvSnDtSic6XB7Wn2B9rEtP4D_EPxNAlrtE-8p4QQxJKsU4kvH2HkbDTA3s-9XDYPgpo-bc_TuPA79C9cwY_yDUwxeCiVXq6u1ouDEDRV8y-SdlEtMwA_L3kCAwEAAaOCBJwwggSYMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhp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Ee9pG9jKYsbU8WWhYfmRSvsH_TDoUW9GnH_HA\u0026s=louDhqybLpaO5w6gXfv0o963oKmZ7gbn-glTRuazYJche0IdcJyuOZ3G4vnzbcyyYJ0pb2gADjdYd4a_7lDIt0oJTgs7EVDVgnhSAsE9zsI-EEwWLDnY1Li8KWmXwqrRx-QfumUp-doPDLt6dgSoeZaD7SMWBDaR_GFHAlRSCSGe1EszH8VkpAn-Bnf5-P9-dMDSezUAn-CXSzE5JNkU-vTyujowyaMucJqO09CRXel9_AocaktkmzFtEHgD2ywSy81sj2GUEfYWTwW8MlD2PkhlO0YjasJuIXWr-mmEVuBpcQcIt__R3-Z2MO5_Fx5ZMGdXl1cngcjlRV-MN_A3kg\u0026h=zXoU4YzNSv6ReqUFMyBYxMGG1sg-SzVVbRTmE7VyB5c", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/275e74c5-1f30-44b2-b919-c31c18280a64?api-version=2021-06-01\u0026t=638966886751237571\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8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eDPNIP_eAe0BqeKeiCLHZajFnMx901XnczZOYwdNKKiKWghigDxQ6GW2xKmaHLfuQbVoJh21o7mdTkxAFPmnxNVqDe-2OBGJoJ_VemMjYt0MmKW1u1D9DQF3XseY6lg2R1vbqGLrAbvEH3-HMNjiyFQrJphxU9jxJcyGkJDVf-MqnFtXO-eYdItpK01WX7FXuAXdkmyNMKt__hRkfFYa7d2LIm-sPIzS0JLDm1Le3hjta3tEijYLJ0SqdWxUleGHE_QgH-yeJMwQwj-E-SRhRqtC7l9bHxIIFxPmt8VG-SjqfQ\u0026h=93VCwLhBtlnoJXi9cowdRlrRpb6ihmj7NhA7ARLPwj4", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], + "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -283,17 +283,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f566ddf1-056e-4351-91f6-4e962b02d6b1" ], - "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/888598c0-d059-4008-addf-f208bd3ea8cd" ], + "x-ms-request-id": [ "a18dc349-f0d8-4112-ac2c-6db1e280ba0c" ], + "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/10182b7f-b92f-426d-8739-89653b7e8392" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "72ed68f0-645b-4e15-bca3-28551f350b67" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030243Z:72ed68f0-645b-4e15-bca3-28551f350b67" ], + "x-ms-correlation-request-id": [ "f7ccd91b-1282-4681-b28e-028ec269d19a" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001125Z:f7ccd91b-1282-4681-b28e-028ec269d19a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2B435725A1C4453DB5A5D69A8390D669 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:42Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: FCA4036295414130BCE2E6C5095BB1E7 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:25Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -304,20 +304,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01+8": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], + "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -328,23 +328,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7730260e-68d6-4af1-ac39-f253e4b5aaeb" ], - "x-ms-client-request-id": [ "be77e52d-e4f4-4f43-9d6f-80ac1a3f292d" ], + "x-ms-request-id": [ "10d960fd-d1d5-4ef9-8794-a4e22e78d748" ], + "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "716018e2-b110-4c61-a48b-c6e310f9bc26" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030243Z:716018e2-b110-4c61-a48b-c6e310f9bc26" ], + "x-ms-correlation-request-id": [ "10804c08-6316-40be-bcbf-11fcd997f1d1" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001126Z:10804c08-6316-40be-bcbf-11fcd997f1d1" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C46B484F79534A93A4E1B98DF90664C7 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:43Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 3163ED241ADC4CC88EBA9B6677F5AD63 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:26Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-4gso\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-4gso\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"c697917c-de99-4ebc-ba28-a3783c44b19a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-4gso/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/Frontdoors/testps-fd-4gso/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-4gso.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-4gso.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json index 6796972d3915..e0683f41cd7f 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json @@ -1,17 +1,17 @@ { - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+1": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "28e56875-906d-4f14-8a63-e52346c7e8dd" ], + "x-ms-client-request-id": [ "b94998c6-79b5-42bf-ad6b-8287c87f3c18" ], "CommandName": [ "Get-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Get-AzFrontDoorRulesEngine_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,40 +23,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "cfa59082-d73c-4e96-ab2f-b12399a26b05" ], - "x-ms-client-request-id": [ "28e56875-906d-4f14-8a63-e52346c7e8dd" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e2ef6fd7-f2cc-473b-b736-a02caf66a8df" ], + "x-ms-request-id": [ "8d407d21-9e3f-44fd-8a02-9041c111be5f" ], + "x-ms-client-request-id": [ "b94998c6-79b5-42bf-ad6b-8287c87f3c18" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ede8ff1b-c089-4185-9784-0f2ec2d84510" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "33b6585e-c905-4a56-a714-0398aa106eac" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030244Z:33b6585e-c905-4a56-a714-0398aa106eac" ], + "x-ms-correlation-request-id": [ "1628a079-37c3-4fdb-9b19-b4294e186a67" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001128Z:1628a079-37c3-4fdb-9b19-b4294e186a67" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 9D9CAEC4E80C49DB97A4394937CD78C7 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:44Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:44 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A69F02F0A1AF49E2ACCBD0FEAA0F7911 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:27Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+2": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], + "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -68,32 +68,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9eb7094e-a294-4c21-91a7-a773ba4674fb" ], - "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/19458bc5-4b5f-4a21-98e0-e1b54206820c" ], + "x-ms-request-id": [ "b50399c2-9b4e-4546-afc2-c2d8748c4f19" ], + "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6f47b9ee-f482-484e-b9cd-bd3090e78ca7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "3a05b14e-f4e4-4721-91df-93a78d86839b" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030244Z:3a05b14e-f4e4-4721-91df-93a78d86839b" ], + "x-ms-correlation-request-id": [ "9114c7dc-d66a-4bd2-9655-f2a08308397a" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001128Z:9114c7dc-d66a-4bd2-9655-f2a08308397a" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A1DCE8E29C514806AE744E5E995EC55A Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:44Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:44 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4F55138248E940BE85D3C9C7527CE209 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:28Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+3": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -108,41 +108,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "849860da-fcce-4399-8c45-0da885b76fc4" ], - "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/8785cc63-476d-48ab-ba18-14a5ff78b679" ], + "x-ms-request-id": [ "46037f4d-5361-4afc-acd6-7ff164f8b982" ], + "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6951aadb-f8d9-4fa9-981f-f86399e21642" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "d4f72823-2616-43a4-8fe6-23dee9b3a24c" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030245Z:d4f72823-2616-43a4-8fe6-23dee9b3a24c" ], + "x-ms-correlation-request-id": [ "29866150-c4df-4506-b709-d1adedccb1ea" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001129Z:29866150-c4df-4506-b709-d1adedccb1ea" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8CAD9CE4ECAF4624B8E2918218B62658 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:02:45Z" ], - "Date": [ "Thu, 16 Oct 2025 03:02:45 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 120849C37E424E85BADC19770A9F2C33 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:28Z" ], + "Date": [ "Wed, 22 Oct 2025 00:11:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01+4": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], + "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -153,24 +153,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6ee85285-8f49-49f1-8b80-22d32bccbd9a" ], - "x-ms-client-request-id": [ "2f1b9659-08ae-4a98-967c-ab60d68b0355" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/06df823f-8a2b-4fe0-92f2-ac225372cd0e" ], + "x-ms-request-id": [ "418c2aed-5440-4979-b1c4-74b977a21634" ], + "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/001e580f-ceb3-41a1-93f4-e724d0912105" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "df83667d-9da9-414e-a7bc-251da1848a4f" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030317Z:df83667d-9da9-414e-a7bc-251da1848a4f" ], + "x-ms-correlation-request-id": [ "afa0df98-a510-42d6-914b-82230cf922c9" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001200Z:afa0df98-a510-42d6-914b-82230cf922c9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 6CF677DCA28B4838A0E2BD21EA3690FC Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:16Z" ], - "Date": [ "Thu, 16 Oct 2025 03:03:16 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 979FD6844739489B914289D9859ED10A Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:59Z" ], + "Date": [ "Wed, 22 Oct 2025 00:12:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json index 113e998a9243..f285b270acad 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+1": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "c67379f8-04b5-4727-8e68-a601f8cf5d27" ], + "x-ms-client-request-id": [ "803dff34-ac5e-48f8-b7ed-d878ddd1a55e" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,39 +23,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8ce06263-8bee-4e05-9a3a-fa42a861b48d" ], - "x-ms-client-request-id": [ "c67379f8-04b5-4727-8e68-a601f8cf5d27" ], + "x-ms-request-id": [ "f1b90b81-a096-46f5-8675-3f0a8f35d03d" ], + "x-ms-client-request-id": [ "803dff34-ac5e-48f8-b7ed-d878ddd1a55e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ece06478-bbb9-4b39-b71a-eb7b008bacb8" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030319Z:ece06478-bbb9-4b39-b71a-eb7b008bacb8" ], + "x-ms-correlation-request-id": [ "c39a9ce7-9f4d-422a-ae1c-2519771d5f4b" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001202Z:c39a9ce7-9f4d-422a-ae1c-2519771d5f4b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: AF1F70C7FDB944E98E96264D263C3FEA Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:18Z" ], - "Date": [ "Thu, 16 Oct 2025 03:03:18 GMT" ] + "X-MSEdge-Ref": [ "Ref A: FA0D4608AC014846B01138C7E06BBFA8 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:02Z" ], + "Date": [ "Wed, 22 Oct 2025 00:12:02 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+2": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], + "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -67,37 +67,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "92bc2334-c285-4205-835d-150c8e55214d" ], - "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "e431a62b-cb01-4753-930b-05d31155f9b3" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030319Z:e431a62b-cb01-4753-930b-05d31155f9b3" ], + "x-ms-request-id": [ "904992db-d775-4e27-b8c1-cd8b479487ee" ], + "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "153c07b5-a10d-4096-902d-b13ac2daff6c" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001203Z:153c07b5-a10d-4096-902d-b13ac2daff6c" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 8CB4929559914914856839FD2C5315DC Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:19Z" ], - "Date": [ "Thu, 16 Oct 2025 03:03:19 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 80FD1F11A80D47298B48ADDF12C687CC Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:02Z" ], + "Date": [ "Wed, 22 Oct 2025 00:12:03 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1912" ], + "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+3": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [ ],\r\n \"ruleGroupOverrides\": [ ]\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [ ],\r\n \"ruleGroupOverrides\": [ ]\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "2273" ] + "Content-Length": [ "2378" ] } }, "Response": { @@ -106,41 +106,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "68900e91-7249-479e-8021-4229959ce852" ], - "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cdb598b4-20fc-45ba-ac25-f0d83f0185d8" ], + "x-ms-request-id": [ "22adb912-0aa4-4552-bbfb-62f8eebc4024" ], + "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/4d73342c-833d-4a45-8841-be35c9af1528" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "87720c8a-c328-4c11-aeea-8d939ca1a1b7" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030321Z:87720c8a-c328-4c11-aeea-8d939ca1a1b7" ], + "x-ms-correlation-request-id": [ "33b4579e-5b64-43b5-a6a5-c28ff060d5cd" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001205Z:33b4579e-5b64-43b5-a6a5-c28ff060d5cd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 007D68739DCB453A83E83AC0876E674A Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:19Z" ], - "Date": [ "Thu, 16 Oct 2025 03:03:21 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 96BC6052FF094B479625CC5F1F431741 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:03Z" ], + "Date": [ "Wed, 22 Oct 2025 00:12:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1767" ], + "Content-Length": [ "1835" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+4": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], + "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -151,40 +151,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "07ed84e0-5c9c-480b-ba5c-1b7f8ba2b0ec" ], - "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], + "x-ms-request-id": [ "6b631229-e08e-49ae-9f68-d42c24fc4263" ], + "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "516f49ef-e634-4995-87f5-da35236682f8" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030352Z:516f49ef-e634-4995-87f5-da35236682f8" ], + "x-ms-correlation-request-id": [ "89002a5d-8f00-4b41-bdd7-5dd27e65125b" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001236Z:89002a5d-8f00-4b41-bdd7-5dd27e65125b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 6BECA2E373B74D4C87E58AA795CFAE8C Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:52Z" ], - "Date": [ "Thu, 16 Oct 2025 03:03:51 GMT" ] + "X-MSEdge-Ref": [ "Ref A: BC99A7AAB7124178AD8D86A2EFBF46A3 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:35Z" ], + "Date": [ "Wed, 22 Oct 2025 00:12:36 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1767" ], + "Content-Length": [ "1835" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+5": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], + "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] }, "ContentHeaders": { } @@ -195,23 +195,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fb470b66-48ec-412c-8a60-8602c03a31f1" ], - "x-ms-client-request-id": [ "f252ca0c-b60e-4651-8bc2-05b1daedb1c4" ], + "x-ms-request-id": [ "c87f08b4-c232-42bc-845d-8734979cb7fc" ], + "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9b8008f8-0e77-4b0f-92ec-02c4d19ef7cd" ], - "x-ms-routing-request-id": [ "WESTUS:20251016T030352Z:9b8008f8-0e77-4b0f-92ec-02c4d19ef7cd" ], + "x-ms-correlation-request-id": [ "2e08e2f9-96ee-4371-b60c-bd44422ab250" ], + "x-ms-routing-request-id": [ "WESTUS:20251022T001237Z:2e08e2f9-96ee-4371-b60c-bd44422ab250" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C14A07D066124A36B309BDD28145D3EE Ref B: SYD03EDGE1713 Ref C: 2025-10-16T03:03:52Z" ], - "Date": [ "Thu, 16 Oct 2025 03:03:52 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 04B473DA26EC4186B477576E15EB7CE8 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:36Z" ], + "Date": [ "Wed, 22 Oct 2025 00:12:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1767" ], + "Content-Length": [ "1835" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":null},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 index 04f8fb61500b..920a55c4bb90 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 @@ -18,7 +18,9 @@ Describe 'Update-AzFrontDoorWafPolicy' { It 'UpdateExpanded' { $matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable "RequestHeader" -OperatorProperty "Contains" -Selector "UserAgent" -MatchValue "WINDOWS" -Transform "Uppercase" $customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action "Log" -Priority 2 - $updatedPolicy = Update-AzFrontDoorWafPolicy -Name $env.WafPolicyName -ResourceGroupName $env.ResourceGroupName -CustomRule $customRule2 -LogScrubbingSetting @{} + # Create an empty LogScrubbingSetting to test removal + $emptyLogScrubbingSetting = New-AzFrontDoorWafLogScrubbingSettingObject -State "Disabled" + $updatedPolicy = Update-AzFrontDoorWafPolicy -Name $env.WafPolicyName -ResourceGroupName $env.ResourceGroupName -CustomRule $customRule2 -LogScrubbingSetting $emptyLogScrubbingSetting $updatedPolicy.CustomRule[0].Name | Should -Be "Rule2" $updatedPolicy.CustomRule[0].RuleType | Should -Be "MatchRule" $updatedPolicy.CustomRule[0].MatchCondition[0].MatchVariable | Should -Be "RequestHeader" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json index 296d8dd5ce5b..9de7f9dd7658 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/env.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -1,13 +1,13 @@ { - "WafPolicyName": "testpsWafq3p2", - "FrontDoorName": "testps-fd-zycv", "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", - "FrontDoorNameForUpdate": "testps-fd-4gso", + "ResourceGroupName": "testps-rg-2xfo", + "FrontDoorName": "testps-fd-de80", + "WafPolicyNameForDelete": "testpsWafrvue", + "WafPolicyNameForCreate": "testpsWafnudq", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "WafPolicyName": "testpsWaf3g8j", + "FrontDoorNameForUpdate": "testps-fd-35am", "RuleEngineName": "engine101", - "WafPolicyNameForDelete": "testpsWafi7nt", - "ResourceGroupName": "testps-rg-woz4", - "FrontDoorNameForDelete": "testps-fd-uzv9", - "WafPolicyNameForCreate": "testpsWafdwo0", - "location": "westus", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47" + "FrontDoorNameForDelete": "testps-fd-bp6l", + "location": "westus" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 8f98904f8c6d..5d6ee11c77f7 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|x64.ActiveCfg = Debug|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|x64.Build.0 = Debug|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|x86.ActiveCfg = Debug|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Debug|x86.Build.0 = Debug|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|Any CPU.Build.0 = Release|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|x64.ActiveCfg = Release|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|x64.Build.0 = Release|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|x86.ActiveCfg = Release|Any CPU - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3}.Release|x86.Build.0 = Release|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|x64.ActiveCfg = Debug|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|x64.Build.0 = Debug|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|x86.ActiveCfg = Debug|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|x86.Build.0 = Debug|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|Any CPU.Build.0 = Release|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|x64.ActiveCfg = Release|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|x64.Build.0 = Release|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|x86.ActiveCfg = Release|Any CPU + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {4DCCF379-7CEC-42E6-8B6D-44BBC82A68F3} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index e605905349a7..9b1c2dbef3cf 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/10/20 +# Generated on: 2025/10/22 # @{ diff --git a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md index c7c4b1caba63..09d8fd31fa5a 100644 --- a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md @@ -69,6 +69,13 @@ Enable-AzFrontDoorCustomDomainHttps -InputObject [-MinimumT [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### ByResourceIdWithVaultParameterSet +``` +Enable-AzFrontDoorCustomDomainHttps [-MinimumTlsVersion ] [-SecretName ] + [-SecretVersion ] [-VaultId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Enables a frontendEndpoint for HTTPS traffic @@ -349,7 +356,7 @@ The minimum TLS version required from the clients to establish an SSL handshake ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded +Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded, ByResourceIdWithVaultParameterSet Aliases: Required: False @@ -409,7 +416,7 @@ The name of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded +Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded, ByResourceIdWithVaultParameterSet Aliases: Required: False @@ -424,7 +431,7 @@ The version of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded +Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded, ByResourceIdWithVaultParameterSet Aliases: Required: False @@ -455,7 +462,7 @@ Resource ID. ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded +Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded, ByResourceIdWithVaultParameterSet Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md index f523a4a2092a..fde2a6494680 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md @@ -21,8 +21,8 @@ Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName + [-SubscriptionId ] -Name [-DefaultProfile ] [] ``` @@ -32,6 +32,12 @@ Get-AzFrontDoorFrontendEndpoint -Name -FrontDoorInputObject ] [] ``` +### ByObjectParameterSet +``` +Get-AzFrontDoorFrontendEndpoint [-Name ] -FrontDoorInputObject + [-DefaultProfile ] [] +``` + ### GetViaIdentity ``` Get-AzFrontDoorFrontendEndpoint -InputObject [-DefaultProfile ] @@ -43,80 +49,27 @@ Gets a Frontend endpoint with the specified name within the specified Front Door ## EXAMPLES -### Example 1: Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" +{{ Add code here }} ``` ```output -HostName : frontdoor1.azurefd.net -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net -Name : frontdoor1-azurefd-net -Type : Microsoft.Network/frontdoors/frontendendpoints - -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Get all frontend endpoints in Front Door "frontdoor1" which is part of resource group "rg1". - -### Example 2: Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "rg1" -FrontDoorName "frontdoor1" -Name "frontdoor1-azurefd-net" +{{ Add code here }} ``` ```output -HostName : frontdoor1.azurefd.net -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabled -CustomHttpsProvisioningSubstate : None -CertificateSource : -ProtocolType : -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontdoor1-azurefd-net -Name : frontdoor1-azurefd-net -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Get frontend endpoint with name "frontdoor1-azurefd-net" in Front Door "frontdoor1" which is part of resource group "rg1" +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} ## PARAMETERS @@ -142,7 +95,19 @@ Identity Parameter ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity Parameter Sets: GetViaIdentityFrontDoor -Aliases: +Aliases: FrontDoorObject + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity +Parameter Sets: ByObjectParameterSet +Aliases: FrontDoorObject Required: True Position: Named @@ -196,6 +161,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` +```yaml +Type: System.String +Parameter Sets: ByObjectParameterSet +Aliases: FrontendEndpointName + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Name of the Resource group within the Azure subscription. diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md index be534ad77315..a732be58b0f1 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorPolicySettingsObject.md @@ -13,7 +13,7 @@ Create an in-memory object for PolicySettings. ## SYNTAX ``` -New-AzFrontDoorPolicySettingsObject [-CustomBlockResponseBody ] +New-AzFrontDoorPolicySettingsObject [-CaptchaExpirationInMinutes ] [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-EnabledState ] [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] @@ -46,6 +46,23 @@ Create a comprehensive WAF policy settings object with prevention mode enabled, ## PARAMETERS +### -CaptchaExpirationInMinutes +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -CustomBlockResponseBody If the action type is block, customer can override the response body. The body must be specified in base64 encoding. diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md index c4e7b0e27017..11ca382683d1 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md @@ -136,7 +136,7 @@ Time window for resetting the rate limit count. Default is 1 minute. ```yaml -Type: System.Int32 +Type: System.Nullable`1[System.Int32] Parameter Sets: (All) Aliases: diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md index 5029e30154d0..fa60b13a750e 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md @@ -13,7 +13,7 @@ Create an in-memory object for ManagedRuleOverride. ## SYNTAX ``` -New-AzFrontDoorWafManagedRuleOverrideObject -RuleId [-Action ] [-Disabled ] +New-AzFrontDoorWafManagedRuleOverrideObject -RuleId [-Action ] [-Disabled] [-Exclusion ] [] ``` @@ -57,7 +57,7 @@ Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. ```yaml -Type: System.String +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md index aecca1a89903..6ee8deca7aa5 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md @@ -17,10 +17,10 @@ Create policy with specified rule set name within a resource group. New-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] - [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] - [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-CaptchaExpirationInMinutes ] [-LogScrubbingSetting ] + [-ManagedRuleSet ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] + [-SkuName ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath @@ -72,6 +72,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -CaptchaExpirationInMinutes +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. + +```yaml +Type: System.Nullable`1[System.Int32] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -CustomBlockResponseBody If the action type is block, customer can override the response body. The body must be specified in base64 encoding. @@ -171,7 +188,7 @@ This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. ```yaml -Type: System.Int32 +Type: System.Nullable`1[System.Int32] Parameter Sets: CreateExpanded Aliases: @@ -233,7 +250,7 @@ List of rule sets. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] Parameter Sets: CreateExpanded -Aliases: +Aliases: ManagedRule Required: False Position: Named @@ -338,7 +355,7 @@ Name of the pricing tier. ```yaml Type: System.String Parameter Sets: CreateExpanded -Aliases: +Aliases: Sku Required: False Position: Named diff --git a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md index 5a478e32d10c..966e79596bd5 100644 --- a/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md +++ b/src/FrontDoor/FrontDoor/help/Remove-AzFrontDoorContent.md @@ -14,28 +14,28 @@ Removes a content from Front Door. ### PurgeExpanded (Default) ``` -Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName [-SubscriptionId ] +Remove-AzFrontDoorContent -Name -ResourceGroupName [-SubscriptionId ] -ContentPath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### PurgeViaJsonString ``` -Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName [-SubscriptionId ] +Remove-AzFrontDoorContent -Name -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### PurgeViaJsonFilePath ``` -Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName [-SubscriptionId ] +Remove-AzFrontDoorContent -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### Purge ``` -Remove-AzFrontDoorContent -FrontDoorName -ResourceGroupName [-SubscriptionId ] +Remove-AzFrontDoorContent -Name -ResourceGroupName [-SubscriptionId ] -ContentFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` @@ -130,21 +130,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FrontDoorName -Name of the Front Door which is globally unique. - -```yaml -Type: System.String -Parameter Sets: PurgeExpanded, PurgeViaJsonString, PurgeViaJsonFilePath, Purge -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -InputObject Identity Parameter @@ -190,6 +175,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Name +Name of the Front Door which is globally unique. + +```yaml +Type: System.String +Parameter Sets: PurgeExpanded, PurgeViaJsonString, PurgeViaJsonFilePath, Purge +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md index 6681e4b9f4e5..c640d489508f 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md @@ -15,25 +15,53 @@ Update a new Front Door with a Front Door name under the specified subscription ### UpdateExpanded (Default) ``` Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] - [-BackendPool ] [-BackendPoolsSetting ] [-DisableCertificateNameCheck] - [-EnabledState ] [-FriendlyName ] [-FrontendEndpoint ] + [-BackendPool ] [-BackendPoolsSetting ] [-EnabledState ] + [-FriendlyName ] [-FrontendEndpoint ] [-HealthProbeSetting ] [-LoadBalancingSetting ] [-RoutingRule ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### UpdateViaJsonFilePath +### ByResourceIdParameterSet ``` Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] - [-DisableCertificateNameCheck] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-BackendPool ] [-EnabledState ] [-FrontendEndpoint ] + [-HealthProbeSetting ] [-LoadBalancingSetting ] + [-RoutingRule ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### UpdateViaJsonString +### ByResourceIdWithCertificateNameCheckParameterSet ``` Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] - [-DisableCertificateNameCheck] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-BackendPool ] [-EnabledState ] [-FrontendEndpoint ] + [-HealthProbeSetting ] [-LoadBalancingSetting ] + [-RoutingRule ] [-Tag ] [-DisableCertificateNameCheck] [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### ByResourceIdWithBackendPoolsSettingParameterSet +``` +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] + [-BackendPool ] [-BackendPoolsSetting ] [-EnabledState ] + [-FrontendEndpoint ] [-HealthProbeSetting ] + [-LoadBalancingSetting ] [-RoutingRule ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaJsonFilePath +``` +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaJsonString +``` +Set-AzFrontDoor -Name -ResourceGroupName [-SubscriptionId ] -JsonString + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -167,7 +195,7 @@ Backend pools available to routing rules. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByResourceIdParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet Aliases: Required: False @@ -182,7 +210,7 @@ Settings for all backendPools ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByResourceIdWithBackendPoolsSettingParameterSet Aliases: Required: False @@ -212,7 +240,7 @@ Accept wildcard characters: False ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: ByResourceIdWithCertificateNameCheckParameterSet Aliases: Required: False @@ -228,7 +256,7 @@ Permitted values are 'Enabled' or 'Disabled' ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByResourceIdParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet Aliases: Required: False @@ -258,7 +286,7 @@ Frontend endpoints available to routing rules. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByResourceIdParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet Aliases: Required: False @@ -273,7 +301,7 @@ Health probe settings associated with this Front Door instance. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByResourceIdParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet Aliases: Required: False @@ -318,7 +346,7 @@ Load balancing settings associated with this Front Door instance. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByResourceIdParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet Aliases: Required: False @@ -378,7 +406,7 @@ Routing rules associated with this Front Door. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByResourceIdParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet Aliases: Required: False @@ -409,7 +437,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByResourceIdParameterSet, ByResourceIdWithCertificateNameCheckParameterSet, ByResourceIdWithBackendPoolsSettingParameterSet Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md index 2fb087ea53b2..4cb36ffcc337 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md @@ -23,23 +23,27 @@ Update a new Rules Engine Configuration with the specified name within the speci ## EXAMPLES -### Example 1: Get an existing rules engine configuration and add another rules engine rule to it. +### Example 1: {{ Add title here }} ```powershell -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1} +{{ Add description here }} -$rulesEngineRule2 = New-AzFrontDoorRulesEngineRuleObject -Name rules2 -Priority 3 -Action $rulesEngineAction -Set-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1, $rulesEngineRule2 +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` -Name RulesEngineRules ----- ---------------- -myRulesEngine {rules1, rules2} +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} ``` -Get an existing rules engine configuration and add another rules engine rule to it. +{{ Add description here }} ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md index 9a1ea406ca88..eaad13c90f4d 100644 --- a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md @@ -18,15 +18,30 @@ Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-Subscri [-CustomRule ] [-Etag ] [-ManagedRuleSet ] [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-EnabledState ] [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] - [-RequestBodyCheck ] [-JavascriptChallengeExpirationInMinutes ] [-SkuName ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-RequestBodyCheck ] [-JavascriptChallengeExpirationInMinutes ] + [-CaptchaExpirationInMinutes ] [-SkuName ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### ByFieldsParameterSet +``` +Update-AzFrontDoorWafPolicy [-Name ] [-ResourceGroupName ] [-SubscriptionId ] + [-CustomRule ] [-Etag ] [-ManagedRuleSet ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-EnabledState ] + [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] + [-RequestBodyCheck ] [-JavascriptChallengeExpirationInMinutes ] + [-CaptchaExpirationInMinutes ] [-SkuName ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzFrontDoorWafPolicy -InputObject [-CustomRule ] [-Etag ] - [-ManagedRuleSet ] [-SkuName ] [-Tag ] [-DefaultProfile ] + [-ManagedRuleSet ] [-CustomBlockResponseBody ] + [-CustomBlockResponseStatusCode ] [-EnabledState ] + [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] + [-RequestBodyCheck ] [-JavascriptChallengeExpirationInMinutes ] + [-CaptchaExpirationInMinutes ] [-SkuName ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -98,13 +113,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -CaptchaExpirationInMinutes +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. + +```yaml +Type: System.Nullable`1[System.Int32] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -CustomBlockResponseBody If the action type is block, customer can override the response body. The body must be specified in base64 encoding. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -118,8 +150,8 @@ Accept wildcard characters: False If the action type is block, customer can override the response status code. ```yaml -Type: System.Int32 -Parameter Sets: UpdateExpanded +Type: System.Nullable`1[System.Int32] +Parameter Sets: (All) Aliases: Required: False @@ -166,7 +198,7 @@ Defaults to Enabled if not specified. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -212,8 +244,8 @@ This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. ```yaml -Type: System.Int32 -Parameter Sets: UpdateExpanded +Type: System.Nullable`1[System.Int32] +Parameter Sets: (All) Aliases: Required: False @@ -228,7 +260,7 @@ Defines rules that scrub sensitive fields in the Web Application Firewall logs. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -244,7 +276,7 @@ List of rule sets. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] Parameter Sets: (All) -Aliases: +Aliases: ManagedRule Required: False Position: Named @@ -258,7 +290,7 @@ Describes if it is in detection mode or prevention mode at policy level. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -283,6 +315,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` +```yaml +Type: System.String +Parameter Sets: ByFieldsParameterSet +Aliases: PolicyName + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously @@ -303,7 +347,7 @@ If action type is redirect, this field represents redirect URL for the client. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -318,7 +362,7 @@ Describes if policy managed rules will inspect the request body content. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -343,6 +387,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` +```yaml +Type: System.String +Parameter Sets: ByFieldsParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SkuName Name of the pricing tier. @@ -364,7 +420,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, ByFieldsParameterSet Aliases: Required: False From c78d29d42bedf2191b250f13ad4b9fbd1b66e334 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 22 Oct 2025 13:08:29 +1100 Subject: [PATCH 20/30] change docs --- .../Properties/AssemblyInfo.cs | 3 - .../Disable-AzFrontDoorCustomDomainHttps.md | 28 ------- .../Enable-AzFrontDoorCustomDomainHttps.md | 59 -------------- .../docs/Get-AzFrontDoorFrontendEndpoint.md | 34 +++++--- .../New-AzFrontDoorRulesEngineActionObject.md | 51 ------------ .../New-AzFrontDoorRulesEngineRuleObject.md | 22 ----- .../docs/Set-AzFrontDoor.md | 78 ------------------ .../docs/Set-AzFrontDoorRulesEngine.md | 27 +++++-- .../Disable-AzFrontDoorCustomDomainHttps.md | 30 +------ .../Enable-AzFrontDoorCustomDomainHttps.md | 59 -------------- .../Get-AzFrontDoorFrontendEndpoint.md | 31 ++++--- .../New-AzFrontDoorRulesEngineActionObject.md | 54 ------------- .../New-AzFrontDoorRulesEngineRuleObject.md | 23 ------ .../examples/Set-AzFrontDoor.md | 81 ------------------- .../examples/Set-AzFrontDoorRulesEngine.md | 28 ++++--- .../FrontDoor.Autorest/generate-info.json | 2 +- src/FrontDoor/FrontDoor.sln | 28 +++---- .../Disable-AzFrontDoorCustomDomainHttps.md | 28 ------- .../Enable-AzFrontDoorCustomDomainHttps.md | 59 -------------- .../help/Get-AzFrontDoorFrontendEndpoint.md | 34 +++++--- .../New-AzFrontDoorRulesEngineActionObject.md | 49 ----------- .../New-AzFrontDoorRulesEngineRuleObject.md | 22 ----- .../FrontDoor/help/Set-AzFrontDoor.md | 78 ------------------ .../help/Set-AzFrontDoorRulesEngine.md | 27 +++++-- 24 files changed, 143 insertions(+), 792 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs index 97a9784bd2b0..95c2780d31cd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -25,6 +25,3 @@ [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - - - diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md index aa1136c04ed2..4228614e103d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Disable-AzFrontDoorCustomDomainHttps.md @@ -92,34 +92,6 @@ Type : Microsoft.Network/frontdoors/frontendendpoint Disable HTTPS for a custom domain with PSFrontendEndpoint object. -### Example 3: Disable HTTPS for a custom domain with ResourceId. -```powershell -Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabling -CustomHttpsProvisioningSubstate : DeletingCertificate -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with ResourceId as $resourceId. - ## PARAMETERS ### -AsJob diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md index d1dde8c2be1d..337dfc36e897 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md @@ -167,65 +167,6 @@ Type : Microsoft.Network/frontdoors/frontendendpoint Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. -### Example 4: Enable HTTPS for a custom domain with resource id using Front Door managed certificate. -```powershell -Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.2 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" with resource id $resourceId using Front Door managed certificate. - -### Example 5: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. -```powershell -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : AzureKeyVault -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.0 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. - ## PARAMETERS ### -AsJob diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md index ae35eb24531e..e20a40ac6003 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md @@ -47,27 +47,41 @@ Gets a Frontend endpoint with the specified name within the specified Front Door ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Get all frontend endpoints from a Front Door ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName SessionAffinityEnabledState SessionAffinityTtlSecond WebApplicationFirewallPolicyLinkId CustomHttpsProvisioningState ResourceState +-------- --------------------------- ------------------------ ---------------------------------- ---------------------------- ------------- +myFrontDoor-azurefd.net Disabled 0 Enabled Enabled +www.contoso.com Disabled 0 /subscriptions/.../myWafPolicy Enabled Enabled ``` -{{ Add description here }} +Get all frontend endpoints configured in the specified Front Door resource. -### Example 2: {{ Add title here }} +### Example 2: Get a specific frontend endpoint by name ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myFrontDoor-azurefd-net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +HostName : myFrontDoor-azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +CustomHttpsProvisioningState : Enabled +CustomHttpsProvisioningSubstate : CertificateProvisioned +CertificateSource : FrontDoor +MinimumTlsVersion : 1.2 +ResourceState : Enabled +Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/frontendEndpoints/myFrontDoor-azurefd-net +Name : myFrontDoor-azurefd-net +Type : Microsoft.Network/frontDoors/frontendEndpoints +``` + +Get details of a specific frontend endpoint from the Front Door configuration. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md index 71d7eaf74892..c1b1b5eebef3 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md @@ -43,19 +43,6 @@ Create an in-memory object for RulesEngineAction. ### Example 1: Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. ```powershell $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" -$headerActions - -HeaderName HeaderActionType Value ----------- ---------------- ----- -X-Content-Type-Options Append nosniff - -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {X-Content-Type-Options} - ``` Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. @@ -63,29 +50,6 @@ Create a rules engine action that append response header value and show how to v ### Example 2: Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. ```powershell $rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true -$rulesEngineAction - -RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride -------------------- -------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineAction.RequestHeaderAction - -HeaderName HeaderActionType Value ----------- ---------------- ----- -headeraction1 Overwrite -headeraction2 Append - -$rulesEngineAction.ResponseHeaderAction -$rulesEngineAction.RouteConfigurationOverride - -CustomForwardingPath : -ForwardingProtocol : HttpsOnly -BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi - ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool -QueryParameterStripDirective : StripNone -DynamicCompression : Disabled -EnableCaching : True ``` Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. @@ -93,21 +57,6 @@ Create a rules engine action that forwards the requests to a specific backend po ### Example 3: Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. ```powershell $rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration - -$rulesEngineAction.RouteConfigurationOverride - -RedirectType : Moved -RedirectProtocol : MatchRequest -CustomHost : www.contoso.com -CustomPath : -CustomFragment : -CustomQueryString : - ``` Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md index 7142511e1067..cd5c696f35c1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineRuleObject.md @@ -25,28 +25,6 @@ Create an in-memory object for RulesEngineRule. ### Example 1: Create new PSRulesEngineRule object and demonstrate how to see the subfields. ```powershell New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition - -Name : rules1 -Priority : 0 -MatchProcessingBehavior : Stop -MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} -Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction - - -$rulesEngineRule1.Action - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineRule1.MatchCondition[0] - -RulesEngineMatchVariable : RequestHeader -RulesEngineMatchValue : {allowoverride} -Selector : Rules-Engine-Route-Forward -RulesEngineOperator : Equal -NegateCondition : False -Transforms : {Lowercase, Uppercase} ``` Create new PSRulesEngineRule object and demonstrate how to see the subfields. diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md index 144eaef06f27..da463f58a348 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoor.md @@ -92,84 +92,6 @@ Type : Microsoft.Network/frontdoors update an existing FrontDoor. -### Example 2: update an existing Front Door with PSFrontDoor object. -```powershell -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. - -### Example 3: update an existing Front Door with ResourceId -```powershell -Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. - -### Example 4: update BackendPoolSetting property EnforceCertificateNameCheck of an existing Front Door with -DisableCertificateNameCheck switch parameter -```powershell -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {PSBackendPoolsSetting object with EnforceCertificateNameCheck is set to Disabled} -EnforceCertificateNameCheck : Disabled -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. - ## PARAMETERS ### -AsJob diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md index 0891a6714916..75a8bb5e3d60 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Set-AzFrontDoorRulesEngine.md @@ -23,27 +23,38 @@ Update a new Rules Engine Configuration with the specified name within the speci ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Update a rules engine configuration with new header action rules ```powershell -{{ Add code here }} +$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Overwrite" -HeaderName "Strict-Transport-Security" -Value "max-age=63072000; includeSubDomains; preload" +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions +$matchCondition = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestPath -Operator BeginsWith -MatchValue "/secure" +$rulesEngineRule = New-AzFrontDoorRulesEngineRuleObject -Name "SecurityHeaderRule" -Priority 1 -Action $rulesEngineAction -MatchCondition $matchCondition -MatchProcessingBehavior Continue +Set-AzFrontDoorRulesEngine -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myRulesEngine" -Rule $rulesEngineRule ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {SecurityHeaderRule} ``` -{{ Add description here }} +Update an existing rules engine configuration to add a new rule that applies security headers to requests matching a specific path pattern. -### Example 2: {{ Add title here }} +### Example 2: Update rules engine configuration to redirect specific paths ```powershell -{{ Add code here }} +$redirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost "www.contoso.com" -CustomPath "/newlocation" +$matchCondition = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestPath -Operator Equal -MatchValue "/oldpath" +$redirectRule = New-AzFrontDoorRulesEngineRuleObject -Name "RedirectOldPath" -Priority 0 -Action $redirectAction -MatchCondition $matchCondition -MatchProcessingBehavior Stop +Set-AzFrontDoorRulesEngine -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myRulesEngine" -Rule $redirectRule ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {RedirectOldPath} ``` -{{ Add description here }} +Update the rules engine configuration to redirect requests from an old path to a new location with a 301 Moved redirect. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md index a3245d74e974..0c45a8919abd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Disable-AzFrontDoorCustomDomainHttps.md @@ -52,32 +52,4 @@ Name : frontendpointname1-custom-xyz Type : Microsoft.Network/frontdoors/frontendendpoints ``` -Disable HTTPS for a custom domain with PSFrontendEndpoint object. - -### Example 3: Disable HTTPS for a custom domain with ResourceId. -```powershell -Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabling -CustomHttpsProvisioningSubstate : DeletingCertificate -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with ResourceId as $resourceId. \ No newline at end of file +Disable HTTPS for a custom domain with PSFrontendEndpoint object. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md index d26ea5a1a871..62ae0e4c6267 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Enable-AzFrontDoorCustomDomainHttps.md @@ -85,62 +85,3 @@ Type : Microsoft.Network/frontdoors/frontendendpoint ``` Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. - -### Example 4: Enable HTTPS for a custom domain with resource id using Front Door managed certificate. -```powershell -Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.2 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" with resource id $resourceId using Front Door managed certificate. - -### Example 5: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. -```powershell -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : AzureKeyVault -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.0 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md index 0371f56c36d2..d696f1f84ac0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Get-AzFrontDoorFrontendEndpoint.md @@ -1,22 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Get all frontend endpoints from a Front Door ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName SessionAffinityEnabledState SessionAffinityTtlSecond WebApplicationFirewallPolicyLinkId CustomHttpsProvisioningState ResourceState +-------- --------------------------- ------------------------ ---------------------------------- ---------------------------- ------------- +myFrontDoor-azurefd.net Disabled 0 Enabled Enabled +www.contoso.com Disabled 0 /subscriptions/.../myWafPolicy Enabled Enabled ``` -{{ Add description here }} +Get all frontend endpoints configured in the specified Front Door resource. -### Example 2: {{ Add title here }} +### Example 2: Get a specific frontend endpoint by name ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myFrontDoor-azurefd-net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName : myFrontDoor-azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +CustomHttpsProvisioningState : Enabled +CustomHttpsProvisioningSubstate : CertificateProvisioned +CertificateSource : FrontDoor +MinimumTlsVersion : 1.2 +ResourceState : Enabled +Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/frontendEndpoints/myFrontDoor-azurefd-net +Name : myFrontDoor-azurefd-net +Type : Microsoft.Network/frontDoors/frontendEndpoints ``` -{{ Add description here }} - +Get details of a specific frontend endpoint from the Front Door configuration. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md index 987718e44f72..ca153da32f1a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineActionObject.md @@ -1,20 +1,6 @@ ### Example 1: Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. - ```powershell $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" -$headerActions - -HeaderName HeaderActionType Value ----------- ---------------- ----- -X-Content-Type-Options Append nosniff - -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {X-Content-Type-Options} - ``` Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. @@ -23,52 +9,12 @@ Create a rules engine action that append response header value and show how to v ```powershell $rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true -$rulesEngineAction - -RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride -------------------- -------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineAction.RequestHeaderAction - -HeaderName HeaderActionType Value ----------- ---------------- ----- -headeraction1 Overwrite -headeraction2 Append - -$rulesEngineAction.ResponseHeaderAction -$rulesEngineAction.RouteConfigurationOverride - -CustomForwardingPath : -ForwardingProtocol : HttpsOnly -BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi - ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool -QueryParameterStripDirective : StripNone -DynamicCompression : Disabled -EnableCaching : True ``` Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. ### Example 3: Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. - ```powershell $rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration - -$rulesEngineAction.RouteConfigurationOverride - -RedirectType : Moved -RedirectProtocol : MatchRequest -CustomHost : www.contoso.com -CustomPath : -CustomFragment : -CustomQueryString : - ``` - Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md index 23773fc0849d..09689bc0a177 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/New-AzFrontDoorRulesEngineRuleObject.md @@ -2,30 +2,7 @@ ```powershell New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition - -Name : rules1 -Priority : 0 -MatchProcessingBehavior : Stop -MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} -Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction - - -$rulesEngineRule1.Action - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineRule1.MatchCondition[0] - -RulesEngineMatchVariable : RequestHeader -RulesEngineMatchValue : {allowoverride} -Selector : Rules-Engine-Route-Forward -RulesEngineOperator : Equal -NegateCondition : False -Transforms : {Lowercase, Uppercase} ``` - Create new PSRulesEngineRule object and demonstrate how to see the subfields. ### Example 2: Expect output when passing in invalid priority value. diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md index 74e1c72bb538..848567a7d210 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoor.md @@ -22,85 +22,4 @@ Name : frontdoor1 Type : Microsoft.Network/frontdoors ``` -update an existing FrontDoor. - -### Example 2: update an existing Front Door with PSFrontDoor object. -```powershell -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. - -### Example 3: update an existing Front Door with ResourceId -```powershell -Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. - -### Example 4: update BackendPoolSetting property EnforceCertificateNameCheck of an existing Front Door with -DisableCertificateNameCheck switch parameter -Front Door to be updated can be identified using FrontDoorName and ResourceGroupName, PSFrontDoor object, or ResourceId. (See above 3 examples for example) -The below example uses PSFrontDoor object. - -```powershell -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {PSBackendPoolsSetting object with EnforceCertificateNameCheck is set to Disabled} -EnforceCertificateNameCheck : Disabled -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - update an existing FrontDoor. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md index 0371f56c36d2..a670fd62642c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor.Autorest/examples/Set-AzFrontDoorRulesEngine.md @@ -1,22 +1,32 @@ -### Example 1: {{ Add title here }} +### Example 1: Update a rules engine configuration with new header action rules ```powershell -{{ Add code here }} +$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Overwrite" -HeaderName "Strict-Transport-Security" -Value "max-age=63072000; includeSubDomains; preload" +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions +$matchCondition = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestPath -Operator BeginsWith -MatchValue "/secure" +$rulesEngineRule = New-AzFrontDoorRulesEngineRuleObject -Name "SecurityHeaderRule" -Priority 1 -Action $rulesEngineAction -MatchCondition $matchCondition -MatchProcessingBehavior Continue +Set-AzFrontDoorRulesEngine -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myRulesEngine" -Rule $rulesEngineRule ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {SecurityHeaderRule} ``` -{{ Add description here }} +Update an existing rules engine configuration to add a new rule that applies security headers to requests matching a specific path pattern. -### Example 2: {{ Add title here }} +### Example 2: Update rules engine configuration to redirect specific paths ```powershell -{{ Add code here }} +$redirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost "www.contoso.com" -CustomPath "/newlocation" +$matchCondition = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestPath -Operator Equal -MatchValue "/oldpath" +$redirectRule = New-AzFrontDoorRulesEngineRuleObject -Name "RedirectOldPath" -Priority 0 -Action $redirectAction -MatchCondition $matchCondition -MatchProcessingBehavior Stop +Set-AzFrontDoorRulesEngine -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myRulesEngine" -Rule $redirectRule ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {RedirectOldPath} ``` -{{ Add description here }} - +Update the rules engine configuration to redirect requests from an old path to a new location with a 301 Moved redirect. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index f9d345d6452c..a9585f378415 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "a05f6c49-36aa-4490-8c7d-fd18593ec772" + "generate_Id": "9b920e8b-fd2f-427f-ba32-707eea39749d" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 5d6ee11c77f7..7575a64dcc08 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|x64.ActiveCfg = Debug|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|x64.Build.0 = Debug|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|x86.ActiveCfg = Debug|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Debug|x86.Build.0 = Debug|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|Any CPU.Build.0 = Release|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|x64.ActiveCfg = Release|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|x64.Build.0 = Release|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|x86.ActiveCfg = Release|Any CPU - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C}.Release|x86.Build.0 = Release|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|x64.ActiveCfg = Debug|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|x64.Build.0 = Debug|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|x86.ActiveCfg = Debug|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|x86.Build.0 = Debug|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|Any CPU.Build.0 = Release|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|x64.ActiveCfg = Release|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|x64.Build.0 = Release|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|x86.ActiveCfg = Release|Any CPU + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {FA23E13B-8F92-43F6-9DD9-17AA46FEA41C} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md index e5cd37392a10..1903d9805418 100644 --- a/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Disable-AzFrontDoorCustomDomainHttps.md @@ -93,34 +93,6 @@ Type : Microsoft.Network/frontdoors/frontendendpoint Disable HTTPS for a custom domain with PSFrontendEndpoint object. -### Example 3: Disable HTTPS for a custom domain with ResourceId. -```powershell -Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Disabling -CustomHttpsProvisioningSubstate : DeletingCertificate -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with ResourceId as $resourceId. - ## PARAMETERS ### -AsJob diff --git a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md index 09d8fd31fa5a..99da931ce61b 100644 --- a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md @@ -169,65 +169,6 @@ Type : Microsoft.Network/frontdoors/frontendendpoint Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate. -### Example 4: Enable HTTPS for a custom domain with resource id using Front Door managed certificate. -```powershell -Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : FrontDoor -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.2 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" with resource id $resourceId using Front Door managed certificate. - -### Example 5: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. -```powershell -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" -``` - -```output -HostName : frontendpointname1.custom.xyz -SessionAffinityEnabledState : Disabled -SessionAffinityTtlSeconds : 0 -WebApplicationFirewallPolicyLink : -Backends : -CustomHttpsProvisioningState : Enabling -CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest -CertificateSource : AzureKeyVault -ProtocolType : ServerNameIndication -MinimumTlsVersion : 1.0 -Vault : -SecretName : -SecretVersion : -CertificateType : -ResourceState : Enabled -Id : /subscriptions/{guid}/resourcegroups/resourcegroup1 - /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz -Name : frontendpointname1-custom-xyz -Type : Microsoft.Network/frontdoors/frontendendpoints -``` - -Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the latest version to enable certificate auto-rotation. - ## PARAMETERS ### -AsJob diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md index fde2a6494680..c6d5c5408148 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md @@ -49,27 +49,41 @@ Gets a Frontend endpoint with the specified name within the specified Front Door ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Get all frontend endpoints from a Front Door ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +HostName SessionAffinityEnabledState SessionAffinityTtlSecond WebApplicationFirewallPolicyLinkId CustomHttpsProvisioningState ResourceState +-------- --------------------------- ------------------------ ---------------------------------- ---------------------------- ------------- +myFrontDoor-azurefd.net Disabled 0 Enabled Enabled +www.contoso.com Disabled 0 /subscriptions/.../myWafPolicy Enabled Enabled ``` -{{ Add description here }} +Get all frontend endpoints configured in the specified Front Door resource. -### Example 2: {{ Add title here }} +### Example 2: Get a specific frontend endpoint by name ```powershell -{{ Add code here }} +Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myFrontDoor-azurefd-net" ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +HostName : myFrontDoor-azurefd.net +SessionAffinityEnabledState : Disabled +SessionAffinityTtlSeconds : 0 +WebApplicationFirewallPolicyLink : +CustomHttpsProvisioningState : Enabled +CustomHttpsProvisioningSubstate : CertificateProvisioned +CertificateSource : FrontDoor +MinimumTlsVersion : 1.2 +ResourceState : Enabled +Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/frontendEndpoints/myFrontDoor-azurefd-net +Name : myFrontDoor-azurefd-net +Type : Microsoft.Network/frontDoors/frontendEndpoints +``` + +Get details of a specific frontend endpoint from the Front Door configuration. ## PARAMETERS diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md index 63b7b61fceb4..c39c8ae1253b 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md @@ -31,18 +31,6 @@ Create an in-memory object for RulesEngineAction. ### Example 1: Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. ```powershell $headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" -$headerActions - -HeaderName HeaderActionType Value ----------- ---------------- ----- -X-Content-Type-Options Append nosniff - -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {X-Content-Type-Options} ``` Create a rules engine action that append response header value and show how to view the properties of the rules engine action created. @@ -50,29 +38,6 @@ Create a rules engine action that append response header value and show how to v ### Example 2: Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. ```powershell $rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true -$rulesEngineAction - -RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride -------------------- -------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineAction.RequestHeaderAction - -HeaderName HeaderActionType Value ----------- ---------------- ----- -headeraction1 Overwrite -headeraction2 Append - -$rulesEngineAction.ResponseHeaderAction -$rulesEngineAction.RouteConfigurationOverride - -CustomForwardingPath : -ForwardingProtocol : HttpsOnly -BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi - ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool -QueryParameterStripDirective : StripNone -DynamicCompression : Disabled -EnableCaching : True ``` Create a rules engine action that forwards the requests to a specific backend pool and show how to view the properties of the rules engine action created. @@ -80,20 +45,6 @@ Create a rules engine action that forwards the requests to a specific backend po ### Example 3: Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. ```powershell $rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration - -$rulesEngineAction.RouteConfigurationOverride - -RedirectType : Moved -RedirectProtocol : MatchRequest -CustomHost : www.contoso.com -CustomPath : -CustomFragment : -CustomQueryString : ``` Create a rules engine action that redirects the requests to another host and show how to view the properties of the rules engine action created. diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md index 5908a8659847..45d58fb9e0fe 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineRuleObject.md @@ -26,28 +26,6 @@ Create an in-memory object for RulesEngineRule. ### Example 1: Create new PSRulesEngineRule object and demonstrate how to see the subfields. ```powershell New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition - -Name : rules1 -Priority : 0 -MatchProcessingBehavior : Stop -MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} -Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction - - -$rulesEngineRule1.Action - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineRule1.MatchCondition[0] - -RulesEngineMatchVariable : RequestHeader -RulesEngineMatchValue : {allowoverride} -Selector : Rules-Engine-Route-Forward -RulesEngineOperator : Equal -NegateCondition : False -Transforms : {Lowercase, Uppercase} ``` Create new PSRulesEngineRule object and demonstrate how to see the subfields. diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md index c640d489508f..da7e23e696f4 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoor.md @@ -95,84 +95,6 @@ Type : Microsoft.Network/frontdoors update an existing FrontDoor. -### Example 2: update an existing Front Door with PSFrontDoor object. -```powershell -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. - -### Example 3: update an existing Front Door with ResourceId -```powershell -Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {backendPoolsSetting1} -EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck} -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. - -### Example 4: update BackendPoolSetting property EnforceCertificateNameCheck of an existing Front Door with -DisableCertificateNameCheck switch parameter -```powershell -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck -``` - -```output -FriendlyName : frontdoor1 -RoutingRules : {routingrule1} -BackendPools : {backendpool1} -BackendPoolsSetting : {PSBackendPoolsSetting object with EnforceCertificateNameCheck is set to Disabled} -EnforceCertificateNameCheck : Disabled -HealthProbeSettings : {healthProbeSetting1} -LoadBalancingSettings : {loadbalancingsetting1} -FrontendEndpoints : {frontendendpoint1} -EnabledState : Enabled -ResourceState : Enabled -ProvisioningState : Succeeded -Cname : -Tags : {tag1, tag2} -Id : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1 -Name : frontdoor1 -Type : Microsoft.Network/frontdoor1 -``` - -update an existing FrontDoor. - ## PARAMETERS ### -AsJob diff --git a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md index 4cb36ffcc337..eaf0b1ed1d78 100644 --- a/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md +++ b/src/FrontDoor/FrontDoor/help/Set-AzFrontDoorRulesEngine.md @@ -23,27 +23,38 @@ Update a new Rules Engine Configuration with the specified name within the speci ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Update a rules engine configuration with new header action rules ```powershell -{{ Add code here }} +$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Overwrite" -HeaderName "Strict-Transport-Security" -Value "max-age=63072000; includeSubDomains; preload" +$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions +$matchCondition = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestPath -Operator BeginsWith -MatchValue "/secure" +$rulesEngineRule = New-AzFrontDoorRulesEngineRuleObject -Name "SecurityHeaderRule" -Priority 1 -Action $rulesEngineAction -MatchCondition $matchCondition -MatchProcessingBehavior Continue +Set-AzFrontDoorRulesEngine -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myRulesEngine" -Rule $rulesEngineRule ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {SecurityHeaderRule} ``` -{{ Add description here }} +Update an existing rules engine configuration to add a new rule that applies security headers to requests matching a specific path pattern. -### Example 2: {{ Add title here }} +### Example 2: Update rules engine configuration to redirect specific paths ```powershell -{{ Add code here }} +$redirectAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost "www.contoso.com" -CustomPath "/newlocation" +$matchCondition = New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestPath -Operator Equal -MatchValue "/oldpath" +$redirectRule = New-AzFrontDoorRulesEngineRuleObject -Name "RedirectOldPath" -Priority 0 -Action $redirectAction -MatchCondition $matchCondition -MatchProcessingBehavior Stop +Set-AzFrontDoorRulesEngine -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myRulesEngine" -Rule $redirectRule ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Name RulesEngineRules +---- ---------------- +myRulesEngine {RedirectOldPath} ``` -{{ Add description here }} +Update the rules engine configuration to redirect requests from an old path to a new location with a 301 Moved redirect. ## PARAMETERS From e5451e42ffc88c18fed972245ce48cef41d31a89 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 22 Oct 2025 15:01:27 +1100 Subject: [PATCH 21/30] modify alias --- .../Properties/AssemblyInfo.cs | 1 - src/FrontDoor/FrontDoor.Autorest/README.md | 22 +++++++++-- .../Get-AzFrontDoorFrontendEndpoint.ps1 | 5 ++- .../New-AzFrontDoorRoutingRuleObject.ps1 | 2 + .../New-AzFrontDoorWafCustomRuleObject.ps1 | 6 +-- .../New-AzFrontDoorWafManagedRuleObject.ps1 | 5 ++- .../custom/New-AzFrontDoorWafPolicy.ps1 | 38 +++++++++---------- .../custom/Update-AzFrontDoorWafPolicy.ps1 | 23 ++++++----- .../docs/Get-AzFrontDoorFrontendEndpoint.md | 18 ++++++--- .../docs/New-AzFrontDoorRoutingRuleObject.md | 4 +- .../New-AzFrontDoorWafCustomRuleObject.md | 4 +- .../New-AzFrontDoorWafManagedRuleObject.md | 20 +++++++++- .../docs/New-AzFrontDoorWafPolicy.md | 4 +- .../docs/Update-AzFrontDoorWafPolicy.md | 8 ++-- .../FrontDoor.Autorest/generate-info.json | 2 +- .../Update-AzFrontDoorWafPolicy.Tests.ps1 | 2 +- src/FrontDoor/FrontDoor.sln | 28 +++++++------- .../help/Get-AzFrontDoorFrontendEndpoint.md | 28 ++++++++------ .../help/New-AzFrontDoorRoutingRuleObject.md | 4 +- .../New-AzFrontDoorWafCustomRuleObject.md | 4 +- .../New-AzFrontDoorWafManagedRuleObject.md | 16 +++++++- .../help/New-AzFrontDoorWafPolicy.md | 4 +- .../help/Update-AzFrontDoorWafPolicy.md | 8 ++-- 23 files changed, 161 insertions(+), 95 deletions(-) rename src/FrontDoor/FrontDoor.Autorest/custom/{autogen-model-cmdlets => }/New-AzFrontDoorWafManagedRuleObject.ps1 (97%) diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs index 95c2780d31cd..b6db8e525a56 100644 --- a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -24,4 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - diff --git a/src/FrontDoor/FrontDoor.Autorest/README.md b/src/FrontDoor/FrontDoor.Autorest/README.md index aa2486e2373c..e1a8c541bc02 100644 --- a/src/FrontDoor/FrontDoor.Autorest/README.md +++ b/src/FrontDoor/FrontDoor.Autorest/README.md @@ -122,8 +122,8 @@ directive: cmdlet-name: New-AzFrontDoorWafCustomRuleGroupByVariableObject - model-name: ManagedRuleExclusion cmdlet-name: New-AzFrontDoorWafManagedRuleExclusionObject - - model-name: ManagedRuleSet - cmdlet-name: New-AzFrontDoorWafManagedRuleObject + # - model-name: ManagedRuleSet + # cmdlet-name: New-AzFrontDoorWafManagedRuleObject - model-name: PolicySettingsLogScrubbing cmdlet-name: New-AzFrontDoorWafLogScrubbingSettingObject - model-name: WebApplicationFirewallScrubbingRules @@ -245,6 +245,11 @@ directive: set: default: script: '"global"' + - where: + subject: WafPolicy + parameter-name: CustomRule + set: + parameter-name: Customrule # Clear-AzFrontDoorEndpointContent rename to Remove-AzFrontDoorContent - where: @@ -360,7 +365,7 @@ directive: model-name: WebApplicationFirewallPolicy property-name: CustomRuleRules set: - property-name: CustomRule + property-name: Customrule - where: model-name: ManagedRuleExclusion @@ -426,6 +431,15 @@ directive: property-name: LogScrubbing set: property-name: LogScrubbingSetting - + - where: + model-name: CustomRule + property-name: GroupBy + set: + property-name: GroupByCustomRule + - where: + model-name: RulesEngine + property-name: Rule + set: + property: RulesEngineRule ``` diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Get-AzFrontDoorFrontendEndpoint.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Get-AzFrontDoorFrontendEndpoint.ps1 index 4f023f2e5b97..f44da78632b2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Get-AzFrontDoorFrontendEndpoint.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Get-AzFrontDoorFrontendEndpoint.ps1 @@ -55,10 +55,11 @@ https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfronte #> function Get-AzFrontDoorFrontendEndpoint { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='ByFieldsParameterSet', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] [System.String] # Name of the Front Door which is globally unique. @@ -66,6 +67,7 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet')] [Parameter(ParameterSetName='ByObjectParameterSet')] [Alias('FrontendEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] @@ -75,6 +77,7 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='ByFieldsParameterSet', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] [System.String] # Name of the Resource group within the Azure subscription. diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 index 04ddd6782164..97063fb25b7a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 @@ -53,12 +53,14 @@ function New-AzFrontDoorRoutingRuleObject { [string] $FrontDoorName, [Parameter(HelpMessage="The route patterns of the rule.")] + [Alias('PatternToMatch')] [string[]] $PatternsToMatch = @('/*'), [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] $RouteConfiguration, [Parameter(HelpMessage="Resource ID.")] + [Alias('RulesEngineName')] [string] $RuleEngineName, [Parameter(HelpMessage="Resource ID.")] diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 index 54cd1950ce7f..f9b9d179ede9 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafCustomRuleObject.ps1 @@ -42,7 +42,7 @@ function New-AzFrontDoorWafCustomRuleObject { [Parameter(HelpMessage="Describes the list of variables to group the rate limit requests.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable[]] [Alias("CustomRule")] - $GroupBy, + $GroupByCustomRule, [Parameter(Mandatory, HelpMessage="List of match conditions.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition[]] $MatchCondition, @@ -72,8 +72,8 @@ function New-AzFrontDoorWafCustomRuleObject { $Object.Action = $Action } $Object.EnabledState = $EnabledState - if ($PSBoundParameters.ContainsKey('GroupBy')) { - $Object.GroupBy = $GroupBy + if ($PSBoundParameters.ContainsKey('GroupByCustomRule')) { + $Object.GroupByCustomRule = $GroupByCustomRule } if ($PSBoundParameters.ContainsKey('MatchCondition')) { $Object.MatchCondition = $MatchCondition diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleObject.ps1 similarity index 97% rename from src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleObject.ps1 rename to src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleObject.ps1 index d97fdb86303d..16e93901d1a4 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorWafManagedRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleObject.ps1 @@ -46,7 +46,10 @@ function New-AzFrontDoorWafManagedRuleObject { $Type, [Parameter(Mandatory, HelpMessage="Defines the version of the rule set to use.")] [string] - $Version + $Version, + [Parameter()] + [string] + $Action ) process { diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 index ca06a95540a4..155e047a1d5c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafPolicy.ps1 @@ -16,13 +16,11 @@ <# .Synopsis -create policy with specified rule set name within a resource group. +Create policy with specified rule set name within a resource group. .Description -create policy with specified rule set name within a resource group. +Create policy with specified rule set name within a resource group. .Example -{{ Add code here }} -.Example -{{ Add code here }} +New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" .Outputs Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy @@ -36,20 +34,20 @@ CUSTOMRULE : List of rules MatchCondition >: List of match conditions. MatchValue >: List of possible match values. MatchVariable : Request variable to compare with. - Operator : Comparison type to use for matching with the variable value. + OperatorProperty : Comparison type to use for matching with the variable value. [NegateCondition ]: Describes if the result of this condition should be negated. [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. [Transform >]: List of transforms. Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. RuleType : Describes type of rule. [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Descriibes the list of variables to group the rate limit requests + [GroupByCustomRule >]: Describes the list of variables to group the rate limit requests VariableName : Describes the supported variable for group by [Name ]: Describes the name of the rule. - [RateLimitDurationInMinute ]: Time window for resetting the rate limit count. Default is 1 minute. + [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. [RateLimitThreshold ]: Number of allowed requests per client within the time window. -LOGSCRUBBING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. +LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. MatchVariable : The variable to be scrubbed from the logs. SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. @@ -58,16 +56,16 @@ LOGSCRUBBING : Defines rules that scrub sensitive f [State ]: State of the log scrubbing config. Default value is Enabled. MANAGEDRULESET : List of rule sets. - RuleSetType : Defines the rule set type to use. - RuleSetVersion : Defines the version of the rule set to use. + Type : Defines the rule set type to use. + Version : Defines the version of the rule set to use. [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - MatchVariable : The variable type to be excluded. + Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. Selector : Selector value for which elements in the collection this exclusion applies to. - SelectorMatchOperator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. + Variable : The variable type to be excluded. [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. RuleGroupName : Describes the managed rule group to override. [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [Rule >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. + [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. RuleId : Identifier for the managed rule. [Action ]: Describes the override action to be applied when rule matches. [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. @@ -119,7 +117,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] # List of rules - ${CustomRule}, + ${Customrule}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] @@ -279,9 +277,9 @@ param( $null = $PSBoundParameters.Remove('SkuName') } - $CustomRule = $CustomRule - if ($PSBoundParameters.ContainsKey('CustomRule')) { - $null = $PSBoundParameters.Remove('CustomRule') + $Customrule = $Customrule + if ($PSBoundParameters.ContainsKey('Customrule')) { + $null = $PSBoundParameters.Remove('Customrule') } $ManagedRuleSet = $ManagedRuleSet @@ -339,8 +337,8 @@ param( if (![string]::IsNullOrEmpty($SkuName)) { $PSBoundParameters.Add('SkuName', $SkuName) } - if ($CustomRule) { - $PSBoundParameters.Add('CustomRule', $CustomRule) + if ($Customrule) { + $PSBoundParameters.Add('Customrule', $Customrule) } if ($ManagedRuleSet) { $PSBoundParameters.Add('ManagedRuleSet', $ManagedRuleSet) diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 index f48bf7adf040..522d4b793aae 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Update-AzFrontDoorWafPolicy.ps1 @@ -16,13 +16,17 @@ <# .Synopsis -update policy with specified rule set name within a resource group. +Update policy with specified rule set name within a resource group. .Description -update policy with specified rule set name within a resource group. +Update policy with specified rule set name within a resource group. .Example -{{ Add code here }} +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 .Example -{{ Add code here }} +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection +.Example +Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled +.Example +Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled .Inputs Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity @@ -45,7 +49,7 @@ CUSTOMRULE : List of rules Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. RuleType : Describes type of rule. [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests + [GroupByCustomRule >]: Describes the list of variables to group the rate limit requests VariableName : Describes the supported variable for group by [Name ]: Describes the name of the rule. [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. @@ -78,6 +82,7 @@ MANAGEDRULESET : List of rule sets. [RuleSetAction ]: Defines the rule set action. POLICYSETTING : Describes settings for the policy. + [CaptchaExpirationInMinutes ]: 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. [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. @@ -134,7 +139,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] # List of rules - ${CustomRule}, + ${Customrule}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] @@ -294,9 +299,9 @@ process { $null = $PSBoundParameters.Remove('SkuName') } - $CustomRule = $CustomRule - if ($PSBoundParameters.ContainsKey('CustomRule')) { - $null = $PSBoundParameters.Remove('CustomRule') + $Customrule = $Customrule + if ($PSBoundParameters.ContainsKey('Customrule')) { + $null = $PSBoundParameters.Remove('Customrule') } $ManagedRuleSet = $ManagedRuleSet diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md index e20a40ac6003..1f75e4975aa8 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoorFrontendEndpoint.md @@ -12,10 +12,10 @@ Gets a Frontend endpoint with the specified name within the specified Front Door ## SYNTAX -### List (Default) +### ByFieldsParameterSet (Default) ``` -Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName [-Name ] + [-DefaultProfile ] [] ``` ### ByObjectParameterSet @@ -42,6 +42,12 @@ Get-AzFrontDoorFrontendEndpoint -FrontDoorInputObject -Name [-DefaultProfile ] [] ``` +### List +``` +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets a Frontend endpoint with the specified name within the specified Front Door. @@ -121,7 +127,7 @@ Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: ByFieldsParameterSet, Get, List Aliases: Required: True @@ -151,7 +157,7 @@ Name of the Frontend endpoint which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: ByObjectParameterSet, Get, GetViaIdentityFrontDoor +Parameter Sets: ByFieldsParameterSet, ByObjectParameterSet, Get, GetViaIdentityFrontDoor Aliases: FrontendEndpointName Required: True @@ -166,7 +172,7 @@ Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: ByFieldsParameterSet, Get, List Aliases: Required: True diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md index 27cdf5e28555..fd747913a6ad 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md @@ -347,7 +347,7 @@ The route patterns of the rule. ```yaml Type: System.String[] Parameter Sets: (All) -Aliases: +Aliases: PatternToMatch Required: False Position: Named @@ -452,7 +452,7 @@ Resource ID. ```yaml Type: System.String Parameter Sets: (All) -Aliases: +Aliases: RulesEngineName Required: False Position: Named diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md index 63a3ca482256..833632d7b3db 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md @@ -14,7 +14,7 @@ Create an in-memory object for CustomRule. ``` New-AzFrontDoorWafCustomRuleObject -Action -MatchCondition -Priority - -RuleType [-EnabledState ] [-GroupBy ] [-Name ] + -RuleType [-EnabledState ] [-GroupByCustomRule ] [-Name ] [-RateLimitDurationInMinutes ] [-RateLimitThreshold ] [] ``` @@ -69,7 +69,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -GroupBy +### -GroupByCustomRule Describes the list of variables to group the rate limit requests. ```yaml diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md index 88619aa48567..e60bdb0e9705 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleObject.md @@ -13,8 +13,9 @@ Create an in-memory object for ManagedRuleSet. ## SYNTAX ``` -New-AzFrontDoorWafManagedRuleObject -Type -Version [-Exclusion ] - [-RuleGroupOverride ] [-RuleSetAction ] [] +New-AzFrontDoorWafManagedRuleObject -Type -Version [-Action ] + [-Exclusion ] [-RuleGroupOverride ] + [-RuleSetAction ] [] ``` ## DESCRIPTION @@ -44,6 +45,21 @@ Create a ManagedRule Object ## PARAMETERS +### -Action + + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Exclusion Describes the exclusions that are applied to all rules in the set. diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md index ec61860b2397..4dd994d72941 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md @@ -16,7 +16,7 @@ Create policy with specified rule set name within a resource group. ``` New-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] [-CaptchaExpirationInMinutes ] [-CustomBlockResponseBody ] - [-CustomBlockResponseStatusCode ] [-CustomRule ] [-EnabledState ] + [-CustomBlockResponseStatusCode ] [-Customrule ] [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] @@ -120,7 +120,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomRule +### -Customrule List of rules ```yaml diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md index 6eee3e2a39ba..2c591ab327b8 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md @@ -16,7 +16,7 @@ Update policy with specified rule set name within a resource group. ``` Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] [-CaptchaExpirationInMinutes ] [-CustomBlockResponseBody ] - [-CustomBlockResponseStatusCode ] [-CustomRule ] [-EnabledState ] + [-CustomBlockResponseStatusCode ] [-Customrule ] [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] @@ -27,7 +27,7 @@ Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-Subscri ``` Update-AzFrontDoorWafPolicy [-Name ] [-ResourceGroupName ] [-SubscriptionId ] [-CaptchaExpirationInMinutes ] [-CustomBlockResponseBody ] - [-CustomBlockResponseStatusCode ] [-CustomRule ] [-EnabledState ] + [-CustomBlockResponseStatusCode ] [-Customrule ] [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] @@ -37,7 +37,7 @@ Update-AzFrontDoorWafPolicy [-Name ] [-ResourceGroupName ] [-Sub ### UpdateViaIdentityExpanded ``` Update-AzFrontDoorWafPolicy -InputObject [-CaptchaExpirationInMinutes ] - [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-Customrule ] [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [-SkuName ] [-Tag ] @@ -160,7 +160,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomRule +### -Customrule List of rules ```yaml diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index a9585f378415..17de52376169 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "9b920e8b-fd2f-427f-ba32-707eea39749d" + "generate_Id": "a7a4d8cb-1679-4d9a-8b36-7775eae6c59d" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 index 920a55c4bb90..783b50db5928 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Update-AzFrontDoorWafPolicy' { $customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType "MatchRule" -MatchCondition $matchCondition1 -Action "Log" -Priority 2 # Create an empty LogScrubbingSetting to test removal $emptyLogScrubbingSetting = New-AzFrontDoorWafLogScrubbingSettingObject -State "Disabled" - $updatedPolicy = Update-AzFrontDoorWafPolicy -Name $env.WafPolicyName -ResourceGroupName $env.ResourceGroupName -CustomRule $customRule2 -LogScrubbingSetting $emptyLogScrubbingSetting + $updatedPolicy = Update-AzFrontDoorWafPolicy -Name $env.WafPolicyName -ResourceGroupName $env.ResourceGroupName -Customrule $customRule2 -LogScrubbingSetting $emptyLogScrubbingSetting $updatedPolicy.CustomRule[0].Name | Should -Be "Rule2" $updatedPolicy.CustomRule[0].RuleType | Should -Be "MatchRule" $updatedPolicy.CustomRule[0].MatchCondition[0].MatchVariable | Should -Be "RequestHeader" diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 7575a64dcc08..1cadd3cb40b7 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{713098F4-7265-4233-8E4A-A3014FAD8E98}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|x64.ActiveCfg = Debug|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|x64.Build.0 = Debug|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|x86.ActiveCfg = Debug|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Debug|x86.Build.0 = Debug|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|Any CPU.Build.0 = Release|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|x64.ActiveCfg = Release|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|x64.Build.0 = Release|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|x86.ActiveCfg = Release|Any CPU - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2}.Release|x86.Build.0 = Release|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|Any CPU.Build.0 = Debug|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|x64.ActiveCfg = Debug|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|x64.Build.0 = Debug|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|x86.ActiveCfg = Debug|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|x86.Build.0 = Debug|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|Any CPU.ActiveCfg = Release|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|Any CPU.Build.0 = Release|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|x64.ActiveCfg = Release|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|x64.Build.0 = Release|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|x86.ActiveCfg = Release|Any CPU + {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {39696DF1-6F52-4C9E-9C34-FFDF00D03EB2} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {713098F4-7265-4233-8E4A-A3014FAD8E98} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md index c6d5c5408148..419465cf3179 100644 --- a/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md +++ b/src/FrontDoor/FrontDoor/help/Get-AzFrontDoorFrontendEndpoint.md @@ -12,17 +12,23 @@ Gets a Frontend endpoint with the specified name within the specified Front Door ## SYNTAX -### List (Default) +### ByFieldsParameterSet (Default) ``` -Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName [-Name ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName -Name [-SubscriptionId ] [-DefaultProfile ] [] ``` -### Get +### List ``` Get-AzFrontDoorFrontendEndpoint -FrontDoorName -ResourceGroupName - [-SubscriptionId ] -Name [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -135,7 +141,7 @@ Name of the Front Door which is globally unique. ```yaml Type: System.String -Parameter Sets: List, Get +Parameter Sets: ByFieldsParameterSet, Get, List Aliases: Required: True @@ -165,10 +171,10 @@ Name of the Frontend endpoint which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentityFrontDoor +Parameter Sets: ByFieldsParameterSet, ByObjectParameterSet Aliases: FrontendEndpointName -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -177,10 +183,10 @@ Accept wildcard characters: False ```yaml Type: System.String -Parameter Sets: ByObjectParameterSet +Parameter Sets: Get, GetViaIdentityFrontDoor Aliases: FrontendEndpointName -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -192,7 +198,7 @@ Name of the Resource group within the Azure subscription. ```yaml Type: System.String -Parameter Sets: List, Get +Parameter Sets: ByFieldsParameterSet, Get, List Aliases: Required: True @@ -208,7 +214,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String[] -Parameter Sets: List, Get +Parameter Sets: Get, List Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md index b85fa64aa182..2edabea5825d 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md @@ -334,7 +334,7 @@ The route patterns of the rule. ```yaml Type: System.String[] Parameter Sets: (All) -Aliases: +Aliases: PatternToMatch Required: False Position: Named @@ -438,7 +438,7 @@ Resource ID. ```yaml Type: System.String Parameter Sets: (All) -Aliases: +Aliases: RulesEngineName Required: False Position: Named diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md index 11ca382683d1..29fd7a32c268 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafCustomRuleObject.md @@ -14,7 +14,7 @@ Create an in-memory object for CustomRule. ``` New-AzFrontDoorWafCustomRuleObject -Action -MatchCondition -Priority - -RuleType [-EnabledState ] [-GroupBy ] [-Name ] + -RuleType [-EnabledState ] [-GroupByCustomRule ] [-Name ] [-RateLimitDurationInMinutes ] [-RateLimitThreshold ] [] ``` @@ -70,7 +70,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -GroupBy +### -GroupByCustomRule Describes the list of variables to group the rate limit requests. ```yaml diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md index 25ae1ddacf69..e82631408fe5 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleObject.md @@ -14,7 +14,7 @@ Create an in-memory object for ManagedRuleSet. ``` New-AzFrontDoorWafManagedRuleObject -Type -Version [-Exclusion ] - [-RuleGroupOverride ] [-RuleSetAction ] + [-RuleGroupOverride ] [-RuleSetAction ] [-Action ] [] ``` @@ -45,6 +45,20 @@ Create a ManagedRule Object ## PARAMETERS +### -Action + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Exclusion Describes the exclusions that are applied to all rules in the set. diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md index 6ee8deca7aa5..6edea3e24a87 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafPolicy.md @@ -15,7 +15,7 @@ Create policy with specified rule set name within a resource group. ### CreateExpanded (Default) ``` New-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] - [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-CustomRule ] + [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-Customrule ] [-EnabledState ] [-Etag ] [-JavascriptChallengeExpirationInMinutes ] [-CaptchaExpirationInMinutes ] [-LogScrubbingSetting ] [-ManagedRuleSet ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] @@ -120,7 +120,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomRule +### -Customrule List of rules ```yaml diff --git a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md index eaad13c90f4d..9f22010b0e9e 100644 --- a/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor/help/Update-AzFrontDoorWafPolicy.md @@ -15,7 +15,7 @@ Update policy with specified rule set name within a resource group. ### UpdateExpanded (Default) ``` Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-SubscriptionId ] - [-CustomRule ] [-Etag ] [-ManagedRuleSet ] + [-Customrule ] [-Etag ] [-ManagedRuleSet ] [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-EnabledState ] [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [-JavascriptChallengeExpirationInMinutes ] @@ -26,7 +26,7 @@ Update-AzFrontDoorWafPolicy -Name -ResourceGroupName [-Subscri ### ByFieldsParameterSet ``` Update-AzFrontDoorWafPolicy [-Name ] [-ResourceGroupName ] [-SubscriptionId ] - [-CustomRule ] [-Etag ] [-ManagedRuleSet ] + [-Customrule ] [-Etag ] [-ManagedRuleSet ] [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-EnabledState ] [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] [-RequestBodyCheck ] [-JavascriptChallengeExpirationInMinutes ] @@ -36,7 +36,7 @@ Update-AzFrontDoorWafPolicy [-Name ] [-ResourceGroupName ] [-Sub ### UpdateViaIdentityExpanded ``` -Update-AzFrontDoorWafPolicy -InputObject [-CustomRule ] [-Etag ] +Update-AzFrontDoorWafPolicy -InputObject [-Customrule ] [-Etag ] [-ManagedRuleSet ] [-CustomBlockResponseBody ] [-CustomBlockResponseStatusCode ] [-EnabledState ] [-LogScrubbingSetting ] [-Mode ] [-RedirectUrl ] @@ -161,7 +161,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CustomRule +### -Customrule List of rules ```yaml From d67d2594f621ea82d16d0d3286b837e81461533d Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Thu, 23 Oct 2025 15:32:56 +1100 Subject: [PATCH 22/30] update --- .../FrontDoor.Autorest/generate-info.json | 2 +- src/FrontDoor/FrontDoor.sln | 28 +++++++++---------- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 17de52376169..3b3d5482b3f2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "a7a4d8cb-1679-4d9a-8b36-7775eae6c59d" + "generate_Id": "11346fe7-e9c3-493c-9296-5c8846dc16b3" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 1cadd3cb40b7..da070db4bc6f 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{713098F4-7265-4233-8E4A-A3014FAD8E98}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{286CF22E-7E09-4717-A15D-A0FDE524093E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|Any CPU.Build.0 = Debug|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|x64.ActiveCfg = Debug|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|x64.Build.0 = Debug|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|x86.ActiveCfg = Debug|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Debug|x86.Build.0 = Debug|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|Any CPU.ActiveCfg = Release|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|Any CPU.Build.0 = Release|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|x64.ActiveCfg = Release|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|x64.Build.0 = Release|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|x86.ActiveCfg = Release|Any CPU - {713098F4-7265-4233-8E4A-A3014FAD8E98}.Release|x86.Build.0 = Release|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|x64.ActiveCfg = Debug|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|x64.Build.0 = Debug|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|x86.ActiveCfg = Debug|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|x86.Build.0 = Debug|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|Any CPU.Build.0 = Release|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|x64.ActiveCfg = Release|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|x64.Build.0 = Release|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|x86.ActiveCfg = Release|Any CPU + {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {713098F4-7265-4233-8E4A-A3014FAD8E98} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {286CF22E-7E09-4717-A15D-A0FDE524093E} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 9b1c2dbef3cf..07f44e5cc7f2 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/10/22 +# Generated on: 2025/10/23 # @{ From 080b7eb72d81866cf888a33426a4dacf551ce2f4 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Fri, 24 Oct 2025 11:46:15 +1100 Subject: [PATCH 23/30] update custom code --- .../New-AzFrontDoorRoutingRuleObject.ps1 | 39 +++++---------- ...New-AzFrontDoorRulesEngineActionObject.ps1 | 45 ++++++----------- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../docs/New-AzFrontDoorRoutingRuleObject.md | 49 +++++++++---------- .../New-AzFrontDoorRulesEngineActionObject.md | 49 +++++++++---------- .../FrontDoor.Autorest/generate-info.json | 2 +- src/FrontDoor/FrontDoor.sln | 28 +++++------ src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- .../help/New-AzFrontDoorRoutingRuleObject.md | 43 +++++++++------- .../New-AzFrontDoorRulesEngineActionObject.md | 44 ++++++++++------- 10 files changed, 142 insertions(+), 161 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 index 97063fb25b7a..d1e03ae88b38 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRoutingRuleObject.ps1 @@ -70,34 +70,27 @@ function New-AzFrontDoorRoutingRuleObject { [string] $Id, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="Resource ID.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="Resource ID.")] [string] $BackendPoolName, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] [System.TimeSpan] $CacheDuration, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="Whether to use dynamic compression for cached content.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="Whether to use dynamic compression for cached content.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] [string] $DynamicCompression, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="query parameters to include or exclude (comma separated).")] [string] $QueryParameter, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="Treatment of URL query terms when forming the cache key.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="Treatment of URL query terms when forming the cache key.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] [string] $QueryParameterStripDirective, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] [string] $CustomForwardingPath, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] [string] $ForwardingProtocol = 'MatchRequest', @@ -105,29 +98,23 @@ function New-AzFrontDoorRoutingRuleObject { [bool] $EnableCaching, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] [string] $CustomFragment, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] [string] $CustomHost, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] [string] $CustomPath, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] [string] $CustomQueryString, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="The protocol of the destination to where the traffic is redirected.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="The protocol of the destination to where the traffic is redirected.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] [string] $RedirectProtocol, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="The redirect type the rule will use when redirecting traffic.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="The redirect type the rule will use when redirecting traffic.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] [string] $RedirectType diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 index 967523d06c34..ed6f10f93e32 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorRulesEngineActionObject.ps1 @@ -41,42 +41,33 @@ function New-AzFrontDoorRulesEngineActionObject { [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] $RouteConfigurationOverride, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="Resource ID.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="Resource ID.")] [string] $BackendPoolName, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="The name of the Front Door to which this routing rule belongs.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="The name of the Front Door to which this routing rule belongs.")] [string] $FrontDoorName, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="The resource group name that the RoutingRule will be created in.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="The resource group name that the RoutingRule will be created in.")] [string] $ResourceGroupName, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.")] [System.TimeSpan] $CacheDuration, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="Whether to use dynamic compression for cached content.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="Whether to use dynamic compression for cached content.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] [string] $DynamicCompression, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="query parameters to include or exclude (comma separated).")] [string] $QueryParameter, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="Treatment of URL query terms when forming the cache key.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="Treatment of URL query terms when forming the cache key.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] [string] $QueryParameterStripDirective, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.")] [string] $CustomForwardingPath, - [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet')] - [Parameter(HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] + [Parameter(ParameterSetName= 'ByFieldsWithForwardingParameterSet', HelpMessage="Protocol this rule will use when forwarding traffic to backends.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] [string] $ForwardingProtocol, @@ -84,29 +75,23 @@ function New-AzFrontDoorRulesEngineActionObject { [bool] $EnableCaching, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")] [string] $CustomFragment, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")] [string] $CustomHost, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")] [string] $CustomPath, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.")] [string] $CustomQueryString, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="The protocol of the destination to where the traffic is redirected.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="The protocol of the destination to where the traffic is redirected.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] [string] $RedirectProtocol, - [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet')] - [Parameter(HelpMessage="The redirect type the rule will use when redirecting traffic.")] + [Parameter(ParameterSetName= 'ByFieldsWithRedirectParameterSet', HelpMessage="The redirect type the rule will use when redirecting traffic.")] [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] [string] $RedirectType diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 719dcab9c782..d5acc897f92d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: c532c78c-a4bd-4c06-9cc6-f87f4cb06ee0 +Module Guid: 936dfb5a-01db-451e-8649-bdc855487fbf Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md index fd747913a6ad..c31718af4bfa 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRoutingRuleObject.md @@ -15,25 +15,22 @@ Create an in-memory object for RoutingRule. ### ByFieldsWithForwardingParameterSet (Default) ``` New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-BackendPoolName ] - [-CacheDuration ] [-CustomForwardingPath ] [-CustomFragment ] - [-CustomHost ] [-CustomPath ] [-CustomQueryString ] [-DynamicCompression ] + [-CacheDuration ] [-CustomForwardingPath ] [-DynamicCompression ] [-EnableCaching ] [-EnabledState ] [-ForwardingProtocol ] [-FrontDoorName ] [-FrontendEndpointName ] [-Id ] [-Name ] [-PatternsToMatch ] - [-QueryParameter ] [-QueryParameterStripDirective ] [-RedirectProtocol ] - [-RedirectType ] [-ResourceGroupName ] [-RouteConfiguration ] - [-RuleEngineName ] [-WebApplicationFirewallPolicyLinkId ] [] + [-QueryParameter ] [-QueryParameterStripDirective ] [-ResourceGroupName ] + [-RouteConfiguration ] [-RuleEngineName ] + [-WebApplicationFirewallPolicyLinkId ] [] ``` ### ByFieldsWithRedirectParameterSet ``` -New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-BackendPoolName ] - [-CacheDuration ] [-CustomForwardingPath ] [-CustomFragment ] - [-CustomHost ] [-CustomPath ] [-CustomQueryString ] [-DynamicCompression ] - [-EnabledState ] [-ForwardingProtocol ] [-FrontDoorName ] - [-FrontendEndpointName ] [-Id ] [-Name ] [-PatternsToMatch ] - [-QueryParameter ] [-QueryParameterStripDirective ] [-RedirectProtocol ] - [-RedirectType ] [-ResourceGroupName ] [-RouteConfiguration ] - [-RuleEngineName ] [-WebApplicationFirewallPolicyLinkId ] [] +New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-CustomFragment ] + [-CustomHost ] [-CustomPath ] [-CustomQueryString ] [-EnabledState ] + [-FrontDoorName ] [-FrontendEndpointName ] [-Id ] [-Name ] + [-PatternsToMatch ] [-RedirectProtocol ] [-RedirectType ] + [-ResourceGroupName ] [-RouteConfiguration ] [-RuleEngineName ] + [-WebApplicationFirewallPolicyLinkId ] [] ``` ## DESCRIPTION @@ -109,7 +106,7 @@ Resource ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -126,7 +123,7 @@ HTTP requires the value to be no more than a year. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -142,7 +139,7 @@ Leave empty to use incoming path. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -159,7 +156,7 @@ Do not include the #. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -175,7 +172,7 @@ Leave empty to use the incoming host as the destination host. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -192,7 +189,7 @@ Leave empty to use the incoming path as destination path. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -210,7 +207,7 @@ The first ? and & will be added automatically so do not include them in the fron ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -225,7 +222,7 @@ Whether to use dynamic compression for cached content. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -271,7 +268,7 @@ Protocol this rule will use when forwarding traffic to backends. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -361,7 +358,7 @@ query parameters to include or exclude (comma separated). ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -376,7 +373,7 @@ Treatment of URL query terms when forming the cache key. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -391,7 +388,7 @@ The protocol of the destination to where the traffic is redirected. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -406,7 +403,7 @@ The redirect type the rule will use when redirecting traffic. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md index c1b1b5eebef3..f989386c1d4d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorRulesEngineActionObject.md @@ -15,23 +15,18 @@ Create an in-memory object for RulesEngineAction. ### ByFieldsWithForwardingParameterSet (Default) ``` New-AzFrontDoorRulesEngineActionObject [-BackendPoolName ] [-CacheDuration ] - [-CustomForwardingPath ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] - [-CustomQueryString ] [-DynamicCompression ] [-EnableCaching ] + [-CustomForwardingPath ] [-DynamicCompression ] [-EnableCaching ] [-ForwardingProtocol ] [-FrontDoorName ] [-QueryParameter ] - [-QueryParameterStripDirective ] [-RedirectProtocol ] [-RedirectType ] - [-RequestHeaderAction ] [-ResourceGroupName ] - [-ResponseHeaderAction ] [-RouteConfigurationOverride ] - [] + [-QueryParameterStripDirective ] [-RequestHeaderAction ] + [-ResourceGroupName ] [-ResponseHeaderAction ] + [-RouteConfigurationOverride ] [] ``` ### ByFieldsWithRedirectParameterSet ``` -New-AzFrontDoorRulesEngineActionObject [-BackendPoolName ] [-CacheDuration ] - [-CustomForwardingPath ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] - [-CustomQueryString ] [-DynamicCompression ] [-ForwardingProtocol ] - [-FrontDoorName ] [-QueryParameter ] [-QueryParameterStripDirective ] - [-RedirectProtocol ] [-RedirectType ] [-RequestHeaderAction ] - [-ResourceGroupName ] [-ResponseHeaderAction ] +New-AzFrontDoorRulesEngineActionObject [-CustomFragment ] [-CustomHost ] + [-CustomPath ] [-CustomQueryString ] [-RedirectProtocol ] [-RedirectType ] + [-RequestHeaderAction ] [-ResponseHeaderAction ] [-RouteConfigurationOverride ] [] ``` @@ -68,7 +63,7 @@ Resource ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -85,7 +80,7 @@ HTTP requires the value to be no more than a year. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -101,7 +96,7 @@ Leave empty to use incoming path. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -118,7 +113,7 @@ Do not include the #. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -134,7 +129,7 @@ Leave empty to use the incoming host as the destination host. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -151,7 +146,7 @@ Leave empty to use the incoming path as destination path. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -169,7 +164,7 @@ The first ? and & will be added automatically so do not include them in the fron ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -184,7 +179,7 @@ Whether to use dynamic compression for cached content. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -214,7 +209,7 @@ Protocol this rule will use when forwarding traffic to backends. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -229,7 +224,7 @@ The name of the Front Door to which this routing rule belongs. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -244,7 +239,7 @@ query parameters to include or exclude (comma separated). ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -259,7 +254,7 @@ Treatment of URL query terms when forming the cache key. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -274,7 +269,7 @@ The protocol of the destination to where the traffic is redirected. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -289,7 +284,7 @@ The redirect type the rule will use when redirecting traffic. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -319,7 +314,7 @@ The resource group name that the RoutingRule will be created in. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 3b3d5482b3f2..67597c18c8b7 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "11346fe7-e9c3-493c-9296-5c8846dc16b3" + "generate_Id": "00dd9c89-44b5-4145-a461-93eaef16bb10" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index da070db4bc6f..433f1cc39769 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{286CF22E-7E09-4717-A15D-A0FDE524093E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{83D576B1-16C6-4B66-AE20-78F528D22373}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|x64.ActiveCfg = Debug|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|x64.Build.0 = Debug|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|x86.ActiveCfg = Debug|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Debug|x86.Build.0 = Debug|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|Any CPU.Build.0 = Release|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|x64.ActiveCfg = Release|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|x64.Build.0 = Release|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|x86.ActiveCfg = Release|Any CPU - {286CF22E-7E09-4717-A15D-A0FDE524093E}.Release|x86.Build.0 = Release|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|Any CPU.Build.0 = Debug|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|x64.ActiveCfg = Debug|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|x64.Build.0 = Debug|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|x86.ActiveCfg = Debug|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|x86.Build.0 = Debug|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|Any CPU.ActiveCfg = Release|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|Any CPU.Build.0 = Release|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|x64.ActiveCfg = Release|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|x64.Build.0 = Release|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|x86.ActiveCfg = Release|Any CPU + {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {286CF22E-7E09-4717-A15D-A0FDE524093E} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {83D576B1-16C6-4B66-AE20-78F528D22373} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 07f44e5cc7f2..e7cb5d9dae0b 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/10/23 +# Generated on: 2025/10/24 # @{ diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md index 2edabea5825d..209e22803e72 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRoutingRuleObject.md @@ -12,6 +12,7 @@ Create an in-memory object for RoutingRule. ## SYNTAX +### ByFieldsWithForwardingParameterSet (Default) ``` New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-EnabledState ] [-FrontendEndpointName ] [-Name ] [-ResourceGroupName ] [-FrontDoorName ] @@ -19,9 +20,17 @@ New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-EnabledState < [-WebApplicationFirewallPolicyLinkId ] [-Id ] [-BackendPoolName ] [-CacheDuration ] [-DynamicCompression ] [-QueryParameter ] [-QueryParameterStripDirective ] [-CustomForwardingPath ] [-ForwardingProtocol ] - [-EnableCaching ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] - [-CustomQueryString ] [-RedirectProtocol ] [-RedirectType ] - [] + [-EnableCaching ] [] +``` + +### ByFieldsWithRedirectParameterSet +``` +New-AzFrontDoorRoutingRuleObject [-AcceptedProtocol ] [-EnabledState ] + [-FrontendEndpointName ] [-Name ] [-ResourceGroupName ] [-FrontDoorName ] + [-PatternsToMatch ] [-RouteConfiguration ] [-RuleEngineName ] + [-WebApplicationFirewallPolicyLinkId ] [-Id ] [-CustomFragment ] + [-CustomHost ] [-CustomPath ] [-CustomQueryString ] [-RedirectProtocol ] + [-RedirectType ] [] ``` ## DESCRIPTION @@ -97,7 +106,7 @@ Resource ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -114,7 +123,7 @@ HTTP requires the value to be no more than a year. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -130,7 +139,7 @@ Leave empty to use incoming path. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -147,7 +156,7 @@ Do not include the #. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -163,7 +172,7 @@ Leave empty to use the incoming host as the destination host. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -180,7 +189,7 @@ Leave empty to use the incoming path as destination path. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -198,7 +207,7 @@ The first ? and & will be added automatically so do not include them in the fron ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -213,7 +222,7 @@ Whether to use dynamic compression for cached content. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -227,7 +236,7 @@ Accept wildcard characters: False ```yaml Type: System.Boolean -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -258,7 +267,7 @@ Protocol this rule will use when forwarding traffic to backends. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -348,7 +357,7 @@ query parameters to include or exclude (comma separated). ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -363,7 +372,7 @@ Treatment of URL query terms when forming the cache key. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -378,7 +387,7 @@ The protocol of the destination to where the traffic is redirected. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -393,7 +402,7 @@ The redirect type the rule will use when redirecting traffic. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md index c39c8ae1253b..6d66664a345e 100644 --- a/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md +++ b/src/FrontDoor/FrontDoor/help/New-AzFrontDoorRulesEngineActionObject.md @@ -12,14 +12,22 @@ Create an in-memory object for RulesEngineAction. ## SYNTAX +### ByFieldsWithForwardingParameterSet (Default) ``` New-AzFrontDoorRulesEngineActionObject [-RequestHeaderAction ] [-ResponseHeaderAction ] [-RouteConfigurationOverride ] [-BackendPoolName ] [-FrontDoorName ] [-ResourceGroupName ] [-CacheDuration ] [-DynamicCompression ] [-QueryParameter ] [-QueryParameterStripDirective ] [-CustomForwardingPath ] [-ForwardingProtocol ] - [-EnableCaching ] [-CustomFragment ] [-CustomHost ] [-CustomPath ] - [-CustomQueryString ] [-RedirectProtocol ] [-RedirectType ] + [-EnableCaching ] [] +``` + +### ByFieldsWithRedirectParameterSet +``` +New-AzFrontDoorRulesEngineActionObject [-RequestHeaderAction ] + [-ResponseHeaderAction ] [-RouteConfigurationOverride ] + [-CustomFragment ] [-CustomHost ] [-CustomPath ] [-CustomQueryString ] + [-RedirectProtocol ] [-RedirectType ] [] ``` @@ -56,7 +64,7 @@ Resource ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -73,7 +81,7 @@ HTTP requires the value to be no more than a year. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -89,7 +97,7 @@ Leave empty to use incoming path. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -106,7 +114,7 @@ Do not include the #. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -122,7 +130,7 @@ Leave empty to use the incoming host as the destination host. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -139,7 +147,7 @@ Leave empty to use the incoming path as destination path. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -157,7 +165,7 @@ The first ? and & will be added automatically so do not include them in the fron ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -172,7 +180,7 @@ Whether to use dynamic compression for cached content. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -186,7 +194,7 @@ Accept wildcard characters: False ```yaml Type: System.Boolean -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -201,7 +209,7 @@ Protocol this rule will use when forwarding traffic to backends. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -216,7 +224,7 @@ The name of the Front Door to which this routing rule belongs. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -231,7 +239,7 @@ query parameters to include or exclude (comma separated). ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -246,7 +254,7 @@ Treatment of URL query terms when forming the cache key. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False @@ -261,7 +269,7 @@ The protocol of the destination to where the traffic is redirected. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -276,7 +284,7 @@ The redirect type the rule will use when redirecting traffic. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithRedirectParameterSet Aliases: Required: False @@ -306,7 +314,7 @@ The resource group name that the RoutingRule will be created in. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ByFieldsWithForwardingParameterSet Aliases: Required: False From 26f4f6019382f16e227e785e6c4e8396936051f8 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Tue, 28 Oct 2025 17:44:26 +1100 Subject: [PATCH 24/30] test --- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../FrontDoor.Autorest/generate-info.json | 2 +- ...zFrontDoorCustomDomainHttps.Recording.json | 260 ++++++++++++++++++ ...ble-AzFrontDoorCustomDomainHttps.Tests.ps1 | 48 +++- .../test/Get-AzFrontDoor.Recording.json | 24 +- ...AzFrontDoorFrontendEndpoint.Recording.json | 47 ---- .../FrontDoor.Autorest/test/env.json | 18 +- src/FrontDoor/FrontDoor.sln | 28 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- 9 files changed, 344 insertions(+), 87 deletions(-) create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json delete mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index d5acc897f92d..38bdc213948a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: 936dfb5a-01db-451e-8649-bdc855487fbf +Module Guid: 0bfeba31-274d-4821-8328-ddde8658ce74 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index 67597c18c8b7..e7c68da03089 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "00dd9c89-44b5-4145-a461-93eaef16bb10" + "generate_Id": "0a32f3a8-79f1-4eb6-a4f8-5a737c6c7ed9" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json new file mode 100644 index 000000000000..6042b459f3b6 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json @@ -0,0 +1,260 @@ +{ + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "4b38717b-d02e-49c6-a735-9345890bf6b9" ], + "CommandName": [ "Get-AzFrontDoor" ], + "FullCommandName": [ "Get-AzFrontDoor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "d5939b0f-599d-4764-a887-b32a0016c1bc" ], + "x-ms-correlation-request-id": [ "d5939b0f-599d-4764-a887-b32a0016c1bc" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T063710Z:d5939b0f-599d-4764-a887-b32a0016c1bc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 82FBAD8295444E039E224AB3AC411CE9 Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:09Z" ], + "Date": [ "Tue, 28 Oct 2025 06:37:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "225" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/pwshv4test\u0027 under resource group \u0027testps-rg-f9yq\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshv4test.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n },\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshv4test-3.afdx-rp-platform-test.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3140" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "d1001d2e-76ca-4aa7-b8d3-792a6265bd42" ], + "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdooroperationresults/2106a810-8070-4bbd-b95e-21a307603d92?api-version=2021-06-01\u0026t=638972302341167447\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv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--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=MEBHhKklHVXZPffMbAeFHMFmCd2yfwLefD1lQ9FbRuz8OKukwLbpfLLrixskq4eq2nVt0h1FZzNEUkC9SPGjU57r5jVMuMOX9HH6EHGSSwBczYXwafyqiGUxaFFOqzAyUBj87d81j3wzbgO575b_wAGESUfnXSwN4kkUCPYABtn5qMHmKRf5-RqHJJm0x1Ndv1EeN-6jw8yAPqp7JseVyDhSZy95-wnLdFQSOUeeWO2GvrgCjUv0xUWcx1YNo_1ZNkCj_Mpmputc21C6Ky1Ce7TS7ZjKg34ZWuXay-PpdF83Pp5TCXgJlZDummJKfoJw_k6q8JwKYttvmpl-u49jgw\u0026h=Tzhc66Gqkpbsgdassh9DIGRe_lyRbWM41LW0c6k4iWc" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/624f234a-66b3-4d99-8e5a-7ca13d3bc124" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "7d42f093-eb0f-4cfa-9441-c063f98f0d46" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T063714Z:7d42f093-eb0f-4cfa-9441-c063f98f0d46" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4CB8DB78249E4DA8A88E281A15B82528 Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:10Z" ], + "Date": [ "Tue, 28 Oct 2025 06:37:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4674" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdoors/pwshv4test\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"pwshv4test\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"ce8c9e5c-f2d1-4403-a341-8e8de813b805\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"pwshv4test.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}},{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"pwshv4test-3.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30},\"enabledState\":\"Enabled\",\"cName\":\"pwshv4test.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdooroperationresults/2106a810-8070-4bbd-b95e-21a307603d92?api-version=2021-06-01\u0026t=638972302341167447\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBA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RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdooroperationresults/2106a810-8070-4bbd-b95e-21a307603d92?api-version=2021-06-01\u0026t=638972302341167447\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpa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BQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=MEBHhKklHVXZPffMbAeFHMFmCd2yfwLefD1lQ9FbRuz8OKukwLbpfLLrixskq4eq2nVt0h1FZzNEUkC9SPGjU57r5jVMuMOX9HH6EHGSSwBczYXwafyqiGUxaFFOqzAyUBj87d81j3wzbgO575b_wAGESUfnXSwN4kkUCPYABtn5qMHmKRf5-RqHJJm0x1Ndv1EeN-6jw8yAPqp7JseVyDhSZy95-wnLdFQSOUeeWO2GvrgCjUv0xUWcx1YNo_1ZNkCj_Mpmputc21C6Ky1Ce7TS7ZjKg34ZWuXay-PpdF83Pp5TCXgJlZDummJKfoJw_k6q8JwKYttvmpl-u49jgw\u0026h=Tzhc66Gqkpbsgdassh9DIGRe_lyRbWM41LW0c6k4iWc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "90627a34-f017-45d2-96a0-7ef9e419ebd1" ], + "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0211c768-93ef-4dbe-a710-0fb8f2a3a397" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "ded172d0-fdfa-49ca-bf95-bbac8ff58ca2" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T063725Z:ded172d0-fdfa-49ca-bf95-bbac8ff58ca2" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BD49689FCBB44E80B5036626831936CF Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:24Z" ], + "Date": [ "Tue, 28 Oct 2025 06:37:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "47ad7100-674c-4d8a-85ff-fb5ae25404c2" ], + "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "619dd73e-f41b-4a8e-9ede-325af84398e5" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T063725Z:619dd73e-f41b-4a8e-9ede-325af84398e5" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B0CA11A81CB54752A8992256911E0150 Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:25Z" ], + "Date": [ "Tue, 28 Oct 2025 06:37:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4668" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdoors/pwshv4test\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"pwshv4test\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"ce8c9e5c-f2d1-4403-a341-8e8de813b805\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}},{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test-3.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30},\"enabledState\":\"Enabled\",\"cName\":\"pwshv4test.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$POST+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2021-06-01+5": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2021-06-01", + "Content": "{\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "201" ] + } + }, + "Response": { + "StatusCode": 400, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/afba48f6-9190-4643-927d-bf9ce416246d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "1e2df615-a600-4def-9648-ad32849d487a" ], + "x-ms-client-request-id": [ "db8abeee-1b0e-4c66-a8ec-b85b3bb5fe1f" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "790bbdd7-6a06-4a8b-b21e-3a83e0826486" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T063726Z:790bbdd7-6a06-4a8b-b21e-3a83e0826486" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EBFA774A2DB24F30A9DD6FF9C619933E Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:26Z" ], + "Date": [ "Tue, 28 Oct 2025 06:37:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "130" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"error\": {\n \"code\": \"BadRequest\",\n \"message\": \"Azure Front Door (classic) no longer support managed certificates.\"\n }\n}", + "isContentBase64": false + } + }, + "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$POST+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2021-06-01+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "b58f52f3-2387-47e7-b64c-f7026caeaa5a" ], + "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], + "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 400, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7f7ae5b1-5798-4c48-91e0-ecb017929bb8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "885a4e86-6ecb-4c1e-863f-f9dac38a55c4" ], + "x-ms-client-request-id": [ "b58f52f3-2387-47e7-b64c-f7026caeaa5a" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "62ebf384-593e-4da5-a754-57c8e6d453f3" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T063727Z:62ebf384-593e-4da5-a754-57c8e6d453f3" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 88FCB479D0AC4110B2BC024DECA168D5 Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:27Z" ], + "Date": [ "Tue, 28 Oct 2025 06:37:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "142" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"error\": {\n \"code\": \"BadRequest\",\n \"message\": \"The requested operation cannot be executed on the entity in the current state.\"\n }\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 index 21fc9606c3f1..2733d7e6ede3 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 @@ -16,8 +16,16 @@ if(($null -eq $TestName) -or ($TestName -contains 'Enable-AzFrontDoorCustomDomai Describe 'Enable-AzFrontDoorCustomDomainHttps' { It 'EnableExpanded' -skip { + # Test skipped: Azure Front Door (classic) no longer supports managed certificates + # Alternative approaches: + # 1. Use Azure Front Door Standard/Premium instead of Classic + # 2. Use custom certificates from Key Vault (requires certificate setup) + # 3. Use mocking/recording for testing without actual Azure service calls + + # This test would need to be updated to use custom certificates or migrated to Front Door Standard/Premium + # need to clean dns zone record before running this test - $PrefixName = "pwshv4test-2" + $PrefixName = "pwshv4test-3" $FrontDoorName = "pwshv4test" $tags = @{"tag1" = "value1"; "tag2" = "value2"} $hostName = "pwshv4test.azurefd.net" @@ -33,9 +41,42 @@ Describe 'Enable-AzFrontDoorCustomDomainHttps' { $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" New-AzFrontDoor -Name $FrontDoorName -ResourceGroupName $env.ResourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoints -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags + # For custom certificate approach, you would need: + # Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" -CertificateSource "AzureKeyVault" -Vault $keyVaultName -SecretName $secretName -SecretVersion $secretVersion Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" } + It 'EnableExpandedWithCustomCertificate' -skip { + # Test for custom certificate scenario - requires Key Vault setup with certificate + # Skip this test unless Key Vault and certificate are properly configured + + $PrefixName = "pwshv4test-3" + $FrontDoorName = "pwshv4test-custom-cert" + $tags = @{"tag1" = "value1"; "tag2" = "value2"} + $hostName = "pwshv4test.azurefd.net" + $customDomainHostName = "$PrefixName.afdx-rp-platform-test.azfdtest.xyz" + $customFrontendEndpointName = "frontendendpoint2" + + # These would need to be configured in the test environment + $keyVaultName = "test-keyvault-name" # Replace with actual Key Vault + $secretName = "test-certificate" # Replace with actual certificate secret + $secretVersion = "latest" # Or specific version + + $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" + $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" + $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" + $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName + $frontendEndpoint2 = New-AzFrontDoorFrontendEndpointObject -Name $customFrontendEndpointName -HostName $customDomainHostName + $frontendEndpoints = $frontendEndpoint1, $frontendEndpoint2 + $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" + + New-AzFrontDoor -Name $FrontDoorName -ResourceGroupName $env.ResourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoints -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags + + # Enable HTTPS with custom certificate from Key Vault + Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" -CertificateSource "AzureKeyVault" -Vault $keyVaultName -SecretName $secretName -SecretVersion $secretVersion + } + It 'EnableViaJsonString' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } @@ -66,7 +107,10 @@ Describe 'Enable-AzFrontDoorCustomDomainHttps' { } Describe 'Disable-AzFrontDoorCustomDomainHttps' { - It 'Disable' -skip{ + It 'Disable' -skip { + # Azure Front Door (classic) no longer supports managed certificates as of the service deprecation + # This test is skipped due to service limitation + $FrontDoorName = "pwshv4test" $customFrontendEndpointName = "frontendendpoint2" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json index 1291bebb7710..3bfcf7d1b5a2 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80?api-version=2021-06-01+1": { + "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "d30eaa5c-4fc3-4276-9dfa-f5894e546ba8" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "8f063686-da27-4e38-98ce-fc032d8762fe" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0803caec-2ad6-4fe2-99ce-13188900a67b" ], - "x-ms-client-request-id": [ "d30eaa5c-4fc3-4276-9dfa-f5894e546ba8" ], + "x-ms-request-id": [ "a4cab1ec-d54e-4cc4-a58f-ba26cae17b03" ], + "x-ms-client-request-id": [ "8f063686-da27-4e38-98ce-fc032d8762fe" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "5e75e148-266b-48c0-82dc-643c2b1bcf8f" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000421Z:5e75e148-266b-48c0-82dc-643c2b1bcf8f" ], + "x-ms-correlation-request-id": [ "adacba45-cfc5-4621-9886-4cbc7438b6da" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T063729Z:adacba45-cfc5-4621-9886-4cbc7438b6da" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E46A523B673A421DAB67F36F5E40C4E5 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:20Z" ], - "Date": [ "Wed, 22 Oct 2025 00:04:20 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 7FA5C2B3BF87454BB32ADB700650CB3A Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:28Z" ], + "Date": [ "Tue, 28 Oct 2025 06:37:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "6398" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-de80\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"2b4a1289-3970-4907-84db-ec5fcc0ad72a\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-de80/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-de80.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-de80.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdoors/testps-fd-78ri\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-78ri\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"eaa49a9a-64b6-4839-9a8f-4db5d6d3cf79\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-78ri.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-78ri.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json deleted file mode 100644 index 6661262e4c1a..000000000000 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/frontendEndpoints?api-version=2021-06-01+1": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/frontendEndpoints?api-version=2021-06-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "fa9c7f78-311b-4d7d-a31c-79a9d8acad13" ], - "CommandName": [ "Az.FrontDoor.internal\\Get-AzFrontDoorFrontendEndpoint" ], - "FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "ea63c2a3-f650-4f74-a979-622f77212f29" ], - "x-ms-client-request-id": [ "fa9c7f78-311b-4d7d-a31c-79a9d8acad13" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/11614a35-135d-4ffd-bee6-07c42025eb4d" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "1bccb792-9478-4c59-bcf9-87ae636de263" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000422Z:1bccb792-9478-4c59-bcf9-87ae636de263" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: DF08045681694380AA966E00F073D43B Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:22Z" ], - "Date": [ "Wed, 22 Oct 2025 00:04:22 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "581" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-de80.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", - "isContentBase64": false - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json index 9de7f9dd7658..d80373a67acb 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/env.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -1,13 +1,13 @@ { - "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", - "ResourceGroupName": "testps-rg-2xfo", - "FrontDoorName": "testps-fd-de80", - "WafPolicyNameForDelete": "testpsWafrvue", - "WafPolicyNameForCreate": "testpsWafnudq", + "WafPolicyNameForCreate": "testpsWafm4g6", + "FrontDoorName": "testps-fd-78ri", + "FrontDoorNameForDelete": "testps-fd-inz2", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "WafPolicyName": "testpsWaf3g8j", - "FrontDoorNameForUpdate": "testps-fd-35am", + "location": "westus", + "WafPolicyName": "testpsWaf3bdu", + "FrontDoorNameForUpdate": "testps-fd-c9b8", + "ResourceGroupName": "testps-rg-f9yq", + "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", "RuleEngineName": "engine101", - "FrontDoorNameForDelete": "testps-fd-bp6l", - "location": "westus" + "WafPolicyNameForDelete": "testpsWafvc0k" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 433f1cc39769..21a4a68349c1 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{83D576B1-16C6-4B66-AE20-78F528D22373}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{79962872-CE10-4433-8B37-0AA5A831E4D8}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|Any CPU.Build.0 = Debug|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|x64.ActiveCfg = Debug|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|x64.Build.0 = Debug|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|x86.ActiveCfg = Debug|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Debug|x86.Build.0 = Debug|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|Any CPU.ActiveCfg = Release|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|Any CPU.Build.0 = Release|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|x64.ActiveCfg = Release|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|x64.Build.0 = Release|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|x86.ActiveCfg = Release|Any CPU - {83D576B1-16C6-4B66-AE20-78F528D22373}.Release|x86.Build.0 = Release|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|x64.ActiveCfg = Debug|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|x64.Build.0 = Debug|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|x86.ActiveCfg = Debug|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|x86.Build.0 = Debug|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|Any CPU.Build.0 = Release|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|x64.ActiveCfg = Release|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|x64.Build.0 = Release|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|x86.ActiveCfg = Release|Any CPU + {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {83D576B1-16C6-4B66-AE20-78F528D22373} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {79962872-CE10-4433-8B37-0AA5A831E4D8} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index e7cb5d9dae0b..465f27c4ed31 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/10/24 +# Generated on: 2025/10/28 # @{ From 22fa919fecc6edf8402279a0f60bf53a413db58a Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 29 Oct 2025 09:07:45 +1100 Subject: [PATCH 25/30] regen --- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../FrontDoor.Autorest/generate-info.json | 2 +- ...zFrontDoorCustomDomainHttps.Recording.json | 224 ++---------------- ...ble-AzFrontDoorCustomDomainHttps.Tests.ps1 | 63 +---- .../FrontDoor.Autorest/test/env.json | 16 +- src/FrontDoor/FrontDoor.sln | 28 +-- 6 files changed, 60 insertions(+), 275 deletions(-) diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 38bdc213948a..898f5a37b96e 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: 0bfeba31-274d-4821-8328-ddde8658ce74 +Module Guid: 870b88c5-9743-4f2a-94e7-ebdf75b4f4e3 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index e7c68da03089..bc73ff9b1e39 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "0a32f3a8-79f1-4eb6-a4f8-5a737c6c7ed9" + "generate_Id": "af8d89e1-fb51-44ae-8675-cea18238361a" } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json index 6042b459f3b6..4f17c76d7e32 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json @@ -1,13 +1,13 @@ { - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+1": { + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "4b38717b-d02e-49c6-a735-9345890bf6b9" ], + "x-ms-client-request-id": [ "329f8999-ea9b-4b54-b0cf-ac8eb2fd9ecb" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,237 +23,61 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "d5939b0f-599d-4764-a887-b32a0016c1bc" ], - "x-ms-correlation-request-id": [ "d5939b0f-599d-4764-a887-b32a0016c1bc" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T063710Z:d5939b0f-599d-4764-a887-b32a0016c1bc" ], + "x-ms-request-id": [ "5a0eb2f9-d2a7-4de9-97e8-938cc7ab9f45" ], + "x-ms-correlation-request-id": [ "5a0eb2f9-d2a7-4de9-97e8-938cc7ab9f45" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T121833Z:5a0eb2f9-d2a7-4de9-97e8-938cc7ab9f45" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 82FBAD8295444E039E224AB3AC411CE9 Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:09Z" ], - "Date": [ "Tue, 28 Oct 2025 06:37:09 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 31BFABE8E54E4B6095408D9042C4C3C9 Ref B: SYD03EDGE1422 Ref C: 2025-10-28T12:18:33Z" ], + "Date": [ "Tue, 28 Oct 2025 12:18:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "225" ], + "Content-Length": [ "226" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/pwshv4test\u0027 under resource group \u0027testps-rg-f9yq\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/pwshenable6\u0027 under resource group \u0027testps-rg-y14v\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+2": { + "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshv4test.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n },\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshv4test-3.afdx-rp-platform-test.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshenable6.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n },\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshenable-6.afdxe2e.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "3140" ] + "Content-Length": [ "3131" ] } }, "Response": { - "StatusCode": 201, + "StatusCode": 409, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Retry-After": [ "10" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7d1bcb90-c5a7-41fa-9e4f-b36f46db260f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d1001d2e-76ca-4aa7-b8d3-792a6265bd42" ], - "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdooroperationresults/2106a810-8070-4bbd-b95e-21a307603d92?api-version=2021-06-01\u0026t=638972302341167447\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFq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8OKukwLbpfLLrixskq4eq2nVt0h1FZzNEUkC9SPGjU57r5jVMuMOX9HH6EHGSSwBczYXwafyqiGUxaFFOqzAyUBj87d81j3wzbgO575b_wAGESUfnXSwN4kkUCPYABtn5qMHmKRf5-RqHJJm0x1Ndv1EeN-6jw8yAPqp7JseVyDhSZy95-wnLdFQSOUeeWO2GvrgCjUv0xUWcx1YNo_1ZNkCj_Mpmputc21C6Ky1Ce7TS7ZjKg34ZWuXay-PpdF83Pp5TCXgJlZDummJKfoJw_k6q8JwKYttvmpl-u49jgw\u0026h=Tzhc66Gqkpbsgdassh9DIGRe_lyRbWM41LW0c6k4iWc" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/624f234a-66b3-4d99-8e5a-7ca13d3bc124" ], + "x-ms-request-id": [ "961cdfb7-7676-4b42-9ce2-590a6082e225" ], + "x-ms-client-request-id": [ "cbe0de36-4a51-40d4-905e-7ac54e8258db" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "7d42f093-eb0f-4cfa-9441-c063f98f0d46" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T063714Z:7d42f093-eb0f-4cfa-9441-c063f98f0d46" ], + "x-ms-correlation-request-id": [ "9f06d094-d518-4fb8-833f-42b615d6d63f" ], + "x-ms-routing-request-id": [ "WESTUS:20251028T121835Z:9f06d094-d518-4fb8-833f-42b615d6d63f" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4CB8DB78249E4DA8A88E281A15B82528 Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:10Z" ], - "Date": [ "Tue, 28 Oct 2025 06:37:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 43255C8ECE02442E808905FD3E559E4D Ref B: SYD03EDGE1422 Ref C: 2025-10-28T12:18:34Z" ], + "Date": [ "Tue, 28 Oct 2025 12:18:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "4674" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdoors/pwshv4test\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"pwshv4test\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"ce8c9e5c-f2d1-4403-a341-8e8de813b805\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"pwshv4test.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}},{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"pwshv4test-3.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30},\"enabledState\":\"Enabled\",\"cName\":\"pwshv4test.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft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AGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=MEBHhKklHVXZPffMbAeFHMFmCd2yfwLefD1lQ9FbRuz8OKukwLbpfLLrixskq4eq2nVt0h1FZzNEUkC9SPGjU57r5jVMuMOX9HH6EHGSSwBczYXwafyqiGUxaFFOqzAyUBj87d81j3wzbgO575b_wAGESUfnXSwN4kkUCPYABtn5qMHmKRf5-RqHJJm0x1Ndv1EeN-6jw8yAPqp7JseVyDhSZy95-wnLdFQSOUeeWO2GvrgCjUv0xUWcx1YNo_1ZNkCj_Mpmputc21C6Ky1Ce7TS7ZjKg34ZWuXay-PpdF83Pp5TCXgJlZDummJKfoJw_k6q8JwKYttvmpl-u49jgw\u0026h=Tzhc66Gqkpbsgdassh9DIGRe_lyRbWM41LW0c6k4iWc+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdooroperationresults/2106a810-8070-4bbd-b95e-21a307603d92?api-version=2021-06-01\u0026t=638972302341167447\u0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NVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=MEBHhKklHVXZPffMbAeFHMFmCd2yfwLefD1lQ9FbRuz8OKukwLbpfLLrixskq4eq2nVt0h1FZzNEUkC9SPGjU57r5jVMuMOX9HH6EHGSSwBczYXwafyqiGUxaFFOqzAyUBj87d81j3wzbgO575b_wAGESUfnXSwN4kkUCPYABtn5qMHmKRf5-RqHJJm0x1Ndv1EeN-6jw8yAPqp7JseVyDhSZy95-wnLdFQSOUeeWO2GvrgCjUv0xUWcx1YNo_1ZNkCj_Mpmputc21C6Ky1Ce7TS7ZjKg34ZWuXay-PpdF83Pp5TCXgJlZDummJKfoJw_k6q8JwKYttvmpl-u49jgw\u0026h=Tzhc66Gqkpbsgdassh9DIGRe_lyRbWM41LW0c6k4iWc", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], - "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], - "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "90627a34-f017-45d2-96a0-7ef9e419ebd1" ], - "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/0211c768-93ef-4dbe-a710-0fb8f2a3a397" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ded172d0-fdfa-49ca-bf95-bbac8ff58ca2" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T063725Z:ded172d0-fdfa-49ca-bf95-bbac8ff58ca2" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: BD49689FCBB44E80B5036626831936CF Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:24Z" ], - "Date": [ "Tue, 28 Oct 2025 06:37:24 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "61" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test?api-version=2021-06-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], - "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], - "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "47ad7100-674c-4d8a-85ff-fb5ae25404c2" ], - "x-ms-client-request-id": [ "10eea7a4-382b-47c2-b343-9d94cd00f6c6" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "619dd73e-f41b-4a8e-9ede-325af84398e5" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T063725Z:619dd73e-f41b-4a8e-9ede-325af84398e5" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B0CA11A81CB54752A8992256911E0150 Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:25Z" ], - "Date": [ "Tue, 28 Oct 2025 06:37:25 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "4668" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdoors/pwshv4test\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"pwshv4test\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"ce8c9e5c-f2d1-4403-a341-8e8de813b805\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}},{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/pwshv4test/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"pwshv4test-3.afdx-rp-platform-test.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30},\"enabledState\":\"Enabled\",\"cName\":\"pwshv4test.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$POST+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2021-06-01+5": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/enableHttps?api-version=2021-06-01", - "Content": "{\r\n \"frontDoorCertificateSourceParameters\": {\r\n \"certificateType\": \"Dedicated\"\r\n },\r\n \"certificateSource\": \"FrontDoor\",\r\n \"protocolType\": \"ServerNameIndication\",\r\n \"minimumTlsVersion\": \"1.2\"\r\n}", - "isContentBase64": false, - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "201" ] - } - }, - "Response": { - "StatusCode": 400, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/afba48f6-9190-4643-927d-bf9ce416246d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1e2df615-a600-4def-9648-ad32849d487a" ], - "x-ms-client-request-id": [ "db8abeee-1b0e-4c66-a8ec-b85b3bb5fe1f" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], - "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "790bbdd7-6a06-4a8b-b21e-3a83e0826486" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T063726Z:790bbdd7-6a06-4a8b-b21e-3a83e0826486" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: EBFA774A2DB24F30A9DD6FF9C619933E Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:26Z" ], - "Date": [ "Tue, 28 Oct 2025 06:37:25 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "130" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\n \"error\": {\n \"code\": \"BadRequest\",\n \"message\": \"Azure Front Door (classic) no longer support managed certificates.\"\n }\n}", - "isContentBase64": false - } - }, - "Disable-AzFrontDoorCustomDomainHttps+[NoContext]+Disable+$POST+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2021-06-01+1": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/pwshv4test/frontendEndpoints/frontendendpoint2/disableHttps?api-version=2021-06-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "b58f52f3-2387-47e7-b64c-f7026caeaa5a" ], - "CommandName": [ "Disable-AzFrontDoorCustomDomainHttps" ], - "FullCommandName": [ "Disable-AzFrontDoorCustomDomainHttps_Disable" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 400, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7f7ae5b1-5798-4c48-91e0-ecb017929bb8" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "885a4e86-6ecb-4c1e-863f-f9dac38a55c4" ], - "x-ms-client-request-id": [ "b58f52f3-2387-47e7-b64c-f7026caeaa5a" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], - "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "62ebf384-593e-4da5-a754-57c8e6d453f3" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T063727Z:62ebf384-593e-4da5-a754-57c8e6d453f3" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 88FCB479D0AC4110B2BC024DECA168D5 Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:27Z" ], - "Date": [ "Tue, 28 Oct 2025 06:37:27 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "142" ], + "Content-Length": [ "162" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\n \"error\": {\n \"code\": \"BadRequest\",\n \"message\": \"The requested operation cannot be executed on the entity in the current state.\"\n }\n}", + "Content": "{\n \"error\": {\n \"code\": \"Conflict\",\n \"message\": \"We couldn\u0027t create your custom domain. Another custom domain with the same host name already exists.\"\n }\n}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 index 2733d7e6ede3..b22965fddd6a 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 @@ -15,53 +15,18 @@ if(($null -eq $TestName) -or ($TestName -contains 'Enable-AzFrontDoorCustomDomai } Describe 'Enable-AzFrontDoorCustomDomainHttps' { - It 'EnableExpanded' -skip { - # Test skipped: Azure Front Door (classic) no longer supports managed certificates - # Alternative approaches: - # 1. Use Azure Front Door Standard/Premium instead of Classic - # 2. Use custom certificates from Key Vault (requires certificate setup) - # 3. Use mocking/recording for testing without actual Azure service calls - - # This test would need to be updated to use custom certificates or migrated to Front Door Standard/Premium - + It 'EnableExpanded' { # need to clean dns zone record before running this test - $PrefixName = "pwshv4test-3" - $FrontDoorName = "pwshv4test" + $PrefixName = "pwshenable-6" + $FrontDoorName = "pwshenable6" $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "pwshv4test.azurefd.net" - $customDomainHostName = "$PrefixName.afdx-rp-platform-test.azfdtest.xyz" + $hostName = "$FrontDoorName.azurefd.net" + $customDomainHostName = "$PrefixName.afdxe2e.azfdtest.xyz" $customFrontendEndpointName = "frontendendpoint2" - $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" - $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" - $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName - $frontendEndpoint2 = New-AzFrontDoorFrontendEndpointObject -Name $customFrontendEndpointName -HostName $customDomainHostName - $frontendEndpoints = $frontendEndpoint1, $frontendEndpoint2 - $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - New-AzFrontDoor -Name $FrontDoorName -ResourceGroupName $env.ResourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoints -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - # For custom certificate approach, you would need: - # Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" -CertificateSource "AzureKeyVault" -Vault $keyVaultName -SecretName $secretName -SecretVersion $secretVersion - Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" - } - It 'EnableExpandedWithCustomCertificate' -skip { - # Test for custom certificate scenario - requires Key Vault setup with certificate - # Skip this test unless Key Vault and certificate are properly configured - - $PrefixName = "pwshv4test-3" - $FrontDoorName = "pwshv4test-custom-cert" - $tags = @{"tag1" = "value1"; "tag2" = "value2"} - $hostName = "pwshv4test.azurefd.net" - $customDomainHostName = "$PrefixName.afdx-rp-platform-test.azfdtest.xyz" - $customFrontendEndpointName = "frontendendpoint2" - - # These would need to be configured in the test environment - $keyVaultName = "test-keyvault-name" # Replace with actual Key Vault - $secretName = "test-certificate" # Replace with actual certificate secret - $secretVersion = "latest" # Or specific version - + $keyVaultName = "/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/afdxe2etest/providers/Microsoft.KeyVault/vaults/afdportal-e2e-test-kv" # Replace with actual Key Vault + $secretName = "wildcard-afdxe2e-azfdtest-xyz2" + $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" @@ -70,11 +35,10 @@ Describe 'Enable-AzFrontDoorCustomDomainHttps' { $frontendEndpoint2 = New-AzFrontDoorFrontendEndpointObject -Name $customFrontendEndpointName -HostName $customDomainHostName $frontendEndpoints = $frontendEndpoint1, $frontendEndpoint2 $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $FrontDoorName -ResourceGroupName $env.ResourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - + New-AzFrontDoor -Name $FrontDoorName -ResourceGroupName $env.ResourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoints -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags - - # Enable HTTPS with custom certificate from Key Vault - Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" -CertificateSource "AzureKeyVault" -Vault $keyVaultName -SecretName $secretName -SecretVersion $secretVersion + + Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName $env.ResourceGroupName -FrontDoorName $FrontDoorName -FrontendEndpointName $customFrontendEndpointName -MinimumTlsVersion "1.2" -VaultId $keyVaultName -SecretName $secretName } It 'EnableViaJsonString' -skip { @@ -107,10 +71,7 @@ Describe 'Enable-AzFrontDoorCustomDomainHttps' { } Describe 'Disable-AzFrontDoorCustomDomainHttps' { - It 'Disable' -skip { - # Azure Front Door (classic) no longer supports managed certificates as of the service deprecation - # This test is skipped due to service limitation - + It 'Disable' { $FrontDoorName = "pwshv4test" $customFrontendEndpointName = "frontendendpoint2" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json index d80373a67acb..55cafe01b024 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/env.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -1,13 +1,13 @@ { - "WafPolicyNameForCreate": "testpsWafm4g6", - "FrontDoorName": "testps-fd-78ri", - "FrontDoorNameForDelete": "testps-fd-inz2", + "WafPolicyNameForCreate": "testpsWaf7p0u", + "WafPolicyName": "testpsWafh9dn", + "FrontDoorName": "testps-fd-qyc8", + "FrontDoorNameForDelete": "testps-fd-zau7", + "ResourceGroupName": "testps-rg-y14v", + "WafPolicyNameForDelete": "testpsWafzmhq", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "location": "westus", - "WafPolicyName": "testpsWaf3bdu", - "FrontDoorNameForUpdate": "testps-fd-c9b8", - "ResourceGroupName": "testps-rg-f9yq", "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", "RuleEngineName": "engine101", - "WafPolicyNameForDelete": "testpsWafvc0k" + "FrontDoorNameForUpdate": "testps-fd-cfgi", + "location": "westus" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 21a4a68349c1..7a8cd6baf46a 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{79962872-CE10-4433-8B37-0AA5A831E4D8}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{D0759583-6D11-466C-BB42-9DE79261D349}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|x64.ActiveCfg = Debug|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|x64.Build.0 = Debug|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|x86.ActiveCfg = Debug|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Debug|x86.Build.0 = Debug|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|Any CPU.Build.0 = Release|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|x64.ActiveCfg = Release|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|x64.Build.0 = Release|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|x86.ActiveCfg = Release|Any CPU - {79962872-CE10-4433-8B37-0AA5A831E4D8}.Release|x86.Build.0 = Release|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|x64.ActiveCfg = Debug|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|x64.Build.0 = Debug|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|x86.ActiveCfg = Debug|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|x86.Build.0 = Debug|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Release|Any CPU.Build.0 = Release|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Release|x64.ActiveCfg = Release|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Release|x64.Build.0 = Release|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Release|x86.ActiveCfg = Release|Any CPU + {D0759583-6D11-466C-BB42-9DE79261D349}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {79962872-CE10-4433-8B37-0AA5A831E4D8} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {D0759583-6D11-466C-BB42-9DE79261D349} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} From 57947018a9311c669b75efe7321f58976c576b4b Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 29 Oct 2025 15:08:08 +1100 Subject: [PATCH 26/30] rerun test --- ...zFrontDoorCustomDomainHttps.Recording.json | 84 ---- ...ble-AzFrontDoorCustomDomainHttps.Tests.ps1 | 8 +- .../test/Get-AzFrontDoor.Recording.json | 26 +- ...AzFrontDoorFrontendEndpoint.Recording.json | 47 +++ ...WafManagedRuleSetDefinition.Recording.json | 22 +- .../Get-AzFrontDoorWafPolicy.Recording.json | 22 +- .../test/New-AzFrontDoor.Recording.json | 220 +++++++++++ .../test/New-AzFrontDoor.Tests.ps1 | 17 +- .../New-AzFrontDoorRulesEngine.Recording.json | 48 +-- .../New-AzFrontDoorWafPolicy.Recording.json | 94 ++--- .../test/Remove-AzFrontDoor.Recording.json | 363 ++++++++++-------- ...move-AzFrontDoorRulesEngine.Recording.json | 72 ++-- ...Remove-AzFrontDoorWafPolicy.Recording.json | 118 +++--- .../test/Set-AzFrontDoor.Recording.json | 204 +++++----- .../Set-AzFrontDoorRulesEngine.Recording.json | 108 +++--- ...Update-AzFrontDoorWafPolicy.Recording.json | 116 +++--- .../FrontDoor.Autorest/test/env.json | 16 +- ...EnforceCertificateNameCheckEnabledState.cs | 17 - .../HealthProbeSettingsUpdateParameters.cs | 92 ----- 19 files changed, 913 insertions(+), 781 deletions(-) delete mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json create mode 100644 src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Recording.json delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EnforceCertificateNameCheckEnabledState.cs delete mode 100644 src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsUpdateParameters.cs diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json deleted file mode 100644 index 4f17c76d7e32..000000000000 --- a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Recording.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6?api-version=2021-06-01+1": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6?api-version=2021-06-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "329f8999-ea9b-4b54-b0cf-ac8eb2fd9ecb" ], - "CommandName": [ "Get-AzFrontDoor" ], - "FullCommandName": [ "Get-AzFrontDoor_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 404, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "5a0eb2f9-d2a7-4de9-97e8-938cc7ab9f45" ], - "x-ms-correlation-request-id": [ "5a0eb2f9-d2a7-4de9-97e8-938cc7ab9f45" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T121833Z:5a0eb2f9-d2a7-4de9-97e8-938cc7ab9f45" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 31BFABE8E54E4B6095408D9042C4C3C9 Ref B: SYD03EDGE1422 Ref C: 2025-10-28T12:18:33Z" ], - "Date": [ "Tue, 28 Oct 2025 12:18:33 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "226" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/pwshenable6\u0027 under resource group \u0027testps-rg-y14v\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", - "isContentBase64": false - } - }, - "Enable-AzFrontDoorCustomDomainHttps+[NoContext]+EnableExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6?api-version=2021-06-01+2": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"HEAD\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-y14v/providers/Microsoft.Network/frontDoors/pwshenable6/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshenable6.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n },\r\n {\r\n \"properties\": {\r\n \"hostName\": \"pwshenable-6.afdxe2e.azfdtest.xyz\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", - "isContentBase64": false, - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "3131" ] - } - }, - "Response": { - "StatusCode": 409, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7d1bcb90-c5a7-41fa-9e4f-b36f46db260f" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "961cdfb7-7676-4b42-9ce2-590a6082e225" ], - "x-ms-client-request-id": [ "cbe0de36-4a51-40d4-905e-7ac54e8258db" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], - "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "9f06d094-d518-4fb8-833f-42b615d6d63f" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T121835Z:9f06d094-d518-4fb8-833f-42b615d6d63f" ], - "X-Content-Type-Options": [ "nosniff" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 43255C8ECE02442E808905FD3E559E4D Ref B: SYD03EDGE1422 Ref C: 2025-10-28T12:18:34Z" ], - "Date": [ "Tue, 28 Oct 2025 12:18:35 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "162" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\n \"error\": {\n \"code\": \"Conflict\",\n \"message\": \"We couldn\u0027t create your custom domain. Another custom domain with the same host name already exists.\"\n }\n}", - "isContentBase64": false - } - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 index b22965fddd6a..cc0641b8d742 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/Enable-AzFrontDoorCustomDomainHttps.Tests.ps1 @@ -15,10 +15,10 @@ if(($null -eq $TestName) -or ($TestName -contains 'Enable-AzFrontDoorCustomDomai } Describe 'Enable-AzFrontDoorCustomDomainHttps' { - It 'EnableExpanded' { + It 'EnableExpanded' -skip { # need to clean dns zone record before running this test - $PrefixName = "pwshenable-6" - $FrontDoorName = "pwshenable6" + $PrefixName = "pwshenable-7" + $FrontDoorName = "pwshenable7" $tags = @{"tag1" = "value1"; "tag2" = "value2"} $hostName = "$FrontDoorName.azurefd.net" $customDomainHostName = "$PrefixName.afdxe2e.azfdtest.xyz" @@ -71,7 +71,7 @@ Describe 'Enable-AzFrontDoorCustomDomainHttps' { } Describe 'Disable-AzFrontDoorCustomDomainHttps' { - It 'Disable' { + It 'Disable' -skip { $FrontDoorName = "pwshv4test" $customFrontendEndpointName = "frontendendpoint2" diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json index 3bfcf7d1b5a2..9c4f70632290 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json @@ -1,13 +1,13 @@ { - "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri?api-version=2021-06-01+1": { + "Get-AzFrontDoor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "8f063686-da27-4e38-98ce-fc032d8762fe" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "a1a4f99f-2f3b-4114-b3b0-c57254e19453" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a4cab1ec-d54e-4cc4-a58f-ba26cae17b03" ], - "x-ms-client-request-id": [ "8f063686-da27-4e38-98ce-fc032d8762fe" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "adacba45-cfc5-4621-9886-4cbc7438b6da" ], - "x-ms-routing-request-id": [ "WESTUS:20251028T063729Z:adacba45-cfc5-4621-9886-4cbc7438b6da" ], + "x-ms-request-id": [ "f1e7a077-c8cb-4547-852d-446bce99208e" ], + "x-ms-client-request-id": [ "a1a4f99f-2f3b-4114-b3b0-c57254e19453" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "8c8055e2-59d6-4ad0-bbd5-3d67b5d4eb31" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T034914Z:8c8055e2-59d6-4ad0-bbd5-3d67b5d4eb31" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 7FA5C2B3BF87454BB32ADB700650CB3A Ref B: SYD03EDGE2021 Ref C: 2025-10-28T06:37:28Z" ], - "Date": [ "Tue, 28 Oct 2025 06:37:28 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B49B6E7369C040B6A6AF985E42FEFDE7 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:49:14Z" ], + "Date": [ "Wed, 29 Oct 2025 03:49:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "6398" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/frontdoors/testps-fd-78ri\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-78ri\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"eaa49a9a-64b6-4839-9a8f-4db5d6d3cf79\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-f9yq/providers/Microsoft.Network/frontDoors/testps-fd-78ri/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-f9yq/providers/Microsoft.Network/Frontdoors/testps-fd-78ri/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-78ri.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-78ri.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-mlxe\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-mlxe/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-mlxe/RulesEngines/engine101\",\"name\":\"engine101\",\"type\":\"Microsoft.Network/Frontdoors/RulesEngines\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}],\"frontdoorId\":\"a80a7fd6-67e3-4939-ae1a-3c8d25e3a291\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-mlxe/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-mlxe/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-mlxe/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-mlxe/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-mlxe.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-mlxe.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json new file mode 100644 index 000000000000..68379b95f83d --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json @@ -0,0 +1,47 @@ +{ + "Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/frontendEndpoints?api-version=2021-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/frontendEndpoints?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "d51f67a3-7f7c-4a25-91fd-ba3b54977355" ], + "CommandName": [ "Az.FrontDoor.internal\\Get-AzFrontDoorFrontendEndpoint" ], + "FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "c52aa03c-e44c-4914-8f71-e95bdc4d5e30" ], + "x-ms-client-request-id": [ "d51f67a3-7f7c-4a25-91fd-ba3b54977355" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/404718bc-0436-46cd-8f5e-c0e51e803bf5" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "508e153e-3ddd-4778-80cd-9c013085b9c5" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T034917Z:508e153e-3ddd-4778-80cd-9c013085b9c5" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 19E4379FE9B44549BF363336786EA605 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:49:16Z" ], + "Date": [ "Wed, 29 Oct 2025 03:49:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-mlxe.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json index f99a02cfe74f..ab0988d5516c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json @@ -7,11 +7,11 @@ "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "692ce893-a40a-49bc-9f63-32f189f5b7d4" ], + "x-ms-client-request-id": [ "93c74914-9c87-499d-aace-15273b554b7f" ], "CommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition" ], "FullCommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,24 +23,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "48ff2089-687e-441d-92ef-7768f191599e" ], - "x-ms-client-request-id": [ "692ce893-a40a-49bc-9f63-32f189f5b7d4" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/89510590-ca0f-41d6-b8ff-880c191edd44" ], + "x-ms-request-id": [ "112753c5-7c9d-4bb8-b850-1837cf1f945a" ], + "x-ms-client-request-id": [ "93c74914-9c87-499d-aace-15273b554b7f" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/60fcbfd2-c693-4737-95a9-abe419855d46" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "1061875b-b3b0-426e-aff8-e1908d1b32b3" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000424Z:1061875b-b3b0-426e-aff8-e1908d1b32b3" ], + "x-ms-correlation-request-id": [ "e90fa931-7f1d-44f9-bcf8-adf989e292b8" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T034919Z:e90fa931-7f1d-44f9-bcf8-adf989e292b8" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B490E07FE81E4D949D5C2014E313F823 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:24Z" ], - "Date": [ "Wed, 22 Oct 2025 00:04:24 GMT" ] + "X-MSEdge-Ref": [ "Ref A: FD69058B63894B4797FB492306D3C966 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:49:19Z" ], + "Date": [ "Wed, 29 Oct 2025 03:49:18 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "162977" ], + "Content-Length": [ "163149" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.0\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921190\",\"description\":\"HTTP Splitting (CR/LF in request filename detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921200\",\"description\":\"LDAP Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920181\",\"description\":\"Content-Length and Transfer-Encoding headers present\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920500\",\"description\":\"Attempt to access a backup or working file\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.2\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.2\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030003\",\"description\":\"URL encoded file path\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030004\",\"description\":\"Missing brotli encoding from supporting browser with https referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030005\",\"description\":\"Missing brotli encoding from supporting browser over HTTP/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030006\",\"description\":\"Illegal character in requested filename\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031005\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replacing rule #942430)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031006\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replacing rule #942340)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"99032001\",\"description\":\"XSS Filter - Category 2: Event Handler Vector (replacing rule #941120)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99032002\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replacing rule #931130)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"921190\",\"description\":\"HTTP Splitting (CR/LF in request filename detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921200\",\"description\":\"LDAP Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921422\",\"description\":\"Detect content types in the Content-Type header outside of the actual content type declaration\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920181\",\"description\":\"Content-Length and Transfer-Encoding headers present\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920500\",\"description\":\"Attempt to access a backup or working file\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920530\",\"description\":\"Restrict charset parameter inside content type header to occur max once\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920620\",\"description\":\"Multiple Content-Type Request Headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100300\",\"description\":\"High risk bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Verified misc bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200300\",\"description\":\"Verified link checker bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200400\",\"description\":\"Verified social media bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200500\",\"description\":\"Verified content fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200600\",\"description\":\"Verified feed fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200700\",\"description\":\"Verified Advertising bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_HTTPDDoSRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_HTTPDDoSRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"Microsoft_HTTPDDoSRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"89e83da1-abda-4b9d-a1c9-da4ecd89bd89\",\"ruleGroups\":[{\"ruleGroupName\":\"ExcessiveRequests\",\"description\":\"Excessive Requests\",\"rules\":[{\"ruleId\":\"500100\",\"description\":\"Anomaly detected on high rate of client requests\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"500110\",\"description\":\"Suspected bots sending high rate of requests\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.2\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.2\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Unverified search engine crawlers\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_preview-0.1\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../) using Encoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../) using Decoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932106\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932190\",\"description\":\"Remote Command Execution: Wildcard\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: Opening/Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933111\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933131\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933161\",\"description\":\"PHP Injection Attack: Low-Value PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933190\",\"description\":\"PHP Injection Attack: PHP Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Abusing of PHP wrappers could lead to RCE\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found (bypass 933180)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector (replaced by rule #99032001)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replaced by rule #99031001)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942251\",\"description\":\"Detects HAVING injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942431\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (6)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942432\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (2)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942490\",\"description\":\"Detects classic SQL injection probings 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Java: deserialization that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944300\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/BotProtection_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"BotProtection_preview-0.1\",\"properties\":{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"KnownBadBots\",\"description\":\"\",\"rules\":[{\"ruleId\":\"Bot00001\",\"description\":\"Malicious Bots\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.0\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921190\",\"description\":\"HTTP Splitting (CR/LF in request filename detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921200\",\"description\":\"LDAP Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920181\",\"description\":\"Content-Length and Transfer-Encoding headers present\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920500\",\"description\":\"Attempt to access a backup or working file\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_2.2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_2.2\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"2.2\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030003\",\"description\":\"URL encoded file path\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030004\",\"description\":\"Missing brotli encoding from supporting browser with https referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030005\",\"description\":\"Missing brotli encoding from supporting browser over HTTP/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99030006\",\"description\":\"Illegal character in requested filename\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031005\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replacing rule #942430)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99031006\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replacing rule #942340)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"99032001\",\"description\":\"XSS Filter - Category 2: Event Handler Vector (replacing rule #941120)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99032002\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replacing rule #931130)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"921190\",\"description\":\"HTTP Splitting (CR/LF in request filename detected)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921200\",\"description\":\"LDAP Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921421\",\"description\":\"Content-Type header: Dangerous content type outside the mime type declaration\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921422\",\"description\":\"Detect content types in the Content-Type header outside of the actual content type declaration\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Wrapper scheme detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941370\",\"description\":\"JavaScript global variable found\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941380\",\"description\":\"AngularJS client side template injection detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack (replaced by rule #99031003)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replaced by rule #99031004)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3 (replaced by rule #99031006)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (replaced by rule #99031005)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected (replaced by rule #99031002).\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942500\",\"description\":\"MySQL in-line comment detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942510\",\"description\":\"SQLi bypass attempt by ticks or backticks detected.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"METHOD-ENFORCEMENT\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"911100\",\"description\":\"Method is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ENFORCEMENT\",\"description\":\"Protocol Enforcement\",\"rules\":[{\"ruleId\":\"920100\",\"description\":\"Invalid HTTP Request Line\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920120\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920121\",\"description\":\"Attempted multipart/form-data bypass\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920160\",\"description\":\"Content-Length HTTP header is not numeric.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920170\",\"description\":\"GET or HEAD Request with Body Content.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920171\",\"description\":\"GET or HEAD Request with Transfer-Encoding.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920180\",\"description\":\"POST without Content-Length or Transfer-Encoding headers.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920190\",\"description\":\"Range: Invalid Last Byte Value.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920200\",\"description\":\"Range: Too many fields (6 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920201\",\"description\":\"Range: Too many fields for pdf request (63 or more)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920210\",\"description\":\"Multiple/Conflicting Connection Header Data Found.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920220\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920230\",\"description\":\"Multiple URL Encoding Detected\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920240\",\"description\":\"URL Encoding Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920260\",\"description\":\"Unicode Full/Half Width Abuse Attack Attempt\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920270\",\"description\":\"Invalid character in request (null character)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920271\",\"description\":\"Invalid character in request (non printable characters)\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920280\",\"description\":\"Request Missing a Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920290\",\"description\":\"Empty Host Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920300\",\"description\":\"Request Missing an Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920310\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920311\",\"description\":\"Request Has an Empty Accept Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920320\",\"description\":\"Missing User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920330\",\"description\":\"Empty User Agent Header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920340\",\"description\":\"Request Containing Content, but Missing Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920341\",\"description\":\"Request Containing Content Requires Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920350\",\"description\":\"Host header is a numeric IP address\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920420\",\"description\":\"Request content type is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"920430\",\"description\":\"HTTP protocol version is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920440\",\"description\":\"URL file extension is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920450\",\"description\":\"HTTP header is restricted by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920470\",\"description\":\"Illegal Content-Type header\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920480\",\"description\":\"Request content type charset is not allowed by policy\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920181\",\"description\":\"Content-Length and Transfer-Encoding headers present\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920500\",\"description\":\"Attempt to access a backup or working file\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920530\",\"description\":\"Restrict charset parameter inside content type header to occur max once\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"920620\",\"description\":\"Multiple Content-Type Request Headers\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"General\",\"description\":\"Method Enforcement\",\"rules\":[{\"ruleId\":\"200002\",\"description\":\"Failed to parse request body.\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"200003\",\"description\":\"Multipart request body failed strict validation\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"NODEJS\",\"description\":\"Node JS Attacks\",\"rules\":[{\"ruleId\":\"934100\",\"description\":\"Node.js Injection Attack\",\"defaultAction\":\"AnomalyScoring\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100300\",\"description\":\"High risk bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Verified misc bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200300\",\"description\":\"Verified link checker bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200400\",\"description\":\"Verified social media bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200500\",\"description\":\"Verified content fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200600\",\"description\":\"Verified feed fetchers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200700\",\"description\":\"Verified Advertising bots\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_HTTPDDoSRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_HTTPDDoSRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"Microsoft_HTTPDDoSRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"89e83da1-abda-4b9d-a1c9-da4ecd89bd89\",\"ruleGroups\":[{\"ruleGroupName\":\"ExcessiveRequests\",\"description\":\"Excessive Requests\",\"rules\":[{\"ruleId\":\"500100\",\"description\":\"Anomaly detected on high rate of client requests\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"500110\",\"description\":\"Suspected bots sending high rate of requests\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.2\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.2\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005005\",\"description\":\"Web Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replacing rule #942110)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected (replacing rule #942440).\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031003\",\"description\":\"SQL Injection Attack (replacing rule #942150)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031004\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3 (replacing rule #942260)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001002\",\"description\":\"Attempted Citrix NSC_USER directory traversal (CVE-2019-19781)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001003\",\"description\":\"Attempted Atlassian Confluence Widget Connector exploitation (CVE-2019-3396)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001004\",\"description\":\"Attempted Pulse Secure custom template exploitation (CVE-2020-8243)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001005\",\"description\":\"Attempted SharePoint type converter exploitation (CVE-2020-0932)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001006\",\"description\":\"Attempted Pulse Connect directory traversal (CVE-2019-11510)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001007\",\"description\":\"Attempted Junos OS J-Web local file inclusion (CVE-2020-1631)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001008\",\"description\":\"Attempted Fortinet path traversal (CVE-2018-13379)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001009\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-5638)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001010\",\"description\":\"Attempted Apache struts ognl injection (CVE-2017-12611)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001011\",\"description\":\"Attempted Oracle WebLogic path traversal (CVE-2020-14882)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001012\",\"description\":\"Attempted Telerik WebUI insecure deserialization exploitation (CVE-2019-18935)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001013\",\"description\":\"Attempted SharePoint insecure XML deserialization (CVE-2019-0604)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_DefaultRuleSet_1.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_DefaultRuleSet_1.1\",\"properties\":{\"ruleSetType\":\"Microsoft_DefaultRuleSet\",\"ruleSetVersion\":\"1.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005002\",\"description\":\"Web Shell Interaction Attempt (POST)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005003\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER PHP\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005004\",\"description\":\"Web Shell Upload Attempt (POST) - CHOPPER ASPX\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-AppSec\",\"description\":\"Path traversal evasion\",\"rules\":[{\"ruleId\":\"99030001\",\"description\":\"Path Traversal Evasion in Headers (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99030002\",\"description\":\"Path Traversal Evasion in Request Body (/.././../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"99031001\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99031002\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001001\",\"description\":\"Attempted F5 tmui (CVE-2020-5902) REST API Exploitation with known credentials\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/Microsoft_BotManagerRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"Microsoft_BotManagerRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"Microsoft_BotManagerRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"BadBots\",\"description\":\"Bad bots\",\"rules\":[{\"ruleId\":\"Bot100100\",\"description\":\"Malicious bots detected by threat intelligence\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot100200\",\"description\":\"Malicious bots that have falsified their identity\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"GoodBots\",\"description\":\"Good bots\",\"rules\":[{\"ruleId\":\"Bot200100\",\"description\":\"Search engine crawlers\",\"defaultAction\":\"Allow\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot200200\",\"description\":\"Unverified search engine crawlers\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"UnknownBots\",\"description\":\"Unknown bots\",\"rules\":[{\"ruleId\":\"Bot300100\",\"description\":\"Unspecified identity\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300200\",\"description\":\"Tools and frameworks for web crawling and attacks\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300300\",\"description\":\"General purpose HTTP clients and SDKs\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300400\",\"description\":\"Service agents\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300500\",\"description\":\"Site health monitoring services\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300600\",\"description\":\"Unknown bots detected by threat intelligence\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"Bot300700\",\"description\":\"Other bots\",\"defaultAction\":\"Log\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_1.0\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"MS-ThreatIntel-WebShells\",\"description\":\"Web shell attacks\",\"rules\":[{\"ruleId\":\"99005006\",\"description\":\"Spring4Shell Interaction Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"MS-ThreatIntel-CVEs\",\"description\":\"Rest API exploitation\",\"rules\":[{\"ruleId\":\"99001014\",\"description\":\"Attempted Spring Cloud routing-expression injection (CVE-2022-22963)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001015\",\"description\":\"Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001016\",\"description\":\"Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"},{\"ruleId\":\"99001017\",\"description\":\"Attempted Apache Struts file upload exploitation (CVE-2023-50164)\",\"defaultAction\":\"Block\",\"defaultState\":\"Disabled\"}]},{\"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\",\"rules\":[{\"ruleId\":\"921110\",\"description\":\"HTTP Request Smuggling Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921130\",\"description\":\"HTTP Response Splitting Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921140\",\"description\":\"HTTP Header Injection Attack via headers\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921160\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"921151\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link (replaced by rule #99032002)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932120\",\"description\":\"Remote Command Execution: Windows PowerShell Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932160\",\"description\":\"Remote Command Execution: Unix Shell Code Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932180\",\"description\":\"Restricted File Upload Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: PHP Open Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933120\",\"description\":\"PHP Injection Attack: Configuration Directive Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933130\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933150\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933151\",\"description\":\"PHP Injection Attack: Medium-Risk PHP Function Name Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942150\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943110\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID Parameter Name with No Referer\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Remote Command Execution: Java serialization (CVE-2015-5842)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944130\",\"description\":\"Suspicious Java class detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable java serialization in use\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Remote Command Execution: Suspicious Java method detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/DefaultRuleSet_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"DefaultRuleSet_preview-0.1\",\"properties\":{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"8125d145-ddc5-4d90-9bc3-24c5f2de69a2\",\"ruleGroups\":[{\"ruleGroupName\":\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[{\"ruleId\":\"930100\",\"description\":\"Path Traversal Attack (/../) using Encoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930110\",\"description\":\"Path Traversal Attack (/../) using Decoded Payloads\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"930130\",\"description\":\"Restricted File Access Attempt\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RFI\",\"description\":\"Remote file inclusion\",\"rules\":[{\"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931120\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"RCE\",\"description\":\"Remote Command Execution attacks\",\"rules\":[{\"ruleId\":\"932100\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932106\",\"description\":\"Remote Command Execution: Unix Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932110\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932115\",\"description\":\"Remote Command Execution: Windows Command Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932150\",\"description\":\"Remote Command Execution: Direct Unix Command Execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932170\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock (CVE-2014-6271)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"932190\",\"description\":\"Remote Command Execution: Wildcard\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"PHP\",\"description\":\"PHP attacks\",\"rules\":[{\"ruleId\":\"933100\",\"description\":\"PHP Injection Attack: Opening/Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933111\",\"description\":\"PHP Injection Attack: PHP Script File Upload Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933131\",\"description\":\"PHP Injection Attack: Variables Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O Stream Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933160\",\"description\":\"PHP Injection Attack: High-Risk PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933161\",\"description\":\"PHP Injection Attack: Low-Value PHP Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933170\",\"description\":\"PHP Injection Attack: Serialized Object Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function Call Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933190\",\"description\":\"PHP Injection Attack: PHP Closing Tag Found\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933200\",\"description\":\"PHP Injection Attack: Abusing of PHP wrappers could lead to RCE\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"933210\",\"description\":\"PHP Injection Attack: Variable Function Call Found (bypass 933180)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\",\"rules\":[{\"ruleId\":\"941100\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941101\",\"description\":\"XSS Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941120\",\"description\":\"XSS Filter - Category 2: Event Handler Vector (replaced by rule #99032001)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941130\",\"description\":\"XSS Filter - Category 3: Attribute Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941150\",\"description\":\"XSS Filter - Category 5: Disallowed HTML Attributes\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941160\",\"description\":\"NoScript XSS InjectionChecker: HTML Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker: Attribute Injection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941180\",\"description\":\"Node-Validator Blacklist Keywords\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941190\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941210\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941230\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941250\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941270\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941290\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941310\",\"description\":\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941320\",\"description\":\"Possible XSS Attack Detected - HTML Tag Handler\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941340\",\"description\":\"IE XSS Filters - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE XSS - Attack Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"941360\",\"description\":\"JSFuck / Hieroglyphy obfuscation detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\",\"rules\":[{\"ruleId\":\"942100\",\"description\":\"SQL Injection Attack Detected via libinjection\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942110\",\"description\":\"SQL Injection Attack: Common Injection Testing Detected (replaced by rule #99031001)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942120\",\"description\":\"SQL Injection Attack: SQL Operator Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB Names Detected\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests using sleep() or benchmark().\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep injection attempts including conditional queries\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942180\",\"description\":\"Detects basic SQL authentication bypass attempts 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution and information gathering attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated injections and backtick termination\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection attempts 1/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942220\",\"description\":\"Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942230\",\"description\":\"Detects conditional SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942240\",\"description\":\"Detects MySQL charset switch and MSSQL DoS attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942251\",\"description\":\"Detects HAVING injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass attempts 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942270\",\"description\":\"Looking for basic sql injection. Common attack string for mysql, oracle and others.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB SQL injection attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942310\",\"description\":\"Detects chained SQL injection attempts 2/2\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942320\",\"description\":\"Detects MySQL and PostgreSQL stored procedure/function injections\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942330\",\"description\":\"Detects classic SQL injection probings 1/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication bypass attempts 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure manipulation attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942360\",\"description\":\"Detects concatenated basic SQL injection and SQLLFI attempts\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942361\",\"description\":\"Detects basic SQL injection based on keyword alter or union\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942370\",\"description\":\"Detects classic SQL injection probings 2/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942380\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942390\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942410\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942431\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (6)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942432\",\"description\":\"Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (2)\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942450\",\"description\":\"SQL Hex Encoding Identified\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942470\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942480\",\"description\":\"SQL Injection Attack\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"942490\",\"description\":\"Detects classic SQL injection probings 3/3\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\",\"rules\":[{\"ruleId\":\"943100\",\"description\":\"Possible Session Fixation Attack: Setting Cookie Values in HTML\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]},{\"ruleGroupName\":\"JAVA\",\"description\":\"Java attacks\",\"rules\":[{\"ruleId\":\"944100\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944110\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944120\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944200\",\"description\":\"Java: deserialization that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944210\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944240\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944250\",\"description\":\"Java: possible payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"},{\"ruleId\":\"944300\",\"description\":\"Java: base64 attack that could lead to payload execution\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}},{\"id\":\"/providers/Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets/BotProtection_preview-0.1\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets\",\"name\":\"BotProtection_preview-0.1\",\"properties\":{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetId\":\"e44514af-018d-49e9-8070-c9edac0f3a0d\",\"ruleGroups\":[{\"ruleGroupName\":\"KnownBadBots\",\"description\":\"\",\"rules\":[{\"ruleId\":\"Bot00001\",\"description\":\"Malicious Bots\",\"defaultAction\":\"Block\",\"defaultState\":\"Enabled\"}]}],\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json index 05a86ea6c582..ad9b188e4650 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+1": { + "Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "43e23652-3806-455f-8eac-0a4602d46237" ], + "x-ms-client-request-id": [ "30edb95b-882a-48fb-8335-04fa93c87229" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,23 +23,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0f25ca8e-504c-457d-9f45-58615b552b47" ], - "x-ms-client-request-id": [ "43e23652-3806-455f-8eac-0a4602d46237" ], + "x-ms-request-id": [ "8176401e-a0b3-4050-9bbb-188ddd1f9d4c" ], + "x-ms-client-request-id": [ "30edb95b-882a-48fb-8335-04fa93c87229" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "98ac8e19-30b8-44c6-ace4-01fdc3d1bc3e" ], - "x-ms-routing-request-id": [ "AUSTRALIASOUTHEAST:20251022T000427Z:98ac8e19-30b8-44c6-ace4-01fdc3d1bc3e" ], + "x-ms-correlation-request-id": [ "15d110c8-f9e1-4288-a4ea-6ab6b70447eb" ], + "x-ms-routing-request-id": [ "AUSTRALIASOUTHEAST:20251029T034922Z:15d110c8-f9e1-4288-a4ea-6ab6b70447eb" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 02C2B224F93C47B3A2B2C9EB95E1F301 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:26Z" ], - "Date": [ "Wed, 22 Oct 2025 00:04:26 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DDFCA0DF13324DA78B56E0A9D48DA0C7 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:49:20Z" ], + "Date": [ "Wed, 29 Oct 2025 03:49:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafy0a4\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafy0a4\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Recording.json new file mode 100644 index 000000000000..e1cb7481bc98 --- /dev/null +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Recording.json @@ -0,0 +1,220 @@ +{ + "New-AzFrontDoor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new?api-version=2021-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "894fa865-4754-4c2b-8285-9a03848110cf" ], + "CommandName": [ "Get-AzFrontDoor" ], + "FullCommandName": [ "Get-AzFrontDoor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "8f4e7bcf-bb8d-42a7-b3b8-ed881b7f9937" ], + "x-ms-correlation-request-id": [ "8f4e7bcf-bb8d-42a7-b3b8-ed881b7f9937" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T034923Z:8f4e7bcf-bb8d-42a7-b3b8-ed881b7f9937" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9078E6559BB74E57B58DFC2437E53FBD Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:49:23Z" ], + "Date": [ "Wed, 29 Oct 2025 03:49:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "228" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-new\u0027 under resource group \u0027testps-rg-703f\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "New-AzFrontDoor+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new?api-version=2021-06-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-new.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3018" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "a2d635ae-6945-40f8-8c10-dbf770477d28" ], + "x-ms-client-request-id": [ "b465ddd2-5faf-4303-a370-e91994119dee" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/978aae12-5294-4691-bd50-0ddbe51610df?api-version=2021-06-01\u0026t=638973065663654218\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEP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Cs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=TN64wue_C_HXl0vXpSMLx9-N3j8TbZhHPK2bykK2G2DhlWnBggS_tOzwiI0kRYe-xnhOGW7co09iL_vGQ0PGYZewk1plH8Oq8ad6JfmY6yRoJxFTfPZcGlMNs0_uuEsQNCt9LNTRhjC8DyqmaFwrpsR5QS-8omWJs7djls_8g-KkbI5jVwxTo4_MVsxSMCyrfRJ34Efy4COsOYGQh_8daqd8xHIUKawz-zi4tn3BewURXVFWVBWbrRnZlKAihXIiwpPsSBui0_rsL_ck3dSZSZw5mUwNlzYjWHu8l2fLUyjZmoLDDTJ06hYW4qmKcXTz26aRtVZ24FjpvVT1pTmBOQ\u0026h=OwKcbpK8oCPhz5BTlsgwytm-ArVBGhnGjYhGhyScdiM" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/bae7f888-f5d4-4cbc-86bc-2a4fd94516a7" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "78be352c-3370-41c3-a6ee-0037ad91bb18" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T034926Z:78be352c-3370-41c3-a6ee-0037ad91bb18" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FBE810D026944CA9A112D8E174CED054 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:49:23Z" ], + "Date": [ "Wed, 29 Oct 2025 03:49:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-new\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-new\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"40456abc-13dd-4811-bc0c-b7f82a99f2bb\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-new.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-new.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "isContentBase64": false + } + }, + "New-AzFrontDoor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/978aae12-5294-4691-bd50-0ddbe51610df?api-version=2021-06-01\u0026t=638973065663654218\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMK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Lx9-N3j8TbZhHPK2bykK2G2DhlWnBggS_tOzwiI0kRYe-xnhOGW7co09iL_vGQ0PGYZewk1plH8Oq8ad6JfmY6yRoJxFTfPZcGlMNs0_uuEsQNCt9LNTRhjC8DyqmaFwrpsR5QS-8omWJs7djls_8g-KkbI5jVwxTo4_MVsxSMCyrfRJ34Efy4COsOYGQh_8daqd8xHIUKawz-zi4tn3BewURXVFWVBWbrRnZlKAihXIiwpPsSBui0_rsL_ck3dSZSZw5mUwNlzYjWHu8l2fLUyjZmoLDDTJ06hYW4qmKcXTz26aRtVZ24FjpvVT1pTmBOQ\u0026h=OwKcbpK8oCPhz5BTlsgwytm-ArVBGhnGjYhGhyScdiM+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/978aae12-5294-4691-bd50-0ddbe51610df?api-version=2021-06-01\u0026t=638973065663654218\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2F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Zewk1plH8Oq8ad6JfmY6yRoJxFTfPZcGlMNs0_uuEsQNCt9LNTRhjC8DyqmaFwrpsR5QS-8omWJs7djls_8g-KkbI5jVwxTo4_MVsxSMCyrfRJ34Efy4COsOYGQh_8daqd8xHIUKawz-zi4tn3BewURXVFWVBWbrRnZlKAihXIiwpPsSBui0_rsL_ck3dSZSZw5mUwNlzYjWHu8l2fLUyjZmoLDDTJ06hYW4qmKcXTz26aRtVZ24FjpvVT1pTmBOQ\u0026h=OwKcbpK8oCPhz5BTlsgwytm-ArVBGhnGjYhGhyScdiM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "b465ddd2-5faf-4303-a370-e91994119dee" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "325d41e0-2d98-4eab-ba53-7c779b5346f1" ], + "x-ms-client-request-id": [ "b465ddd2-5faf-4303-a370-e91994119dee" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6006b4e4-70e0-42e9-93de-855625766c19" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "6449c421-3f38-40bb-90e3-846a241c890d" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T034936Z:6449c421-3f38-40bb-90e3-846a241c890d" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 61A3F18732594E809BF2DBBE2C671F9A Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:49:36Z" ], + "Date": [ "Wed, 29 Oct 2025 03:49:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "62" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "New-AzFrontDoor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/978aae12-5294-4691-bd50-0ddbe51610df?api-version=2021-06-01\u0026t=638973065663654218\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDj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8DyqmaFwrpsR5QS-8omWJs7djls_8g-KkbI5jVwxTo4_MVsxSMCyrfRJ34Efy4COsOYGQh_8daqd8xHIUKawz-zi4tn3BewURXVFWVBWbrRnZlKAihXIiwpPsSBui0_rsL_ck3dSZSZw5mUwNlzYjWHu8l2fLUyjZmoLDDTJ06hYW4qmKcXTz26aRtVZ24FjpvVT1pTmBOQ\u0026h=OwKcbpK8oCPhz5BTlsgwytm-ArVBGhnGjYhGhyScdiM+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/978aae12-5294-4691-bd50-0ddbe51610df?api-version=2021-06-01\u0026t=638973065663654218\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2j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GQh_8daqd8xHIUKawz-zi4tn3BewURXVFWVBWbrRnZlKAihXIiwpPsSBui0_rsL_ck3dSZSZw5mUwNlzYjWHu8l2fLUyjZmoLDDTJ06hYW4qmKcXTz26aRtVZ24FjpvVT1pTmBOQ\u0026h=OwKcbpK8oCPhz5BTlsgwytm-ArVBGhnGjYhGhyScdiM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "b465ddd2-5faf-4303-a370-e91994119dee" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "60c4cd37-1205-4f36-8892-9f8c27356aa1" ], + "x-ms-client-request-id": [ "b465ddd2-5faf-4303-a370-e91994119dee" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/100756ba-5d70-428c-ae45-1cd3e87abfe8" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "102fdd82-3dcf-4527-907f-47023e674a25" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035007Z:102fdd82-3dcf-4527-907f-47023e674a25" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7980D79BC9FE4742A288389BD23A55CD Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:50:07Z" ], + "Date": [ "Wed, 29 Oct 2025 03:50:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "New-AzFrontDoor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new?api-version=2021-06-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new?api-version=2021-06-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "b465ddd2-5faf-4303-a370-e91994119dee" ], + "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], + "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "a9c7dbfd-3290-4cee-a99c-28dd7318eabe" ], + "x-ms-client-request-id": [ "b465ddd2-5faf-4303-a370-e91994119dee" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "4d28a315-8369-4ee1-87aa-76e0398edc43" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035008Z:4d28a315-8369-4ee1-87aa-76e0398edc43" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E3BC0C04DAB34BA49F656668E971C4D9 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:50:07Z" ], + "Date": [ "Wed, 29 Oct 2025 03:50:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4129" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-new\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-new\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"40456abc-13dd-4811-bc0c-b7f82a99f2bb\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-new/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-new/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-new.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-new.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Tests.ps1 b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Tests.ps1 index 63b6b4b9b66c..333b850a9896 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Tests.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoor.Tests.ps1 @@ -15,8 +15,21 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoor')) } Describe 'New-AzFrontDoor' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CreateExpanded' { + $resourceGroupName = $env.ResourceGroupName + + $frontDoorName = 'testps-fd-new' + $tags = @{"tag1" = "value1"; "tag2" = "value2"} + $hostName = "$frontDoorName.azurefd.net" + $routingrule1 = New-AzFrontDoorRoutingRuleObject -Name "routingrule1" -FrontDoorName $frontDoorName -ResourceGroupName $resourceGroupName -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" + $backend1 = New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" + $healthProbeSetting1 = New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" -HealthProbeMethod "Head" -EnabledState "Disabled" + $loadBalancingSetting1 = New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" + $frontendEndpoint1 = New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName $hostName + $backendpool1 = New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $frontDoorName -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" + $backendPoolsSetting1 = New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 33 -EnforceCertificateNameCheck "Enabled" + New-AzFrontDoor -Name $frontDoorName -ResourceGroupName $resourceGroupName -RoutingRule $routingrule1 -BackendPool $backendpool1 -BackendPoolsSetting $backendPoolsSetting1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -Tag $tags + } It 'CreateViaJsonFilePath' -skip { diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json index 6d0369760216..5cc939f024d3 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+1": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,41 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "192cf945-c026-4af8-b2d5-2c3b5df8a951" ], - "x-ms-client-request-id": [ "09c41eec-1a9f-4797-aca7-f410088ca4fd" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/11e7d553-b76f-4798-a76b-8a628917af69" ], + "x-ms-request-id": [ "40f65ad7-02df-4cdc-b7a8-5523bef67c45" ], + "x-ms-client-request-id": [ "feec5995-0d3b-4e64-8ec6-1bbc86b818c1" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/618e0cda-6377-468c-af8f-f50c6b9dffad" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "afd89621-0253-4aee-9093-25d0fbb88a86" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000439Z:afd89621-0253-4aee-9093-25d0fbb88a86" ], + "x-ms-correlation-request-id": [ "0bf87347-e753-45e2-abf7-ea69e7192cca" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035020Z:0bf87347-e753-45e2-abf7-ea69e7192cca" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 17E3C8A2BB984DBB99AD6F3CAEF79E65 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:04:38Z" ], - "Date": [ "Wed, 22 Oct 2025 00:04:39 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 385FF098BE7246EDA3D6CF34698A00B4 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:50:19Z" ], + "Date": [ "Wed, 29 Oct 2025 03:50:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+2": { + "New-AzFrontDoorRulesEngine+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "09c41eec-1a9f-4797-aca7-f410088ca4fd" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "feec5995-0d3b-4e64-8ec6-1bbc86b818c1" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -63,24 +63,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "63b094df-b084-44bb-8735-4399b7a152dc" ], - "x-ms-client-request-id": [ "09c41eec-1a9f-4797-aca7-f410088ca4fd" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c77f39e4-cfae-4683-b3a4-0b70e5dab075" ], + "x-ms-request-id": [ "b76fdcb1-2fbb-4833-92b5-d118e33990b3" ], + "x-ms-client-request-id": [ "feec5995-0d3b-4e64-8ec6-1bbc86b818c1" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3eaa2fe5-4e72-4844-ad5e-ddbf78219def" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ed6d5e9d-6d19-4e26-8b7e-9b8e4a7667cf" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000510Z:ed6d5e9d-6d19-4e26-8b7e-9b8e4a7667cf" ], + "x-ms-correlation-request-id": [ "49988f42-13c9-4b08-bbda-4d3f33c8b481" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035051Z:49988f42-13c9-4b08-bbda-4d3f33c8b481" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B196424E6C5F42C8B7E505A0E174BC88 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:09Z" ], - "Date": [ "Wed, 22 Oct 2025 00:05:10 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 643966C359244A5DAAB97C589C24DC2B Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:50:50Z" ], + "Date": [ "Wed, 29 Oct 2025 03:50:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json index b802b4a3d1b0..af268a4276ef 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/New-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01+1": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf7kyh?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf7kyh?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "1b0478e6-7dee-41c8-ba11-eb74dbf27d19" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "5779679d-4f56-4e00-aa9c-df95b26538f0" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,28 +23,28 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "1c01e6ca-4424-491a-9fd8-64681a669565" ], - "x-ms-correlation-request-id": [ "1c01e6ca-4424-491a-9fd8-64681a669565" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000519Z:1c01e6ca-4424-491a-9fd8-64681a669565" ], + "x-ms-request-id": [ "de4106d0-bfd7-409a-bc2d-b6929a624cc5" ], + "x-ms-correlation-request-id": [ "de4106d0-bfd7-409a-bc2d-b6929a624cc5" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035102Z:de4106d0-bfd7-409a-bc2d-b6929a624cc5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 46D7A1539B5347EEB76AA8A584069871 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:19Z" ], - "Date": [ "Wed, 22 Oct 2025 00:05:19 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 68596681B0814104B4299B4E03958A41 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:51:01Z" ], + "Date": [ "Wed, 29 Oct 2025 03:51:01 GMT" ] }, "ContentHeaders": { "Content-Length": [ "257" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafnudq\u0027 under resource group \u0027testps-rg-2xfo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWaf7kyh\u0027 under resource group \u0027testps-rg-703f\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01+2": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf7kyh?api-version=2025-03-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf7kyh?api-version=2025-03-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -60,41 +60,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0c4f2006-1fc5-4760-b5b8-ffb0c2d5b7b9" ], - "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6670a2b1-76de-4e6b-a133-3e31b37b17a1" ], + "x-ms-request-id": [ "aa714123-971d-4d93-a8be-c76da1e62d32" ], + "x-ms-client-request-id": [ "59877bc6-6ee6-4f39-a353-e14c110435e7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/081829d1-e12a-4962-bbac-49566378ab63" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "97675fce-4de4-403d-84f8-7708f68fb6ab" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000521Z:97675fce-4de4-403d-84f8-7708f68fb6ab" ], + "x-ms-correlation-request-id": [ "caeb6d33-72c4-4895-8899-6340f87488c0" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035103Z:caeb6d33-72c4-4895-8899-6340f87488c0" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 666383BCFCE44173B1A3F480C470C637 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:19Z" ], - "Date": [ "Wed, 22 Oct 2025 00:05:20 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 9F8295E8C52A4D49A20E9F3C6B172091 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:51:02Z" ], + "Date": [ "Wed, 29 Oct 2025 03:51:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafnudq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafnudq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf7kyh\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf7kyh\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01+3": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf7kyh?api-version=2025-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf7kyh?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "59877bc6-6ee6-4f39-a353-e14c110435e7" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -105,40 +105,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "15b6ee08-a8f6-4017-b16a-ddf5ef19e4e9" ], - "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], + "x-ms-request-id": [ "9ebc8083-e61d-4361-a826-2dd6f17ff01b" ], + "x-ms-client-request-id": [ "59877bc6-6ee6-4f39-a353-e14c110435e7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "fa82c71e-9ab3-431a-90b7-e744ed38be23" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000552Z:fa82c71e-9ab3-431a-90b7-e744ed38be23" ], + "x-ms-correlation-request-id": [ "152dd9f5-d78c-4e33-bd56-26c00fd7ed98" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035134Z:152dd9f5-d78c-4e33-bd56-26c00fd7ed98" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 95D8AE355A8547EB81FAA8DA34C00200 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:51Z" ], - "Date": [ "Wed, 22 Oct 2025 00:05:51 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 90086759780349258B0C8236D60DA407 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:51:33Z" ], + "Date": [ "Wed, 29 Oct 2025 03:51:34 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafnudq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafnudq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf7kyh\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf7kyh\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01+4": { + "New-AzFrontDoorWafPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf7kyh?api-version=2025-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafnudq?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf7kyh?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "59877bc6-6ee6-4f39-a353-e14c110435e7" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -149,23 +149,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d09f2a14-c46c-42a3-be37-cbb96fc84f66" ], - "x-ms-client-request-id": [ "7eb6429a-20e7-4225-9467-5a082a268409" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "22e7c92d-ad6c-4140-ac70-18f3493cd2b8" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000552Z:22e7c92d-ad6c-4140-ac70-18f3493cd2b8" ], + "x-ms-request-id": [ "1f49c7c3-2291-4019-8b24-0a7f0c8b1745" ], + "x-ms-client-request-id": [ "59877bc6-6ee6-4f39-a353-e14c110435e7" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "25adaa38-d3d3-4f68-b488-86204928c7a3" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035135Z:25adaa38-d3d3-4f68-b488-86204928c7a3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: DCDB29654862450484102E00BA897CBB Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:52Z" ], - "Date": [ "Wed, 22 Oct 2025 00:05:52 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 6FFA5BD707704D29A8F12161286E0044 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:51:34Z" ], + "Date": [ "Wed, 29 Oct 2025 03:51:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafnudq\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafnudq\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf7kyh\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf7kyh\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json index 3180c5acdf00..c77aff261795 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01+1": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "c165594c-349d-4cc8-be17-2bc6d376c8a5" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "2a343869-e899-4278-89b3-83e243b11919" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,29 +23,29 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "a1836e96-d03d-4987-9005-cf9182db05b3" ], - "x-ms-correlation-request-id": [ "a1836e96-d03d-4987-9005-cf9182db05b3" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000554Z:a1836e96-d03d-4987-9005-cf9182db05b3" ], + "x-ms-request-id": [ "8445f5d0-349d-4111-9d42-57b1d1e99f41" ], + "x-ms-correlation-request-id": [ "8445f5d0-349d-4111-9d42-57b1d1e99f41" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035137Z:8445f5d0-349d-4111-9d42-57b1d1e99f41" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A60E5D2F68EA441CBBF6C6E898B83519 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:54Z" ], - "Date": [ "Wed, 22 Oct 2025 00:05:54 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DAF0A341BB1D4A97BCCCBC67F2AB586B Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:51:37Z" ], + "Date": [ "Wed, 29 Oct 2025 03:51:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "229" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-bp6l\u0027 under resource group \u0027testps-rg-2xfo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-qca3\u0027 under resource group \u0027testps-rg-703f\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01+2": { + "Remove-AzFrontDoor+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-bp6l.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/FrontendEndpoints/frontendEndpoint2\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/BackendPools/backendPool2\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule2\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting2\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting2\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/LoadBalancingSettings/loadBalancingSetting2\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/HealthProbeSettings/healthProbeSetting2\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool2\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-qca3.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint2\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -61,42 +61,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f8a221c0-8f5b-4281-8317-81acb368303e" ], - "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/e63b8bad-ebb0-461a-870b-d1930fe52b77?api-version=2021-06-01\u0026t=638966883566524807\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f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T9K97JIfY-aEVw5IivOF4j9CiZWf7sJtMdxWWta_3mQoRSnEK-7dbv1JeJ5rTf1NyxyIWMmldKx0EgwKG2yO9dZgtcSI28ZDvTRDHE-jfwcGBX0_gvuToZ6Nd5_U_RQ8V1xI5VwLqRNLTl-3M86JZ1QS032GWQ8Zp2POLIw1G21YNMDIUTkN8hRhskwzrE0S1zpfukJmU1Dn-LXUpSbarWb2Wlrj1P-Q03Nn8ahTh7KtGbC5bF41pX9CkPGywA0xZrko1kQJMVWRq0yaBtoSDhZnySP08-e2ZFykjM3nk0prG6gUTHjaaz4yJAtQ\u0026h=QRmWH7zfQJonQmY7SCYZUwHEXAVufRJ-PC1yKbdWtjc" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6e44ebb8-0ae1-4723-a912-57930a533c26" ], + "x-ms-request-id": [ "94e4707b-94f4-42de-a721-c78e84b5769c" ], + "x-ms-client-request-id": [ "554e017a-3689-47a6-a662-4dab36c9a6d6" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/2a199b6c-ea47-4ba9-8e29-8767de348d6f?api-version=2021-06-01\u0026t=638973067002809344\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQo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Ut-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=BsxsaXutoTskufto0wVvcUf3pyekm92EZ-dSJr_T8Rxm1V9ek9rvqcOwccuz_JlMZAfyIhXl6_o-3VOg9qd9qysTSk2Aht_TLWkdox_pH1LjVLDW7vVaiSYvjVqz8732giKqUaMyuYbL9P90aJRqBy7K1Ye0E1tLCINhr3gaDgqse4f2_Q109n4tN90Jidlg2r5sW2zah6Cs-Ri_RctRXAAW4MJC_wya__26-iFn3h0ZpVbyPqaJOjlnPbe-KINkDYJktc9YRFI7uyIvbms8P9LYp7PzxA44NZjkWfcYdRG1S0AMiyvqrcmeVmBU-f6zDAyvYq2d1CdUd-x5qE62Xw\u0026h=q2M4bE7T_QQqFxum8WdQB2JijMIKPCi6ku7hnXinStU" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/e955ecd4-bbb9-4f51-82ae-1866db1758e5" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "32fdf557-7efb-482b-9454-bde859a6c91a" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000556Z:32fdf557-7efb-482b-9454-bde859a6c91a" ], + "x-ms-correlation-request-id": [ "bddf55ed-2839-4534-9b03-87684c60ea3d" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035140Z:bddf55ed-2839-4534-9b03-87684c60ea3d" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 1E89AA3C2AF14B4AAC7F82F6A8AA4D94 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:05:54Z" ], - "Date": [ "Wed, 22 Oct 2025 00:05:56 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 998915EB08944475B07B63722CF62D1A Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:51:37Z" ], + "Date": [ "Wed, 29 Oct 2025 03:51:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-bp6l\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-bp6l\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e012c123-e93b-4162-901a-0aefe7c8538e\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-bp6l.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-bp6l.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-qca3\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-qca3\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3de7838f-d0c4-49d9-a252-de989e58b8d0\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-qca3.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-qca3.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/e63b8bad-ebb0-461a-870b-d1930fe52b77?api-version=2021-06-01\u0026t=638966883566524807\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8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H7zfQJonQmY7SCYZUwHEXAVufRJ-PC1yKbdWtjc+3": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/2a199b6c-ea47-4ba9-8e29-8767de348d6f?api-version=2021-06-01\u0026t=638973067002809344\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFB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estUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/e63b8bad-ebb0-461a-870b-d1930fe52b77?api-version=2021-06-01\u0026t=638966883566524807\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtp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BBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=w1KPaa9TOVjeJHMI2GkfIRKIgkT9K97JIfY-aEVw5IivOF4j9CiZWf7sJtMdxWWta_3mQoRSnEK-7dbv1JeJ5rTf1NyxyIWMmldKx0EgwKG2yO9dZgtcSI28ZDvTRDHE-jfwcGBX0_gvuToZ6Nd5_U_RQ8V1xI5VwLqRNLTl-3M86JZ1QS032GWQ8Zp2POLIw1G21YNMDIUTkN8hRhskwzrE0S1zpfukJmU1Dn-LXUpSbarWb2Wlrj1P-Q03Nn8ahTh7KtGbC5bF41pX9CkPGywA0xZrko1kQJMVWRq0yaBtoSDhZnySP08-e2ZFykjM3nk0prG6gUTHjaaz4yJAtQ\u0026h=QRmWH7zfQJonQmY7SCYZUwHEXAVufRJ-PC1yKbdWtjc", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/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AtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=BsxsaXutoTskufto0wVvcUf3pyekm92EZ-dSJr_T8Rxm1V9ek9rvqcOwccuz_JlMZAfyIhXl6_o-3VOg9qd9qysTSk2Aht_TLWkdox_pH1LjVLDW7vVaiSYvjVqz8732giKqUaMyuYbL9P90aJRqBy7K1Ye0E1tLCINhr3gaDgqse4f2_Q109n4tN90Jidlg2r5sW2zah6Cs-Ri_RctRXAAW4MJC_wya__26-iFn3h0ZpVbyPqaJOjlnPbe-KINkDYJktc9YRFI7uyIvbms8P9LYp7PzxA44NZjkWfcYdRG1S0AMiyvqrcmeVmBU-f6zDAyvYq2d1CdUd-x5qE62Xw\u0026h=q2M4bE7T_QQqFxum8WdQB2JijMIKPCi6ku7hnXinStU", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "554e017a-3689-47a6-a662-4dab36c9a6d6" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -107,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d14d572b-5582-4044-b440-b63759fbca8d" ], - "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/526acad1-d5ba-4132-be4b-36fb8ff2cc37" ], + "x-ms-request-id": [ "d8098363-6f16-40df-8b71-a82d660564f4" ], + "x-ms-client-request-id": [ "554e017a-3689-47a6-a662-4dab36c9a6d6" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/64e0c210-f907-4874-bd04-bcf728dabb4d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "c18f714d-4ed0-49c1-9b6b-f8cf1517d42c" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000607Z:c18f714d-4ed0-49c1-9b6b-f8cf1517d42c" ], + "x-ms-correlation-request-id": [ "18a4060d-d470-4b47-a88b-8557030d9956" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035150Z:18a4060d-d470-4b47-a88b-8557030d9956" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 5966EDB45AA448A8A679777B5DF227C7 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:06:06Z" ], - "Date": [ "Wed, 22 Oct 2025 00:06:06 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 7B0B0B4488D74E35BD6FCD348E98DDD6 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:51:50Z" ], + "Date": [ "Wed, 29 Oct 2025 03:51:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -128,20 +128,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01+4": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "554e017a-3689-47a6-a662-4dab36c9a6d6" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -152,39 +152,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8b2dbf33-3cd3-4f9d-aa29-57ed1f3e65ed" ], - "x-ms-client-request-id": [ "4e86159b-2da6-4034-a076-0f0adf8f2d86" ], + "x-ms-request-id": [ "5b8116ab-d296-4d78-8d3f-dd1441923e58" ], + "x-ms-client-request-id": [ "554e017a-3689-47a6-a662-4dab36c9a6d6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "0f491517-7f48-4f4a-b968-fa7051e11758" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000608Z:0f491517-7f48-4f4a-b968-fa7051e11758" ], + "x-ms-correlation-request-id": [ "9a29fce1-4e47-400b-ba0a-c96b2dfa200b" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035151Z:9a29fce1-4e47-400b-ba0a-c96b2dfa200b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A105EB1815BE41B38ECD54DA3DB43951 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:06:07Z" ], - "Date": [ "Wed, 22 Oct 2025 00:06:07 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F79F2901C52B4A71BC762D77EA9904C1 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:51:50Z" ], + "Date": [ "Wed, 29 Oct 2025 03:51:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-bp6l\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-bp6l\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"e012c123-e93b-4162-901a-0aefe7c8538e\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-bp6l/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-bp6l.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-bp6l.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-qca3\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-qca3\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/RoutingRules/routingrule2\",\"name\":\"routingrule2\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/BackendPools/backendPool2\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/FrontendEndpoints/frontendEndpoint2\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"3de7838f-d0c4-49d9-a252-de989e58b8d0\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/LoadBalancingSettings/loadbalancingsetting2\",\"name\":\"loadbalancingsetting2\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/HealthProbeSettings/healthProbeSetting2\",\"name\":\"healthProbeSetting2\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/BackendPools/backendpool2\",\"name\":\"backendpool2\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/LoadBalancingSettings/loadBalancingSetting2\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3/HealthProbeSettings/healthProbeSetting2\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-qca3/FrontendEndpoints/frontendendpoint2\",\"name\":\"frontendendpoint2\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-qca3.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-qca3.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01+5": { + "Remove-AzFrontDoor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3?api-version=2021-06-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-bp6l?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-qca3?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -195,21 +195,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea/frontdoorresults/testps-fd-bp6l?api-version=2021-06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wYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=MZCT6I4gzbM8wtxZOGVFfi6kMNVELgQq2u3OvoUsDfGuSU4JQgpl5vFIiq6J3FUCNMgC-qLCm8jMQ4arxOWWoIVJpCozrjITUArCMbjoJYvbE0s9sChUCjhmnRMAABgF_iwp_-dlxO7NGnYV2sEWZoPSifEpgQHeL-4NcfyDJzdgKChtnK1bwjEovJnAr3Xoiq2OJYYqZDb4EsB2EtuQVbDzZrHQ3BLPRB2fHibj__LaJD4Zt00CuDO1Jw_xggXRu8fz7MGmR8k1eZUL4vaO7dNdH6a28ov3d4Ezqlx_UI6pV9PrBUWVgQ7RQaGOIl5FyDrav36uV2kHq0S5Fvhz4Q\u0026h=_IZYwqh_cZepzzfBxsZjkqgSV6MkcTXzCR5FZIsWLlo" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9/frontdoorresults/testps-fd-qca3?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QR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UIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=cqYh2v5MH4PUVc5veb4QOenBeYFIy8zhLV9mULaBvdgnmt2bxNT1xipqJ_G0W0VbEAeACd8pEAv4AM71MQc4e-Jlmg1_0uCflPCiC2ndWCEMHHVe2KnzioNwtKJJEvXod3xvY6mlTuBhGKoZFExXOo3FKWHW2v96Smi3GKH6DXpuicksANgwBRF0iZfZrLeV4YoCQqoGrbHgYji6KqRf5-wPLE3cwyVdnlZZuAR2hrFmcCCH5j2q3gV0pC04c6pABr0pgFIwtIGas-o4CimKE369qeLc1694s29r4Duk3MRFdLsiF2vwThX1160pt2_6JNy_NfZOrZr054rpUOvy_g\u0026h=bXi6m7vsWDsvnR8GcNr-5xNpv2b9rYGMkRCixOhFT-o" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "2a2d390c-e567-4253-9a41-ac1f07b301b4" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9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gjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/120b930a-efc9-4f60-8a33-d93d1636bc26" ], + "x-ms-request-id": [ "2ec787a7-8756-48d2-8e94-c8f445a11325" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3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e396a67-4dc1-43ae-afcc-c6747d291866/westus/b5702a70-ff48-45c6-8a80-84e58ed4a984" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "9fa58631-3abf-42ff-9d83-f292393190fd" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000629Z:9fa58631-3abf-42ff-9d83-f292393190fd" ], + "x-ms-correlation-request-id": [ "faa63730-7671-4411-9407-e240b939ec16" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035212Z:faa63730-7671-4411-9407-e240b939ec16" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 87D030598237464CB5F4B0565B24A613 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:06:28Z" ], - "Date": [ "Wed, 22 Oct 2025 00:06:29 GMT" ] + "X-MSEdge-Ref": [ "Ref A: C0185A3073A345F7AA00D9B6E8306031 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:52:11Z" ], + "Date": [ "Wed, 29 Oct 2025 03:52:12 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -219,20 +219,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzW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wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+6": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ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I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhv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0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv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glh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -243,17 +243,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "34ecc181-32e9-4086-b447-36ccb6b752fa" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6e0d4791-e75f-4a6c-ae27-c4850eafc117" ], + "x-ms-request-id": [ "d06d616f-cedc-447b-8acb-670be99a8508" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b1b144d9-a31e-44ad-9f4a-f609eb2c951f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "450ae9a1-4076-4824-b7c0-27849406925a" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000640Z:450ae9a1-4076-4824-b7c0-27849406925a" ], + "x-ms-correlation-request-id": [ "cebd3168-fcc4-4209-ab08-b472d2c98d28" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035223Z:cebd3168-fcc4-4209-ab08-b472d2c98d28" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 36ED6D68FD80459BB74C89E1676C677D Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:06:40Z" ], - "Date": [ "Wed, 22 Oct 2025 00:06:40 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4B5D4DAB3ED74F78877B25D124B9644B Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:52:23Z" ], + "Date": [ "Wed, 29 Oct 2025 03:52:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -264,20 +264,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-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YBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+7": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP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IWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRY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cNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcN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TDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -288,17 +288,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "5488f598-28bc-4773-981c-390f9a166700" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/20ac3c45-9c02-4dfd-a8e3-42586707822d" ], + "x-ms-request-id": [ "be973d2f-28a6-49c8-9695-348b721d15ef" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ab814057-6479-47a7-bc5c-1ea30b59da9b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "9df0660e-b87d-43c8-ba6c-ba43ff40425a" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000712Z:9df0660e-b87d-43c8-ba6c-ba43ff40425a" ], + "x-ms-correlation-request-id": [ "a13ec576-82cd-4353-9de5-af4a678a91ac" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035254Z:a13ec576-82cd-4353-9de5-af4a678a91ac" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: E26A4D64A6534FCEAC3FF4E3D362F7B2 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:07:11Z" ], - "Date": [ "Wed, 22 Oct 2025 00:07:11 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 129FBF61DCB34AC7B829AF9BE59B56CC Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:52:54Z" ], + "Date": [ "Wed, 29 Oct 2025 03:52:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -309,20 +309,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh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kxnSZcqCePlZZR-CLImjY+8": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGC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ZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEv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wSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoo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ZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -333,17 +333,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "94c6925d-8867-4c33-b5ea-972467451772" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/26848548-72d7-4ec9-9fb7-f979fbfe27e0" ], + "x-ms-request-id": [ "5684a576-e75f-4509-8a08-e4732edaa66d" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c1820566-b652-4d9b-baab-9dd0ebbd184f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "c7d85c0f-ddc5-4b17-b9f6-1ed61b7e652e" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000743Z:c7d85c0f-ddc5-4b17-b9f6-1ed61b7e652e" ], + "x-ms-correlation-request-id": [ "23a2340b-4f01-4250-8184-5b867630169d" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035325Z:23a2340b-4f01-4250-8184-5b867630169d" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 767D6D9F93B64F5AA91FCA485B859C4F Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:07:42Z" ], - "Date": [ "Wed, 22 Oct 2025 00:07:42 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 13FEAEDC93A8461B9C8495D2F8F574D4 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:53:24Z" ], + "Date": [ "Wed, 29 Oct 2025 03:53:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -354,20 +354,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgp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gLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+9": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouE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-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCc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aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAw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yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -378,17 +378,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "20371416-9b05-4bef-94b3-0b6b81403a7b" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/da033220-4c19-4952-b078-262b46bae485" ], + "x-ms-request-id": [ "750219cc-71a1-489c-8058-1d09c418822d" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/44541b8b-5ee7-44d9-82b0-b7111006c10c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "3793204e-83ad-45b7-b7b5-9b5bd1ce6c2c" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000814Z:3793204e-83ad-45b7-b7b5-9b5bd1ce6c2c" ], + "x-ms-correlation-request-id": [ "96d165a6-397c-4668-98cb-ce72d25ef992" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035356Z:96d165a6-397c-4668-98cb-ce72d25ef992" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 025CCD79D4A94CF488DB87C672F535F8 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:08:14Z" ], - "Date": [ "Wed, 22 Oct 2025 00:08:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F5F6854AB20F433F999DE3148C3B4C81 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:53:55Z" ], + "Date": [ "Wed, 29 Oct 2025 03:53:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -399,20 +399,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBN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l4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+10": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlN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ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f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vVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGz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YLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -423,17 +423,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "37c822cd-7871-496d-888f-2267133a31b8" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c767110a-fdf5-4641-a3e0-82f1b77b785e" ], + "x-ms-request-id": [ "d0e6054d-eefa-47cb-88cb-e235df3bd440" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b4878bc1-094a-4621-ae89-fa5c8e53161b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "87d2e2a1-691f-4acf-8910-893b69bbc560" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000845Z:87d2e2a1-691f-4acf-8910-893b69bbc560" ], + "x-ms-correlation-request-id": [ "ebeacdbb-b8db-45c5-a051-2cba262bf9c9" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035426Z:ebeacdbb-b8db-45c5-a051-2cba262bf9c9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: FA268E317C854795A4B9F764B2D62BB1 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:08:45Z" ], - "Date": [ "Wed, 22 Oct 2025 00:08:44 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B2C5ACAE355C408884785B1CEAEE675B Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:54:26Z" ], + "Date": [ "Wed, 29 Oct 2025 03:54:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -444,20 +444,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9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PY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+11": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjY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QvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25p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PxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADgg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RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -468,17 +468,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1b4a3ce2-fe74-4444-913d-513a5b3eb22d" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/aba58dc3-3b32-4bb8-aaa9-b72d1927ef5b" ], + "x-ms-request-id": [ "182f571c-8cbe-4b8a-bdd3-eb9ec265f58c" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2797c337-d750-4244-b5fd-e329b09f4bc6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "bc0d2faa-0974-4f63-a0fa-923413fa787b" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000916Z:bc0d2faa-0974-4f63-a0fa-923413fa787b" ], + "x-ms-correlation-request-id": [ "16ac550d-0d67-4a06-a3a1-eacc1dd059c6" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035457Z:16ac550d-0d67-4a06-a3a1-eacc1dd059c6" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 62AAA94754D4444F985457C1AA02FCB5 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:09:15Z" ], - "Date": [ "Wed, 22 Oct 2025 00:09:15 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2FEEA4B8CB0844BA82E90BB934ABC65F Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:54:57Z" ], + "Date": [ "Wed, 29 Oct 2025 03:54:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "62" ], @@ -489,20 +489,20 @@ "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTU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AA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+12": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f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ANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=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SMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=t1fsKzy6O5sO0nINtTrYF1kzpshDvVxMBNF7UOqDAyVX8Bcu0SGiArGUnlRo2HFxv7rKTHQfBE0gYwvoQD8JNVfVvWRhUwdC-ZU4EDWe5AecFvhSGZW92z5JFcxOVDb-0uGTZORuOJxAgLMpQRS5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZ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IwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -513,41 +513,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "2ad50c30-59a9-4e1f-ae49-73c4da749f1f" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/816d2d94-7eb9-45e8-a8a3-a5cfab073d41" ], + "x-ms-request-id": [ "78e7636c-27da-4151-bc2f-ef914f4f9a65" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6afb72f8-0f77-4765-9f3b-322a7a24e357" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "59a0cb50-2455-4f10-9513-5e22a19816a4" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000947Z:59a0cb50-2455-4f10-9513-5e22a19816a4" ], + "x-ms-correlation-request-id": [ "431d4c81-fe1b-412a-8686-d9f621b9e2be" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035528Z:431d4c81-fe1b-412a-8686-d9f621b9e2be" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: FEB215900BC740F684A01D2B7E3950A1 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:09:47Z" ], - "Date": [ "Wed, 22 Oct 2025 00:09:47 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 173269D5412E42A4BCD06F93CC201D5D Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:55:27Z" ], + "Date": [ "Wed, 29 Oct 2025 03:55:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "61" ], + "Content-Length": [ "62" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "Content": "{\"status\":\"InProgress\",\"error\":{\"code\":\"None\",\"message\":null}}", "isContentBase64": false } }, - "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn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S5mZyw0rfBjh4KFIqORIJk4S7HJ4Aj5wd8FrUQPH7tfl9cDoT0ow3EtRPdRnQmYxqsmaHU93yvWwcbZ6z97yHZxVrH8XYOw4X91aAUW6MlccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY+13": { + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5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AhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/4fd02504-6cc7-40dd-8cd7-d15bfaf9a6ea?api-version=2021-06-01\u0026t=638966883899669864\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGA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lccRArmrqYP9UDHyzSDMKxeFo3TjC77nW3D3za3dr5wgSVgU6uertQTWMQ4pGJrguKbcixWRaUDSioczoRKZ-EG6-Hw\u0026h=PzgrqjJe0Xxc8-v9JZflN0kxnSZcqCePlZZR-CLImjY", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKw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aTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], "CommandName": [ "Remove-AzFrontDoor" ], "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -558,17 +558,62 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "976ef575-996a-48c2-a7b5-5c6672a88a43" ], - "x-ms-client-request-id": [ "5080a552-a91f-49f0-b447-7f0c0a624044" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b40d0b57-8bd3-4c08-a002-5abd37db1fdd" ], + "x-ms-request-id": [ "60f1966a-59fe-42df-8a96-2ce088c40fe2" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c208f028-2548-4d3a-9c93-f5ac1266e2d7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "7ced1717-987f-441f-81d3-cd9714a2ce98" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000948Z:7ced1717-987f-441f-81d3-cd9714a2ce98" ], + "x-ms-correlation-request-id": [ "c84d0f21-487d-4a65-9146-a29564d219b7" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035559Z:c84d0f21-487d-4a65-9146-a29564d219b7" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EDC5E4D4CF874B929B1138E046ED2B35 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:55:58Z" ], + "Date": [ "Wed, 29 Oct 2025 03:55:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "61" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"status\":\"Succeeded\",\"error\":{\"code\":\"None\",\"message\":null}}", + "isContentBase64": false + } + }, + "Remove-AzFrontDoor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2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gL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=e6Qn_-IP0arcy6FtjkcKwtKmJ4b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/f9b7da13-b73d-46ef-8db8-45c39c3399a9?api-version=2021-06-01\u0026t=638973067328456770\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3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b80XxB_V7fonsH7jg-on-fkp2k_G6OCGgQCABa-gfBJW1-GkgQ6l-_xftNhXrZZcCOfFmyzaQX1HYLn8Phs0z_hnv362634Xvxe78symSuFCr3uIhXgCuiHEY6JohcHZrr7ZS-J8SbQEN4wU416-lPtIdyRuIR86PbVLf8w2pIU-MWtcDAhTz57wXIpNVVqjp5AzBQRWuV2G2Y_2KD2GalvmXGoUc224ZBBEuPfeCWnhU4QiNc_F7FujyMtjuTR1FTqZE-X7TMEKlCMJZO-dT2kaZGqvSFwUSHCGnCx-p79XTy0yxY8iqaTaQ6rw\u0026h=eD8g7G6U8br4uBvFSMusPZXMyeVBzC_dHtncXmNJaKs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "CommandName": [ "Remove-AzFrontDoor" ], + "FullCommandName": [ "Remove-AzFrontDoor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "b5a5b6e3-ba1e-4e94-8270-73286734a13a" ], + "x-ms-client-request-id": [ "fdbd0b10-8f6e-4452-850a-988ffe1c17c7" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/5d0fa891-15fa-4c80-a407-5963ba7deb52" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "92c2669a-bf74-46c0-96fc-1d6e2e2d35b2" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035559Z:92c2669a-bf74-46c0-96fc-1d6e2e2d35b2" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C7A52746D69E4C018AE97FDD9527FA66 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:09:48Z" ], - "Date": [ "Wed, 22 Oct 2025 00:09:47 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 94FD6C53FAD94E39BDAE880312F497F0 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:55:59Z" ], + "Date": [ "Wed, 29 Oct 2025 03:55:59 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json index 38f6ca77d51c..c594cdfc438c 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorRulesEngine.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01+1": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine102?api-version=2021-06-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine102?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Append\",\r\n \"headerName\": \"X-Content-Type-Options\",\r\n \"value\": \"nosniff\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -18,41 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "141f1686-47d3-4197-8eb2-f081f88ca365" ], - "x-ms-client-request-id": [ "4d53d215-45ac-4e47-a001-2fa7d0f9d9be" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2cb238e9-48da-4921-a7a3-26ab461585f0" ], + "x-ms-request-id": [ "bed483a5-e02b-4d5a-9222-e700d09f7a38" ], + "x-ms-client-request-id": [ "0bf59f46-4148-481f-9423-5edfd764a125" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/62e747ca-2109-46c6-b485-a333656c7a7d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "b0561444-04bc-4e38-9113-5f61a785b393" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T000951Z:b0561444-04bc-4e38-9113-5f61a785b393" ], + "x-ms-correlation-request-id": [ "d988f21a-07fa-4dcd-b929-c48e2465c19d" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035602Z:d988f21a-07fa-4dcd-b929-c48e2465c19d" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A795EEC134BB43FC9D232FF06DADB89F Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:09:50Z" ], - "Date": [ "Wed, 22 Oct 2025 00:09:50 GMT" ] + "X-MSEdge-Ref": [ "Ref A: BB1D06D7B85B42259A64198209559144 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:56:01Z" ], + "Date": [ "Wed, 29 Oct 2025 03:56:01 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01+2": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine102?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "4d53d215-45ac-4e47-a001-2fa7d0f9d9be" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "0bf59f46-4148-481f-9423-5edfd764a125" ], "CommandName": [ "New-AzFrontDoorRulesEngine" ], "FullCommandName": [ "New-AzFrontDoorRulesEngine_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -63,40 +63,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "aafaa714-7d93-4024-a1a3-fc1d02ab8fa4" ], - "x-ms-client-request-id": [ "4d53d215-45ac-4e47-a001-2fa7d0f9d9be" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ea177f24-777e-4ac8-be95-2b5c139b7eeb" ], + "x-ms-request-id": [ "1e6f8ada-a1a9-42ff-98ac-f0975e1b3fe6" ], + "x-ms-client-request-id": [ "0bf59f46-4148-481f-9423-5edfd764a125" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/fa4149ca-d8d2-4bd1-a5f9-f3adf8cbd798" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "ad53ff15-299a-43ae-8b9a-89e2631bd64d" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001022Z:ad53ff15-299a-43ae-8b9a-89e2631bd64d" ], + "x-ms-correlation-request-id": [ "ce8ea468-f551-4e22-86d4-780cc609efd3" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035633Z:ce8ea468-f551-4e22-86d4-780cc609efd3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: B63B27C92437402F9E60F0DEC71F3EFE Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:21Z" ], - "Date": [ "Wed, 22 Oct 2025 00:10:21 GMT" ] + "X-MSEdge-Ref": [ "Ref A: AA8E9843CD3945AB8179CF24DBA222B0 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:56:32Z" ], + "Date": [ "Wed, 29 Oct 2025 03:56:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/rulesengines/engine102\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine102\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01+3": { + "Remove-AzFrontDoorRulesEngine+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine102?api-version=2021-06-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine102?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine102?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "2c595fcc-84db-42e6-aa40-fed57b871447" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "02da238d-3d77-44a0-ade4-264fc06208d4" ], "CommandName": [ "Remove-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Remove-AzFrontDoorRulesEngine_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -108,17 +108,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "dab81d7f-9311-4198-9f5a-6e5d32228c2f" ], - "x-ms-client-request-id": [ "2c595fcc-84db-42e6-aa40-fed57b871447" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/f144a9a2-2a92-440b-b6d9-e26bfd1b55ea" ], + "x-ms-request-id": [ "8fe5a11c-2a33-4856-9ade-7922780ecfe6" ], + "x-ms-client-request-id": [ "02da238d-3d77-44a0-ade4-264fc06208d4" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d9727e60-5f45-4bcd-8f19-a52e0f0fb60e" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "bc225f73-74a1-4a37-8407-e6b27623b3bd" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001023Z:bc225f73-74a1-4a37-8407-e6b27623b3bd" ], + "x-ms-correlation-request-id": [ "375efc11-445b-4d27-b391-0c8341cbd68b" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035634Z:375efc11-445b-4d27-b391-0c8341cbd68b" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 724CBA481C1A4A17BE61F5C08CCC4600 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:22Z" ], - "Date": [ "Wed, 22 Oct 2025 00:10:22 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 0B485AC646BD463380A5EBA20F5096BC Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:56:33Z" ], + "Date": [ "Wed, 29 Oct 2025 03:56:34 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json index f55e0cbf303c..43a12e14ed8d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Remove-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+1": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "b2dc50f3-ac7f-4d62-8e25-70beb26f848d" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "3ff33b01-2571-4ac4-ad12-92b5c27cec41" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,28 +23,28 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "41adc943-0543-4668-9107-44c6277b6b27" ], - "x-ms-correlation-request-id": [ "41adc943-0543-4668-9107-44c6277b6b27" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001024Z:41adc943-0543-4668-9107-44c6277b6b27" ], + "x-ms-request-id": [ "ea469d85-2963-4b98-8029-09e235fda838" ], + "x-ms-correlation-request-id": [ "ea469d85-2963-4b98-8029-09e235fda838" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035636Z:ea469d85-2963-4b98-8029-09e235fda838" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: CF529664FB8B40209FC25202A926BFA8 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:24Z" ], - "Date": [ "Wed, 22 Oct 2025 00:10:23 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F5E5D86CCEAF44BFB692D1DDA94B2806 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:56:35Z" ], + "Date": [ "Wed, 29 Oct 2025 03:56:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "257" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafrvue\u0027 under resource group \u0027testps-rg-2xfo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoorWebApplicationFirewallPolicies/testpsWafpgs5\u0027 under resource group \u0027testps-rg-703f\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+2": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule1\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\"\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Enabled\",\r\n \"scrubbingRules\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"EqualsAny\",\r\n \"state\": \"Enabled\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -60,41 +60,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "149e1417-7b08-4335-9460-863cb6214856" ], - "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/00a155b0-5737-4246-98af-558372d0cf00" ], + "x-ms-request-id": [ "98875dca-530e-43b0-96f1-4a15b283a7cb" ], + "x-ms-client-request-id": [ "710ae4ba-1cf5-4e33-aac4-cf9cc9175d9b" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/c8ba0f1f-629c-4b33-933f-f5f397539fbf" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "9a9973f8-5b2e-483b-b4b5-906a80b48790" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001025Z:9a9973f8-5b2e-483b-b4b5-906a80b48790" ], + "x-ms-correlation-request-id": [ "8f11abeb-2e1c-4063-84e7-542e8e732bce" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035638Z:8f11abeb-2e1c-4063-84e7-542e8e732bce" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 637CC7C8AACC427B87550512B27AA9DC Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:24Z" ], - "Date": [ "Wed, 22 Oct 2025 00:10:24 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 430F6E1D4CC143409FC0DDD70EBF463A Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:56:36Z" ], + "Date": [ "Wed, 29 Oct 2025 03:56:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafrvue\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafrvue\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafpgs5\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafpgs5\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+3": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "710ae4ba-1cf5-4e33-aac4-cf9cc9175d9b" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -105,40 +105,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "72c77e1d-439b-4e22-8efb-57e4d67c5fef" ], - "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], + "x-ms-request-id": [ "b583234e-9958-45b4-bfe6-6d593ddfc17c" ], + "x-ms-client-request-id": [ "710ae4ba-1cf5-4e33-aac4-cf9cc9175d9b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "d1cdc571-c05e-41eb-8f9a-2ff8143d59cb" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001057Z:d1cdc571-c05e-41eb-8f9a-2ff8143d59cb" ], + "x-ms-correlation-request-id": [ "1097ec8a-3a2c-4b31-b747-345a4569f708" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035709Z:1097ec8a-3a2c-4b31-b747-345a4569f708" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 06871B35936B4305B41B4267E03EC007 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:56Z" ], - "Date": [ "Wed, 22 Oct 2025 00:10:56 GMT" ] + "X-MSEdge-Ref": [ "Ref A: DB4A600F6DA849A9B3B19EE4CB6504BF Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:08Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafrvue\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafrvue\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafpgs5\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafpgs5\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+4": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "710ae4ba-1cf5-4e33-aac4-cf9cc9175d9b" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoorWafPolicy" ], "FullCommandName": [ "New-AzFrontDoorWafPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -149,39 +149,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "17ca541b-0fa1-4dd8-bc84-ae3a0ca48247" ], - "x-ms-client-request-id": [ "df9aee47-1213-49ef-af0f-b573a7a5155b" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "b37bf6cd-6f9b-4e8b-a35d-9f088b864795" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001057Z:b37bf6cd-6f9b-4e8b-a35d-9f088b864795" ], + "x-ms-request-id": [ "618858e6-0b07-4bf5-b1e1-23927583371f" ], + "x-ms-client-request-id": [ "710ae4ba-1cf5-4e33-aac4-cf9cc9175d9b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "8a6dca32-ba34-4e2e-8ea4-4ecdfec17ed7" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035710Z:8a6dca32-ba34-4e2e-8ea4-4ecdfec17ed7" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 51660DA586074B559AA98BAD8BF977D4 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:57Z" ], - "Date": [ "Wed, 22 Oct 2025 00:10:56 GMT" ] + "X-MSEdge-Ref": [ "Ref A: F801C52D9C9D437497113E67D7634327 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:09Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:09 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafrvue\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafrvue\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafpgs5\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafpgs5\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01+5": { + "Remove-AzFrontDoorWafPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafrvue?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafpgs5?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "c1c96df0-f722-43d6-a587-18a9c26ac8f9" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "22294a33-83fa-4cc9-9388-d7ca0dcfcb9c" ], "CommandName": [ "Remove-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Remove-AzFrontDoorWafPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -193,17 +193,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9d19df00-b956-4356-857b-e7b5cd36c9d9" ], - "x-ms-client-request-id": [ "c1c96df0-f722-43d6-a587-18a9c26ac8f9" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/7e5935f2-a2ef-4ee3-91d5-886490b5bb0b" ], + "x-ms-request-id": [ "7bd989c7-a060-4761-95b9-228fa9d0b3b0" ], + "x-ms-client-request-id": [ "22294a33-83fa-4cc9-9388-d7ca0dcfcb9c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/5fa87534-7a16-428b-ade8-a631b5dcb9ca" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], - "x-ms-correlation-request-id": [ "ae34de08-d709-4445-b1e7-3d81a591cd4e" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001058Z:ae34de08-d709-4445-b1e7-3d81a591cd4e" ], + "x-ms-correlation-request-id": [ "374a91a1-af17-4d9d-9c8b-a9cd77c27cb3" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035711Z:374a91a1-af17-4d9d-9c8b-a9cd77c27cb3" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 6FC752FE079E427B818E63CB3808A494 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:57Z" ], - "Date": [ "Wed, 22 Oct 2025 00:10:57 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 284A42EF777A47A882E70BFA292B52C7 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:10Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:10 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json index 13e661be12fb..bdebe1390fb4 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoor.Recording.json @@ -1,17 +1,17 @@ { - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+1": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "f786e138-226b-4574-9270-86c7a05bef68" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "4711d6d6-b1e9-41b9-bf4f-533adcfe4128" ], "CommandName": [ "Get-AzFrontDoor" ], "FullCommandName": [ "Get-AzFrontDoor_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,29 +23,29 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "a014ba76-87cc-4baf-b306-906e83ac5867" ], - "x-ms-correlation-request-id": [ "a014ba76-87cc-4baf-b306-906e83ac5867" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001059Z:a014ba76-87cc-4baf-b306-906e83ac5867" ], + "x-ms-request-id": [ "a85a29e5-6716-4b4e-b061-c89a96dce753" ], + "x-ms-correlation-request-id": [ "a85a29e5-6716-4b4e-b061-c89a96dce753" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035712Z:a85a29e5-6716-4b4e-b061-c89a96dce753" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: D1F365ECA16747B39737E64182992389 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:59Z" ], - "Date": [ "Wed, 22 Oct 2025 00:10:58 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 0539CF5B2D934F648B64F952AE055720 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:12Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "229" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-35am\u0027 under resource group \u0027testps-rg-2xfo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/frontdoors/testps-fd-a7lp\u0027 under resource group \u0027testps-rg-703f\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+2": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-35am.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value2\",\r\n \"tag1\": \"value1\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Head\",\r\n \"enabledState\": \"Disabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-a7lp.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 33\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -61,42 +61,42 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e3855ec3-0aeb-4895-ab34-4e74184d0e96" ], - "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/3f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QBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=PnbbQ3qCubp6MuNHqkYO1kShVlvZj4w715TdsnsSlcf84SRNN1gCJuQ3-JdkxIbZgUhONsyB3pSjYn8kPpi7s5TfGvqcO7q_vlgxXYFCH3u_QujLiJsofEXZDaNiEZIYd16SH3nQ8IGDFbNgUhLnRMq7ZqnODZ9bt6ySv84rr3qRRWH3dhIs2lv649zrQnsQ7G8RET4JJMicrT0ktTxxKvdPjbt_z1zEc3NADxtaO9TCcG-Vr4BIEE-1b2yQHvNGXPsQMzGkNvFW7QDhRBnz2TZONdE1mGxLpvTAPuq8FvW7OpYoY4YVuIiEVZ7hw05FcPKpCbS8mlPrmii6_F-KXw\u0026h=xL1hnHp26IOwumCelcZpS92v2UrTqBAeRFippRpAdPc" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/5da7582d-8819-4c72-aa90-d1874cabf2da" ], + "x-ms-request-id": [ "692b7d52-ae79-4237-9662-5959e20a91b7" ], + "x-ms-client-request-id": [ "2cea7f60-0384-48f6-9de9-d66fb300f854" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/2e4404e3-742a-4f10-9979-ed16e8fe24a7?api-version=2021-06-01\u0026t=638973070360309149\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFB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d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/b4880b17-1770-49ca-a40b-a6ed89f7ddf3" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "219f3126-05a6-473a-9399-e7714711eed5" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001101Z:219f3126-05a6-473a-9399-e7714711eed5" ], + "x-ms-correlation-request-id": [ "cf6dd4c3-afa7-4fc7-8484-afd4e90e8502" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035716Z:cf6dd4c3-afa7-4fc7-8484-afd4e90e8502" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: F2CA52BA4A3641B5BB4250F44E6A8A85 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:10:59Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:00 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2C73018117B3470F95FC212F28764925 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:12Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4147" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-a7lp\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-a7lp\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"570c6664-ab94-44c2-a654-3f4af2d8e450\",\"extendedProperties\":{},\"resourceState\":\"Creating\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Creating\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Creating\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Creating\",\"hostName\":\"testps-fd-a7lp.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-a7lp.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Creating\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/3f8fae4f-e0d1-42f6-98bb-d97439db481e?api-version=2021-06-01\u0026t=638966886616882538\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6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ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=PnbbQ3qCubp6MuNHqkYO1kShVlvZj4w715TdsnsSlcf84SRNN1gCJuQ3-JdkxIbZgUhONsyB3pSjYn8kPpi7s5TfGvqcO7q_vlgxXYFCH3u_QujLiJsofEXZDaNiEZIYd16SH3nQ8IGDFbNgUhLnRMq7ZqnODZ9bt6ySv84rr3qRRWH3dhIs2lv649zrQnsQ7G8RET4JJMicrT0ktTxxKvdPjbt_z1zEc3NADxtaO9TCcG-Vr4BIEE-1b2yQHvNGXPsQMzGkNvFW7QDhRBnz2TZONdE1mGxLpvTAPuq8FvW7OpYoY4YVuIiEVZ7hw05FcPKpCbS8mlPrmii6_F-KXw\u0026h=xL1hnHp26IOwumCelcZpS92v2UrTqBAeRFippRpAdPc+3": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/2e4404e3-742a-4f10-9979-ed16e8fe24a7?api-version=2021-06-01\u0026t=638973070360309149\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBA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gEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=HqxBpKJlC4dK7-wMIBYGmZAzlVvJ-lW2TLEIBbLarNNddLmDlUQGDFeU5R91Ar6hENASv528nTo0CYrV2kyvLF-4rLNts5HRQsjkaOkIstDqWwlT3-s9f7OOg9J0-KiIRDgSPEJ1cDfI1Resy9gFdoZHvJkUZiv7Mx1q8R9yYI5mWq_JMHFJ_b9U62GIr8F-jxIwDKl0I2lBGhJWOil-sNtkprgCSgPfW74OpliRFnO-gceYWF-k8z3sJiiSIhUMFo3D_3o32DBZp4iKNKPO4x_FxcdgjMSOXxsw398fpUrU2tUzLusFucXoUh7BcOLslg7u0G84o8zHcUpbOZLjKw\u0026h=PDhIKoAZQTqjVrecaqwt-Md-2sOkiqcAzJDTLV8eIiE+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/3f8fae4f-e0d1-42f6-98bb-d97439db481e?api-version=2021-06-01\u0026t=638966886616882538\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlx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w0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=PnbbQ3qCubp6MuNHqkYO1kShVlvZj4w715TdsnsSlcf84SRNN1gCJuQ3-JdkxIbZgUhONsyB3pSjYn8kPpi7s5TfGvqcO7q_vlgxXYFCH3u_QujLiJsofEXZDaNiEZIYd16SH3nQ8IGDFbNgUhLnRMq7ZqnODZ9bt6ySv84rr3qRRWH3dhIs2lv649zrQnsQ7G8RET4JJMicrT0ktTxxKvdPjbt_z1zEc3NADxtaO9TCcG-Vr4BIEE-1b2yQHvNGXPsQMzGkNvFW7QDhRBnz2TZONdE1mGxLpvTAPuq8FvW7OpYoY4YVuIiEVZ7hw05FcPKpCbS8mlPrmii6_F-KXw\u0026h=xL1hnHp26IOwumCelcZpS92v2UrTqBAeRFippRpAdPc", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/2e4404e3-742a-4f10-9979-ed16e8fe24a7?api-version=2021-06-01\u0026t=638973070360309149\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4V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W2TLEIBbLarNNddLmDlUQGDFeU5R91Ar6hENASv528nTo0CYrV2kyvLF-4rLNts5HRQsjkaOkIstDqWwlT3-s9f7OOg9J0-KiIRDgSPEJ1cDfI1Resy9gFdoZHvJkUZiv7Mx1q8R9yYI5mWq_JMHFJ_b9U62GIr8F-jxIwDKl0I2lBGhJWOil-sNtkprgCSgPfW74OpliRFnO-gceYWF-k8z3sJiiSIhUMFo3D_3o32DBZp4iKNKPO4x_FxcdgjMSOXxsw398fpUrU2tUzLusFucXoUh7BcOLslg7u0G84o8zHcUpbOZLjKw\u0026h=PDhIKoAZQTqjVrecaqwt-Md-2sOkiqcAzJDTLV8eIiE", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "2cea7f60-0384-48f6-9de9-d66fb300f854" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -107,17 +107,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "62865946-6a74-426a-9cf8-233b5144554e" ], - "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/59a5f73f-e7ec-4313-b9e5-89b0c8712ff0" ], + "x-ms-request-id": [ "f35cce77-853a-405f-b6fa-516bc45ce2a9" ], + "x-ms-client-request-id": [ "2cea7f60-0384-48f6-9de9-d66fb300f854" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/2e412eca-b1bc-40e8-8204-fa53ece4854a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "0d939e65-3c0b-4f05-a899-a23479c0dc99" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001112Z:0d939e65-3c0b-4f05-a899-a23479c0dc99" ], + "x-ms-correlation-request-id": [ "1b765189-fd23-4b44-b066-fcfae0475dfd" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035726Z:1b765189-fd23-4b44-b066-fcfae0475dfd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 2F60C0BF50504C6689332DE9A206F5AA Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:11Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:12 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 49E8F758C6214EDEA2E700AAB5A88715 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:26Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -128,20 +128,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+4": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "2cea7f60-0384-48f6-9de9-d66fb300f854" ], "CommandName": [ "Az.FrontDoor.internal\\New-AzFrontDoor" ], "FullCommandName": [ "New-AzFrontDoor_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -152,39 +152,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f0663c8b-9e33-40b0-aab8-cf764deaf2bc" ], - "x-ms-client-request-id": [ "98e4d2a6-cdfc-45a0-8a6d-303f4311aa64" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "96a3c4a7-b550-4327-901d-d6dcc097deec" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001113Z:96a3c4a7-b550-4327-901d-d6dcc097deec" ], + "x-ms-request-id": [ "d2a15730-31df-4948-89bc-375f17007026" ], + "x-ms-client-request-id": [ "2cea7f60-0384-48f6-9de9-d66fb300f854" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "97da1e2d-9447-47d6-a503-60fd52a6c7b2" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035727Z:97da1e2d-9447-47d6-a503-60fd52a6c7b2" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: C2364A9B6F244889B88F38523D60218F Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:12Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A5BFBE9DC901408CB77E4F95C1752565 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:26Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-a7lp\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-a7lp\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"570c6664-ab94-44c2-a654-3f4af2d8e450\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-a7lp.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-a7lp.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+5": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "6a32ae5b-fcde-4872-a6f2-cc11e0b425bc" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -196,31 +196,31 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "5d8b92f7-9201-46c8-a957-17c2d90c9881" ], - "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1097" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16497" ], - "x-ms-correlation-request-id": [ "4e7a068d-6551-4753-a4ca-46e859e0d722" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001113Z:4e7a068d-6551-4753-a4ca-46e859e0d722" ], + "x-ms-request-id": [ "8943a811-1eb6-4820-8f21-cb3c9e669967" ], + "x-ms-client-request-id": [ "6a32ae5b-fcde-4872-a6f2-cc11e0b425bc" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "c555e4c8-27f5-4ecf-9d8c-5786f13a91ef" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035728Z:c555e4c8-27f5-4ecf-9d8c-5786f13a91ef" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: EFA8588C82044FAABDD00325A7A909A2 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:13Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:13 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B89755337B1347658CA37C3CB8120C10 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:28Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4142" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-a7lp\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-a7lp\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"570c6664-ab94-44c2-a654-3f4af2d8e450\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Disabled\",\"healthProbeMethod\":\"Head\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-a7lp.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":33},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-a7lp.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+6": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01+6": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag1\": \"value3\",\r\n \"tag2\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-35am.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tag2\": \"value4\",\r\n \"tag1\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"routingRules\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/RoutingRules/routingrule1\",\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [ \"Http\", \"Https\" ],\r\n \"patternsToMatch\": [ \"/*\" ],\r\n \"enabledState\": \"Enabled\",\r\n \"routeConfiguration\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/BackendPools/backendPool1\"\r\n },\r\n \"forwardingProtocol\": \"MatchRequest\"\r\n }\r\n },\r\n \"name\": \"routingrule1\"\r\n }\r\n ],\r\n \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/LoadBalancingSettings/loadbalancingsetting1\",\r\n \"properties\": {\r\n \"sampleSize\": 4,\r\n \"successfulSamplesRequired\": 2,\r\n \"additionalLatencyMilliseconds\": 0\r\n },\r\n \"name\": \"loadbalancingsetting1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 30,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSetting1\"\r\n }\r\n ],\r\n \"backendPools\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/BackendPools/backendpool1\",\r\n \"properties\": {\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/LoadBalancingSettings/loadBalancingSetting1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\"\r\n },\r\n \"backends\": [\r\n {\r\n \"address\": \"contoso1.azurewebsites.net\",\r\n \"httpPort\": 80,\r\n \"httpsPort\": 443,\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"weight\": 50,\r\n \"backendHostHeader\": \"contoso1.azurewebsites.net\"\r\n }\r\n ]\r\n },\r\n \"name\": \"backendpool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/FrontendEndpoints/frontendendpoint1\",\r\n \"properties\": {\r\n \"hostName\": \"testps-fd-a7lp.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Enabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendendpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 20\r\n },\r\n \"enabledState\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -234,45 +234,45 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/275e74c5-1f30-44b2-b919-c31c18280a64/frontdoorresults/testps-fd-35am?api-version=2021-06-01\u0026t=638966886751706192\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_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WHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=fQYWnNVQz8IHRrJXY0EefOy7yzZtgO3uccvvWzEpWHJdx_u-hkm7OABEl7c0qrt1d22wHSA_SpdA2svnearv3nnB_6M48SsG0u56V_VHun0JMnwbRwHL4XVpmWt58aV3NPyH4QFOiRiYDkMOEB9CGY9Yma8iTkncLGm10HhtZTdB9itWoZmiRfdhhdYpUrskjZTxGk3tlv8e3t38Zf8i1yLXaxhDPKv2fdqmdsYpbvKp55XLja_vTv-LNIG0nEw9xwuSjMEWK_AMFZW0f4btL8M1CvUyxkch2XDLv1SzgZ9TnpXPE603X1P1qR-oqxaKtqYEEEAEj9758znsca6A9Q\u0026h=50AYpcadSLnpytnkvtpJ5vyXfGx0gU1MM_Y_YtxSLQE" ], + "Location": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/cd21c0d9-4f37-4481-aebd-9ce2c31444bd/frontdoorresults/testps-fd-a7lp?api-version=2021-06-01\u0026t=638973070504805050\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRM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ggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=kZC1pFuyHPrTAxO7P71TlfnNT1gZKyidXRwgH5hY8r8zGxadoW4Bq6K379vKNy-y1F86ezipbQHvJdXOC6CEZ66qKld8iemT20wjstj2kLdWXBKcanot_CH9Wto-10vKF1fcS6SGcY2LLAjH0aqCsfzr5H1qslwOszcyzsm6lPOjFc-OsMG-YaXUC7Nlh68PN4oEigtSG8RZVzmcGdbCZ5a3ZJqKjY774VAOrs-wl-njr0ThkF9fihzWCzPS-lzab7VlOwp_AKEKrMi8cVS7858Z_1h2rBJYHAyrlw9R9wu_9hlmht3Lrsbw_iiQG1QIv340rgj2tn4H-K7k5E020A\u0026h=hTRX5zXNZCvUwu2DSTiKXQ8lMs25TunIldJLfIeKEg4" ], "Retry-After": [ "10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "243f74c7-4a4c-4311-a094-4e3ae5beb2cd" ], - "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/275e74c5-1f30-44b2-b919-c31c18280a64?api-version=2021-06-01\u0026t=638966886751237571\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7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dBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=ljEqrl3She2FERrp-c6odFWbZluab1Zz00Cd0JKSeDPNIP_eAe0BqeKeiCLHZajFnMx901XnczZOYwdNKKiKWghigDxQ6GW2xKmaHLfuQbVoJh21o7mdTkxAFPmnxNVqDe-2OBGJoJ_VemMjYt0MmKW1u1D9DQF3XseY6lg2R1vbqGLrAbvEH3-HMNjiyFQrJphxU9jxJcyGkJDVf-MqnFtXO-eYdItpK01WX7FXuAXdkmyNMKt__hRkfFYa7d2LIm-sPIzS0JLDm1Le3hjta3tEijYLJ0SqdWxUleGHE_QgH-yeJMwQwj-E-SRhRqtC7l9bHxIIFxPmt8VG-SjqfQ\u0026h=93VCwLhBtlnoJXi9cowdRlrRpb6ihmj7NhA7ARLPwj4" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/39a44219-7fec-4307-ab83-bee68b94e366" ], + "x-ms-request-id": [ "5e4e94d1-c1bf-452a-b184-3bbf4dc14af8" ], + "x-ms-client-request-id": [ "6a32ae5b-fcde-4872-a6f2-cc11e0b425bc" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/cd21c0d9-4f37-4481-aebd-9ce2c31444bd?api-version=2021-06-01\u0026t=638973070504651086\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKcbHC-ij1AA2xiuPbLogZIDjkgpOYoQbn9dJCcXDjro2GtBWEIEIaRIheA5TONmvBvNjwgvM95OihgVouEt3T1X5Jz2jgZVe8XVf5WuHz-a-o1TsKrZzcECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0J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QALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAJ51PdAaul136rrBMSwKBqaPsalRACK88HnU3-MuFwPY3EKcBNfr_DcyIemG6qcdAt6oBTDGXSVm8qGYJ2eHSVBH91yTQvJd5-a7_b9xta0wy4EJYoK-Olj6bE5ygF6klhRzpEyjfq2vFjpc2SF6xPxtXMaj4I7ACMq2QHy3CO_thX0U9_MhBYBb-v3ICmOFIZIBb4wOpeX0BsfrYbqwos0TpMW5k0T0RtCs4mpGUt-7YgEXCPIwlt7JN4fLqGTiEElAPaYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=shXAsCArKLAEn83rzKCOiRuSgBXWc6QVLyXW1CkHK8WvmlvaNJIiwYeiN91WgPvNkyRtr8kDFePjkf9JfdkRR4TrTbNUfne6DKeSFvigMs_UuwqWvrZza_LHtMJFaKaPNr9ci0OnD17i__jZ0UZHUHKFbfojozprzQn7Ogz1JEqVvSROEVsHNXxFlT2LeEZCrKXjGvuRGgetkpkQ-uKfI8tUAzl75lyTFebGCt8Uf7szXsxsh3ESU7E125oGa5UT6R8fG01vAcJ38qTpH_MTAfNYEPOwYaiX9AfiBx8us212m7RiPufssDUql2uOgPtjUHKDbJkzP-Tuxg6WoRX6jg\u0026h=O3nNPMMTv3hvyyLO3ija58dV8dIAWKO3YXbVXWZzuhk" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/84d81861-7605-4f6f-ab81-e4214fd77d29" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "5b1dfa4a-b4fc-4697-a91f-03e606bc85b8" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001115Z:5b1dfa4a-b4fc-4697-a91f-03e606bc85b8" ], + "x-ms-correlation-request-id": [ "0e7b59ce-014f-4244-965f-da48caf03e65" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035730Z:0e7b59ce-014f-4244-965f-da48caf03e65" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 156714FF81D347DAA324CF2917966291 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:13Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:15 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 7DD74C3DBEFE4A4296B13DAA45A6D1D6 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:28Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-a7lp\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-a7lp\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"570c6664-ab94-44c2-a654-3f4af2d8e450\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-a7lp.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-a7lp.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/275e74c5-1f30-44b2-b919-c31c18280a64?api-version=2021-06-01\u0026t=638966886751237571\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON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aYcSl4-0aYA_RVN98y83vlGlM0kIjglh8_t1QOAUw0jy8LA4CNtMdgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=ljEqrl3She2FERrp-c6odFWbZluab1Zz00Cd0JKSeDPNIP_eAe0BqeKeiCLHZajFnMx901XnczZOYwdNKKiKWghigDxQ6GW2xKmaHLfuQbVoJh21o7mdTkxAFPmnxNVqDe-2OBGJoJ_VemMjYt0MmKW1u1D9DQF3XseY6lg2R1vbqGLrAbvEH3-HMNjiyFQrJphxU9jxJcyGkJDVf-MqnFtXO-eYdItpK01WX7FXuAXdkmyNMKt__hRkfFYa7d2LIm-sPIzS0JLDm1Le3hjta3tEijYLJ0SqdWxUleGHE_QgH-yeJMwQwj-E-SRhRqtC7l9bHxIIFxPmt8VG-SjqfQ\u0026h=93VCwLhBtlnoJXi9cowdRlrRpb6ihmj7NhA7ARLPwj4+7": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/cd21c0d9-4f37-4481-aebd-9ce2c31444bd?api-version=2021-06-01\u0026t=638973070504651086\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO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dgL_ncOt66gFr9ocwuFusQMx11WpTM\u0026s=shXAsCArKLAEn83rzKCOiRuSgBXWc6QVLyXW1CkHK8WvmlvaNJIiwYeiN91WgPvNkyRtr8kDFePjkf9JfdkRR4TrTbNUfne6DKeSFvigMs_UuwqWvrZza_LHtMJFaKaPNr9ci0OnD17i__jZ0UZHUHKFbfojozprzQn7Ogz1JEqVvSROEVsHNXxFlT2LeEZCrKXjGvuRGgetkpkQ-uKfI8tUAzl75lyTFebGCt8Uf7szXsxsh3ESU7E125oGa5UT6R8fG01vAcJ38qTpH_MTAfNYEPOwYaiX9AfiBx8us212m7RiPufssDUql2uOgPtjUHKDbJkzP-Tuxg6WoRX6jg\u0026h=O3nNPMMTv3hvyyLO3ija58dV8dIAWKO3YXbVXWZzuhk+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdooroperationresults/275e74c5-1f30-44b2-b919-c31c18280a64?api-version=2021-06-01\u0026t=638966886751237571\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8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eDPNIP_eAe0BqeKeiCLHZajFnMx901XnczZOYwdNKKiKWghigDxQ6GW2xKmaHLfuQbVoJh21o7mdTkxAFPmnxNVqDe-2OBGJoJ_VemMjYt0MmKW1u1D9DQF3XseY6lg2R1vbqGLrAbvEH3-HMNjiyFQrJphxU9jxJcyGkJDVf-MqnFtXO-eYdItpK01WX7FXuAXdkmyNMKt__hRkfFYa7d2LIm-sPIzS0JLDm1Le3hjta3tEijYLJ0SqdWxUleGHE_QgH-yeJMwQwj-E-SRhRqtC7l9bHxIIFxPmt8VG-SjqfQ\u0026h=93VCwLhBtlnoJXi9cowdRlrRpb6ihmj7NhA7ARLPwj4", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdooroperationresults/cd21c0d9-4f37-4481-aebd-9ce2c31444bd?api-version=2021-06-01\u0026t=638973070504651086\u0026c=MIIHhzCCBm-gAwIBAgITfAla5jyv8QRP_5ow7AAACVrmPDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDIwMDQzNjIzWhcNMjYwNDE4MDQzNjIzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMddVfpiBdDmUhIBJwKZ3KQON7oBNDWmOOmY4g1ElyXgEkjon3Gv6o2iUWBTlxPP_EZQJhupEuO2DlNcI72qn4SyWwWct2tCEYRZJerV4rv1id9sCDj3fEamCo4QEH3xMKcGXqtPe3f3eb4VUSK8a2gJFqPiH-B-2oetOTm_-t1_J9TkLUFEUdYIHsylTl0OH2FEQVYAAgRXhe4lJ-WGzZ1ffooW6zFScKc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tMJFaKaPNr9ci0OnD17i__jZ0UZHUHKFbfojozprzQn7Ogz1JEqVvSROEVsHNXxFlT2LeEZCrKXjGvuRGgetkpkQ-uKfI8tUAzl75lyTFebGCt8Uf7szXsxsh3ESU7E125oGa5UT6R8fG01vAcJ38qTpH_MTAfNYEPOwYaiX9AfiBx8us212m7RiPufssDUql2uOgPtjUHKDbJkzP-Tuxg6WoRX6jg\u0026h=O3nNPMMTv3hvyyLO3ija58dV8dIAWKO3YXbVXWZzuhk", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "6a32ae5b-fcde-4872-a6f2-cc11e0b425bc" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -283,17 +283,17 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a18dc349-f0d8-4112-ac2c-6db1e280ba0c" ], - "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/10182b7f-b92f-426d-8739-89653b7e8392" ], + "x-ms-request-id": [ "de341999-e9f6-4077-a1d7-8369533a5cb8" ], + "x-ms-client-request-id": [ "6a32ae5b-fcde-4872-a6f2-cc11e0b425bc" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/4d2fafa3-a507-43c0-9235-201d0dfe03e1" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "f7ccd91b-1282-4681-b28e-028ec269d19a" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001125Z:f7ccd91b-1282-4681-b28e-028ec269d19a" ], + "x-ms-correlation-request-id": [ "dd8ebe97-24be-4663-9541-4905ea18cafd" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035740Z:dd8ebe97-24be-4663-9541-4905ea18cafd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: FCA4036295414130BCE2E6C5095BB1E7 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:25Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:26 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 86F9759F2ECE4466BC8899C1A880B5F3 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:40Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "61" ], @@ -304,20 +304,20 @@ "isContentBase64": false } }, - "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01+8": { + "Set-AzFrontDoor+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "6a32ae5b-fcde-4872-a6f2-cc11e0b425bc" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoor" ], "FullCommandName": [ "Update-AzFrontDoor_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -328,23 +328,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "10d960fd-d1d5-4ef9-8794-a4e22e78d748" ], - "x-ms-client-request-id": [ "c906f904-a355-410c-b92b-b4eee945ac54" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "10804c08-6316-40be-bcbf-11fcd997f1d1" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001126Z:10804c08-6316-40be-bcbf-11fcd997f1d1" ], + "x-ms-request-id": [ "2e0642ce-091c-4aae-820f-7550678376ef" ], + "x-ms-client-request-id": [ "6a32ae5b-fcde-4872-a6f2-cc11e0b425bc" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], + "x-ms-correlation-request-id": [ "002559dd-b41d-45e1-a4bf-b25b85288272" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035741Z:002559dd-b41d-45e1-a4bf-b25b85288272" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 3163ED241ADC4CC88EBA9B6677F5AD63 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:26Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:26 GMT" ] + "X-MSEdge-Ref": [ "Ref A: B1AA2D8B4CF2415DA0491535F99E87F9 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:41Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-35am\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-35am\",\"location\":\"Global\",\"tags\":{\"tag1\":\"value3\",\"tag2\":\"value4\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"a5ff756f-dba2-4e30-a10e-491032c47c35\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-35am/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/Frontdoors/testps-fd-35am/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-35am.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-35am.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-a7lp\",\"type\":\"Microsoft.Network/frontdoors\",\"name\":\"testps-fd-a7lp\",\"location\":\"Global\",\"tags\":{\"tag2\":\"value4\",\"tag1\":\"value3\"},\"properties\":{\"routingRules\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/RoutingRules/routingrule1\",\"name\":\"routingrule1\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\"routeConfiguration\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/BackendPools/backendPool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"rulesEngine\":null,\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/FrontendEndpoints/frontendEndpoint1\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"/*\"],\"enabledState\":\"Enabled\",\"webApplicationFirewallPolicyLink\":null}}],\"rulesEngines\":[],\"frontdoorId\":\"570c6664-ab94-44c2-a654-3f4af2d8e450\",\"extendedProperties\":{},\"resourceState\":\"Enabled\",\"loadBalancingSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/LoadBalancingSettings/loadbalancingsetting1\",\"name\":\"loadbalancingsetting1\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":4,\"successfulSamplesRequired\":2,\"additionalLatencyMilliseconds\":0}}],\"healthProbeSettings\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\",\"name\":\"healthProbeSetting1\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\"resourceState\":\"Enabled\",\"path\":\"/\",\"protocol\":\"Http\",\"intervalInSeconds\":30,\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Get\"}}],\"backendPools\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/BackendPools/backendpool1\",\"name\":\"backendpool1\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\"backends\":[{\"address\":\"contoso1.azurewebsites.net\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"contoso1.azurewebsites.net\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null}],\"resourceState\":\"Enabled\",\"loadBalancingSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/LoadBalancingSettings/loadBalancingSetting1\"},\"healthProbeSettings\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-a7lp/HealthProbeSettings/healthProbeSetting1\"}}}],\"frontendEndpoints\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/Frontdoors/testps-fd-a7lp/FrontendEndpoints/frontendendpoint1\",\"name\":\"frontendendpoint1\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-a7lp.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null}}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":20},\"enabledState\":\"Enabled\",\"cName\":\"testps-fd-a7lp.azurefd.net\",\"friendlyName\":null,\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json index e0683f41cd7f..8720c71b1cb4 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Set-AzFrontDoorRulesEngine.Recording.json @@ -1,17 +1,17 @@ { - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+1": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "b94998c6-79b5-42bf-ad6b-8287c87f3c18" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "c1a0fb19-9c3b-4ee5-9bca-c07fb8bf0c3c" ], "CommandName": [ "Get-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Get-AzFrontDoorRulesEngine_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,40 +23,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8d407d21-9e3f-44fd-8a02-9041c111be5f" ], - "x-ms-client-request-id": [ "b94998c6-79b5-42bf-ad6b-8287c87f3c18" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/ede8ff1b-c089-4185-9784-0f2ec2d84510" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "1628a079-37c3-4fdb-9b19-b4294e186a67" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001128Z:1628a079-37c3-4fdb-9b19-b4294e186a67" ], + "x-ms-request-id": [ "851145b1-1922-41e3-8ea4-4baaa06ab51e" ], + "x-ms-client-request-id": [ "c1a0fb19-9c3b-4ee5-9bca-c07fb8bf0c3c" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d89deaf4-5ec4-4f2b-8901-293bba64e5fc" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1097" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16497" ], + "x-ms-correlation-request-id": [ "92d245d8-1cdf-478c-a965-09363a1b1dc9" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035742Z:92d245d8-1cdf-478c-a965-09363a1b1dc9" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: A69F02F0A1AF49E2ACCBD0FEAA0F7911 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:27Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:28 GMT" ] + "X-MSEdge-Ref": [ "Ref A: D19B0D2F90B14D06868CDB6E08D9A330 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:42Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:41 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+2": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "6b455407-5755-48ac-9c2b-16e7a10060da" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -68,32 +68,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b50399c2-9b4e-4546-afc2-c2d8748c4f19" ], - "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6f47b9ee-f482-484e-b9cd-bd3090e78ca7" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], - "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "9114c7dc-d66a-4bd2-9655-f2a08308397a" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001128Z:9114c7dc-d66a-4bd2-9655-f2a08308397a" ], + "x-ms-request-id": [ "3c4e0fad-1439-45ee-92d8-94e43906897f" ], + "x-ms-client-request-id": [ "6b455407-5755-48ac-9c2b-16e7a10060da" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/55188362-8a93-4fb4-a197-19f08cb84c81" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "d81b52da-76fd-4838-9b01-4d87dc392a48" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035743Z:d81b52da-76fd-4838-9b01-4d87dc392a48" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 4F55138248E940BE85D3C9C7527CE209 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:28Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:28 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 9709B4F435CE4E00A687C8CBE4769F03 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:42Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2256" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"X-Content-Type-Options\",\"value\":\"nosniff\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+3": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", - "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01", + "Content": "{\r\n \"properties\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule101\",\r\n \"priority\": 1,\r\n \"action\": {\r\n \"responseHeaderActions\": [\r\n {\r\n \"headerActionType\": \"Overwrite\",\r\n \"headerName\": \"Strict-Transport-Security\",\r\n \"value\": \"max-age=63072000; includeSubDomains; preload\"\r\n }\r\n ]\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule102\",\r\n \"priority\": 2,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\r\n \"backendPool\": {\r\n \"id\": \"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"\r\n },\r\n \"forwardingProtocol\": \"HttpsOnly\",\r\n \"cacheConfiguration\": {\r\n \"queryParameterStripDirective\": \"StripNone\",\r\n \"dynamicCompression\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"forward\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"rule103\",\r\n \"priority\": 3,\r\n \"action\": {\r\n \"requestHeaderActions\": [ ],\r\n \"responseHeaderActions\": [ ],\r\n \"routeConfigurationOverride\": {\r\n \"@odata.type\": \"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\r\n \"redirectType\": \"Moved\",\r\n \"redirectProtocol\": \"MatchRequest\",\r\n \"customHost\": \"www.contoso.com\",\r\n \"customPath\": \"\"\r\n }\r\n },\r\n \"matchConditions\": [\r\n {\r\n \"rulesEngineMatchVariable\": \"RequestHeader\",\r\n \"selector\": \"Rules-Engine-Route-Forward\",\r\n \"rulesEngineOperator\": \"Equal\",\r\n \"negateCondition\": false,\r\n \"rulesEngineMatchValue\": [ \"redirect\" ],\r\n \"transforms\": [ \"Lowercase\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -108,41 +108,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "46037f4d-5361-4afc-acd6-7ff164f8b982" ], - "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/6951aadb-f8d9-4fa9-981f-f86399e21642" ], + "x-ms-request-id": [ "9faf3683-0138-461f-914a-a952cdb2e526" ], + "x-ms-client-request-id": [ "6b455407-5755-48ac-9c2b-16e7a10060da" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/3e91c0e8-6dc7-4e88-9a2a-7c835857ca1e" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "29866150-c4df-4506-b709-d1adedccb1ea" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001129Z:29866150-c4df-4506-b709-d1adedccb1ea" ], + "x-ms-correlation-request-id": [ "e51dca40-141a-4124-a82c-837baa5d3cbd" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035744Z:e51dca40-141a-4124-a82c-837baa5d3cbd" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 120849C37E424E85BADC19770A9F2C33 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:28Z" ], - "Date": [ "Wed, 22 Oct 2025 00:11:29 GMT" ] + "X-MSEdge-Ref": [ "Ref A: EEFC08F7AAF14B55B62FBF77C7657159 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:57:43Z" ], + "Date": [ "Wed, 29 Oct 2025 03:57:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } }, - "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01+4": { + "Set-AzFrontDoorRulesEngine+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/rulesEngines/engine101?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/rulesEngines/engine101?api-version=2021-06-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "6b455407-5755-48ac-9c2b-16e7a10060da" ], "CommandName": [ "Set-AzFrontDoorRulesEngine" ], "FullCommandName": [ "Set-AzFrontDoorRulesEngine_UpdateExpanded1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -153,24 +153,24 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "418c2aed-5440-4979-b1c4-74b977a21634" ], - "x-ms-client-request-id": [ "36ff51b1-1829-4eca-bcd2-762337c5a599" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/001e580f-ceb3-41a1-93f4-e724d0912105" ], + "x-ms-request-id": [ "3775733e-d689-476b-a365-05958805af7c" ], + "x-ms-client-request-id": [ "6b455407-5755-48ac-9c2b-16e7a10060da" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/d15f8ca3-bca9-488f-b382-353a91a69065" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "afa0df98-a510-42d6-914b-82230cf922c9" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001200Z:afa0df98-a510-42d6-914b-82230cf922c9" ], + "x-ms-correlation-request-id": [ "88a192ca-9247-4236-8310-b27dc58f67cb" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035815Z:88a192ca-9247-4236-8310-b27dc58f67cb" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 979FD6844739489B914289D9859ED10A Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:11:59Z" ], - "Date": [ "Wed, 22 Oct 2025 00:12:00 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 890FDDAA5F594E11905E3EA2881372C8 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:58:15Z" ], + "Date": [ "Wed, 29 Oct 2025 03:58:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2299" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoors/testps-fd-de80/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/frontDoors/testps-fd-de80/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoors/testps-fd-mlxe/rulesengines/engine101\",\"type\":\"Microsoft.Network/frontdoors/rulesengines\",\"name\":\"engine101\",\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"rule101\",\"priority\":1,\"action\":{\"name\":null,\"routeConfigurationOverride\":null,\"requestHeaderActions\":[],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"Strict-Transport-Security\",\"value\":\"max-age=63072000; includeSubDomains; preload\"}]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule102\",\"priority\":2,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"customForwardingPath\":null,\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":null,\"dynamicCompression\":\"Disabled\",\"cacheDuration\":null},\"backendPool\":{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/frontDoors/testps-fd-mlxe/BackendPools/backendpool1\"},\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"forward\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null},{\"name\":\"rule103\",\"priority\":3,\"action\":{\"name\":null,\"routeConfigurationOverride\":{\"redirectType\":\"Moved\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"www.contoso.com\",\"customPath\":\"\",\"customFragment\":null,\"customQueryString\":null,\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\"},\"requestHeaderActions\":[],\"responseHeaderActions\":[]},\"matchConditions\":[{\"selector\":\"Rules-Engine-Route-Forward\",\"rulesEngineMatchValue\":[\"redirect\"],\"negateCondition\":false,\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"Equal\",\"transforms\":[\"Lowercase\"]}],\"matchProcessingBehavior\":null}]}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json index f285b270acad..698a91e74f1d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/Update-AzFrontDoorWafPolicy.Recording.json @@ -1,17 +1,17 @@ { - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+1": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "803dff34-ac5e-48f8-b7ed-d878ddd1a55e" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "b9ae76bf-ab42-4cb0-b30a-4797c378f6b9" ], "CommandName": [ "Get-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,39 +23,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f1b90b81-a096-46f5-8675-3f0a8f35d03d" ], - "x-ms-client-request-id": [ "803dff34-ac5e-48f8-b7ed-d878ddd1a55e" ], + "x-ms-request-id": [ "c7c44263-aff4-4a20-b9a2-32ac5222998e" ], + "x-ms-client-request-id": [ "b9ae76bf-ab42-4cb0-b30a-4797c378f6b9" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "c39a9ce7-9f4d-422a-ae1c-2519771d5f4b" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001202Z:c39a9ce7-9f4d-422a-ae1c-2519771d5f4b" ], + "x-ms-correlation-request-id": [ "8af116d6-5428-47f0-a6db-ae47dee7b886" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035818Z:8af116d6-5428-47f0-a6db-ae47dee7b886" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: FA0D4608AC014846B01138C7E06BBFA8 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:02Z" ], - "Date": [ "Wed, 22 Oct 2025 00:12:02 GMT" ] + "X-MSEdge-Ref": [ "Ref A: A19B40C78862445096899FD40C9C8738 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:58:17Z" ], + "Date": [ "Wed, 29 Oct 2025 03:58:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafy0a4\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafy0a4\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+2": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "ba7cb992-25e8-4424-8aec-11bc8d0754c3" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ], + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -67,30 +67,30 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "904992db-d775-4e27-b8c1-cd8b479487ee" ], - "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], + "x-ms-request-id": [ "d9950d5e-f215-4207-aeaa-ccc49de7468a" ], + "x-ms-client-request-id": [ "ba7cb992-25e8-4424-8aec-11bc8d0754c3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1098" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16498" ], - "x-ms-correlation-request-id": [ "153c07b5-a10d-4096-902d-b13ac2daff6c" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001203Z:153c07b5-a10d-4096-902d-b13ac2daff6c" ], + "x-ms-correlation-request-id": [ "2513f345-81db-4290-90fa-ecd4d5221409" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035818Z:2513f345-81db-4290-90fa-ecd4d5221409" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 80FD1F11A80D47298B48ADDF12C687CC Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:02Z" ], - "Date": [ "Wed, 22 Oct 2025 00:12:03 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 4B4A80C83E12472FAB04BC8BC851C493 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:58:18Z" ], + "Date": [ "Wed, 29 Oct 2025 03:58:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1944" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafy0a4\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafy0a4\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+3": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01", "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"Rule2\",\r\n \"priority\": 2,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": 1,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RequestHeader\",\r\n \"selector\": \"UserAgent\",\r\n \"operator\": \"Contains\",\r\n \"matchValue\": [ \"WINDOWS\" ],\r\n \"transforms\": [ \"Uppercase\" ]\r\n }\r\n ],\r\n \"action\": \"Log\"\r\n }\r\n ]\r\n },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n \"ruleSetType\": \"DefaultRuleSet\",\r\n \"ruleSetVersion\": \"1.0\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInSet\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInGroup\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Enabled\",\r\n \"action\": \"Log\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"ExcludeInRule\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"ruleSetType\": \"BotProtection\",\r\n \"ruleSetVersion\": \"preview-0.1\",\r\n \"exclusions\": [ ],\r\n \"ruleGroupOverrides\": [ ]\r\n }\r\n ]\r\n },\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"requestBodyCheck\": \"Disabled\",\r\n \"javascriptChallengeExpirationInMinutes\": 30,\r\n \"captchaExpirationInMinutes\": 30,\r\n \"logScrubbing\": {\r\n \"state\": \"Disabled\"\r\n }\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Premium_AzureFrontDoor\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -106,41 +106,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "22adb912-0aa4-4552-bbfb-62f8eebc4024" ], - "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], - "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/4d73342c-833d-4a45-8841-be35c9af1528" ], + "x-ms-request-id": [ "44308f09-6d3b-4894-a858-f18e690a885c" ], + "x-ms-client-request-id": [ "ba7cb992-25e8-4424-8aec-11bc8d0754c3" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/8156eb6f-85d8-40f6-b7e5-8849b2dd384b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], - "x-ms-correlation-request-id": [ "33b4579e-5b64-43b5-a6a5-c28ff060d5cd" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001205Z:33b4579e-5b64-43b5-a6a5-c28ff060d5cd" ], + "x-ms-correlation-request-id": [ "b87e5a91-9980-48b3-b0ca-1cfaab235bdb" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035819Z:b87e5a91-9980-48b3-b0ca-1cfaab235bdb" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 96BC6052FF094B479625CC5F1F431741 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:03Z" ], - "Date": [ "Wed, 22 Oct 2025 00:12:05 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 7A4F5C2CCF2644DE8A84AE07EC249E5B Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:58:18Z" ], + "Date": [ "Wed, 29 Oct 2025 03:58:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1835" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafy0a4\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafy0a4\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+4": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "ba7cb992-25e8-4424-8aec-11bc8d0754c3" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -151,40 +151,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6b631229-e08e-49ae-9f68-d42c24fc4263" ], - "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], + "x-ms-request-id": [ "c251b5a9-64f9-424d-ac9b-43284ec7eb23" ], + "x-ms-client-request-id": [ "ba7cb992-25e8-4424-8aec-11bc8d0754c3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "89002a5d-8f00-4b41-bdd7-5dd27e65125b" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001236Z:89002a5d-8f00-4b41-bdd7-5dd27e65125b" ], + "x-ms-correlation-request-id": [ "aa5809d6-93a2-4249-b6be-e9a710c3a079" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035850Z:aa5809d6-93a2-4249-b6be-e9a710c3a079" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: BC99A7AAB7124178AD8D86A2EFBF46A3 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:35Z" ], - "Date": [ "Wed, 22 Oct 2025 00:12:36 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 1186F5F553D04AAEAB0113E973825F14 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:58:49Z" ], + "Date": [ "Wed, 29 Oct 2025 03:58:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1835" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafy0a4\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafy0a4\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01+5": { + "Update-AzFrontDoorWafPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-2xfo/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWaf3g8j?api-version=2025-03-01", + "RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-703f/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafy0a4?api-version=2025-03-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "ba7cb992-25e8-4424-8aec-11bc8d0754c3" ], "CommandName": [ "Az.FrontDoor.internal\\Update-AzFrontDoorWafPolicy" ], "FullCommandName": [ "Update-AzFrontDoorWafPolicy_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ] + "User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ] }, "ContentHeaders": { } @@ -195,23 +195,23 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c87f08b4-c232-42bc-845d-8734979cb7fc" ], - "x-ms-client-request-id": [ "c05b9fab-d42b-4e67-b3b8-ce9c1986fd23" ], + "x-ms-request-id": [ "80e6f06c-a735-4d28-a029-d5028a89aabc" ], + "x-ms-client-request-id": [ "ba7cb992-25e8-4424-8aec-11bc8d0754c3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], - "x-ms-correlation-request-id": [ "2e08e2f9-96ee-4371-b60c-bd44422ab250" ], - "x-ms-routing-request-id": [ "WESTUS:20251022T001237Z:2e08e2f9-96ee-4371-b60c-bd44422ab250" ], + "x-ms-correlation-request-id": [ "674e939b-4522-4232-afde-635bcaafc398" ], + "x-ms-routing-request-id": [ "WESTUS:20251029T035851Z:674e939b-4522-4232-afde-635bcaafc398" ], "X-Content-Type-Options": [ "nosniff" ], "X-Cache": [ "CONFIG_NOCACHE" ], - "X-MSEdge-Ref": [ "Ref A: 04B473DA26EC4186B477576E15EB7CE8 Ref B: SYD03EDGE1015 Ref C: 2025-10-22T00:12:36Z" ], - "Date": [ "Wed, 22 Oct 2025 00:12:37 GMT" ] + "X-MSEdge-Ref": [ "Ref A: 2A49CECB96E843F580BBDD1148A62797 Ref B: SYD03EDGE2015 Ref C: 2025-10-29T03:58:50Z" ], + "Date": [ "Wed, 29 Oct 2025 03:58:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1835" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-2xfo/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWaf3g8j\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWaf3g8j\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-703f/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafy0a4\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafy0a4\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"captchaExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Disabled\",\"scrubbingRules\":[]}},\"customRules\":{\"rules\":[{\"name\":\"Rule2\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Log\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/FrontDoor/FrontDoor.Autorest/test/env.json b/src/FrontDoor/FrontDoor.Autorest/test/env.json index 55cafe01b024..261f0b25c8b5 100644 --- a/src/FrontDoor/FrontDoor.Autorest/test/env.json +++ b/src/FrontDoor/FrontDoor.Autorest/test/env.json @@ -1,13 +1,13 @@ { - "WafPolicyNameForCreate": "testpsWaf7p0u", - "WafPolicyName": "testpsWafh9dn", - "FrontDoorName": "testps-fd-qyc8", - "FrontDoorNameForDelete": "testps-fd-zau7", - "ResourceGroupName": "testps-rg-y14v", - "WafPolicyNameForDelete": "testpsWafzmhq", + "ResourceGroupName": "testps-rg-703f", + "WafPolicyNameForCreate": "testpsWaf7kyh", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", "SubscriptionId": "27cafca8-b9a4-4264-b399-45d0c9cca1ab", + "location": "westus", + "FrontDoorName": "testps-fd-mlxe", "RuleEngineName": "engine101", - "FrontDoorNameForUpdate": "testps-fd-cfgi", - "location": "westus" + "FrontDoorNameForDelete": "testps-fd-qca3", + "FrontDoorNameForUpdate": "testps-fd-a7lp", + "WafPolicyName": "testpsWafy0a4", + "WafPolicyNameForDelete": "testpsWafpgs5" } diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EnforceCertificateNameCheckEnabledState.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EnforceCertificateNameCheckEnabledState.cs deleted file mode 100644 index 50d8d8371724..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/EnforceCertificateNameCheckEnabledState.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.8, generator: @autorest/powershell@4.0.749) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - - /// - /// Defines values for EnforceCertificateNameCheckEnabledState. - /// - - - public static class EnforceCertificateNameCheckEnabledState - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsUpdateParameters.cs b/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsUpdateParameters.cs deleted file mode 100644 index e23fc5813ae1..000000000000 --- a/src/FrontDoor/FrontDoor.Management.Sdk/Generated/Models/HealthProbeSettingsUpdateParameters.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.8, generator: @autorest/powershell@4.0.749) -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.Management.FrontDoor.Models -{ - using System.Linq; - - /// - /// L7 health probe settings for a backend pool - /// - public partial class HealthProbeSettingsUpdateParameters - { - /// - /// Initializes a new instance of the HealthProbeSettingsUpdateParameters class. - /// - public HealthProbeSettingsUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HealthProbeSettingsUpdateParameters class. - /// - - /// The path to use for the health probe. Default is / - /// - - /// Protocol scheme to use for this probe - /// Possible values include: 'Http', 'Https' - - /// The number of seconds between health probes. - /// - - /// Configures which HTTP method to use to probe the backends defined under - /// backendPools. - /// Possible values include: 'GET', 'HEAD' - - /// Whether to enable health probes to be made against backends defined under - /// backendPools. Health probes can only be disabled if there is a single - /// enabled backend in single enabled backend pool. - /// Possible values include: 'Enabled', 'Disabled' - public HealthProbeSettingsUpdateParameters(string path = default(string), string protocol = default(string), int? intervalInSeconds = default(int?), string healthProbeMethod = default(string), string enabledState = default(string)) - - { - this.Path = path; - this.Protocol = protocol; - this.IntervalInSeconds = intervalInSeconds; - this.HealthProbeMethod = healthProbeMethod; - this.EnabledState = enabledState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - - /// - /// Gets or sets the path to use for the health probe. Default is / - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "path")] - public string Path {get; set; } - - /// - /// Gets or sets protocol scheme to use for this probe Possible values include: 'Http', 'Https' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "protocol")] - public string Protocol {get; set; } - - /// - /// Gets or sets the number of seconds between health probes. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "intervalInSeconds")] - public int? IntervalInSeconds {get; set; } - - /// - /// Gets or sets configures which HTTP method to use to probe the backends - /// defined under backendPools. Possible values include: 'GET', 'HEAD' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "healthProbeMethod")] - public string HealthProbeMethod {get; set; } - - /// - /// Gets or sets whether to enable health probes to be made against backends - /// defined under backendPools. Health probes can only be disabled if there is - /// a single enabled backend in single enabled backend pool. Possible values include: 'Enabled', 'Disabled' - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enabledState")] - public string EnabledState {get; set; } - } -} \ No newline at end of file From b773971e663d1ae32eed51de930b491ae6edb5aa Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Wed, 29 Oct 2025 15:12:07 +1100 Subject: [PATCH 27/30] remove generated --- .../FrontDoor.Autorest/Az.FrontDoor.csproj | 11 - .../Az.FrontDoor.format.ps1xml | 2299 ----- .../FrontDoor.Autorest/Az.FrontDoor.psd1 | 23 - .../FrontDoor.Autorest/Az.FrontDoor.psm1 | 119 - .../Properties/AssemblyInfo.cs | 26 - .../FrontDoor.Autorest/check-dependencies.ps1 | 65 - .../Disable-AzFrontDoorCustomDomainHttps.ps1 | 265 - .../Enable-AzFrontDoorCustomDomainHttps.ps1 | 345 - .../exports/Get-AzFrontDoor.ps1 | 230 - .../Get-AzFrontDoorFrontendEndpoint.ps1 | 254 - .../exports/Get-AzFrontDoorRulesEngine.ps1 | 252 - ...AzFrontDoorWafManagedRuleSetDefinition.ps1 | 186 - .../exports/Get-AzFrontDoorWafPolicy.ps1 | 228 - .../exports/New-AzFrontDoor.ps1 | 361 - .../exports/New-AzFrontDoorBackendObject.ps1 | 192 - .../New-AzFrontDoorBackendPoolObject.ps1 | 176 - ...w-AzFrontDoorBackendPoolsSettingObject.ps1 | 134 - ...ew-AzFrontDoorCacheConfigurationObject.ps1 | 145 - ...FrontDoorForwardingConfigurationObject.ps1 | 156 - .../New-AzFrontDoorFrontendEndpointObject.ps1 | 204 - .../New-AzFrontDoorHeaderActionObject.ps1 | 137 - ...ew-AzFrontDoorHealthProbeSettingObject.ps1 | 164 - ...-AzFrontDoorLoadBalancingSettingObject.ps1 | 147 - .../New-AzFrontDoorPolicySettingsObject.ps1 | 193 - ...AzFrontDoorRedirectConfigurationObject.ps1 | 163 - .../New-AzFrontDoorRoutingRuleObject.ps1 | 299 - .../exports/New-AzFrontDoorRulesEngine.ps1 | 262 - ...New-AzFrontDoorRulesEngineActionObject.ps1 | 319 - ...ontDoorRulesEngineMatchConditionObject.ps1 | 158 - .../New-AzFrontDoorRulesEngineRuleObject.ps1 | 196 - ...DoorWafCustomRuleGroupByVariableObject.ps1 | 124 - .../New-AzFrontDoorWafCustomRuleObject.ps1 | 193 - ...w-AzFrontDoorWafLogScrubbingRuleObject.ps1 | 145 - ...zFrontDoorWafLogScrubbingSettingObject.ps1 | 142 - ...FrontDoorWafManagedRuleExclusionObject.ps1 | 137 - .../New-AzFrontDoorWafManagedRuleObject.ps1 | 176 - ...zFrontDoorWafManagedRuleOverrideObject.ps1 | 153 - ...New-AzFrontDoorWafMatchConditionObject.ps1 | 159 - .../exports/New-AzFrontDoorWafPolicy.ps1 | 371 - ...-AzFrontDoorWafRuleGroupOverrideObject.ps1 | 157 - .../exports/ProxyCmdletDefinitions.ps1 | 8392 ---------------- .../FrontDoor.Autorest/exports/README.md | 20 - .../exports/Remove-AzFrontDoor.ps1 | 245 - .../exports/Remove-AzFrontDoorContent.ps1 | 285 - .../exports/Remove-AzFrontDoorRulesEngine.ps1 | 264 - .../exports/Remove-AzFrontDoorWafPolicy.ps1 | 241 - .../exports/Set-AzFrontDoor.ps1 | 392 - .../exports/Set-AzFrontDoorRulesEngine.ps1 | 250 - .../exports/Update-AzFrontDoorWafPolicy.ps1 | 392 - .../FrontDoor.Autorest/generate-info.json | 3 - .../FrontDoor.Autorest/generated/Module.cs | 202 - .../generated/api/FrontDoor.cs | 8616 ----------------- .../AzureAsyncOperationResult.PowerShell.cs | 222 - ...AzureAsyncOperationResult.TypeConverter.cs | 147 - .../api/Models/AzureAsyncOperationResult.cs | 159 - .../Models/AzureAsyncOperationResult.json.cs | 116 - .../api/Models/Backend.PowerShell.cs | 252 - .../api/Models/Backend.TypeConverter.cs | 146 - .../generated/api/Models/Backend.cs | 326 - .../generated/api/Models/Backend.json.cs | 131 - .../api/Models/BackendPool.PowerShell.cs | 236 - .../api/Models/BackendPool.TypeConverter.cs | 147 - .../generated/api/Models/BackendPool.cs | 194 - .../generated/api/Models/BackendPool.json.cs | 117 - .../BackendPoolListResult.PowerShell.cs | 176 - .../BackendPoolListResult.TypeConverter.cs | 147 - .../api/Models/BackendPoolListResult.cs | 82 - .../api/Models/BackendPoolListResult.json.cs | 124 - .../BackendPoolProperties.PowerShell.cs | 204 - .../BackendPoolProperties.TypeConverter.cs | 147 - .../api/Models/BackendPoolProperties.cs | 104 - .../api/Models/BackendPoolProperties.json.cs | 113 - .../BackendPoolUpdateParameters.PowerShell.cs | 196 - ...ckendPoolUpdateParameters.TypeConverter.cs | 147 - .../api/Models/BackendPoolUpdateParameters.cs | 112 - .../BackendPoolUpdateParameters.json.cs | 120 - .../Models/BackendPoolsSettings.PowerShell.cs | 172 - .../BackendPoolsSettings.TypeConverter.cs | 147 - .../api/Models/BackendPoolsSettings.cs | 88 - .../api/Models/BackendPoolsSettings.json.cs | 110 - .../Models/CacheConfiguration.PowerShell.cs | 190 - .../CacheConfiguration.TypeConverter.cs | 147 - .../api/Models/CacheConfiguration.cs | 129 - .../api/Models/CacheConfiguration.json.cs | 116 - .../CheckNameAvailabilityInput.PowerShell.cs | 172 - ...heckNameAvailabilityInput.TypeConverter.cs | 147 - .../api/Models/CheckNameAvailabilityInput.cs | 76 - .../Models/CheckNameAvailabilityInput.json.cs | 110 - .../CheckNameAvailabilityOutput.PowerShell.cs | 180 - ...eckNameAvailabilityOutput.TypeConverter.cs | 147 - .../api/Models/CheckNameAvailabilityOutput.cs | 105 - .../CheckNameAvailabilityOutput.json.cs | 121 - .../CustomHttpsConfiguration.PowerShell.cs | 236 - .../CustomHttpsConfiguration.TypeConverter.cs | 147 - .../api/Models/CustomHttpsConfiguration.cs | 216 - .../Models/CustomHttpsConfiguration.json.cs | 116 - .../api/Models/CustomRule.PowerShell.cs | 228 - .../api/Models/CustomRule.TypeConverter.cs | 146 - .../generated/api/Models/CustomRule.cs | 232 - .../generated/api/Models/CustomRule.json.cs | 138 - .../api/Models/CustomRuleList.PowerShell.cs | 164 - .../Models/CustomRuleList.TypeConverter.cs | 147 - .../generated/api/Models/CustomRuleList.cs | 54 - .../api/Models/CustomRuleList.json.cs | 116 - .../Models/DefaultErrorResponse.PowerShell.cs | 184 - .../DefaultErrorResponse.TypeConverter.cs | 147 - .../api/Models/DefaultErrorResponse.cs | 91 - .../api/Models/DefaultErrorResponse.json.cs | 111 - .../DefaultErrorResponseError.PowerShell.cs | 172 - ...DefaultErrorResponseError.TypeConverter.cs | 147 - .../api/Models/DefaultErrorResponseError.cs | 80 - .../Models/DefaultErrorResponseError.json.cs | 116 - .../generated/api/Models/Error.PowerShell.cs | 194 - .../api/Models/Error.TypeConverter.cs | 146 - .../generated/api/Models/Error.cs | 124 - .../generated/api/Models/Error.json.cs | 121 - .../api/Models/ErrorDetails.PowerShell.cs | 178 - .../api/Models/ErrorDetails.TypeConverter.cs | 147 - .../generated/api/Models/ErrorDetails.cs | 86 - .../generated/api/Models/ErrorDetails.json.cs | 111 - .../api/Models/ErrorResponse.PowerShell.cs | 176 - .../api/Models/ErrorResponse.TypeConverter.cs | 147 - .../generated/api/Models/ErrorResponse.cs | 85 - .../api/Models/ErrorResponse.json.cs | 119 - .../ForwardingConfiguration.PowerShell.cs | 204 - .../ForwardingConfiguration.TypeConverter.cs | 147 - .../api/Models/ForwardingConfiguration.cs | 154 - .../Models/ForwardingConfiguration.json.cs | 116 - .../api/Models/FrontDoor.PowerShell.cs | 320 - .../api/Models/FrontDoor.TypeConverter.cs | 146 - .../generated/api/Models/FrontDoor.cs | 368 - .../generated/api/Models/FrontDoor.json.cs | 111 - ...rCertificateSourceParameters.PowerShell.cs | 166 - ...rtificateSourceParameters.TypeConverter.cs | 150 - .../FrontDoorCertificateSourceParameters.cs | 62 - ...ontDoorCertificateSourceParameters.json.cs | 109 - .../Models/FrontDoorIdentity.PowerShell.cs | 210 - .../Models/FrontDoorIdentity.TypeConverter.cs | 157 - .../generated/api/Models/FrontDoorIdentity.cs | 180 - .../api/Models/FrontDoorIdentity.json.cs | 119 - .../Models/FrontDoorListResult.PowerShell.cs | 176 - .../FrontDoorListResult.TypeConverter.cs | 147 - .../api/Models/FrontDoorListResult.cs | 82 - .../api/Models/FrontDoorListResult.json.cs | 124 - .../Models/FrontDoorProperties.PowerShell.cs | 268 - .../FrontDoorProperties.TypeConverter.cs | 147 - .../api/Models/FrontDoorProperties.cs | 227 - .../api/Models/FrontDoorProperties.json.cs | 146 - ...PropertiesExtendedProperties.PowerShell.cs | 165 - ...pertiesExtendedProperties.TypeConverter.cs | 150 - .../FrontDoorPropertiesExtendedProperties.cs | 35 - ...PropertiesExtendedProperties.dictionary.cs | 75 - ...ntDoorPropertiesExtendedProperties.json.cs | 110 - .../FrontDoorUpdateParameters.PowerShell.cs | 220 - ...FrontDoorUpdateParameters.TypeConverter.cs | 147 - .../api/Models/FrontDoorUpdateParameters.cs | 202 - .../Models/FrontDoorUpdateParameters.json.cs | 162 - .../api/Models/FrontendEndpoint.PowerShell.cs | 340 - .../Models/FrontendEndpoint.TypeConverter.cs | 147 - .../generated/api/Models/FrontendEndpoint.cs | 440 - .../api/Models/FrontendEndpoint.json.cs | 117 - .../Models/FrontendEndpointLink.PowerShell.cs | 164 - .../FrontendEndpointLink.TypeConverter.cs | 147 - .../api/Models/FrontendEndpointLink.cs | 54 - .../api/Models/FrontendEndpointLink.json.cs | 108 - .../FrontendEndpointProperties.PowerShell.cs | 310 - ...rontendEndpointProperties.TypeConverter.cs | 147 - .../api/Models/FrontendEndpointProperties.cs | 336 - .../Models/FrontendEndpointProperties.json.cs | 127 - ...tendEndpointUpdateParameters.PowerShell.cs | 196 - ...dEndpointUpdateParameters.TypeConverter.cs | 148 - .../FrontendEndpointUpdateParameters.cs | 137 - .../FrontendEndpointUpdateParameters.json.cs | 114 - ...pplicationFirewallPolicyLink.PowerShell.cs | 169 - ...icationFirewallPolicyLink.TypeConverter.cs | 153 - ...ametersWebApplicationFirewallPolicyLink.cs | 56 - ...rsWebApplicationFirewallPolicyLink.json.cs | 111 - .../FrontendEndpointsListResult.PowerShell.cs | 176 - ...ontendEndpointsListResult.TypeConverter.cs | 147 - .../api/Models/FrontendEndpointsListResult.cs | 82 - .../FrontendEndpointsListResult.json.cs | 124 - .../api/Models/GroupByVariable.PowerShell.cs | 164 - .../Models/GroupByVariable.TypeConverter.cs | 147 - .../generated/api/Models/GroupByVariable.cs | 56 - .../api/Models/GroupByVariable.json.cs | 108 - .../api/Models/HeaderAction.PowerShell.cs | 180 - .../api/Models/HeaderAction.TypeConverter.cs | 147 - .../generated/api/Models/HeaderAction.cs | 102 - .../generated/api/Models/HeaderAction.json.cs | 112 - ...ealthProbeSettingsListResult.PowerShell.cs | 176 - ...thProbeSettingsListResult.TypeConverter.cs | 147 - .../Models/HealthProbeSettingsListResult.cs | 82 - .../HealthProbeSettingsListResult.json.cs | 124 - .../HealthProbeSettingsModel.PowerShell.cs | 236 - .../HealthProbeSettingsModel.TypeConverter.cs | 147 - .../api/Models/HealthProbeSettingsModel.cs | 239 - .../Models/HealthProbeSettingsModel.json.cs | 117 - ...ealthProbeSettingsProperties.PowerShell.cs | 206 - ...thProbeSettingsProperties.TypeConverter.cs | 147 - .../Models/HealthProbeSettingsProperties.cs | 105 - .../HealthProbeSettingsProperties.json.cs | 115 - ...robeSettingsUpdateParameters.PowerShell.cs | 198 - ...eSettingsUpdateParameters.TypeConverter.cs | 149 - .../HealthProbeSettingsUpdateParameters.cs | 155 - ...ealthProbeSettingsUpdateParameters.json.cs | 117 - ...tCertificateSourceParameters.PowerShell.cs | 190 - ...rtificateSourceParameters.TypeConverter.cs | 149 - .../KeyVaultCertificateSourceParameters.cs | 103 - ...eyVaultCertificateSourceParameters.json.cs | 113 - ...ificateSourceParametersVault.PowerShell.cs | 169 - ...cateSourceParametersVault.TypeConverter.cs | 151 - ...eyVaultCertificateSourceParametersVault.cs | 56 - ...ltCertificateSourceParametersVault.json.cs | 110 - ...dBalancingSettingsListResult.PowerShell.cs | 176 - ...lancingSettingsListResult.TypeConverter.cs | 148 - .../Models/LoadBalancingSettingsListResult.cs | 82 - .../LoadBalancingSettingsListResult.json.cs | 124 - .../LoadBalancingSettingsModel.PowerShell.cs | 220 - ...oadBalancingSettingsModel.TypeConverter.cs | 147 - .../api/Models/LoadBalancingSettingsModel.cs | 190 - .../Models/LoadBalancingSettingsModel.json.cs | 117 - ...dBalancingSettingsProperties.PowerShell.cs | 190 - ...lancingSettingsProperties.TypeConverter.cs | 148 - .../Models/LoadBalancingSettingsProperties.cs | 94 - .../LoadBalancingSettingsProperties.json.cs | 115 - ...cingSettingsUpdateParameters.PowerShell.cs | 185 - ...gSettingsUpdateParameters.TypeConverter.cs | 150 - .../LoadBalancingSettingsUpdateParameters.cs | 100 - ...dBalancingSettingsUpdateParameters.json.cs | 113 - .../ManagedRuleDefinition.PowerShell.cs | 188 - .../ManagedRuleDefinition.TypeConverter.cs | 147 - .../api/Models/ManagedRuleDefinition.cs | 130 - .../api/Models/ManagedRuleDefinition.json.cs | 126 - .../Models/ManagedRuleExclusion.PowerShell.cs | 180 - .../ManagedRuleExclusion.TypeConverter.cs | 147 - .../api/Models/ManagedRuleExclusion.cs | 104 - .../api/Models/ManagedRuleExclusion.json.cs | 112 - .../ManagedRuleGroupDefinition.PowerShell.cs | 180 - ...anagedRuleGroupDefinition.TypeConverter.cs | 147 - .../api/Models/ManagedRuleGroupDefinition.cs | 103 - .../Models/ManagedRuleGroupDefinition.json.cs | 129 - .../ManagedRuleGroupOverride.PowerShell.cs | 180 - .../ManagedRuleGroupOverride.TypeConverter.cs | 147 - .../api/Models/ManagedRuleGroupOverride.cs | 100 - .../Models/ManagedRuleGroupOverride.json.cs | 128 - .../Models/ManagedRuleOverride.PowerShell.cs | 188 - .../ManagedRuleOverride.TypeConverter.cs | 147 - .../api/Models/ManagedRuleOverride.cs | 124 - .../api/Models/ManagedRuleOverride.json.cs | 122 - .../api/Models/ManagedRuleSet.PowerShell.cs | 196 - .../Models/ManagedRuleSet.TypeConverter.cs | 147 - .../generated/api/Models/ManagedRuleSet.cs | 136 - .../api/Models/ManagedRuleSet.json.cs | 132 - .../ManagedRuleSetDefinition.PowerShell.cs | 244 - .../ManagedRuleSetDefinition.TypeConverter.cs | 147 - .../api/Models/ManagedRuleSetDefinition.cs | 193 - .../Models/ManagedRuleSetDefinition.json.cs | 110 - ...ManagedRuleSetDefinitionList.PowerShell.cs | 172 - ...agedRuleSetDefinitionList.TypeConverter.cs | 147 - .../Models/ManagedRuleSetDefinitionList.cs | 77 - .../ManagedRuleSetDefinitionList.json.cs | 121 - ...dRuleSetDefinitionProperties.PowerShell.cs | 198 - ...leSetDefinitionProperties.TypeConverter.cs | 149 - .../ManagedRuleSetDefinitionProperties.cs | 149 - ...ManagedRuleSetDefinitionProperties.json.cs | 140 - .../Models/ManagedRuleSetList.PowerShell.cs | 164 - .../ManagedRuleSetList.TypeConverter.cs | 147 - .../api/Models/ManagedRuleSetList.cs | 54 - .../api/Models/ManagedRuleSetList.json.cs | 116 - .../api/Models/MatchCondition.PowerShell.cs | 204 - .../Models/MatchCondition.TypeConverter.cs | 147 - .../generated/api/Models/MatchCondition.cs | 166 - .../api/Models/MatchCondition.json.cs | 134 - .../api/Models/PolicySettings.PowerShell.cs | 228 - .../Models/PolicySettings.TypeConverter.cs | 147 - .../generated/api/Models/PolicySettings.cs | 252 - .../api/Models/PolicySettings.json.cs | 124 - .../PolicySettingsLogScrubbing.PowerShell.cs | 172 - ...olicySettingsLogScrubbing.TypeConverter.cs | 147 - .../api/Models/PolicySettingsLogScrubbing.cs | 76 - .../Models/PolicySettingsLogScrubbing.json.cs | 118 - .../api/Models/PurgeParameters.PowerShell.cs | 164 - .../Models/PurgeParameters.TypeConverter.cs | 147 - .../generated/api/Models/PurgeParameters.cs | 60 - .../api/Models/PurgeParameters.json.cs | 116 - .../RedirectConfiguration.PowerShell.cs | 212 - .../RedirectConfiguration.TypeConverter.cs | 147 - .../api/Models/RedirectConfiguration.cs | 208 - .../api/Models/RedirectConfiguration.json.cs | 120 - .../api/Models/Resource.PowerShell.cs | 196 - .../api/Models/Resource.TypeConverter.cs | 146 - .../generated/api/Models/Resource.cs | 143 - .../generated/api/Models/Resource.json.cs | 123 - .../api/Models/ResourceTags.PowerShell.cs | 160 - .../api/Models/ResourceTags.TypeConverter.cs | 147 - .../generated/api/Models/ResourceTags.cs | 35 - .../api/Models/ResourceTags.dictionary.cs | 75 - .../generated/api/Models/ResourceTags.json.cs | 109 - .../Models/RouteConfiguration.PowerShell.cs | 164 - .../RouteConfiguration.TypeConverter.cs | 147 - .../api/Models/RouteConfiguration.cs | 51 - .../api/Models/RouteConfiguration.json.cs | 127 - .../api/Models/RoutingRule.PowerShell.cs | 270 - .../api/Models/RoutingRule.TypeConverter.cs | 147 - .../generated/api/Models/RoutingRule.cs | 276 - .../generated/api/Models/RoutingRule.json.cs | 119 - .../api/Models/RoutingRuleLink.PowerShell.cs | 164 - .../Models/RoutingRuleLink.TypeConverter.cs | 147 - .../generated/api/Models/RoutingRuleLink.cs | 54 - .../api/Models/RoutingRuleLink.json.cs | 108 - .../RoutingRuleListResult.PowerShell.cs | 176 - .../RoutingRuleListResult.TypeConverter.cs | 147 - .../api/Models/RoutingRuleListResult.cs | 82 - .../api/Models/RoutingRuleListResult.json.cs | 124 - .../RoutingRuleProperties.PowerShell.cs | 236 - .../RoutingRuleProperties.TypeConverter.cs | 147 - .../api/Models/RoutingRuleProperties.cs | 124 - .../api/Models/RoutingRuleProperties.json.cs | 113 - .../RoutingRuleUpdateParameters.PowerShell.cs | 228 - ...utingRuleUpdateParameters.TypeConverter.cs | 147 - .../api/Models/RoutingRuleUpdateParameters.cs | 206 - .../RoutingRuleUpdateParameters.json.cs | 144 - ...pplicationFirewallPolicyLink.PowerShell.cs | 171 - ...icationFirewallPolicyLink.TypeConverter.cs | 153 - ...ametersWebApplicationFirewallPolicyLink.cs | 58 - ...rsWebApplicationFirewallPolicyLink.json.cs | 113 - .../api/Models/RulesEngine.PowerShell.cs | 208 - .../api/Models/RulesEngine.TypeConverter.cs | 147 - .../generated/api/Models/RulesEngine.cs | 163 - .../generated/api/Models/RulesEngine.json.cs | 126 - .../Models/RulesEngineAction.PowerShell.cs | 180 - .../Models/RulesEngineAction.TypeConverter.cs | 147 - .../generated/api/Models/RulesEngineAction.cs | 94 - .../api/Models/RulesEngineAction.json.cs | 128 - .../RulesEngineListResult.PowerShell.cs | 176 - .../RulesEngineListResult.TypeConverter.cs | 147 - .../api/Models/RulesEngineListResult.cs | 82 - .../api/Models/RulesEngineListResult.json.cs | 124 - .../RulesEngineMatchCondition.PowerShell.cs | 204 - ...RulesEngineMatchCondition.TypeConverter.cs | 147 - .../api/Models/RulesEngineMatchCondition.cs | 169 - .../Models/RulesEngineMatchCondition.json.cs | 134 - .../RulesEngineProperties.PowerShell.cs | 174 - .../RulesEngineProperties.TypeConverter.cs | 147 - .../api/Models/RulesEngineProperties.cs | 84 - .../api/Models/RulesEngineProperties.json.cs | 115 - .../api/Models/RulesEngineRule.PowerShell.cs | 202 - .../Models/RulesEngineRule.TypeConverter.cs | 147 - .../generated/api/Models/RulesEngineRule.cs | 168 - .../api/Models/RulesEngineRule.json.cs | 128 - .../RulesEngineUpdateParameters.PowerShell.cs | 164 - ...lesEngineUpdateParameters.TypeConverter.cs | 147 - .../api/Models/RulesEngineUpdateParameters.cs | 54 - .../RulesEngineUpdateParameters.json.cs | 116 - .../Models/SecurityPolicyLink.PowerShell.cs | 164 - .../SecurityPolicyLink.TypeConverter.cs | 147 - .../api/Models/SecurityPolicyLink.cs | 54 - .../api/Models/SecurityPolicyLink.json.cs | 108 - .../generated/api/Models/Sku.PowerShell.cs | 164 - .../generated/api/Models/Sku.TypeConverter.cs | 146 - .../generated/api/Models/Sku.cs | 56 - .../generated/api/Models/Sku.json.cs | 106 - .../api/Models/SubResource.PowerShell.cs | 164 - .../api/Models/SubResource.TypeConverter.cs | 147 - .../generated/api/Models/SubResource.cs | 54 - .../generated/api/Models/SubResource.json.cs | 108 - .../api/Models/TagsObject.PowerShell.cs | 164 - .../api/Models/TagsObject.TypeConverter.cs | 146 - .../generated/api/Models/TagsObject.cs | 54 - .../generated/api/Models/TagsObject.json.cs | 106 - .../api/Models/TagsObjectTags.PowerShell.cs | 160 - .../Models/TagsObjectTags.TypeConverter.cs | 147 - .../generated/api/Models/TagsObjectTags.cs | 35 - .../api/Models/TagsObjectTags.dictionary.cs | 75 - .../api/Models/TagsObjectTags.json.cs | 109 - .../ValidateCustomDomainInput.PowerShell.cs | 164 - ...ValidateCustomDomainInput.TypeConverter.cs | 147 - .../api/Models/ValidateCustomDomainInput.cs | 54 - .../Models/ValidateCustomDomainInput.json.cs | 108 - .../ValidateCustomDomainOutput.PowerShell.cs | 180 - ...alidateCustomDomainOutput.TypeConverter.cs | 147 - .../api/Models/ValidateCustomDomainOutput.cs | 103 - .../Models/ValidateCustomDomainOutput.json.cs | 121 - ...WebApplicationFirewallPolicy.PowerShell.cs | 308 - ...ApplicationFirewallPolicy.TypeConverter.cs | 147 - .../Models/WebApplicationFirewallPolicy.cs | 321 - .../WebApplicationFirewallPolicy.json.cs | 114 - ...pplicationFirewallPolicyList.PowerShell.cs | 176 - ...icationFirewallPolicyList.TypeConverter.cs | 148 - .../WebApplicationFirewallPolicyList.cs | 88 - .../WebApplicationFirewallPolicyList.json.cs | 124 - ...tionFirewallPolicyProperties.PowerShell.cs | 241 - ...nFirewallPolicyProperties.TypeConverter.cs | 151 - .../WebApplicationFirewallPolicyProperties.cs | 235 - ...pplicationFirewallPolicyProperties.json.cs | 162 - ...cationFirewallScrubbingRules.PowerShell.cs | 190 - ...ionFirewallScrubbingRules.TypeConverter.cs | 150 - .../WebApplicationFirewallScrubbingRules.cs | 135 - ...bApplicationFirewallScrubbingRules.json.cs | 115 - ...bleAzFrontDoorCustomDomainHttps_Disable.cs | 580 -- ...oorCustomDomainHttps_DisableViaIdentity.cs | 544 -- ...DomainHttps_DisableViaIdentityFrontDoor.cs | 559 -- ...ableAzFrontDoorCustomDomainHttps_Enable.cs | 596 -- ...ontDoorCustomDomainHttps_EnableExpanded.cs | 663 -- ...DoorCustomDomainHttps_EnableViaIdentity.cs | 560 -- ...omDomainHttps_EnableViaIdentityExpanded.cs | 629 -- ...mDomainHttps_EnableViaIdentityFrontDoor.cs | 575 -- ...ttps_EnableViaIdentityFrontDoorExpanded.cs | 642 -- ...CustomDomainHttps_EnableViaJsonFilePath.cs | 600 -- ...orCustomDomainHttps_EnableViaJsonString.cs | 596 -- .../GetAzFrontDoorFrontendEndpoint_Get.cs | 528 - ...rontDoorFrontendEndpoint_GetViaIdentity.cs | 492 - ...rontendEndpoint_GetViaIdentityFrontDoor.cs | 504 - .../GetAzFrontDoorFrontendEndpoint_List.cs | 538 - .../cmdlets/GetAzFrontDoorRulesEngine_Get.cs | 527 - ...etAzFrontDoorRulesEngine_GetViaIdentity.cs | 491 - ...DoorRulesEngine_GetViaIdentityFrontDoor.cs | 503 - .../cmdlets/GetAzFrontDoorRulesEngine_List.cs | 537 - ...ontDoorWafManagedRuleSetDefinition_List.cs | 509 - .../cmdlets/GetAzFrontDoorWafPolicy_Get.cs | 511 - .../GetAzFrontDoorWafPolicy_GetViaIdentity.cs | 485 - .../cmdlets/GetAzFrontDoorWafPolicy_List.cs | 523 - .../cmdlets/GetAzFrontDoorWafPolicy_List1.cs | 509 - .../generated/cmdlets/GetAzFrontDoor_Get.cs | 513 - .../cmdlets/GetAzFrontDoor_GetViaIdentity.cs | 487 - .../generated/cmdlets/GetAzFrontDoor_List.cs | 509 - .../generated/cmdlets/GetAzFrontDoor_List1.cs | 523 - ...ewAzFrontDoorRulesEngine_CreateExpanded.cs | 598 -- ...ntDoorRulesEngine_CreateViaJsonFilePath.cs | 596 -- ...rontDoorRulesEngine_CreateViaJsonString.cs | 594 -- .../NewAzFrontDoorWafPolicy_CreateExpanded.cs | 658 -- ...rontDoorWafPolicy_CreateViaJsonFilePath.cs | 580 -- ...zFrontDoorWafPolicy_CreateViaJsonString.cs | 578 -- .../cmdlets/NewAzFrontDoor_CreateExpanded.cs | 706 -- .../NewAzFrontDoor_CreateViaJsonFilePath.cs | 582 -- .../NewAzFrontDoor_CreateViaJsonString.cs | 580 -- .../cmdlets/RemoveAzFrontDoorContent_Purge.cs | 580 -- .../RemoveAzFrontDoorContent_PurgeExpanded.cs | 583 -- ...moveAzFrontDoorContent_PurgeViaIdentity.cs | 555 -- ...ontDoorContent_PurgeViaIdentityExpanded.cs | 558 -- ...AzFrontDoorContent_PurgeViaJsonFilePath.cs | 582 -- ...veAzFrontDoorContent_PurgeViaJsonString.cs | 580 -- .../RemoveAzFrontDoorRulesEngine_Delete.cs | 615 -- ...zFrontDoorRulesEngine_DeleteViaIdentity.cs | 578 -- ...rRulesEngine_DeleteViaIdentityFrontDoor.cs | 591 -- .../RemoveAzFrontDoorWafPolicy_Delete.cs | 546 -- ...eAzFrontDoorWafPolicy_DeleteViaIdentity.cs | 520 - .../cmdlets/RemoveAzFrontDoor_Delete.cs | 600 -- .../RemoveAzFrontDoor_DeleteViaIdentity.cs | 574 -- ...etAzFrontDoorRulesEngine_UpdateExpanded.cs | 599 -- ...tAzFrontDoorRulesEngine_UpdateExpanded1.cs | 608 -- ...ntDoorRulesEngine_UpdateViaJsonFilePath.cs | 597 -- ...rontDoorRulesEngine_UpdateViaJsonString.cs | 595 -- .../SetAzFrontDoorWafPolicy_UpdateExpanded.cs | 658 -- ...rontDoorWafPolicy_UpdateViaJsonFilePath.cs | 580 -- ...zFrontDoorWafPolicy_UpdateViaJsonString.cs | 578 -- .../cmdlets/SetAzFrontDoor_UpdateExpanded.cs | 701 -- .../SetAzFrontDoor_UpdateViaJsonFilePath.cs | 582 -- .../SetAzFrontDoor_UpdateViaJsonString.cs | 580 -- .../TestAzFrontDoorCustomDomain_Validate.cs | 527 - ...zFrontDoorCustomDomain_ValidateExpanded.cs | 527 - ...ontDoorCustomDomain_ValidateViaIdentity.cs | 505 - ...ustomDomain_ValidateViaIdentityExpanded.cs | 505 - ...oorCustomDomain_ValidateViaJsonFilePath.cs | 529 - ...tDoorCustomDomain_ValidateViaJsonString.cs | 527 - ...rNameAvailabilityWithSubscription_Check.cs | 497 - ...ilabilityWithSubscription_CheckExpanded.cs | 510 - ...tyWithSubscription_CheckViaJsonFilePath.cs | 500 - ...lityWithSubscription_CheckViaJsonString.cs | 498 - .../TestAzFrontDoorNameAvailability_Check.cs | 475 - ...FrontDoorNameAvailability_CheckExpanded.cs | 487 - ...orNameAvailability_CheckViaJsonFilePath.cs | 477 - ...DoorNameAvailability_CheckViaJsonString.cs | 475 - ...dateAzFrontDoorWafPolicy_UpdateExpanded.cs | 692 -- ...DoorWafPolicy_UpdateViaIdentityExpanded.cs | 668 -- .../UpdateAzFrontDoor_UpdateExpanded.cs | 747 -- ...teAzFrontDoor_UpdateViaIdentityExpanded.cs | 723 -- .../generated/runtime/AsyncCommandRuntime.cs | 832 -- .../generated/runtime/AsyncJob.cs | 270 - .../runtime/AsyncOperationResponse.cs | 176 - .../Attributes/ExternalDocsAttribute.cs | 30 - .../PSArgumentCompleterAttribute.cs | 52 - .../BuildTime/Cmdlets/ExportCmdletSurface.cs | 113 - .../BuildTime/Cmdlets/ExportExampleStub.cs | 74 - .../BuildTime/Cmdlets/ExportFormatPs1xml.cs | 103 - .../BuildTime/Cmdlets/ExportHelpMarkdown.cs | 56 - .../BuildTime/Cmdlets/ExportModelSurface.cs | 117 - .../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 180 - .../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 193 - .../BuildTime/Cmdlets/ExportTestStub.cs | 197 - .../BuildTime/Cmdlets/GetCommonParameter.cs | 52 - .../BuildTime/Cmdlets/GetModuleGuid.cs | 31 - .../BuildTime/Cmdlets/GetScriptCmdlet.cs | 54 - .../runtime/BuildTime/CollectionExtensions.cs | 20 - .../runtime/BuildTime/MarkdownRenderer.cs | 122 - .../runtime/BuildTime/Models/PsFormatTypes.cs | 138 - .../BuildTime/Models/PsHelpMarkdownOutputs.cs | 199 - .../runtime/BuildTime/Models/PsHelpTypes.cs | 211 - .../BuildTime/Models/PsMarkdownTypes.cs | 329 - .../BuildTime/Models/PsProxyOutputs.cs | 681 -- .../runtime/BuildTime/Models/PsProxyTypes.cs | 549 -- .../runtime/BuildTime/PsAttributes.cs | 136 - .../runtime/BuildTime/PsExtensions.cs | 176 - .../generated/runtime/BuildTime/PsHelpers.cs | 105 - .../runtime/BuildTime/StringExtensions.cs | 24 - .../runtime/BuildTime/XmlExtensions.cs | 28 - .../generated/runtime/CmdInfoHandler.cs | 40 - .../generated/runtime/Context.cs | 33 - .../Conversions/ConversionException.cs | 17 - .../runtime/Conversions/IJsonConverter.cs | 13 - .../Conversions/Instances/BinaryConverter.cs | 24 - .../Conversions/Instances/BooleanConverter.cs | 13 - .../Instances/DateTimeConverter.cs | 18 - .../Instances/DateTimeOffsetConverter.cs | 15 - .../Conversions/Instances/DecimalConverter.cs | 16 - .../Conversions/Instances/DoubleConverter.cs | 13 - .../Conversions/Instances/EnumConverter.cs | 30 - .../Conversions/Instances/GuidConverter.cs | 15 - .../Instances/HashSet'1Converter.cs | 27 - .../Conversions/Instances/Int16Converter.cs | 13 - .../Conversions/Instances/Int32Converter.cs | 13 - .../Conversions/Instances/Int64Converter.cs | 13 - .../Instances/JsonArrayConverter.cs | 13 - .../Instances/JsonObjectConverter.cs | 13 - .../Conversions/Instances/SingleConverter.cs | 13 - .../Conversions/Instances/StringConverter.cs | 13 - .../Instances/TimeSpanConverter.cs | 15 - .../Conversions/Instances/UInt16Converter.cs | 13 - .../Conversions/Instances/UInt32Converter.cs | 13 - .../Conversions/Instances/UInt64Converter.cs | 13 - .../Conversions/Instances/UriConverter.cs | 15 - .../runtime/Conversions/JsonConverter.cs | 21 - .../Conversions/JsonConverterAttribute.cs | 18 - .../Conversions/JsonConverterFactory.cs | 91 - .../Conversions/StringLikeConverter.cs | 45 - .../Customizations/IJsonSerializable.cs | 263 - .../runtime/Customizations/JsonArray.cs | 13 - .../runtime/Customizations/JsonBoolean.cs | 16 - .../runtime/Customizations/JsonNode.cs | 21 - .../runtime/Customizations/JsonNumber.cs | 78 - .../runtime/Customizations/JsonObject.cs | 183 - .../runtime/Customizations/JsonString.cs | 34 - .../runtime/Customizations/XNodeArray.cs | 44 - .../generated/runtime/Debugging.cs | 28 - .../generated/runtime/DictionaryExtensions.cs | 33 - .../generated/runtime/EventData.cs | 78 - .../generated/runtime/EventDataExtensions.cs | 94 - .../generated/runtime/EventListener.cs | 247 - .../generated/runtime/Events.cs | 27 - .../generated/runtime/EventsExtensions.cs | 27 - .../generated/runtime/Extensions.cs | 117 - .../Extensions/StringBuilderExtensions.cs | 23 - .../Helpers/Extensions/TypeExtensions.cs | 61 - .../generated/runtime/Helpers/Seperator.cs | 11 - .../generated/runtime/Helpers/TypeDetails.cs | 116 - .../generated/runtime/Helpers/XHelper.cs | 75 - .../generated/runtime/HttpPipeline.cs | 88 - .../generated/runtime/HttpPipelineMocking.ps1 | 110 - .../generated/runtime/IAssociativeArray.cs | 24 - .../generated/runtime/IHeaderSerializable.cs | 14 - .../generated/runtime/ISendAsync.cs | 413 - .../generated/runtime/InfoAttribute.cs | 38 - .../generated/runtime/InputHandler.cs | 22 - .../generated/runtime/Iso/IsoDate.cs | 214 - .../generated/runtime/JsonType.cs | 18 - .../generated/runtime/MessageAttribute.cs | 353 - .../runtime/MessageAttributeHelper.cs | 184 - .../generated/runtime/Method.cs | 19 - .../generated/runtime/Models/JsonMember.cs | 83 - .../generated/runtime/Models/JsonModel.cs | 89 - .../runtime/Models/JsonModelCache.cs | 19 - .../runtime/Nodes/Collections/JsonArray.cs | 65 - .../Nodes/Collections/XImmutableArray.cs | 62 - .../runtime/Nodes/Collections/XList.cs | 64 - .../runtime/Nodes/Collections/XNodeArray.cs | 73 - .../runtime/Nodes/Collections/XSet.cs | 60 - .../generated/runtime/Nodes/JsonBoolean.cs | 42 - .../generated/runtime/Nodes/JsonDate.cs | 173 - .../generated/runtime/Nodes/JsonNode.cs | 250 - .../generated/runtime/Nodes/JsonNumber.cs | 109 - .../generated/runtime/Nodes/JsonObject.cs | 172 - .../generated/runtime/Nodes/JsonString.cs | 42 - .../generated/runtime/Nodes/XBinary.cs | 40 - .../generated/runtime/Nodes/XNull.cs | 15 - .../Parser/Exceptions/ParseException.cs | 24 - .../generated/runtime/Parser/JsonParser.cs | 180 - .../generated/runtime/Parser/JsonToken.cs | 66 - .../generated/runtime/Parser/JsonTokenizer.cs | 177 - .../generated/runtime/Parser/Location.cs | 43 - .../runtime/Parser/Readers/SourceReader.cs | 130 - .../generated/runtime/Parser/TokenReader.cs | 39 - .../generated/runtime/PipelineMocking.cs | 262 - .../runtime/Properties/Resources.Designer.cs | 5655 ----------- .../runtime/Properties/Resources.resx | 1747 ---- .../generated/runtime/Response.cs | 27 - .../runtime/Serialization/JsonSerializer.cs | 350 - .../Serialization/PropertyTransformation.cs | 21 - .../Serialization/SerializationOptions.cs | 65 - .../generated/runtime/SerializationMode.cs | 18 - .../runtime/TypeConverterExtensions.cs | 261 - .../runtime/UndeclaredResponseException.cs | 112 - .../generated/runtime/Writers/JsonWriter.cs | 223 - .../generated/runtime/delegates.cs | 23 - .../internal/Az.FrontDoor.internal.psm1 | 38 - .../Enable-AzFrontDoorCustomDomainHttps.ps1 | 334 - .../Get-AzFrontDoorFrontendEndpoint.ps1 | 208 - .../internal/New-AzFrontDoor.ps1 | 321 - .../internal/New-AzFrontDoorWafPolicy.ps1 | 282 - .../internal/ProxyCmdletDefinitions.ps1 | 3015 ------ .../FrontDoor.Autorest/internal/README.md | 14 - .../internal/Set-AzFrontDoor.ps1 | 323 - .../internal/Set-AzFrontDoorRulesEngine.ps1 | 222 - .../internal/Set-AzFrontDoorWafPolicy.ps1 | 284 - .../internal/Test-AzFrontDoorCustomDomain.ps1 | 226 - .../Test-AzFrontDoorNameAvailability.ps1 | 175 - ...ntDoorNameAvailabilityWithSubscription.ps1 | 190 - .../internal/Update-AzFrontDoor.ps1 | 323 - .../internal/Update-AzFrontDoorWafPolicy.ps1 | 292 - .../FrontDoor.Autorest/resources/README.md | 11 - .../FrontDoor.Autorest/test-module.ps1 | 98 - .../FrontDoor.Autorest/generate-info.json | 2 +- src/FrontDoor/FrontDoor.sln | 28 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 4 +- 623 files changed, 17 insertions(+), 150190 deletions(-) delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.csproj delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.format.ps1xml delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psd1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psm1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/check-dependencies.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolsSettingObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorCacheConfigurationObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorForwardingConfigurationObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorFrontendEndpointObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHeaderActionObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHealthProbeSettingObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorLoadBalancingSettingObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorPolicySettingsObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRedirectConfigurationObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRoutingRuleObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineActionObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineRuleObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafMatchConditionObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/README.md delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generate-info.json delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/Module.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/FrontDoor.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.dictionary.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.dictionary.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.dictionary.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.PowerShell.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.TypeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.json.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_Disable.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_Enable.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_Get.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_List.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_Get.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_List.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafManagedRuleSetDefinition_List.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_Get.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_GetViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List1.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_Get.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_GetViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List1.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_Purge.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentityExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_Delete.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_Delete.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_DeleteViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_Delete.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_DeleteViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded1.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_Validate.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentity.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_Check.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_Check.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonFilePath.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateViaIdentityExpanded.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncCommandRuntime.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncJob.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncOperationResponse.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsAttributes.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsHelpers.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/StringExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/XmlExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/CmdInfoHandler.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Context.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/ConversionException.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/IJsonConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/StringLikeConverter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/IJsonSerializable.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonArray.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonBoolean.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNode.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNumber.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonObject.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/XNodeArray.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Debugging.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/DictionaryExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventData.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventDataExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventListener.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Events.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventsExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Extensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Seperator.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/TypeDetails.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/XHelper.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipeline.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipelineMocking.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IAssociativeArray.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IHeaderSerializable.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/ISendAsync.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InfoAttribute.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InputHandler.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Iso/IsoDate.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/JsonType.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttribute.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttributeHelper.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Method.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonMember.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModel.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModelCache.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XList.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XSet.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonBoolean.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonDate.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNode.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNumber.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonObject.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonString.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XBinary.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XNull.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonParser.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonToken.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonTokenizer.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Location.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Readers/SourceReader.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/TokenReader.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/PipelineMocking.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.Designer.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.resx delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Response.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/JsonSerializer.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/PropertyTransformation.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/SerializationOptions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/SerializationMode.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/TypeConverterExtensions.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/UndeclaredResponseException.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Writers/JsonWriter.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/generated/runtime/delegates.cs delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Az.FrontDoor.internal.psm1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Enable-AzFrontDoorCustomDomainHttps.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Get-AzFrontDoorFrontendEndpoint.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoor.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoorWafPolicy.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/ProxyCmdletDefinitions.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/README.md delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoor.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorRulesEngine.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorWafPolicy.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorCustomDomain.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailability.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailabilityWithSubscription.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoor.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoorWafPolicy.ps1 delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/resources/README.md delete mode 100644 generated/FrontDoor/FrontDoor.Autorest/test-module.ps1 diff --git a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.csproj b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.csproj deleted file mode 100644 index 445e036c70db..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - FrontDoor - FrontDoor - FrontDoor.Autorest - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor - - - - - diff --git a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.format.ps1xml b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.format.ps1xml deleted file mode 100644 index b4e6f414f6d8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.format.ps1xml +++ /dev/null @@ -1,2299 +0,0 @@ - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.AzureAsyncOperationResult - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.AzureAsyncOperationResult#Multiple - - - - - - - - - - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Address - - - BackendHostHeader - - - EnabledState - - - HttpPort - - - HttpsPort - - - Priority - - - PrivateEndpointStatus - - - PrivateLinkAlias - - - PrivateLinkApprovalMessage - - - PrivateLinkLocation - - - PrivateLinkResourceId - - - Weight - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolListResult - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties#Multiple - - - - - - - - - - - - - - - - - - HealthProbeSettingId - - - LoadBalancingSettingId - - - ResourceState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings#Multiple - - - - - - - - - - - - - - - EnforceCertificateNameCheck - - - SendRecvTimeoutInSeconds - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration#Multiple - - - - - - - - - - - - - - - - - - DynamicCompression - - - QueryParameter - - - QueryParameterStripDirective - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityInput - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityInput#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput#Multiple - - - - - - - - - - - - - - - - - - Message - - - NameAvailability - - - Reason - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration#Multiple - - - - - - - - - - - - - - - - - - CertificateSource - - - MinimumTlsVersion - - - ProtocolType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Action - - - EnabledState - - - Name - - - Priority - - - RateLimitDurationInMinutes - - - RateLimitThreshold - - - RuleType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError#Multiple - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error#Multiple - - - - - - - - - - - - - - - - - - - - - Code - - - InnerError - - - Message - - - Target - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetails - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetails#Multiple - - - - - - - - - - - - - - - - - - Code - - - Message - - - Target - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse#Multiple - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration#Multiple - - - - - - - - - - - - - - - - - - OdataType - - - CustomForwardingPath - - - ForwardingProtocol - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor#Multiple - - - - - - - - - - - - - - - - - - Location - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters#Multiple - - - - - - - - - - - - CertificateType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorIdentity - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorIdentity#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - FrontDoorName - - - FrontendEndpointName - - - PolicyName - - - ResourceGroupName - - - RulesEngineName - - - SubscriptionId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - EnabledState - - - FriendlyName - - - Cname - - - FrontdoorId - - - ProvisioningState - - - ResourceState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorUpdateParameters#Multiple - - - - - - - - - - - - - - - EnabledState - - - FriendlyName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HostName - - - SessionAffinityEnabledState - - - SessionAffinityTtlSecond - - - WebApplicationFirewallPolicyLinkId - - - CustomHttpsProvisioningState - - - CustomHttpsProvisioningSubstate - - - ResourceState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointsListResult - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointsListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParameters#Multiple - - - - - - - - - - - - - - - - - - HostName - - - SessionAffinityEnabledState - - - SessionAffinityTtlSecond - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable#Multiple - - - - - - - - - - - - VariableName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction#Multiple - - - - - - - - - - - - - - - - - - HeaderActionType - - - HeaderName - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsListResult - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - EnabledState - - - HealthProbeMethod - - - IntervalInSecond - - - Path - - - Protocol - - - ResourceState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsUpdateParameters#Multiple - - - - - - - - - - - - - - - - - - - - - - - - EnabledState - - - HealthProbeMethod - - - IntervalInSecond - - - Path - - - Protocol - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters#Multiple - - - - - - - - - - - - - - - SecretName - - - SecretVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsListResult - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties#Multiple - - - - - - - - - - - - - - - - - - - - - AdditionalLatencyMillisecond - - - SampleSize - - - SuccessfulSamplesRequired - - - ResourceState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsUpdateParameters#Multiple - - - - - - - - - - - - - - - - - - AdditionalLatencyMillisecond - - - SampleSize - - - SuccessfulSamplesRequired - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinition - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinition#Multiple - - - - - - - - - - - - - - - - - - - - - DefaultAction - - - DefaultState - - - Description - - - RuleId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion#Multiple - - - - - - - - - - - - - - - - - - Operator - - - Selector - - - Variable - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinition - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinition#Multiple - - - - - - - - - - - - - - - Description - - - RuleGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride#Multiple - - - - - - - - - - - - RuleGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride#Multiple - - - - - - - - - - - - - - - - - - Action - - - EnabledState - - - RuleId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet#Multiple - - - - - - - - - - - - - - - RuleSetAction - - - Version - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinition - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinition#Multiple - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionList - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionList#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties#Multiple - - - - - - - - - - - - - - - - - - - - - ProvisioningState - - - RuleSetId - - - RuleSetType - - - RuleSetVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition#Multiple - - - - - - - - - - - - - - - - - - - - - MatchVariable - - - NegateCondition - - - OperatorProperty - - - Selector - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CaptchaExpirationInMinutes - - - CustomBlockResponseBody - - - CustomBlockResponseStatusCode - - - EnabledState - - - JavascriptChallengeExpirationInMinutes - - - Mode - - - RedirectUrl - - - RequestBodyCheck - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing#Multiple - - - - - - - - - - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OdataType - - - CustomFragment - - - CustomHost - - - CustomPath - - - CustomQueryString - - - RedirectProtocol - - - RedirectType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource#Multiple - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration#Multiple - - - - - - - - - - - - OdataType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleListResult - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties#Multiple - - - - - - - - - - - - - - - - - - - - - EnabledState - - - RuleEngineId - - - WebApplicationFirewallPolicyLinkId - - - ResourceState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParameters#Multiple - - - - - - - - - - - - EnabledState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineListResult - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition#Multiple - - - - - - - - - - - - - - - - - - - - - MatchVariable - - - NegateCondition - - - Operator - - - Selector - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties#Multiple - - - - - - - - - - - - ResourceState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule#Multiple - - - - - - - - - - - - - - - - - - MatchProcessingBehavior - - - Name - - - Priority - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainInput - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainInput#Multiple - - - - - - - - - - - - HostName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainOutput - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainOutput#Multiple - - - - - - - - - - - - - - - - - - CustomDomainValidated - - - Message - - - Reason - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy#Multiple - - - - - - - - - - - - - - - - - - - - - Location - - - Name - - - Etag - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties#Multiple - - - - - - - - - - - - - - - ProvisioningState - - - ResourceState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules#Multiple - - - - - - - - - - - - - - - - - - - - - MatchVariable - - - Selector - - - SelectorMatchOperator - - - State - - - - - - - - \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psd1 b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psd1 deleted file mode 100644 index 610df7a5fbf5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psd1 +++ /dev/null @@ -1,23 +0,0 @@ -@{ - GUID = 'cf98442d-353b-4270-9299-8a4bb7c977e6' - RootModule = './Az.FrontDoor.psm1' - ModuleVersion = '0.1.0' - CompatiblePSEditions = 'Core', 'Desktop' - Author = 'Microsoft Corporation' - CompanyName = 'Microsoft Corporation' - Copyright = 'Microsoft Corporation. All rights reserved.' - Description = 'Microsoft Azure PowerShell: FrontDoor cmdlets' - PowerShellVersion = '5.1' - DotNetFrameworkVersion = '4.7.2' - RequiredAssemblies = './bin/Az.FrontDoor.private.dll' - FormatsToProcess = './Az.FrontDoor.format.ps1xml' - FunctionsToExport = 'Disable-AzFrontDoorCustomDomainHttps', 'Enable-AzFrontDoorCustomDomainHttps', 'Get-AzFrontDoor', 'Get-AzFrontDoorFrontendEndpoint', 'Get-AzFrontDoorRulesEngine', 'Get-AzFrontDoorWafManagedRuleSetDefinition', 'Get-AzFrontDoorWafPolicy', 'New-AzFrontDoor', 'New-AzFrontDoorBackendObject', 'New-AzFrontDoorBackendPoolObject', 'New-AzFrontDoorBackendPoolsSettingObject', 'New-AzFrontDoorCacheConfigurationObject', 'New-AzFrontDoorForwardingConfigurationObject', 'New-AzFrontDoorFrontendEndpointObject', 'New-AzFrontDoorHeaderActionObject', 'New-AzFrontDoorHealthProbeSettingObject', 'New-AzFrontDoorLoadBalancingSettingObject', 'New-AzFrontDoorPolicySettingsObject', 'New-AzFrontDoorRedirectConfigurationObject', 'New-AzFrontDoorRoutingRuleObject', 'New-AzFrontDoorRulesEngine', 'New-AzFrontDoorRulesEngineActionObject', 'New-AzFrontDoorRulesEngineMatchConditionObject', 'New-AzFrontDoorRulesEngineRuleObject', 'New-AzFrontDoorWafCustomRuleGroupByVariableObject', 'New-AzFrontDoorWafCustomRuleObject', 'New-AzFrontDoorWafLogScrubbingRuleObject', 'New-AzFrontDoorWafLogScrubbingSettingObject', 'New-AzFrontDoorWafManagedRuleExclusionObject', 'New-AzFrontDoorWafManagedRuleObject', 'New-AzFrontDoorWafManagedRuleOverrideObject', 'New-AzFrontDoorWafMatchConditionObject', 'New-AzFrontDoorWafPolicy', 'New-AzFrontDoorWafRuleGroupOverrideObject', 'Remove-AzFrontDoor', 'Remove-AzFrontDoorContent', 'Remove-AzFrontDoorRulesEngine', 'Remove-AzFrontDoorWafPolicy', 'Set-AzFrontDoor', 'Set-AzFrontDoorRulesEngine', 'Update-AzFrontDoorWafPolicy' - PrivateData = @{ - PSData = @{ - Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'FrontDoor' - LicenseUri = 'https://aka.ms/azps-license' - ProjectUri = 'https://github.com/Azure/azure-powershell' - ReleaseNotes = '' - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psm1 b/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psm1 deleted file mode 100644 index a67ee4f5665c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/Az.FrontDoor.psm1 +++ /dev/null @@ -1,119 +0,0 @@ -# region Generated - # ---------------------------------------------------------------------------------- - # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. - # ---------------------------------------------------------------------------------- - # Load required Az.Accounts module - $accountsName = 'Az.Accounts' - $accountsModule = Get-Module -Name $accountsName - if(-not $accountsModule) { - $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' - if(Test-Path -Path $localAccountsPath) { - $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 - if($localAccounts) { - $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru - } - } - if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 - if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru - } - } - } - - if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop - } - Write-Information "Loaded Module '$($accountsModule.Name)'" - - # Load the private module dll - $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.FrontDoor.private.dll') - - # Get the private module's instance - $instance = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module]::Instance - - # Ask for the shared functionality table - $VTable = Register-AzModule - - # Tweaks the pipeline on module load - $instance.OnModuleLoad = $VTable.OnModuleLoad - - # Following two delegates are added for telemetry - $instance.GetTelemetryId = $VTable.GetTelemetryId - $instance.Telemetry = $VTable.Telemetry - - # Delegate to sanitize the output object - $instance.SanitizeOutput = $VTable.SanitizerHandler - - # Delegate to get the telemetry info - $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo - - # Tweaks the pipeline per call - $instance.OnNewRequest = $VTable.OnNewRequest - - # Gets shared parameter values - $instance.GetParameterValue = $VTable.GetParameterValue - - # Allows shared module to listen to events from this module - $instance.EventListener = $VTable.EventListener - - # Gets shared argument completers - $instance.ArgumentCompleter = $VTable.ArgumentCompleter - - # The name of the currently selected Azure profile - $instance.ProfileName = $VTable.ProfileName - - # Load the custom module - $customModulePath = Join-Path $PSScriptRoot './custom/Az.FrontDoor.custom.psm1' - if(Test-Path $customModulePath) { - $null = Import-Module -Name $customModulePath - } - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export proxy cmdlet scripts - $exportsPath = Join-Path $PSScriptRoot './exports' - $directories = Get-ChildItem -Directory -Path $exportsPath - $profileDirectory = $null - if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." - } - } elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 - } - - if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName - } - - if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) - } - - # Finalize initialization of this module - $instance.Init(); - Write-Information "Loaded Module '$($instance.Name)'" -# endregion diff --git a/generated/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/generated/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index b6db8e525a56..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the Apache License, Version 2.0 (the ""License""); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an ""AS IS"" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -// is regenerated. - -using System; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] -[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] -[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] -[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - FrontDoor")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.13.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] diff --git a/generated/FrontDoor/FrontDoor.Autorest/check-dependencies.ps1 b/generated/FrontDoor/FrontDoor.Autorest/check-dependencies.ps1 deleted file mode 100644 index 90ca9867ae40..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/check-dependencies.ps1 +++ /dev/null @@ -1,65 +0,0 @@ -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- -param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) -$ErrorActionPreference = 'Stop' - -if(-not $NotIsolated) { - Write-Host -ForegroundColor Green 'Creating isolated process...' - $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path - & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated - return -} - -function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { - if($predicate) { - $module = Get-Module -ListAvailable -Name $moduleName - if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) { - $null = New-Item -ItemType Directory -Force -Path $path - Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." - if ($requiredVersion) { - Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path - }elseif($versionMinimum) { - Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path - } else { - Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path - } - } - } -} - -$ProgressPreference = 'SilentlyContinue' -$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1 - -$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' -if(Test-Path -Path $localModulesPath) { - $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" -} - -DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5' -DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' - -$tools = Join-Path $PSScriptRoot 'tools' -$resourceDir = Join-Path $tools 'Resources' -$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1' - -if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) { - Write-Host -ForegroundColor Green "Building local Resource module used for test..." - Set-Location $resourceDir - $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources - $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/ - Set-Location $HOME/.PSSharedModules/Resources - $null = .\build-module.ps1 - Set-Location $PSScriptRoot -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 deleted file mode 100644 index 0941be857a9a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 +++ /dev/null @@ -1,265 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Disables a frontendEndpoint for HTTPS traffic -.Description -Disables a frontendEndpoint for HTTPS traffic -.Example -Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -.Example -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Disable-AzFrontDoorCustomDomainHttps -InputObject $frontendEndpointObj -.Example -Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/disable-azfrontdoorcustomdomainhttps -#> -function Disable-AzFrontDoorCustomDomainHttps { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Disable', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Disable', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Disable', Mandatory)] - [Parameter(ParameterSetName='DisableViaIdentityFrontDoor', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${FrontendEndpointName}, - - [Parameter(ParameterSetName='Disable', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Disable')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='DisableViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='DisableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Disable = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_Disable'; - DisableViaIdentity = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_DisableViaIdentity'; - DisableViaIdentityFrontDoor = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor'; - } - if (('Disable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 deleted file mode 100644 index ce40fba14f81..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 +++ /dev/null @@ -1,345 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Enables a frontendEndpoint for HTTPS traffic -.Description -Enables a frontendEndpoint for HTTPS traffic -.Example -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" -.Example -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" -.Example -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps -.Example -Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -.Example -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps -#> -function Enable-AzFrontDoorCustomDomainHttps { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='Enable', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${FrontendEndpointName}, - - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='Enable', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaJsonString')] - [Parameter(ParameterSetName='EnableViaJsonFilePath')] - [Parameter(ParameterSetName='Enable')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] - [System.String] - # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - ${MinimumTlsVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Key Vault secret representing the full certificate PFX - ${SecretName}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The version of the Key Vault secret representing the full certificate PFX - ${SecretVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${VaultId}, - - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Enable operation - ${JsonString}, - - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Enable operation - ${JsonFilePath}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - EnableExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaJsonString = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaJsonFilePath = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - Enable = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaIdentityFrontDoorExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaIdentityFrontDoor = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaIdentityExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaIdentity = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - ByResourceIdWithVaultParameterSet = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - } - if (('EnableExpanded', 'EnableViaJsonString', 'EnableViaJsonFilePath', 'Enable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('EnableExpanded', 'EnableViaIdentityFrontDoorExpanded', 'EnableViaIdentityExpanded', 'ByResourceIdWithVaultParameterSet') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('MinimumTlsVersion') ) { - $PSBoundParameters['MinimumTlsVersion'] = 1.2 - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 deleted file mode 100644 index 9cf14242e146..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 +++ /dev/null @@ -1,230 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Gets a Front Door with the specified Front Door name under the specified subscription and resource group. -.Description -Gets a Front Door with the specified Front Door name under the specified subscription and resource group. -.Example -Get-AzFrontDoor -.Example -Get-AzFrontDoor -ResourceGroupName "rg1" -.Example -Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoor -#> -function Get-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Get = 'Az.FrontDoor.private\Get-AzFrontDoor_Get'; - GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoor_GetViaIdentity'; - List = 'Az.FrontDoor.private\Get-AzFrontDoor_List'; - List1 = 'Az.FrontDoor.private\Get-AzFrontDoor_List1'; - } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 deleted file mode 100644 index f3c88710bd20..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 +++ /dev/null @@ -1,254 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Gets a Frontend endpoint with the specified name within the specified Front Door. -.Description -Gets a Frontend endpoint with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint -#> -function Get-AzFrontDoorFrontendEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='Get')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='ByObjectParameterSet')] - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] - [Alias('FrontendEndpointName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${Name}, - - [Parameter(ParameterSetName='ByObjectParameterSet', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Alias('FrontDoorObject')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - List = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - Get = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - ByObjectParameterSet = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - GetViaIdentityFrontDoor = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - GetViaIdentity = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - } - if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 deleted file mode 100644 index 02314c9c2314..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 +++ /dev/null @@ -1,252 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Gets a Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Gets a Rules Engine Configuration with the specified name within the specified Front Door. -.Example -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name rulesengine3 -.Example -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -.Example -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistent - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorrulesengine -#> -function Get-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Get = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_Get'; - GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_GetViaIdentity'; - GetViaIdentityFrontDoor = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_GetViaIdentityFrontDoor'; - List = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_List'; - } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 deleted file mode 100644 index 6e2c20afd3f9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 +++ /dev/null @@ -1,186 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Lists all available managed rule sets. -.Description -Lists all available managed rule sets. -.Example -Get-AzFrontDoorWafManagedRuleSetDefinition - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafmanagedrulesetdefinition -#> -function Get-AzFrontDoorWafManagedRuleSetDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - List = 'Az.FrontDoor.private\Get-AzFrontDoorWafManagedRuleSetDefinition_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 deleted file mode 100644 index 05d695c8f499..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 +++ /dev/null @@ -1,228 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Retrieve protection policy with specified name within a resource group. -.Description -Retrieve protection policy with specified name within a resource group. -.Example -Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -.Example -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafpolicy -#> -function Get-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Get = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_Get'; - GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_GetViaIdentity'; - List = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_List'; - List1 = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_List1'; - } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 deleted file mode 100644 index b7069d238b20..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 +++ /dev/null @@ -1,361 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Create a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor -#> -function New-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Management.Automation.SwitchParameter] - ${DisableCertificateNameCheck}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.custom\New-AzFrontDoor'; - CreateViaJsonFilePath = 'Az.FrontDoor.custom\New-AzFrontDoor'; - CreateViaJsonString = 'Az.FrontDoor.custom\New-AzFrontDoor'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendObject.ps1 deleted file mode 100644 index 5b6f4ae042fe..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendObject.ps1 +++ /dev/null @@ -1,192 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for Backend. -.Description -Create an in-memory object for Backend. -.Example -New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject -#> -function New-AzFrontDoorBackendObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Location of the backend (IP address or FQDN). - ${Address}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The value to use as the host header sent to the backend. - # If blank or unspecified, this defaults to the incoming host. - ${BackendHostHeader}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to enable use of this backend. - # Permitted values are 'Enabled' or 'Disabled'. - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The HTTP TCP port number. - # Must be between 1 and 65535. - ${HttpPort}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The HTTPS TCP port number. - # Must be between 1 and 65535. - ${HttpsPort}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Priority to use for load balancing. - # Higher priorities will not be used for load balancing if any lower priority backend is healthy. - ${Priority}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The Alias of the Private Link resource. - # Populating this optional field indicates that this backend is 'Private'. - ${PrivateLinkAlias}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A custom message to be included in the approval request to connect to the Private Link. - ${PrivateLinkApprovalMessage}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The location of the Private Link resource. - # Required only if 'privateLinkResourceId' is populated. - ${PrivateLinkLocation}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The Resource Id of the Private Link resource. - # Populating this optional field indicates that this backend is 'Private'. - ${PrivateLinkResourceId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Weight of this endpoint for load balancing purposes. - ${Weight} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolObject.ps1 deleted file mode 100644 index c4d23cdfcf23..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolObject.ps1 +++ /dev/null @@ -1,176 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for BackendPool. -.Description -Create an in-memory object for BackendPool. -.Example -New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKEND : The set of backends for this pool. - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject -#> -function New-AzFrontDoorBackendPoolObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend[]] - # The set of backends for this pool. - ${Backend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${HealthProbeSettingsName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${LoadBalancingSettingsName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${FrontDoorName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${ResourceGroupName} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendPoolObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolsSettingObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolsSettingObject.ps1 deleted file mode 100644 index e8a944746cb8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorBackendPoolsSettingObject.ps1 +++ /dev/null @@ -1,134 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for BackendPoolsSettings. -.Description -Create an in-memory object for BackendPoolsSettings. -.Example -New-AzFrontDoorBackendPoolsSettingObject -.Example -New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject -#> -function New-AzFrontDoorBackendPoolsSettingObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to enforce certificate name check on HTTPS requests to all backend pools. - # No effect on non-HTTPS requests. - ${EnforceCertificateNameCheck}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Send and receive timeout on forwarding request to the backend. - # When timeout is reached, the request fails and returns. - ${SendRecvTimeoutInSeconds} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendPoolsSettingObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorCacheConfigurationObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorCacheConfigurationObject.ps1 deleted file mode 100644 index 9549ccfaa9cb..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorCacheConfigurationObject.ps1 +++ /dev/null @@ -1,145 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for CacheConfiguration. -.Description -Create an in-memory object for CacheConfiguration. -.Example -New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -QueryParameterStripDirective "StripAllExcept" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorcacheconfigurationobject -#> -function New-AzFrontDoorCacheConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.TimeSpan] - # The duration for which the content needs to be cached. - # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - # HTTP requires the value to be no more than a year. - ${CacheDuration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to use dynamic compression for cached content. - ${DynamicCompression}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # query parameters to include or exclude (comma separated). - ${QueryParameter}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Treatment of URL query terms when forming the cache key. - ${QueryParameterStripDirective} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorCacheConfigurationObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorForwardingConfigurationObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorForwardingConfigurationObject.ps1 deleted file mode 100644 index e1cb163a2bae..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorForwardingConfigurationObject.ps1 +++ /dev/null @@ -1,156 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for ForwardingConfiguration. -.Description -Create an in-memory object for ForwardingConfiguration. -.Example -New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "MatchRequest" -.Example -$cacheConfig = New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "HttpsOnly" -CustomForwardingPath "/api/v2" -CacheConfiguration $cacheConfig - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CACHECONFIGURATION : The caching configuration associated with this rule. - [CacheDuration ]: The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year - [DynamicCompression ]: Whether to use dynamic compression for cached content - [QueryParameter ]: query parameters to include or exclude (comma separated). - [QueryParameterStripDirective ]: Treatment of URL query terms when forming the cache key. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorforwardingconfigurationobject -#> -function New-AzFrontDoorForwardingConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${BackendPoolId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration] - # The caching configuration associated with this rule. - ${CacheConfiguration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A custom path used to rewrite resource paths matched by this rule. - # Leave empty to use incoming path. - ${CustomForwardingPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Protocol this rule will use when forwarding traffic to backends. - ${ForwardingProtocol} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorForwardingConfigurationObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorFrontendEndpointObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorFrontendEndpointObject.ps1 deleted file mode 100644 index 62300ffa162e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorFrontendEndpointObject.ps1 +++ /dev/null @@ -1,204 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for FrontendEndpoint. -.Description -Create an in-memory object for FrontendEndpoint. -.Example -New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName "frontendendpoint1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject -#> -function New-AzFrontDoorFrontendEndpointObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the source of the SSL certificate. - ${CertificateSource}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - ${MinimumTlsVersion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the type of the certificate used for secure connections to a frontendEndpoint. - ${CertificateType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The host name of the frontendEndpoint. - # Must be a domain name. - ${HostName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Key Vault secret representing the full certificate PFX. - ${SecretName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The version of the Key Vault secret representing the full certificate PFX. - ${SecretVersion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to allow session affinity on this host. - # Valid options are 'Enabled' or 'Disabled'. - ${SessionAffinityEnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # UNUSED. - # This field will be ignored. - # The TTL to use in seconds for session affinity, if applicable. - ${SessionAffinityTtlInSeconds}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Vault}, - - [Parameter()] - [Alias('WebApplicationFirewallPolicyLink')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${WebApplicationFirewallPolicyLinkId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The TLS extension protocol that is used for secure delivery - ${ProtocolType} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorFrontendEndpointObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHeaderActionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHeaderActionObject.ps1 deleted file mode 100644 index 8eccaedec3e1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHeaderActionObject.ps1 +++ /dev/null @@ -1,137 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for HeaderAction. -.Description -Create an in-memory object for HeaderAction. -.Example -New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorheaderactionobject -#> -function New-AzFrontDoorHeaderActionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Which type of manipulation to apply to the header. - ${HeaderActionType}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the header this action will apply to. - ${HeaderName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The value to update the given header name with. - # This value is not used if the actionType is Delete. - ${Value} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorHeaderActionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHealthProbeSettingObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHealthProbeSettingObject.ps1 deleted file mode 100644 index 6d330fed79f6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorHealthProbeSettingObject.ps1 +++ /dev/null @@ -1,164 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for HealthProbeSettingsModel. -.Description -Create an in-memory object for HealthProbeSettingsModel. -.Example -New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject -#> -function New-AzFrontDoorHealthProbeSettingObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to enable health probes to be made against backends defined under backendPools. - # Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Configures which HTTP method to use to probe the backends defined under backendPools. - ${HealthProbeMethod}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The number of seconds between health probes. - ${IntervalInSeconds}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The path to use for the health probe. - # Default is /. - ${Path}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Protocol scheme to use for this probe. - ${Protocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorHealthProbeSettingObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorLoadBalancingSettingObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorLoadBalancingSettingObject.ps1 deleted file mode 100644 index 99b78dfe9867..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorLoadBalancingSettingObject.ps1 +++ /dev/null @@ -1,147 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for LoadBalancingSettingsModel. -.Description -Create an in-memory object for LoadBalancingSettingsModel. -.Example -New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject -#> -function New-AzFrontDoorLoadBalancingSettingObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The additional latency in milliseconds for probes to fall into the lowest latency bucket. - ${AdditionalLatencyInMilliseconds}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The number of samples to consider for load balancing decisions. - ${SampleSize}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The number of samples within the sample period that must succeed. - ${SuccessfulSamplesRequired}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorLoadBalancingSettingObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorPolicySettingsObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorPolicySettingsObject.ps1 deleted file mode 100644 index d78bc9c3c315..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorPolicySettingsObject.ps1 +++ /dev/null @@ -1,193 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for PolicySettings. -.Description -Create an in-memory object for PolicySettings. -.Example -$logScrubbing = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @() -New-AzFrontDoorPolicySettingsObject -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Enabled" -CustomBlockResponseStatusCode 403 -CustomBlockResponseBody "PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+" -RedirectUrl "https://www.example.com/blocked" -JavascriptChallengeExpirationInMinutes 30 -LogScrubbingSetting $logScrubbing - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorpolicysettingsobject -#> -function New-AzFrontDoorPolicySettingsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # 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. - ${CaptchaExpirationInMinutes}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If the action type is block, customer can override the response body. - # The body must be specified in base64 encoding. - ${CustomBlockResponseBody}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # If the action type is block, customer can override the response status code. - ${CustomBlockResponseStatusCode}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the policy is in enabled or disabled state. - # Defaults to Enabled if not specified. - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # 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. - ${JavascriptChallengeExpirationInMinutes}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] - # Defines rules that scrub sensitive fields in the Web Application Firewall logs. - ${LogScrubbingSetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if it is in detection mode or prevention mode at policy level. - ${Mode}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If action type is redirect, this field represents redirect URL for the client. - ${RedirectUrl}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if policy managed rules will inspect the request body content. - ${RequestBodyCheck} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorPolicySettingsObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRedirectConfigurationObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRedirectConfigurationObject.ps1 deleted file mode 100644 index 114bb854b811..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRedirectConfigurationObject.ps1 +++ /dev/null @@ -1,163 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for RedirectConfiguration. -.Description -Create an in-memory object for RedirectConfiguration. -.Example -New-AzFrontDoorRedirectConfigurationObject -RedirectType "PermanentRedirect" -RedirectProtocol "HttpsOnly" -CustomHost "www.example.com" -CustomPath "/newpath" -CustomQueryString "source=frontdoor&campaign=redirect" -CustomFragment "section1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorredirectconfigurationobject -#> -function New-AzFrontDoorRedirectConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Fragment to add to the redirect URL. - # Fragment is the part of the URL that comes after #. - # Do not include the #. - ${CustomFragment}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Host to redirect. - # Leave empty to use the incoming host as the destination host. - ${CustomHost}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The full path to redirect. - # Path cannot be empty and must start with /. - # Leave empty to use the incoming path as destination path. - ${CustomPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The set of query strings to be placed in the redirect URL. - # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. - # Query string must be in = format. - # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. - ${CustomQueryString}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The protocol of the destination to where the traffic is redirected. - ${RedirectProtocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The redirect type the rule will use when redirecting traffic. - ${RedirectType} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRedirectConfigurationObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRoutingRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRoutingRuleObject.ps1 deleted file mode 100644 index f458a6980abe..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRoutingRuleObject.ps1 +++ /dev/null @@ -1,299 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for RoutingRule. -.Description -Create an in-memory object for RoutingRule. -.Example -New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" -.Example -$customHost = "www.contoso.com" -$customPath = "/images/contoso.png" -$queryString = "field1=value1&field2=value2" -$destinationFragment = "section-header-2" -New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath -CustomQueryString $queryString -CustomFragment $destinationFragment - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -ROUTECONFIGURATION : - OdataType : -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject -#> -function New-AzFrontDoorRoutingRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule])] -[CmdletBinding(DefaultParameterSetName='ByFieldsWithForwardingParameterSet', PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # Protocol schemes to match for this rule. - ${AcceptedProtocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to enable use of this rule. - # Permitted values are 'Enabled' or 'Disabled'. - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # Frontend endpoints associated with this rule. - ${FrontendEndpointName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource Group name. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Front Door to which this routing rule belongs. - ${FrontDoorName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # The route patterns of the rule. - ${PatternsToMatch}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] - # - ${RouteConfiguration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${RuleEngineName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${WebApplicationFirewallPolicyLinkId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${BackendPoolName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.TimeSpan] - # The duration for which the content needs to be cached. - # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - # HTTP requires the value to be no more than a year. - ${CacheDuration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to use dynamic compression for cached content. - ${DynamicCompression}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # query parameters to include or exclude (comma separated). - ${QueryParameter}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Treatment of URL query terms when forming the cache key. - ${QueryParameterStripDirective}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A custom path used to rewrite resource paths matched by this rule. - # Leave empty to use incoming path. - ${CustomForwardingPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Protocol this rule will use when forwarding traffic to backends. - ${ForwardingProtocol}, - - [Parameter(ParameterSetName='ByFieldsWithForwardingParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Boolean] - ${EnableCaching}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Fragment to add to the redirect URL. - # Fragment is the part of the URL that comes after #. - # Do not include the #. - ${CustomFragment}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Host to redirect. - # Leave empty to use the incoming host as the destination host. - ${CustomHost}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The full path to redirect. - # Path cannot be empty and must start with /. - # Leave empty to use the incoming path as destination path. - ${CustomPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The set of query strings to be placed in the redirect URL. - # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. - # Query string must be in = format. - # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. - ${CustomQueryString}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The protocol of the destination to where the traffic is redirected. - ${RedirectProtocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The redirect type the rule will use when redirecting traffic. - ${RedirectType} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByFieldsWithForwardingParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRoutingRuleObject'; - ByFieldsWithRedirectParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRoutingRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 deleted file mode 100644 index f345c9eab92a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 +++ /dev/null @@ -1,262 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a new Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Create a new Rules Engine Configuration with the specified name within the specified Front Door. -.Example -New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -RULE : A list of rules that define a particular Rules Engine Configuration. - Action : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - Name : A name to refer to this specific rule. - Priority : A priority assigned to this rule. - [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms - [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengine -#> -function New-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] - # A list of rules that define a particular Rules Engine Configuration. - ${Rule}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateExpanded'; - CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateViaJsonFilePath'; - CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateViaJsonString'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineActionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineActionObject.ps1 deleted file mode 100644 index 80f1b004b4a5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineActionObject.ps1 +++ /dev/null @@ -1,319 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for RulesEngineAction. -.Description -Create an in-memory object for RulesEngineAction. -.Example -$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" -$headerActions - -HeaderName HeaderActionType Value ----------- ---------------- ----- -X-Content-Type-Options Append nosniff - -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {X-Content-Type-Options} - -.Example -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true -$rulesEngineAction - -RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride -------------------- -------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineAction.RequestHeaderAction - -HeaderName HeaderActionType Value ----------- ---------------- ----- -headeraction1 Overwrite -headeraction2 Append - -$rulesEngineAction.ResponseHeaderAction -$rulesEngineAction.RouteConfigurationOverride - -CustomForwardingPath : -ForwardingProtocol : HttpsOnly -BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi - ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool -QueryParameterStripDirective : StripNone -DynamicCompression : Disabled -EnableCaching : True -.Example -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration - -$rulesEngineAction.RouteConfigurationOverride - -RedirectType : Moved -RedirectProtocol : MatchRequest -CustomHost : www.contoso.com -CustomPath : -CustomFragment : -CustomQueryString : - - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -REQUESTHEADERACTION : A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - -RESPONSEHEADERACTION : A list of header actions to apply from the response from AFD to the client. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - -ROUTECONFIGURATIONOVERRIDE : Override the route configuration. - OdataType : -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject -#> -function New-AzFrontDoorRulesEngineActionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction])] -[CmdletBinding(DefaultParameterSetName='ByFieldsWithForwardingParameterSet', PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] - # A list of header actions to apply from the request from AFD to the origin. - ${RequestHeaderAction}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] - # A list of header actions to apply from the response from AFD to the client. - ${ResponseHeaderAction}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] - # Override the route configuration. - ${RouteConfigurationOverride}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${BackendPoolName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Front Door to which this routing rule belongs. - ${FrontDoorName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The resource group name that the RoutingRule will be created in. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.TimeSpan] - # The duration for which the content needs to be cached. - # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - # HTTP requires the value to be no more than a year. - ${CacheDuration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to use dynamic compression for cached content. - ${DynamicCompression}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # query parameters to include or exclude (comma separated). - ${QueryParameter}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Treatment of URL query terms when forming the cache key. - ${QueryParameterStripDirective}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A custom path used to rewrite resource paths matched by this rule. - # Leave empty to use incoming path. - ${CustomForwardingPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Protocol this rule will use when forwarding traffic to backends. - ${ForwardingProtocol}, - - [Parameter(ParameterSetName='ByFieldsWithForwardingParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Boolean] - ${EnableCaching}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Fragment to add to the redirect URL. - # Fragment is the part of the URL that comes after #. - # Do not include the #. - ${CustomFragment}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Host to redirect. - # Leave empty to use the incoming host as the destination host. - ${CustomHost}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The full path to redirect. - # Path cannot be empty and must start with /. - # Leave empty to use the incoming path as destination path. - ${CustomPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The set of query strings to be placed in the redirect URL. - # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. - # Query string must be in = format. - # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. - ${CustomQueryString}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The protocol of the destination to where the traffic is redirected. - ${RedirectProtocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The redirect type the rule will use when redirecting traffic. - ${RedirectType} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByFieldsWithForwardingParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineActionObject'; - ByFieldsWithRedirectParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineActionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 deleted file mode 100644 index 1371780d3be2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineMatchConditionObject.ps1 +++ /dev/null @@ -1,158 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for RulesEngineMatchCondition. -.Description -Create an in-memory object for RulesEngineMatchCondition. -.Example -New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject -#> -function New-AzFrontDoorRulesEngineMatchConditionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # Match values to match against. - # The operator will apply to each value in here with OR semantics. - # If any of them match the variable with the given operator this match condition is considered a match. - ${MatchValue}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Match Variable. - ${MatchVariable}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes operator to apply to the match condition. - ${Operator}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Boolean] - # Describes if this is negate condition or not. - ${NegateCondition}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of selector in RequestHeader or RequestBody to be matched. - ${Selector}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # List of transforms. - ${Transform} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineMatchConditionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineRuleObject.ps1 deleted file mode 100644 index 16aed7f6582e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngineRuleObject.ps1 +++ /dev/null @@ -1,196 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for RulesEngineRule. -.Description -Create an in-memory object for RulesEngineRule. -.Example -New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition - -Name : rules1 -Priority : 0 -MatchProcessingBehavior : Stop -MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} -Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction - - -$rulesEngineRule1.Action - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineRule1.MatchCondition[0] - -RulesEngineMatchVariable : RequestHeader -RulesEngineMatchValue : {allowoverride} -Selector : Rules-Engine-Route-Forward -RulesEngineOperator : Equal -NegateCondition : False -Transforms : {Lowercase, Uppercase} -.Example -New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -ACTION : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - -MATCHCONDITION : A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject -#> -function New-AzFrontDoorRulesEngineRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction] - # Actions to perform on the request and response if all of the match conditions are met. - ${Action}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A name to refer to this specific rule. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # A priority assigned to this rule. - # . - ${Priority}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition[]] - # A list of match conditions that must meet in order for the actions of this rule to run. - # Having no match conditions means the actions will always run. - ${MatchCondition}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If this rule is a match should the rules engine continue running the remaining rules or stop. - # If not present, defaults to Continue. - ${MatchProcessingBehavior} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 deleted file mode 100644 index f57cf718f9f1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleGroupByVariableObject.ps1 +++ /dev/null @@ -1,124 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for GroupByVariable. -.Description -Create an in-memory object for GroupByVariable. -.Example -New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName SocketAddr - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomrulegroupbyvariableobject -#> -function New-AzFrontDoorWafCustomRuleGroupByVariableObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes the supported variable for group by. - ${VariableName} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafCustomRuleGroupByVariableObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleObject.ps1 deleted file mode 100644 index e17eb59dcc36..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafCustomRuleObject.ps1 +++ /dev/null @@ -1,193 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for CustomRule. -.Description -Create an in-memory object for CustomRule. -.Example -New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -GROUPBY : Describes the list of variables to group the rate limit requests. - VariableName : Describes the supported variable for group by - -MATCHCONDITION : List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject -#> -function New-AzFrontDoorWafCustomRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes what action to be applied when rule matches. - ${Action}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition[]] - # List of match conditions. - ${MatchCondition}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Describes priority of the rule. - # Rules with a lower value will be evaluated before rules with a higher value. - ${Priority}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes type of rule. - ${RuleType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the custom rule is in enabled or disabled state. - # Defaults to Enabled if not specified. - ${EnabledState}, - - [Parameter()] - [Alias('CustomRule')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable[]] - # Describes the list of variables to group the rate limit requests. - ${GroupBy}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes the name of the rule. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # Time window for resetting the rate limit count. - # Default is 1 minute. - ${RateLimitDurationInMinutes}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Number of allowed requests per client within the time window. - ${RateLimitThreshold} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafCustomRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 deleted file mode 100644 index 67858352ab86..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingRuleObject.ps1 +++ /dev/null @@ -1,145 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for WebApplicationFirewallScrubbingRules. -.Description -Create an in-memory object for WebApplicationFirewallScrubbingRules. -.Example -New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingruleobject -#> -function New-AzFrontDoorWafLogScrubbingRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The variable to be scrubbed from the logs. - ${MatchVariable}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - ${SelectorMatchOperator}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - ${Selector}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the state of a log scrubbing rule. - # Default value is enabled. - ${State} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafLogScrubbingRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 deleted file mode 100644 index 4afca140b82e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafLogScrubbingSettingObject.ps1 +++ /dev/null @@ -1,142 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for PolicySettingsLogScrubbing. -.Description -Create an in-memory object for PolicySettingsLogScrubbing. -.Example -$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" -New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -SCRUBBINGRULE : List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingsettingobject -#> -function New-AzFrontDoorWafLogScrubbingSettingObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules[]] - # List of log scrubbing rules applied to the Web Application Firewall logs. - ${ScrubbingRule}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # State of the log scrubbing config. - # Default value is Enabled. - ${State} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafLogScrubbingSettingObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 deleted file mode 100644 index 5afbcc515d74..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleExclusionObject.ps1 +++ /dev/null @@ -1,137 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for ManagedRuleExclusion. -.Description -Create an in-memory object for ManagedRuleExclusion. -.Example -New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleexclusionobject -#> -function New-AzFrontDoorWafManagedRuleExclusionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - ${Operator}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Selector value for which elements in the collection this exclusion applies to. - ${Selector}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The variable type to be excluded. - ${Variable} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleExclusionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleObject.ps1 deleted file mode 100644 index 75126f9336bb..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleObject.ps1 +++ /dev/null @@ -1,176 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for ManagedRuleSet. -.Description -Create an in-memory object for ManagedRuleSet. -.Example -$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log -$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log -$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 - -$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log -$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3 - -New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -EXCLUSION : Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - -RULEGROUPOVERRIDE : Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleobject -#> -function New-AzFrontDoorWafManagedRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the rule set type to use. - ${Type}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the version of the rule set to use. - ${Version}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] - # Describes the exclusions that are applied to all rules in the set. - ${Exclusion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride[]] - # Defines the rule group overrides to apply to the rule set. - ${RuleGroupOverride}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the rule set action. - ${RuleSetAction} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 deleted file mode 100644 index 7afedfbf928c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 +++ /dev/null @@ -1,153 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for ManagedRuleOverride. -.Description -Create an in-memory object for ManagedRuleOverride. -.Example -New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -EXCLUSION : Describes the exclusions that are applied to this specific rule. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject -#> -function New-AzFrontDoorWafManagedRuleOverrideObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Identifier for the managed rule. - ${RuleId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes the override action to be applied when rule matches. - ${Action}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the managed rule is in enabled or disabled state. - # Defaults to Disabled if not specified. - ${Disabled}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] - # Describes the exclusions that are applied to this specific rule. - ${Exclusion} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleOverrideObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafMatchConditionObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafMatchConditionObject.ps1 deleted file mode 100644 index dea40c16dc61..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafMatchConditionObject.ps1 +++ /dev/null @@ -1,159 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for MatchCondition. -.Description -Create an in-memory object for MatchCondition. -.Example -New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows" -.Example -New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmatchconditionobject -#> -function New-AzFrontDoorWafMatchConditionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # List of possible match values. - ${MatchValue}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Request variable to compare with. - ${MatchVariable}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Comparison type to use for matching with the variable value. - ${OperatorProperty}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Boolean] - # Describes if the result of this condition should be negated. - ${NegateCondition}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. - # Default is null. - ${Selector}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # List of transforms. - ${Transform} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafMatchConditionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 deleted file mode 100644 index 9a4c89c990a2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 +++ /dev/null @@ -1,371 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create policy with specified rule set name within a resource group. -.Description -Create policy with specified rule set name within a resource group. -.Example -New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy -#> -function New-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If the action type is block, customer can override the response body. - # The body must be specified in base64 encoding. - ${CustomBlockResponseBody}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # If the action type is block, customer can override the response status code. - ${CustomBlockResponseStatusCode}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the policy is in enabled or disabled state. - # Defaults to Enabled if not specified. - ${EnabledState}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # 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. - ${JavascriptChallengeExpirationInMinutes}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # 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. - ${CaptchaExpirationInMinutes}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] - # Defines rules that scrub sensitive fields in the Web Application Firewall logs. - ${LogScrubbingSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Alias('ManagedRule')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if it is in detection mode or prevention mode at policy level. - ${Mode}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If action type is redirect, this field represents redirect URL for the client. - ${RedirectUrl}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if policy managed rules will inspect the request body content. - ${RequestBodyCheck}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Alias('Sku')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; - CreateViaJsonFilePath = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; - CreateViaJsonString = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 deleted file mode 100644 index 9ce7306478ae..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafRuleGroupOverrideObject.ps1 +++ /dev/null @@ -1,157 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for ManagedRuleGroupOverride. -.Description -Create an in-memory object for ManagedRuleGroupOverride. -.Example -$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log -$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log - -New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -EXCLUSION : Describes the exclusions that are applied to all rules in the group. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - -MANAGEDRULEOVERRIDE : List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafrulegroupoverrideobject -#> -function New-AzFrontDoorWafRuleGroupOverrideObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes the managed rule group to override. - ${RuleGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] - # Describes the exclusions that are applied to all rules in the group. - ${Exclusion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride[]] - # List of rules that will be disabled. - # If none specified, all rules in the group will be disabled. - ${ManagedRuleOverride} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafRuleGroupOverrideObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 deleted file mode 100644 index 25cf173ea623..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ /dev/null @@ -1,8392 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Disables a frontendEndpoint for HTTPS traffic -.Description -Disables a frontendEndpoint for HTTPS traffic -.Example -Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -.Example -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Disable-AzFrontDoorCustomDomainHttps -InputObject $frontendEndpointObj -.Example -Disable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/disable-azfrontdoorcustomdomainhttps -#> -function Disable-AzFrontDoorCustomDomainHttps { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Disable', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Disable', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Disable', Mandatory)] - [Parameter(ParameterSetName='DisableViaIdentityFrontDoor', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${FrontendEndpointName}, - - [Parameter(ParameterSetName='Disable', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Disable')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='DisableViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='DisableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Disable = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_Disable'; - DisableViaIdentity = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_DisableViaIdentity'; - DisableViaIdentityFrontDoor = 'Az.FrontDoor.private\Disable-AzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor'; - } - if (('Disable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Gets a Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Gets a Rules Engine Configuration with the specified name within the specified Front Door. -.Example -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name rulesengine3 -.Example -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -.Example -Get-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistent - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorrulesengine -#> -function Get-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Get = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_Get'; - GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_GetViaIdentity'; - GetViaIdentityFrontDoor = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_GetViaIdentityFrontDoor'; - List = 'Az.FrontDoor.private\Get-AzFrontDoorRulesEngine_List'; - } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Lists all available managed rule sets. -.Description -Lists all available managed rule sets. -.Example -Get-AzFrontDoorWafManagedRuleSetDefinition - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafmanagedrulesetdefinition -#> -function Get-AzFrontDoorWafManagedRuleSetDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - List = 'Az.FrontDoor.private\Get-AzFrontDoorWafManagedRuleSetDefinition_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Retrieve protection policy with specified name within a resource group. -.Description -Retrieve protection policy with specified name within a resource group. -.Example -Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -.Example -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorwafpolicy -#> -function Get-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Get = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_Get'; - GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_GetViaIdentity'; - List = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_List'; - List1 = 'Az.FrontDoor.private\Get-AzFrontDoorWafPolicy_List1'; - } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Gets a Front Door with the specified Front Door name under the specified subscription and resource group. -.Description -Gets a Front Door with the specified Front Door name under the specified subscription and resource group. -.Example -Get-AzFrontDoor -.Example -Get-AzFrontDoor -ResourceGroupName "rg1" -.Example -Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoor -#> -function Get-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Get = 'Az.FrontDoor.private\Get-AzFrontDoor_Get'; - GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoor_GetViaIdentity'; - List = 'Az.FrontDoor.private\Get-AzFrontDoor_List'; - List1 = 'Az.FrontDoor.private\Get-AzFrontDoor_List1'; - } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create a new Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Create a new Rules Engine Configuration with the specified name within the specified Front Door. -.Example -New-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name myRulesEngine -Rule $rulesEngineRule1 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -RULE : A list of rules that define a particular Rules Engine Configuration. - Action : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - Name : A name to refer to this specific rule. - Priority : A priority assigned to this rule. - [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms - [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorrulesengine -#> -function New-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] - # A list of rules that define a particular Rules Engine Configuration. - ${Rule}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateExpanded'; - CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateViaJsonFilePath'; - CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoorRulesEngine_CreateViaJsonString'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Removes a content from Front Door. -.Description -Removes a content from Front Door. -.Example -Remove-AzFrontDoorContent -ResourceGroupName $ResourceGroupName -Name $FrontDoorName -ContentPath "/*" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CONTENTFILEPATH : Parameters required for content purge. - ContentPath >: The path to the content to be purged. Can describe a file path or a wild card directory. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorcontent -#> -function Remove-AzFrontDoorContent { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='PurgeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Purge', Mandatory)] - [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] - [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(ParameterSetName='Purge', Mandatory)] - [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] - [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Purge')] - [Parameter(ParameterSetName='PurgeExpanded')] - [Parameter(ParameterSetName='PurgeViaJsonFilePath')] - [Parameter(ParameterSetName='PurgeViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='PurgeViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='PurgeViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='Purge', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='PurgeViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters] - # Parameters required for content purge. - ${ContentFilePath}, - - [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] - [Parameter(ParameterSetName='PurgeViaIdentityExpanded', Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # The path to the content to be purged. - # Can describe a file path or a wild card directory. - ${ContentPath}, - - [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Purge operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Purge operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Purge = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_Purge'; - PurgeExpanded = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeExpanded'; - PurgeViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaIdentity'; - PurgeViaIdentityExpanded = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaIdentityExpanded'; - PurgeViaJsonFilePath = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaJsonFilePath'; - PurgeViaJsonString = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaJsonString'; - } - if (('Purge', 'PurgeExpanded', 'PurgeViaJsonFilePath', 'PurgeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Deletes an existing Rules Engine Configuration with the specified parameters. -.Description -Deletes an existing Rules Engine Configuration with the specified parameters. -.Example -Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $rulesEngine.Name -PassThru -.Example -Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistentRulesEngine - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorrulesengine -#> -function Remove-AzFrontDoorRulesEngine { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentityFrontDoor', Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='DeleteViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Delete = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_Delete'; - DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_DeleteViaIdentity'; - DeleteViaIdentityFrontDoor = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor'; - } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Deletes Policy -.Description -Deletes Policy -.Example -Remove-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -.Example -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorwafpolicy -#> -function Remove-AzFrontDoorWafPolicy { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Delete = 'Az.FrontDoor.private\Remove-AzFrontDoorWafPolicy_Delete'; - DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorWafPolicy_DeleteViaIdentity'; - } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Deletes an existing Front Door with the specified parameters. -.Description -Deletes an existing Front Door with the specified parameters. -.Example -Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1" -.Example -Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor -.Example -Get-AzFrontDoor | Remove-AzFrontDoor -.Example -Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoor -#> -function Remove-AzFrontDoor { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Delete = 'Az.FrontDoor.private\Remove-AzFrontDoor_Delete'; - DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoor_DeleteViaIdentity'; - } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -RULE : A list of rules that define a particular Rules Engine Configuration. - Action : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - Name : A name to refer to this specific rule. - Priority : A priority assigned to this rule. - [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms - [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine -#> -function Set-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] - # A list of rules that define a particular Rules Engine Configuration. - ${Rule}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - UpdateExpanded1 = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateExpanded1'; - } - if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Enables a frontendEndpoint for HTTPS traffic -.Description -Enables a frontendEndpoint for HTTPS traffic -.Example -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" -.Example -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" -.Example -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps -.Example -Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -.Example -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps -#> -function Enable-AzFrontDoorCustomDomainHttps { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='Enable', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${FrontendEndpointName}, - - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='Enable', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaJsonString')] - [Parameter(ParameterSetName='EnableViaJsonFilePath')] - [Parameter(ParameterSetName='Enable')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] - [System.String] - # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - ${MinimumTlsVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Key Vault secret representing the full certificate PFX - ${SecretName}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The version of the Key Vault secret representing the full certificate PFX - ${SecretVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${VaultId}, - - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Enable operation - ${JsonString}, - - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Enable operation - ${JsonFilePath}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - EnableExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaJsonString = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaJsonFilePath = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - Enable = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaIdentityFrontDoorExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaIdentityFrontDoor = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaIdentityExpanded = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - EnableViaIdentity = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - ByResourceIdWithVaultParameterSet = 'Az.FrontDoor.custom\Enable-AzFrontDoorCustomDomainHttps'; - } - if (('EnableExpanded', 'EnableViaJsonString', 'EnableViaJsonFilePath', 'Enable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('EnableExpanded', 'EnableViaIdentityFrontDoorExpanded', 'EnableViaIdentityExpanded', 'ByResourceIdWithVaultParameterSet') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('MinimumTlsVersion') ) { - $PSBoundParameters['MinimumTlsVersion'] = 1.2 - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Gets a Frontend endpoint with the specified name within the specified Front Door. -.Description -Gets a Frontend endpoint with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint -#> -function Get-AzFrontDoorFrontendEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='Get')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='ByObjectParameterSet')] - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] - [Alias('FrontendEndpointName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${Name}, - - [Parameter(ParameterSetName='ByObjectParameterSet', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Alias('FrontDoorObject')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - List = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - Get = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - ByObjectParameterSet = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - GetViaIdentityFrontDoor = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - GetViaIdentity = 'Az.FrontDoor.custom\Get-AzFrontDoorFrontendEndpoint'; - } - if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Create a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor -#> -function New-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Management.Automation.SwitchParameter] - ${DisableCertificateNameCheck}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.custom\New-AzFrontDoor'; - CreateViaJsonFilePath = 'Az.FrontDoor.custom\New-AzFrontDoor'; - CreateViaJsonString = 'Az.FrontDoor.custom\New-AzFrontDoor'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for Backend. -.Description -Create an in-memory object for Backend. -.Example -New-AzFrontDoorBackendObject -Address "contoso1.azurewebsites.net" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendobject -#> -function New-AzFrontDoorBackendObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Location of the backend (IP address or FQDN). - ${Address}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The value to use as the host header sent to the backend. - # If blank or unspecified, this defaults to the incoming host. - ${BackendHostHeader}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to enable use of this backend. - # Permitted values are 'Enabled' or 'Disabled'. - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The HTTP TCP port number. - # Must be between 1 and 65535. - ${HttpPort}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The HTTPS TCP port number. - # Must be between 1 and 65535. - ${HttpsPort}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Priority to use for load balancing. - # Higher priorities will not be used for load balancing if any lower priority backend is healthy. - ${Priority}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The Alias of the Private Link resource. - # Populating this optional field indicates that this backend is 'Private'. - ${PrivateLinkAlias}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A custom message to be included in the approval request to connect to the Private Link. - ${PrivateLinkApprovalMessage}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The location of the Private Link resource. - # Required only if 'privateLinkResourceId' is populated. - ${PrivateLinkLocation}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The Resource Id of the Private Link resource. - # Populating this optional field indicates that this backend is 'Private'. - ${PrivateLinkResourceId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Weight of this endpoint for load balancing purposes. - ${Weight} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for BackendPool. -.Description -Create an in-memory object for BackendPool. -.Example -New-AzFrontDoorBackendPoolObject -Name "backendpool1" -FrontDoorName $Name -ResourceGroupName $resourceGroupName -Backend $backend1 -HealthProbeSettingsName "healthProbeSetting1" -LoadBalancingSettingsName "loadBalancingSetting1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKEND : The set of backends for this pool. - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolobject -#> -function New-AzFrontDoorBackendPoolObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend[]] - # The set of backends for this pool. - ${Backend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${HealthProbeSettingsName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${LoadBalancingSettingsName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${FrontDoorName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${ResourceGroupName} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendPoolObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for BackendPoolsSettings. -.Description -Create an in-memory object for BackendPoolsSettings. -.Example -New-AzFrontDoorBackendPoolsSettingObject -.Example -New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendbackendpoolssettingsobject -#> -function New-AzFrontDoorBackendPoolsSettingObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to enforce certificate name check on HTTPS requests to all backend pools. - # No effect on non-HTTPS requests. - ${EnforceCertificateNameCheck}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Send and receive timeout on forwarding request to the backend. - # When timeout is reached, the request fails and returns. - ${SendRecvTimeoutInSeconds} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorBackendPoolsSettingObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for CacheConfiguration. -.Description -Create an in-memory object for CacheConfiguration. -.Example -New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -QueryParameterStripDirective "StripAllExcept" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorcacheconfigurationobject -#> -function New-AzFrontDoorCacheConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.TimeSpan] - # The duration for which the content needs to be cached. - # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - # HTTP requires the value to be no more than a year. - ${CacheDuration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to use dynamic compression for cached content. - ${DynamicCompression}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # query parameters to include or exclude (comma separated). - ${QueryParameter}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Treatment of URL query terms when forming the cache key. - ${QueryParameterStripDirective} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorCacheConfigurationObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for ForwardingConfiguration. -.Description -Create an in-memory object for ForwardingConfiguration. -.Example -New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "MatchRequest" -.Example -$cacheConfig = New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -New-AzFrontDoorForwardingConfigurationObject -BackendPoolId "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/frontDoors/myFrontDoor/backendPools/myBackendPool" -ForwardingProtocol "HttpsOnly" -CustomForwardingPath "/api/v2" -CacheConfiguration $cacheConfig - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CACHECONFIGURATION : The caching configuration associated with this rule. - [CacheDuration ]: The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year - [DynamicCompression ]: Whether to use dynamic compression for cached content - [QueryParameter ]: query parameters to include or exclude (comma separated). - [QueryParameterStripDirective ]: Treatment of URL query terms when forming the cache key. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorforwardingconfigurationobject -#> -function New-AzFrontDoorForwardingConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ForwardingConfiguration])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${BackendPoolId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration] - # The caching configuration associated with this rule. - ${CacheConfiguration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A custom path used to rewrite resource paths matched by this rule. - # Leave empty to use incoming path. - ${CustomForwardingPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Protocol this rule will use when forwarding traffic to backends. - ${ForwardingProtocol} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorForwardingConfigurationObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for FrontendEndpoint. -.Description -Create an in-memory object for FrontendEndpoint. -.Example -New-AzFrontDoorFrontendEndpointObject -Name "frontendendpoint1" -HostName "frontendendpoint1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorfrontendendpointobject -#> -function New-AzFrontDoorFrontendEndpointObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the source of the SSL certificate. - ${CertificateSource}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - ${MinimumTlsVersion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the type of the certificate used for secure connections to a frontendEndpoint. - ${CertificateType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The host name of the frontendEndpoint. - # Must be a domain name. - ${HostName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Key Vault secret representing the full certificate PFX. - ${SecretName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The version of the Key Vault secret representing the full certificate PFX. - ${SecretVersion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to allow session affinity on this host. - # Valid options are 'Enabled' or 'Disabled'. - ${SessionAffinityEnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # UNUSED. - # This field will be ignored. - # The TTL to use in seconds for session affinity, if applicable. - ${SessionAffinityTtlInSeconds}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Vault}, - - [Parameter()] - [Alias('WebApplicationFirewallPolicyLink')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${WebApplicationFirewallPolicyLinkId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The TLS extension protocol that is used for secure delivery - ${ProtocolType} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorFrontendEndpointObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for HeaderAction. -.Description -Create an in-memory object for HeaderAction. -.Example -New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorheaderactionobject -#> -function New-AzFrontDoorHeaderActionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Which type of manipulation to apply to the header. - ${HeaderActionType}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the header this action will apply to. - ${HeaderName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The value to update the given header name with. - # This value is not used if the actionType is Delete. - ${Value} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorHeaderActionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for HealthProbeSettingsModel. -.Description -Create an in-memory object for HealthProbeSettingsModel. -.Example -New-AzFrontDoorHealthProbeSettingObject -Name "healthProbeSetting1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorhealthprobesettingobject -#> -function New-AzFrontDoorHealthProbeSettingObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to enable health probes to be made against backends defined under backendPools. - # Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Configures which HTTP method to use to probe the backends defined under backendPools. - ${HealthProbeMethod}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The number of seconds between health probes. - ${IntervalInSeconds}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The path to use for the health probe. - # Default is /. - ${Path}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Protocol scheme to use for this probe. - ${Protocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorHealthProbeSettingObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for LoadBalancingSettingsModel. -.Description -Create an in-memory object for LoadBalancingSettingsModel. -.Example -New-AzFrontDoorLoadBalancingSettingObject -Name "loadbalancingsetting1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorloadbalancingsettingobject -#> -function New-AzFrontDoorLoadBalancingSettingObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The additional latency in milliseconds for probes to fall into the lowest latency bucket. - ${AdditionalLatencyInMilliseconds}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The number of samples to consider for load balancing decisions. - ${SampleSize}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # The number of samples within the sample period that must succeed. - ${SuccessfulSamplesRequired}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorLoadBalancingSettingObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for PolicySettings. -.Description -Create an in-memory object for PolicySettings. -.Example -$logScrubbing = New-AzFrontDoorWafLogScrubbingSettingObject -State "Enabled" -ScrubbingRule @() -New-AzFrontDoorPolicySettingsObject -EnabledState "Enabled" -Mode "Prevention" -RequestBodyCheck "Enabled" -CustomBlockResponseStatusCode 403 -CustomBlockResponseBody "PGh0bWw+PGJvZHk+QmxvY2tlZDwvYm9keT48L2h0bWw+" -RedirectUrl "https://www.example.com/blocked" -JavascriptChallengeExpirationInMinutes 30 -LogScrubbingSetting $logScrubbing - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorpolicysettingsobject -#> -function New-AzFrontDoorPolicySettingsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # 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. - ${CaptchaExpirationInMinutes}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If the action type is block, customer can override the response body. - # The body must be specified in base64 encoding. - ${CustomBlockResponseBody}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # If the action type is block, customer can override the response status code. - ${CustomBlockResponseStatusCode}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the policy is in enabled or disabled state. - # Defaults to Enabled if not specified. - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # 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. - ${JavascriptChallengeExpirationInMinutes}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] - # Defines rules that scrub sensitive fields in the Web Application Firewall logs. - ${LogScrubbingSetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if it is in detection mode or prevention mode at policy level. - ${Mode}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If action type is redirect, this field represents redirect URL for the client. - ${RedirectUrl}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if policy managed rules will inspect the request body content. - ${RequestBodyCheck} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorPolicySettingsObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for RedirectConfiguration. -.Description -Create an in-memory object for RedirectConfiguration. -.Example -New-AzFrontDoorRedirectConfigurationObject -RedirectType "PermanentRedirect" -RedirectProtocol "HttpsOnly" -CustomHost "www.example.com" -CustomPath "/newpath" -CustomQueryString "source=frontdoor&campaign=redirect" -CustomFragment "section1" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorredirectconfigurationobject -#> -function New-AzFrontDoorRedirectConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RedirectConfiguration])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Fragment to add to the redirect URL. - # Fragment is the part of the URL that comes after #. - # Do not include the #. - ${CustomFragment}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Host to redirect. - # Leave empty to use the incoming host as the destination host. - ${CustomHost}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The full path to redirect. - # Path cannot be empty and must start with /. - # Leave empty to use the incoming path as destination path. - ${CustomPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The set of query strings to be placed in the redirect URL. - # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. - # Query string must be in = format. - # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. - ${CustomQueryString}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The protocol of the destination to where the traffic is redirected. - ${RedirectProtocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The redirect type the rule will use when redirecting traffic. - ${RedirectType} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRedirectConfigurationObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for RoutingRule. -.Description -Create an in-memory object for RoutingRule. -.Example -New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -BackendPoolName "backendPool1" -.Example -$customHost = "www.contoso.com" -$customPath = "/images/contoso.png" -$queryString = "field1=value1&field2=value2" -$destinationFragment = "section-header-2" -New-AzFrontDoorRoutingRuleObject -Name $routingRuleName -FrontDoorName $frontDoorName -ResourceGroupName $rgname -FrontendEndpointName "frontendEndpoint1" -CustomHost $customHost -CustomPath $customPath -CustomQueryString $queryString -CustomFragment $destinationFragment - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -ROUTECONFIGURATION : - OdataType : -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorroutingruleobject -#> -function New-AzFrontDoorRoutingRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule])] -[CmdletBinding(DefaultParameterSetName='ByFieldsWithForwardingParameterSet', PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # Protocol schemes to match for this rule. - ${AcceptedProtocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to enable use of this rule. - # Permitted values are 'Enabled' or 'Disabled'. - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # Frontend endpoints associated with this rule. - ${FrontendEndpointName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource name. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource Group name. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Front Door to which this routing rule belongs. - ${FrontDoorName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # The route patterns of the rule. - ${PatternsToMatch}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] - # - ${RouteConfiguration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${RuleEngineName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${WebApplicationFirewallPolicyLinkId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${Id}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${BackendPoolName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.TimeSpan] - # The duration for which the content needs to be cached. - # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - # HTTP requires the value to be no more than a year. - ${CacheDuration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to use dynamic compression for cached content. - ${DynamicCompression}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # query parameters to include or exclude (comma separated). - ${QueryParameter}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Treatment of URL query terms when forming the cache key. - ${QueryParameterStripDirective}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A custom path used to rewrite resource paths matched by this rule. - # Leave empty to use incoming path. - ${CustomForwardingPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Protocol this rule will use when forwarding traffic to backends. - ${ForwardingProtocol}, - - [Parameter(ParameterSetName='ByFieldsWithForwardingParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Boolean] - ${EnableCaching}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Fragment to add to the redirect URL. - # Fragment is the part of the URL that comes after #. - # Do not include the #. - ${CustomFragment}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Host to redirect. - # Leave empty to use the incoming host as the destination host. - ${CustomHost}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The full path to redirect. - # Path cannot be empty and must start with /. - # Leave empty to use the incoming path as destination path. - ${CustomPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The set of query strings to be placed in the redirect URL. - # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. - # Query string must be in = format. - # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. - ${CustomQueryString}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The protocol of the destination to where the traffic is redirected. - ${RedirectProtocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The redirect type the rule will use when redirecting traffic. - ${RedirectType} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByFieldsWithForwardingParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRoutingRuleObject'; - ByFieldsWithRedirectParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRoutingRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for RulesEngineAction. -.Description -Create an in-memory object for RulesEngineAction. -.Example -$headerActions = New-AzFrontDoorHeaderActionObject -HeaderActionType "Append" -HeaderName "X-Content-Type-Options" -Value "nosniff" -$headerActions - -HeaderName HeaderActionType Value ----------- ---------------- ----- -X-Content-Type-Options Append nosniff - -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -ResponseHeaderAction $headerActions -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {X-Content-Type-Options} - -.Example -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RequestHeaderAction $headerActions -ForwardingProtocol HttpsOnly -BackendPoolName mybackendpool -ResourceGroupName Jessicl-Test-RG -FrontDoorName jessicl-test-myappfrontend -QueryParameterStripDirective StripNone -DynamicCompression Disabled -EnableCaching $true -$rulesEngineAction - -RequestHeaderAction ResponseHeaderAction RouteConfigurationOverride -------------------- -------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineAction.RequestHeaderAction - -HeaderName HeaderActionType Value ----------- ---------------- ----- -headeraction1 Overwrite -headeraction2 Append - -$rulesEngineAction.ResponseHeaderAction -$rulesEngineAction.RouteConfigurationOverride - -CustomForwardingPath : -ForwardingProtocol : HttpsOnly -BackendPoolId : /subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/myresourcegroup/provi - ders/Microsoft.Network/frontDoors/myfrontdoor/BackendPools/mybackendpool -QueryParameterStripDirective : StripNone -DynamicCompression : Disabled -EnableCaching : True -.Example -$rulesEngineAction = New-AzFrontDoorRulesEngineActionObject -RedirectType Moved -RedirectProtocol MatchRequest -CustomHost www.contoso.com -$rulesEngineAction - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{} {} Microsoft.Azure.Commands.FrontDoor.Models.PSRedirectConfiguration - -$rulesEngineAction.RouteConfigurationOverride - -RedirectType : Moved -RedirectProtocol : MatchRequest -CustomHost : www.contoso.com -CustomPath : -CustomFragment : -CustomQueryString : - - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -REQUESTHEADERACTION : A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - -RESPONSEHEADERACTION : A list of header actions to apply from the response from AFD to the client. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - -ROUTECONFIGURATIONOVERRIDE : Override the route configuration. - OdataType : -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineactionobject -#> -function New-AzFrontDoorRulesEngineActionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction])] -[CmdletBinding(DefaultParameterSetName='ByFieldsWithForwardingParameterSet', PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] - # A list of header actions to apply from the request from AFD to the origin. - ${RequestHeaderAction}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction[]] - # A list of header actions to apply from the response from AFD to the client. - ${ResponseHeaderAction}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration] - # Override the route configuration. - ${RouteConfigurationOverride}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${BackendPoolName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Front Door to which this routing rule belongs. - ${FrontDoorName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The resource group name that the RoutingRule will be created in. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.TimeSpan] - # The duration for which the content needs to be cached. - # Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - # HTTP requires the value to be no more than a year. - ${CacheDuration}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Whether to use dynamic compression for cached content. - ${DynamicCompression}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # query parameters to include or exclude (comma separated). - ${QueryParameter}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Treatment of URL query terms when forming the cache key. - ${QueryParameterStripDirective}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A custom path used to rewrite resource paths matched by this rule. - # Leave empty to use incoming path. - ${CustomForwardingPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Protocol this rule will use when forwarding traffic to backends. - ${ForwardingProtocol}, - - [Parameter(ParameterSetName='ByFieldsWithForwardingParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Boolean] - ${EnableCaching}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Fragment to add to the redirect URL. - # Fragment is the part of the URL that comes after #. - # Do not include the #. - ${CustomFragment}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Host to redirect. - # Leave empty to use the incoming host as the destination host. - ${CustomHost}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The full path to redirect. - # Path cannot be empty and must start with /. - # Leave empty to use the incoming path as destination path. - ${CustomPath}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The set of query strings to be placed in the redirect URL. - # Setting this value would replace any existing query string; leave empty to preserve the incoming query string. - # Query string must be in = format. - # The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. - ${CustomQueryString}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The protocol of the destination to where the traffic is redirected. - ${RedirectProtocol}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The redirect type the rule will use when redirecting traffic. - ${RedirectType} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByFieldsWithForwardingParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineActionObject'; - ByFieldsWithRedirectParameterSet = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineActionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for RulesEngineMatchCondition. -.Description -Create an in-memory object for RulesEngineMatchCondition. -.Example -New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesenginematchconditionobject -#> -function New-AzFrontDoorRulesEngineMatchConditionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # Match values to match against. - # The operator will apply to each value in here with OR semantics. - # If any of them match the variable with the given operator this match condition is considered a match. - ${MatchValue}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Match Variable. - ${MatchVariable}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes operator to apply to the match condition. - ${Operator}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Boolean] - # Describes if this is negate condition or not. - ${NegateCondition}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of selector in RequestHeader or RequestBody to be matched. - ${Selector}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # List of transforms. - ${Transform} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineMatchConditionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for RulesEngineRule. -.Description -Create an in-memory object for RulesEngineRule. -.Example -New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority 0 -Action $rulesEngineAction -MatchProcessingBehavior Stop -MatchCondition $rulesEngineMatchCondition - -Name : rules1 -Priority : 0 -MatchProcessingBehavior : Stop -MatchCondition : {Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition} -Action : Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction - - -$rulesEngineRule1.Action - -RequestHeaderActions ResponseHeaderActions RouteConfigurationOverride --------------------- --------------------- -------------------------- -{headeraction1, headeraction2} {} Microsoft.Azure.Commands.FrontDoor.Models.PSForwardingConfiguration - -$rulesEngineRule1.MatchCondition[0] - -RulesEngineMatchVariable : RequestHeader -RulesEngineMatchValue : {allowoverride} -Selector : Rules-Engine-Route-Forward -RulesEngineOperator : Equal -NegateCondition : False -Transforms : {Lowercase, Uppercase} -.Example -New-AzFrontDoorRulesEngineRuleObject -Name rules1 -Priority -1 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -ACTION : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - -MATCHCONDITION : A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorrulesengineruleobject -#> -function New-AzFrontDoorRulesEngineRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction] - # Actions to perform on the request and response if all of the match conditions are met. - ${Action}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A name to refer to this specific rule. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # A priority assigned to this rule. - # . - ${Priority}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition[]] - # A list of match conditions that must meet in order for the actions of this rule to run. - # Having no match conditions means the actions will always run. - ${MatchCondition}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If this rule is a match should the rules engine continue running the remaining rules or stop. - # If not present, defaults to Continue. - ${MatchProcessingBehavior} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorRulesEngineRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for GroupByVariable. -.Description -Create an in-memory object for GroupByVariable. -.Example -New-AzFrontDoorWafCustomRuleGroupByVariableObject -VariableName SocketAddr - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomrulegroupbyvariableobject -#> -function New-AzFrontDoorWafCustomRuleGroupByVariableObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes the supported variable for group by. - ${VariableName} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafCustomRuleGroupByVariableObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for CustomRule. -.Description -Create an in-memory object for CustomRule. -.Example -New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -GROUPBY : Describes the list of variables to group the rate limit requests. - VariableName : Describes the supported variable for group by - -MATCHCONDITION : List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafcustomruleobject -#> -function New-AzFrontDoorWafCustomRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes what action to be applied when rule matches. - ${Action}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition[]] - # List of match conditions. - ${MatchCondition}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Describes priority of the rule. - # Rules with a lower value will be evaluated before rules with a higher value. - ${Priority}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes type of rule. - ${RuleType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the custom rule is in enabled or disabled state. - # Defaults to Enabled if not specified. - ${EnabledState}, - - [Parameter()] - [Alias('CustomRule')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable[]] - # Describes the list of variables to group the rate limit requests. - ${GroupBy}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes the name of the rule. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # Time window for resetting the rate limit count. - # Default is 1 minute. - ${RateLimitDurationInMinutes}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # Number of allowed requests per client within the time window. - ${RateLimitThreshold} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafCustomRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for WebApplicationFirewallScrubbingRules. -.Description -Create an in-memory object for WebApplicationFirewallScrubbingRules. -.Example -New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingruleobject -#> -function New-AzFrontDoorWafLogScrubbingRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The variable to be scrubbed from the logs. - ${MatchVariable}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - ${SelectorMatchOperator}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - ${Selector}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the state of a log scrubbing rule. - # Default value is enabled. - ${State} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafLogScrubbingRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for PolicySettingsLogScrubbing. -.Description -Create an in-memory object for PolicySettingsLogScrubbing. -.Example -$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled" -New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule) - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -SCRUBBINGRULE : List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwaflogscrubbingsettingobject -#> -function New-AzFrontDoorWafLogScrubbingSettingObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules[]] - # List of log scrubbing rules applied to the Web Application Firewall logs. - ${ScrubbingRule}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # State of the log scrubbing config. - # Default value is Enabled. - ${State} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafLogScrubbingSettingObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for ManagedRuleExclusion. -.Description -Create an in-memory object for ManagedRuleExclusion. -.Example -New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleexclusionobject -#> -function New-AzFrontDoorWafManagedRuleExclusionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - ${Operator}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Selector value for which elements in the collection this exclusion applies to. - ${Selector}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The variable type to be excluded. - ${Variable} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleExclusionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for ManagedRuleSet. -.Description -Create an in-memory object for ManagedRuleSet. -.Example -$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log -$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log -$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 - -$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log -$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3 - -New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -EXCLUSION : Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - -RULEGROUPOVERRIDE : Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleobject -#> -function New-AzFrontDoorWafManagedRuleObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the rule set type to use. - ${Type}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the version of the rule set to use. - ${Version}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] - # Describes the exclusions that are applied to all rules in the set. - ${Exclusion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride[]] - # Defines the rule group overrides to apply to the rule set. - ${RuleGroupOverride}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the rule set action. - ${RuleSetAction} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for ManagedRuleOverride. -.Description -Create an in-memory object for ManagedRuleOverride. -.Example -New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -EXCLUSION : Describes the exclusions that are applied to this specific rule. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmanagedruleoverrideobject -#> -function New-AzFrontDoorWafManagedRuleOverrideObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Identifier for the managed rule. - ${RuleId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes the override action to be applied when rule matches. - ${Action}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the managed rule is in enabled or disabled state. - # Defaults to Disabled if not specified. - ${Disabled}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] - # Describes the exclusions that are applied to this specific rule. - ${Exclusion} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafManagedRuleOverrideObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for MatchCondition. -.Description -Create an in-memory object for MatchCondition. -.Example -New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows" -.Example -New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafmatchconditionobject -#> -function New-AzFrontDoorWafMatchConditionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # List of possible match values. - ${MatchValue}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Request variable to compare with. - ${MatchVariable}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Comparison type to use for matching with the variable value. - ${OperatorProperty}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Boolean] - # Describes if the result of this condition should be negated. - ${NegateCondition}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. - # Default is null. - ${Selector}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # List of transforms. - ${Transform} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafMatchConditionObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create policy with specified rule set name within a resource group. -.Description -Create policy with specified rule set name within a resource group. -.Example -New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy -#> -function New-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If the action type is block, customer can override the response body. - # The body must be specified in base64 encoding. - ${CustomBlockResponseBody}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Int32] - # If the action type is block, customer can override the response status code. - ${CustomBlockResponseStatusCode}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the policy is in enabled or disabled state. - # Defaults to Enabled if not specified. - ${EnabledState}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # 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. - ${JavascriptChallengeExpirationInMinutes}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # 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. - ${CaptchaExpirationInMinutes}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] - # Defines rules that scrub sensitive fields in the Web Application Firewall logs. - ${LogScrubbingSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Alias('ManagedRule')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if it is in detection mode or prevention mode at policy level. - ${Mode}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If action type is redirect, this field represents redirect URL for the client. - ${RedirectUrl}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if policy managed rules will inspect the request body content. - ${RequestBodyCheck}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Alias('Sku')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; - CreateViaJsonFilePath = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; - CreateViaJsonString = 'Az.FrontDoor.custom\New-AzFrontDoorWafPolicy'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for ManagedRuleGroupOverride. -.Description -Create an in-memory object for ManagedRuleGroupOverride. -.Example -$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log -$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log - -New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -EXCLUSION : Describes the exclusions that are applied to all rules in the group. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - -MANAGEDRULEOVERRIDE : List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. -.Link -https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorwafrulegroupoverrideobject -#> -function New-AzFrontDoorWafRuleGroupOverrideObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes the managed rule group to override. - ${RuleGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion[]] - # Describes the exclusions that are applied to all rules in the group. - ${Exclusion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride[]] - # List of rules that will be disabled. - # If none specified, all rules in the group will be disabled. - ${ManagedRuleOverride} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.FrontDoor.custom\New-AzFrontDoorWafRuleGroupOverrideObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor -#> -function Set-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Management.Automation.SwitchParameter] - ${DisableCertificateNameCheck}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - ByResourceIdWithBackendPoolsSettingParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - ByResourceIdWithCertificateNameCheckParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - ByResourceIdParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - UpdateViaJsonFilePath = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - UpdateViaJsonString = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - } - if (('UpdateExpanded', 'ByResourceIdWithBackendPoolsSettingParameterSet', 'ByResourceIdWithCertificateNameCheckParameterSet', 'ByResourceIdParameterSet', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Update policy with specified rule set name within a resource group. -.Description -Update policy with specified rule set name within a resource group. -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled -.Example -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy -#> -function Update-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter()] - [Alias('ManagedRule')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If the action type is block, customer can override the response body. - # The body must be specified in base64 encoding. - ${CustomBlockResponseBody}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # If the action type is block, customer can override the response status code. - ${CustomBlockResponseStatusCode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the policy is in enabled or disabled state. - # Defaults to Enabled if not specified. - ${EnabledState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] - # Defines rules that scrub sensitive fields in the Web Application Firewall logs. - ${LogScrubbingSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if it is in detection mode or prevention mode at policy level. - ${Mode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If action type is redirect, this field represents redirect URL for the client. - ${RedirectUrl}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if policy managed rules will inspect the request body content. - ${RequestBodyCheck}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # 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. - ${JavascriptChallengeExpirationInMinutes}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # 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. - ${CaptchaExpirationInMinutes}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; - ByFieldsParameterSet = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; - UpdateViaIdentityExpanded = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/README.md b/generated/FrontDoor/FrontDoor.Autorest/exports/README.md deleted file mode 100644 index 3748cd686dd4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# Exports -This directory contains the cmdlets *exported by* `Az.FrontDoor`. No other cmdlets in this repository are directly exported. What that means is the `Az.FrontDoor` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. - -## Info -- Modifiable: no -- Generated: all -- Committed: no -- Packaged: yes - -## Details -The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.FrontDoor.private.dll`) and from the `..\custom\Az.FrontDoor.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [README.md](..\internal/README.md) in the `..\internal` folder. - -## Purpose -We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles. - -## Structure -The cmdlets generated here will flat in the directory (no sub-folders) as long as there are no Azure profiles specified for any cmdlets. Azure profiles (the `Profiles` attribute) is only applied when generating with the `--azure` attribute (or `azure: true` in the configuration). When Azure profiles are applied, the folder structure has a folder per profile. Each profile folder has only those cmdlets that apply to that profile. - -## Usage -When `./Az.FrontDoor.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message. \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 deleted file mode 100644 index 78857110afac..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 +++ /dev/null @@ -1,245 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Deletes an existing Front Door with the specified parameters. -.Description -Deletes an existing Front Door with the specified parameters. -.Example -Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1" -.Example -Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor -.Example -Get-AzFrontDoor | Remove-AzFrontDoor -.Example -Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoor -#> -function Remove-AzFrontDoor { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Delete = 'Az.FrontDoor.private\Remove-AzFrontDoor_Delete'; - DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoor_DeleteViaIdentity'; - } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 deleted file mode 100644 index efad9ee27548..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 +++ /dev/null @@ -1,285 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Removes a content from Front Door. -.Description -Removes a content from Front Door. -.Example -Remove-AzFrontDoorContent -ResourceGroupName $ResourceGroupName -Name $FrontDoorName -ContentPath "/*" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CONTENTFILEPATH : Parameters required for content purge. - ContentPath >: The path to the content to be purged. Can describe a file path or a wild card directory. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorcontent -#> -function Remove-AzFrontDoorContent { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='PurgeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Purge', Mandatory)] - [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] - [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(ParameterSetName='Purge', Mandatory)] - [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] - [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Purge')] - [Parameter(ParameterSetName='PurgeExpanded')] - [Parameter(ParameterSetName='PurgeViaJsonFilePath')] - [Parameter(ParameterSetName='PurgeViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='PurgeViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='PurgeViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='Purge', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='PurgeViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters] - # Parameters required for content purge. - ${ContentFilePath}, - - [Parameter(ParameterSetName='PurgeExpanded', Mandatory)] - [Parameter(ParameterSetName='PurgeViaIdentityExpanded', Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String[]] - # The path to the content to be purged. - # Can describe a file path or a wild card directory. - ${ContentPath}, - - [Parameter(ParameterSetName='PurgeViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Purge operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='PurgeViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Purge operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Purge = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_Purge'; - PurgeExpanded = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeExpanded'; - PurgeViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaIdentity'; - PurgeViaIdentityExpanded = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaIdentityExpanded'; - PurgeViaJsonFilePath = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaJsonFilePath'; - PurgeViaJsonString = 'Az.FrontDoor.private\Remove-AzFrontDoorContent_PurgeViaJsonString'; - } - if (('Purge', 'PurgeExpanded', 'PurgeViaJsonFilePath', 'PurgeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 deleted file mode 100644 index 5fddcee4cb2a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 +++ /dev/null @@ -1,264 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Deletes an existing Rules Engine Configuration with the specified parameters. -.Description -Deletes an existing Rules Engine Configuration with the specified parameters. -.Example -Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name $rulesEngine.Name -PassThru -.Example -Remove-AzFrontDoorRulesEngine -ResourceGroupName $resourceGroupName -FrontDoorName $frontDoorName -Name nonexistentRulesEngine - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorrulesengine -#> -function Remove-AzFrontDoorRulesEngine { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentityFrontDoor', Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='DeleteViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Delete = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_Delete'; - DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_DeleteViaIdentity'; - DeleteViaIdentityFrontDoor = 'Az.FrontDoor.private\Remove-AzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor'; - } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 deleted file mode 100644 index b1775ed5bf18..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 +++ /dev/null @@ -1,241 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Deletes Policy -.Description -Deletes Policy -.Example -Remove-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -.Example -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/remove-azfrontdoorwafpolicy -#> -function Remove-AzFrontDoorWafPolicy { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Delete = 'Az.FrontDoor.private\Remove-AzFrontDoorWafPolicy_Delete'; - DeleteViaIdentity = 'Az.FrontDoor.private\Remove-AzFrontDoorWafPolicy_DeleteViaIdentity'; - } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 deleted file mode 100644 index f4e0e16c1ad2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 +++ /dev/null @@ -1,392 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor -#> -function Set-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithBackendPoolsSettingParameterSet')] - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Parameter(ParameterSetName='ByResourceIdParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='ByResourceIdWithCertificateNameCheckParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Management.Automation.SwitchParameter] - ${DisableCertificateNameCheck}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - ByResourceIdWithBackendPoolsSettingParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - ByResourceIdWithCertificateNameCheckParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - ByResourceIdParameterSet = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - UpdateViaJsonFilePath = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - UpdateViaJsonString = 'Az.FrontDoor.custom\Set-AzFrontDoor'; - } - if (('UpdateExpanded', 'ByResourceIdWithBackendPoolsSettingParameterSet', 'ByResourceIdWithCertificateNameCheckParameterSet', 'ByResourceIdParameterSet', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 deleted file mode 100644 index 7af7d56fbf7e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 +++ /dev/null @@ -1,250 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -RULE : A list of rules that define a particular Rules Engine Configuration. - Action : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - Name : A name to refer to this specific rule. - Priority : A priority assigned to this rule. - [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms - [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine -#> -function Set-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] - # A list of rules that define a particular Rules Engine Configuration. - ${Rule}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - UpdateExpanded1 = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateExpanded1'; - } - if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 deleted file mode 100644 index 589c7fb1f7c6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 +++ /dev/null @@ -1,392 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update policy with specified rule set name within a resource group. -.Description -Update policy with specified rule set name within a resource group. -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled -.Example -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -LOGSCRUBBINGSETTING : Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy -#> -function Update-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter()] - [Alias('ManagedRule')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If the action type is block, customer can override the response body. - # The body must be specified in base64 encoding. - ${CustomBlockResponseBody}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # If the action type is block, customer can override the response status code. - ${CustomBlockResponseStatusCode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if the policy is in enabled or disabled state. - # Defaults to Enabled if not specified. - ${EnabledState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing] - # Defines rules that scrub sensitive fields in the Web Application Firewall logs. - ${LogScrubbingSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if it is in detection mode or prevention mode at policy level. - ${Mode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # If action type is redirect, this field represents redirect URL for the client. - ${RedirectUrl}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Describes if policy managed rules will inspect the request body content. - ${RequestBodyCheck}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # 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. - ${JavascriptChallengeExpirationInMinutes}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='ByFieldsParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.Nullable[System.Int32]] - # 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. - ${CaptchaExpirationInMinutes}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $context = Get-AzContext - if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit - } - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; - ByFieldsParameterSet = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; - UpdateViaIdentityExpanded = 'Az.FrontDoor.custom\Update-AzFrontDoorWafPolicy'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generate-info.json b/generated/FrontDoor/FrontDoor.Autorest/generate-info.json deleted file mode 100644 index c4aefc46ba83..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generate-info.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "generate_Id": "93d25844-dd8f-4824-92fa-385f21ac3335" -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/Module.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/Module.cs deleted file mode 100644 index ea66dab43593..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/Module.cs +++ /dev/null @@ -1,202 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using SendAsyncStepDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; - using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>; - using GetParameterDelegate = global::System.Func; - using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; - using ArgumentCompleterDelegate = global::System.Func; - using GetTelemetryIdDelegate = global::System.Func; - using TelemetryDelegate = global::System.Action; - using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; - using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; - using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; - using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; - using SanitizerDelegate = global::System.Action; - using GetTelemetryInfoDelegate = global::System.Func>; - - /// A class that contains the module-common code and data. - public partial class Module - { - /// The currently selected profile. - public string Profile = global::System.String.Empty; - - public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler(); - - private static bool _init = false; - - private static readonly global::System.Object _initLock = new global::System.Object(); - - private static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module _instance; - - /// the ISendAsync pipeline instance - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline _pipeline; - - /// the ISendAsync pipeline instance (when proxy is enabled) - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline _pipelineWithProxy; - - private static readonly global::System.Object _singletonLock = new global::System.Object(); - - public bool _useProxy = false; - - public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); - - /// Gets completion data for azure specific fields - public ArgumentCompleterDelegate ArgumentCompleter { get; set; } - - /// The instance of the Client API - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor ClientAPI { get; set; } - - /// A delegate that gets called for each signalled event - public EventListenerDelegate EventListener { get; set; } - - /// The delegate to call to get parameter data from a common module. - public GetParameterDelegate GetParameterValue { get; set; } - - /// The delegate to get the telemetry Id. - public GetTelemetryIdDelegate GetTelemetryId { get; set; } - - /// The delegate to get the telemetry info. - public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; } - - /// the singleton of this module class - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } - - /// The Name of this module - public string Name => @"Az.FrontDoor"; - - /// The delegate to call when this module is loaded (supporting a commmon module). - public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } - - /// The delegate to call before each new request (supporting a commmon module). - public NewRequestPipelineDelegate OnNewRequest { get; set; } - - /// The name of the currently selected Azure profile - public global::System.String ProfileName { get; set; } - - /// The ResourceID for this module (azure arm). - public string ResourceId => @"Az.FrontDoor"; - - /// The delegate to call in WriteObject to sanitize the output object. - public SanitizerDelegate SanitizeOutput { get; set; } - - /// The delegate for creating a telemetry. - public TelemetryDelegate Telemetry { get; set; } - - /// The from the cmdlet - /// The HttpPipeline for the request - - partial void AfterCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline pipeline); - - /// The from the cmdlet - /// The HttpPipeline for the request - - partial void BeforeCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline pipeline); - - partial void CustomInit(); - - /// Creates an instance of the HttpPipeline for each call. - /// The from the cmdlet - /// the cmdlet's correlation id. - /// the cmdlet's process record correlation id. - /// the cmdlet's parameterset name. - /// a dict for extensible parameters - /// An instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline for the remote call. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null, global::System.Collections.Generic.IDictionary extensibleParameters = null) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline pipeline = null; - BeforeCreatePipeline(invocationInfo, ref pipeline); - pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone(); - AfterCreatePipeline(invocationInfo, ref pipeline); - pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync); - OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } ); - return pipeline; - } - - /// Gets parameters from a common module. - /// The from the cmdlet - /// the cmdlet's correlation id. - /// The name of the parameter to get the value for. - /// - /// The parameter value from the common module. (Note: this should be type converted on the way back) - /// - public object GetParameter(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string parameterName) => GetParameterValue?.Invoke( ResourceId, Name, invocationInfo, correlationId,parameterName ); - - /// Initialization steps performed after the module is loaded. - public void Init() - { - if (_init == false) - { - lock (_initLock) { - if (_init == false) { - OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } ); - OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } ); - CustomInit(); - _init = true; - } - } - } - } - - /// Creates the module instance. - private Module() - { - // constructor - ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor(); - _handler.Proxy = _webProxy; - _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); - _pipelineWithProxy = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient(_handler))); - } - - /// The HTTP Proxy to use. - /// The HTTP Proxy Credentials - /// True if the proxy should use default credentials - public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials) - { - _useProxy = proxy != null; - if (proxy == null) - { - return; - } - // set the proxy configuration - _webProxy.Address = proxy; - _webProxy.BypassProxyOnLocal = false; - if (proxyUseDefaultCredentials) - { - _webProxy.Credentials = null; - _webProxy.UseDefaultCredentials = true; - } - else - { - _webProxy.UseDefaultCredentials = false; - _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); - } - } - - /// Called to dispatch events to the common module listener - /// The ID of the event - /// The cancellation token for the event - /// A delegate to get the detailed event data - /// The callback for the event dispatcher - /// The from the cmdlet - /// the cmdlet's parameterset name. - /// the cmdlet's correlation id. - /// the cmdlet's process record correlation id. - /// the exception that is being thrown (if available) - /// - /// A that will be complete when handling of the event is completed. - /// - public async global::System.Threading.Tasks.Task Signal(string id, global::System.Threading.CancellationToken token, global::System.Func getEventData, SignalDelegate signal, global::System.Management.Automation.InvocationInfo invocationInfo, string parameterSetName, string correlationId, string processRecordId, global::System.Exception exception) - { - using( NoSynchronizationContext ) - { - await EventListener?.Invoke(id,token,getEventData, signal, invocationInfo, parameterSetName, correlationId,processRecordId,exception); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/FrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/FrontDoor.cs deleted file mode 100644 index 72dafbe8d07a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/FrontDoor.cs +++ /dev/null @@ -1,8616 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Low-level API implementation for the FrontDoor service. - /// APIs to manage web application firewall rules. - /// - public partial class FrontDoor - { - - /// Removes a content from Front Door. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// The path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes - /// a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task EndpointsPurgeContent(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/purge" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.EndpointsPurgeContent_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Removes a content from Front Door. - /// - /// The path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes - /// a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task EndpointsPurgeContentViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/purge" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.EndpointsPurgeContent_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Removes a content from Front Door. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Json string supplied to the EndpointsPurgeContent operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task EndpointsPurgeContentViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/purge" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.EndpointsPurgeContent_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task EndpointsPurgeContent_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// The path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes - /// a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task EndpointsPurgeContent_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Check the availability of a Front Door resource name. - /// Input to check. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheck(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorNameAvailabilityCheck_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Check the availability of a Front Door resource name. - /// - /// Input to check. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.Network$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.Network'"); - } - - // replace URI parameters with values from identity - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorNameAvailabilityCheck_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Check the availability of a Front Door resource name. - /// - /// Input to check. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.Network$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.Network'"); - } - - // replace URI parameters with values from identity - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorNameAvailabilityCheckWithResult_Call (request, eventListener,sender); - } - } - - /// Check the availability of a Front Door resource name. - /// Json string supplied to the FrontDoorNameAvailabilityCheck operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckViaJsonString(global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorNameAvailabilityCheck_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Check the availability of a Front Door resource name. - /// Json string supplied to the FrontDoorNameAvailabilityCheck operation - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckViaJsonStringWithResult(global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorNameAvailabilityCheckWithResult_Call (request, eventListener,sender); - } - } - - /// Check the availability of a Front Door resource name. - /// Input to check. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckWithResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorNameAvailabilityCheckWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheckWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheck_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// Input to check. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityCheck_Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Check the availability of a Front Door subdomain. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Input to check. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheck(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorNameAvailabilityWithSubscriptionCheck_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Check the availability of a Front Door subdomain. - /// - /// Input to check. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorNameAvailabilityWithSubscriptionCheck_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Check the availability of a Front Door subdomain. - /// - /// Input to check. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorNameAvailabilityWithSubscriptionCheckWithResult_Call (request, eventListener,sender); - } - } - - /// Check the availability of a Front Door subdomain. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Json string supplied to the FrontDoorNameAvailabilityWithSubscriptionCheck operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckViaJsonString(string subscriptionId, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorNameAvailabilityWithSubscriptionCheck_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Check the availability of a Front Door subdomain. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Json string supplied to the FrontDoorNameAvailabilityWithSubscriptionCheck operation - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckViaJsonStringWithResult(string subscriptionId, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorNameAvailabilityWithSubscriptionCheckWithResult_Call (request, eventListener,sender); - } - } - - /// Check the availability of a Front Door subdomain. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Input to check. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/checkFrontDoorNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorNameAvailabilityWithSubscriptionCheckWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheckWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheck_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual - /// call, but you will get validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Input to check. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorNameAvailabilityWithSubscriptionCheck_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Front Door properties needed to create a new Front Door. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// Front Door properties needed to create a new Front Door. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// Front Door properties needed to create a new Front Door. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that - /// will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Json string supplied to the FrontDoorsCreateOrUpdate operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Json string supplied to the FrontDoorsCreateOrUpdate operation - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that - /// will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Front Door properties needed to create a new Front Door. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that - /// will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that - /// will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Front Door properties needed to create a new Front Door. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Deletes an existing Front Door with the specified parameters. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsDelete(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); - } - } - - /// Deletes an existing Front Door with the specified parameters. - /// - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsDelete_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - - /// - /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsGet(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. - /// - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. - /// - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that - /// will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsGetWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that - /// will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsGetWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsGetWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that - /// will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsGet_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - - /// Lists all of the Front Doors within an Azure subscription. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/frontDoors" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsList_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the Front Doors within a resource group under a subscription. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsListByResourceGroup_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsListByResourceGroup_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsListByResourceGroupWithResult_Call (request, eventListener,sender); - } - } - - /// Lists all of the Front Doors within a resource group under a subscription. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsListByResourceGroupWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroupWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - } - } - - /// Lists all of the Front Doors within an Azure subscription. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/frontDoors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Network/frontDoors" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsList_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the Front Doors within an Azure subscription. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/frontDoors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Network/frontDoors" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsListWithResult_Call (request, eventListener,sender); - } - } - - /// Lists all of the Front Doors within an Azure subscription. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsListWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/frontDoors" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsListWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - } - } - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Custom domain to be validated. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomain(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/validateCustomDomain" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsValidateCustomDomain_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// - /// Custom domain to be validated. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/validateCustomDomain" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsValidateCustomDomain_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// - /// Custom domain to be validated. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/validateCustomDomain" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsValidateCustomDomainWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Json string supplied to the FrontDoorsValidateCustomDomain operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/validateCustomDomain" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontDoorsValidateCustomDomain_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Json string supplied to the FrontDoorsValidateCustomDomain operation - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/validateCustomDomain" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsValidateCustomDomainWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Custom domain to be validated. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/validateCustomDomain" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontDoorsValidateCustomDomainWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomainWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomain_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Custom domain to be validated. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontDoorsValidateCustomDomain_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Disables a frontendEndpoint for HTTPS traffic - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Frontend endpoint which is unique within the Front Door. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsDisableHttps(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/frontendEndpoints/" - + global::System.Uri.EscapeDataString(frontendEndpointName) - + "/disableHttps" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsDisableHttps_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsDisableHttpsViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var frontendEndpointName = _match.Groups["frontendEndpointName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/frontendEndpoints/" - + frontendEndpointName - + "/disableHttps" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsDisableHttps_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsDisableHttps_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Frontend endpoint which is unique within the Front Door. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsDisableHttps_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(frontendEndpointName),frontendEndpointName); - await eventListener.AssertMinimumLength(nameof(frontendEndpointName),frontendEndpointName,1); - await eventListener.AssertMaximumLength(nameof(frontendEndpointName),frontendEndpointName,255); - await eventListener.AssertRegEx(nameof(frontendEndpointName), frontendEndpointName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - - /// Enables a frontendEndpoint for HTTPS traffic - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Frontend endpoint which is unique within the Front Door. - /// The configuration specifying how to enable HTTPS - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttps(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/frontendEndpoints/" - + global::System.Uri.EscapeDataString(frontendEndpointName) - + "/enableHttps" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsEnableHttps_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// The configuration specifying how to enable HTTPS - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttpsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var frontendEndpointName = _match.Groups["frontendEndpointName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/frontendEndpoints/" - + frontendEndpointName - + "/enableHttps" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsEnableHttps_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Enables a frontendEndpoint for HTTPS traffic - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Frontend endpoint which is unique within the Front Door. - /// Json string supplied to the FrontendEndpointsEnableHttps operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttpsViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/frontendEndpoints/" - + global::System.Uri.EscapeDataString(frontendEndpointName) - + "/enableHttps" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsEnableHttps_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttps_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Frontend endpoint which is unique within the Front Door. - /// The configuration specifying how to enable HTTPS - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsEnableHttps_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(frontendEndpointName),frontendEndpointName); - await eventListener.AssertMinimumLength(nameof(frontendEndpointName),frontendEndpointName,1); - await eventListener.AssertMaximumLength(nameof(frontendEndpointName),frontendEndpointName,255); - await eventListener.AssertRegEx(nameof(frontendEndpointName), frontendEndpointName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front Door. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Frontend endpoint which is unique within the Front Door. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsGet(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/frontendEndpoints/" - + global::System.Uri.EscapeDataString(frontendEndpointName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front Door. - /// - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var frontendEndpointName = _match.Groups["frontendEndpointName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/frontendEndpoints/" - + frontendEndpointName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front Door. - /// - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var frontendEndpointName = _match.Groups["frontendEndpointName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/frontendEndpoints/" - + frontendEndpointName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontendEndpointsGetWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front Door. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Frontend endpoint which is unique within the Front Door. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsGetWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/frontendEndpoints/" - + global::System.Uri.EscapeDataString(frontendEndpointName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontendEndpointsGetWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Frontend endpoint which is unique within the Front Door. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsGet_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(frontendEndpointName),frontendEndpointName); - await eventListener.AssertMinimumLength(nameof(frontendEndpointName),frontendEndpointName,1); - await eventListener.AssertMaximumLength(nameof(frontendEndpointName),frontendEndpointName,255); - await eventListener.AssertRegEx(nameof(frontendEndpointName), frontendEndpointName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - - /// Lists all of the frontend endpoints within a Front Door. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoor(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/frontendEndpoints" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsListByFrontDoor_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the frontend endpoints within a Front Door. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoorViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/frontendEndpoints" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendEndpointsListByFrontDoor_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the frontend endpoints within a Front Door. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoorViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/frontendEndpoints$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/frontendEndpoints" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontendEndpointsListByFrontDoorWithResult_Call (request, eventListener,sender); - } - } - - /// Lists all of the frontend endpoints within a Front Door. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoorWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/frontendEndpoints" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.FrontendEndpointsListByFrontDoorWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoorWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoor_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendEndpointsListByFrontDoor_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - - /// Lists all available managed rule sets. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task ManagedRuleSetsList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.ManagedRuleSetsList_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all available managed rule sets. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task ManagedRuleSetsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.ManagedRuleSetsList_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all available managed rule sets. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task ManagedRuleSetsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.ManagedRuleSetsListWithResult_Call (request, eventListener,sender); - } - } - - /// Lists all available managed rule sets. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task ManagedRuleSetsListWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.ManagedRuleSetsListWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task ManagedRuleSetsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task ManagedRuleSetsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task ManagedRuleSetsList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - } - } - - /// update policy with specified rule set name within a resource group. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// Policy to be created. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdate(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// update policy with specified rule set name within a resource group. - /// - /// Policy to be created. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var policyName = _match.Groups["policyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + policyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// update policy with specified rule set name within a resource group. - /// - /// Policy to be created. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var policyName = _match.Groups["policyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + policyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// update policy with specified rule set name within a resource group. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// Json string supplied to the PoliciesCreateOrUpdate operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string policyName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// update policy with specified rule set name within a resource group. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// Json string supplied to the PoliciesCreateOrUpdate operation - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string policyName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// update policy with specified rule set name within a resource group. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// Policy to be created. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// Policy to be created. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(policyName),policyName); - await eventListener.AssertMaximumLength(nameof(policyName),policyName,128); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Deletes Policy - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesDelete(string subscriptionId, string resourceGroupName, string policyName, global::System.Func onOk, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesDelete_Call (request, onOk,onNoContent,eventListener,sender); - } - } - - /// Deletes Policy - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var policyName = _match.Groups["policyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + policyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesDelete_Call (request, onOk,onNoContent,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); - break; - } - default: - { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesDelete_Validate(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(policyName),policyName); - await eventListener.AssertMaximumLength(nameof(policyName),policyName,128); - } - } - - /// Retrieve protection policy with specified name within a resource group. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesGet(string subscriptionId, string resourceGroupName, string policyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Retrieve protection policy with specified name within a resource group. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var policyName = _match.Groups["policyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + policyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Retrieve protection policy with specified name within a resource group. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var policyName = _match.Groups["policyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + policyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesGetWithResult_Call (request, eventListener,sender); - } - } - - /// Retrieve protection policy with specified name within a resource group. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesGetWithResult(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesGetWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation events - /// back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// The name of the Web Application Firewall Policy. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesGet_Validate(string subscriptionId, string resourceGroupName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(policyName),policyName); - await eventListener.AssertMaximumLength(nameof(policyName),policyName,128); - } - } - - /// Lists all of the protection policies within a resource group. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesList(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesList_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the protection policies within a subscription. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesListBySubscription_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the protection policies within a subscription. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesListBySubscription_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the protection policies within a subscription. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesListBySubscriptionWithResult_Call (request, eventListener,sender); - } - } - - /// Lists all of the protection policies within a subscription. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesListBySubscriptionWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesListBySubscriptionWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - } - } - - /// Lists all of the protection policies within a resource group. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PoliciesList_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the protection policies within a resource group. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesListWithResult_Call (request, eventListener,sender); - } - } - - /// Lists all of the protection policies within a resource group. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PoliciesListWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PoliciesListWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PoliciesList_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - } - } - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdate(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines/" - + global::System.Uri.EscapeDataString(rulesEngineName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var rulesEngineName = _match.Groups["rulesEngineName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/rulesEngines/" - + rulesEngineName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A - /// that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var rulesEngineName = _match.Groups["rulesEngineName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/rulesEngines/" - + rulesEngineName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.RulesEnginesCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// Json string supplied to the RulesEnginesCreateOrUpdate operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines/" - + global::System.Uri.EscapeDataString(rulesEngineName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// Json string supplied to the RulesEnginesCreateOrUpdate operation - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A - /// that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines/" - + global::System.Uri.EscapeDataString(rulesEngineName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.RulesEnginesCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A - /// that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines/" - + global::System.Uri.EscapeDataString(rulesEngineName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.RulesEnginesCreateOrUpdateWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A - /// that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// Rules Engine Configuration properties needed to create a new Rules Engine Configuration. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine body, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(rulesEngineName),rulesEngineName); - await eventListener.AssertMinimumLength(nameof(rulesEngineName),rulesEngineName,1); - await eventListener.AssertMaximumLength(nameof(rulesEngineName),rulesEngineName,90); - await eventListener.AssertRegEx(nameof(rulesEngineName), rulesEngineName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Deletes an existing Rules Engine Configuration with the specified parameters. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesDelete(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines/" - + global::System.Uri.EscapeDataString(rulesEngineName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); - } - } - - /// Deletes an existing Rules Engine Configuration with the specified parameters. - /// - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var rulesEngineName = _match.Groups["rulesEngineName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/rulesEngines/" - + rulesEngineName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesDelete_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(rulesEngineName),rulesEngineName); - await eventListener.AssertMinimumLength(nameof(rulesEngineName),rulesEngineName,1); - await eventListener.AssertMaximumLength(nameof(rulesEngineName),rulesEngineName,90); - await eventListener.AssertRegEx(nameof(rulesEngineName), rulesEngineName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - - /// - /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesGet(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines/" - + global::System.Uri.EscapeDataString(rulesEngineName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var rulesEngineName = _match.Groups["rulesEngineName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/rulesEngines/" - + rulesEngineName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A - /// that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - var rulesEngineName = _match.Groups["rulesEngineName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/rulesEngines/" - + rulesEngineName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.RulesEnginesGetWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A - /// that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesGetWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines/" - + global::System.Uri.EscapeDataString(rulesEngineName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.RulesEnginesGetWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A - /// that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// Name of the Rules Engine which is unique within the Front Door. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesGet_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - await eventListener.AssertNotNull(nameof(rulesEngineName),rulesEngineName); - await eventListener.AssertMinimumLength(nameof(rulesEngineName),rulesEngineName,1); - await eventListener.AssertMaximumLength(nameof(rulesEngineName),rulesEngineName,90); - await eventListener.AssertRegEx(nameof(rulesEngineName), rulesEngineName, @"^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - - /// Lists all of the Rules Engine Configurations within a Front Door. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoor(string subscriptionId, string resourceGroupName, string frontDoorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesListByFrontDoor_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoorViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/rulesEngines" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.RulesEnginesListByFrontDoor_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoorViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/frontDoors/(?[^/]+)/rulesEngines$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var frontDoorName = _match.Groups["frontDoorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/frontDoors/" - + frontDoorName - + "/rulesEngines" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.RulesEnginesListByFrontDoorWithResult_Call (request, eventListener,sender); - } - } - - /// Lists all of the Rules Engine Configurations within a Front Door. - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoorWithResult(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-06-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/frontDoors/" - + global::System.Uri.EscapeDataString(frontDoorName) - + "/rulesEngines" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.RulesEnginesListByFrontDoorWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoorWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoor_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// Name of the Resource group within the Azure subscription. - /// Name of the Front Door which is globally unique. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task RulesEnginesListByFrontDoor_Validate(string subscriptionId, string resourceGroupName, string frontDoorName, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,80); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[a-zA-Z0-9_\-\(\)\.]*[^\.]$"); - await eventListener.AssertNotNull(nameof(frontDoorName),frontDoorName); - await eventListener.AssertMinimumLength(nameof(frontDoorName),frontDoorName,5); - await eventListener.AssertMaximumLength(nameof(frontDoorName),frontDoorName,64); - await eventListener.AssertRegEx(nameof(frontDoorName), frontDoorName, @"^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.PowerShell.cs deleted file mode 100644 index ed5cec15d489..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.PowerShell.cs +++ /dev/null @@ -1,222 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is - /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation - /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for - /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the - /// failed request and error information regarding the failure. - /// - [System.ComponentModel.TypeConverter(typeof(AzureAsyncOperationResultTypeConverter))] - public partial class AzureAsyncOperationResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureAsyncOperationResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorTypeConverter.ConvertFrom); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Status, global::System.Convert.ToString); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InnerError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).InnerError = (string) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).InnerError, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AzureAsyncOperationResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorTypeConverter.ConvertFrom); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Status, global::System.Convert.ToString); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InnerError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).InnerError = (string) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal)this).InnerError, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureAsyncOperationResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureAsyncOperationResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is - /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation - /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for - /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the - /// failed request and error information regarding the failure. - [System.ComponentModel.TypeConverter(typeof(AzureAsyncOperationResultTypeConverter))] - public partial interface IAzureAsyncOperationResult - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.TypeConverter.cs deleted file mode 100644 index 0cba430375f1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class AzureAsyncOperationResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return AzureAsyncOperationResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return AzureAsyncOperationResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return AzureAsyncOperationResult.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.cs deleted file mode 100644 index b08ce94a36c8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.cs +++ /dev/null @@ -1,159 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is - /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation - /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for - /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the - /// failed request and error information regarding the failure. - /// - public partial class AzureAsyncOperationResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal - { - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Code = value ?? null; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Detail = value ?? null /* arrayOf */; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError _error; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error()); set => this._error = value; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string InnerError { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).InnerError; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).InnerError = value ?? null; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Message = value ?? null; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResultInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error()); set { {_error = value;} } } - - /// Backing field for property. - private string _status; - - /// Status of the Azure async operation. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Status { get => this._status; set => this._status = value; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)Error).Target = value ?? null; } - - /// Creates an new instance. - public AzureAsyncOperationResult() - { - - } - } - /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is - /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation - /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for - /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the - /// failed request and error information regarding the failure. - public partial interface IAzureAsyncOperationResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails) })] - System.Collections.Generic.List Detail { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"innerError", - PossibleTypes = new [] { typeof(string) })] - string InnerError { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - /// Status of the Azure async operation. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Status of the Azure async operation.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("InProgress", "Succeeded", "Failed")] - string Status { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - - } - /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is - /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation - /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for - /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the - /// failed request and error information regarding the failure. - internal partial interface IAzureAsyncOperationResultInternal - - { - string Code { get; set; } - - System.Collections.Generic.List Detail { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError Error { get; set; } - - string InnerError { get; set; } - - string Message { get; set; } - /// Status of the Azure async operation. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("InProgress", "Succeeded", "Failed")] - string Status { get; set; } - - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.json.cs deleted file mode 100644 index 9810473dea3f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/AzureAsyncOperationResult.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is - /// in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation - /// Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for - /// the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the - /// failed request and error information regarding the failure. - /// - public partial class AzureAsyncOperationResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal AzureAsyncOperationResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Error.FromJson(__jsonError) : _error;} - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IAzureAsyncOperationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new AzureAsyncOperationResult(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); - AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.PowerShell.cs deleted file mode 100644 index 9b4991ce0958..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.PowerShell.cs +++ /dev/null @@ -1,252 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Backend address of a frontDoor load balancer. - [System.ComponentModel.TypeConverter(typeof(BackendTypeConverter))] - public partial class Backend - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Backend(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Address")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Address = (string) content.GetValueForProperty("Address",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Address, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkAlias")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkAlias = (string) content.GetValueForProperty("PrivateLinkAlias",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkAlias, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkResourceId = (string) content.GetValueForProperty("PrivateLinkResourceId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkResourceId, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkLocation = (string) content.GetValueForProperty("PrivateLinkLocation",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkLocation, global::System.Convert.ToString); - } - if (content.Contains("PrivateEndpointStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateEndpointStatus = (string) content.GetValueForProperty("PrivateEndpointStatus",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateEndpointStatus, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkApprovalMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkApprovalMessage = (string) content.GetValueForProperty("PrivateLinkApprovalMessage",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkApprovalMessage, global::System.Convert.ToString); - } - if (content.Contains("HttpPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpPort = (int?) content.GetValueForProperty("HttpPort",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HttpsPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpsPort = (int?) content.GetValueForProperty("HttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpsPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("Priority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Weight")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Weight = (int?) content.GetValueForProperty("Weight",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Weight, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("BackendHostHeader")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).BackendHostHeader = (string) content.GetValueForProperty("BackendHostHeader",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).BackendHostHeader, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Backend(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Address")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Address = (string) content.GetValueForProperty("Address",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Address, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkAlias")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkAlias = (string) content.GetValueForProperty("PrivateLinkAlias",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkAlias, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkResourceId = (string) content.GetValueForProperty("PrivateLinkResourceId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkResourceId, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkLocation = (string) content.GetValueForProperty("PrivateLinkLocation",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkLocation, global::System.Convert.ToString); - } - if (content.Contains("PrivateEndpointStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateEndpointStatus = (string) content.GetValueForProperty("PrivateEndpointStatus",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateEndpointStatus, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkApprovalMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkApprovalMessage = (string) content.GetValueForProperty("PrivateLinkApprovalMessage",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).PrivateLinkApprovalMessage, global::System.Convert.ToString); - } - if (content.Contains("HttpPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpPort = (int?) content.GetValueForProperty("HttpPort",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HttpsPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpsPort = (int?) content.GetValueForProperty("HttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).HttpsPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("Priority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Weight")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Weight = (int?) content.GetValueForProperty("Weight",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).Weight, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("BackendHostHeader")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).BackendHostHeader = (string) content.GetValueForProperty("BackendHostHeader",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal)this).BackendHostHeader, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Backend(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Backend(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Backend address of a frontDoor load balancer. - [System.ComponentModel.TypeConverter(typeof(BackendTypeConverter))] - public partial interface IBackend - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.TypeConverter.cs deleted file mode 100644 index a1490b92321b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.TypeConverter.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class BackendTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Backend.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Backend.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Backend.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.cs deleted file mode 100644 index ea10cd4d07a4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.cs +++ /dev/null @@ -1,326 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Backend address of a frontDoor load balancer. - public partial class Backend : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal - { - - /// Backing field for property. - private string _address; - - /// Location of the backend (IP address or FQDN) - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Address { get => this._address; set => this._address = value; } - - /// Backing field for property. - private string _backendHostHeader; - - /// - /// The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string BackendHostHeader { get => this._backendHostHeader; set => this._backendHostHeader = value; } - - /// Backing field for property. - private string _enabledState; - - /// - /// Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string EnabledState { get => this._enabledState; set => this._enabledState = value; } - - /// Backing field for property. - private int? _httpPort; - - /// The HTTP TCP port number. Must be between 1 and 65535. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? HttpPort { get => this._httpPort; set => this._httpPort = value; } - - /// Backing field for property. - private int? _httpsPort; - - /// The HTTPS TCP port number. Must be between 1 and 65535. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? HttpsPort { get => this._httpsPort; set => this._httpsPort = value; } - - /// Internal Acessors for PrivateEndpointStatus - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendInternal.PrivateEndpointStatus { get => this._privateEndpointStatus; set { {_privateEndpointStatus = value;} } } - - /// Backing field for property. - private int? _priority; - - /// - /// Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend - /// is healthy. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? Priority { get => this._priority; set => this._priority = value; } - - /// Backing field for property. - private string _privateEndpointStatus; - - /// The Approval status for the connection to the Private Link - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string PrivateEndpointStatus { get => this._privateEndpointStatus; } - - /// Backing field for property. - private string _privateLinkAlias; - - /// - /// The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string PrivateLinkAlias { get => this._privateLinkAlias; set => this._privateLinkAlias = value; } - - /// Backing field for property. - private string _privateLinkApprovalMessage; - - /// - /// A custom message to be included in the approval request to connect to the Private Link - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string PrivateLinkApprovalMessage { get => this._privateLinkApprovalMessage; set => this._privateLinkApprovalMessage = value; } - - /// Backing field for property. - private string _privateLinkLocation; - - /// - /// The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string PrivateLinkLocation { get => this._privateLinkLocation; set => this._privateLinkLocation = value; } - - /// Backing field for property. - private string _privateLinkResourceId; - - /// - /// The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string PrivateLinkResourceId { get => this._privateLinkResourceId; set => this._privateLinkResourceId = value; } - - /// Backing field for property. - private int? _weight; - - /// Weight of this endpoint for load balancing purposes. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? Weight { get => this._weight; set => this._weight = value; } - - /// Creates an new instance. - public Backend() - { - - } - } - /// Backend address of a frontDoor load balancer. - public partial interface IBackend : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Location of the backend (IP address or FQDN) - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Location of the backend (IP address or FQDN)", - SerializedName = @"address", - PossibleTypes = new [] { typeof(string) })] - string Address { get; set; } - /// - /// The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host.", - SerializedName = @"backendHostHeader", - PossibleTypes = new [] { typeof(string) })] - string BackendHostHeader { get; set; } - /// - /// Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// The HTTP TCP port number. Must be between 1 and 65535. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The HTTP TCP port number. Must be between 1 and 65535.", - SerializedName = @"httpPort", - PossibleTypes = new [] { typeof(int) })] - int? HttpPort { get; set; } - /// The HTTPS TCP port number. Must be between 1 and 65535. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The HTTPS TCP port number. Must be between 1 and 65535.", - SerializedName = @"httpsPort", - PossibleTypes = new [] { typeof(int) })] - int? HttpsPort { get; set; } - /// - /// Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend - /// is healthy. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy.", - SerializedName = @"priority", - PossibleTypes = new [] { typeof(int) })] - int? Priority { get; set; } - /// The Approval status for the connection to the Private Link - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The Approval status for the connection to the Private Link", - SerializedName = @"privateEndpointStatus", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected", "Disconnected", "Timeout")] - string PrivateEndpointStatus { get; } - /// - /// The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private'", - SerializedName = @"privateLinkAlias", - PossibleTypes = new [] { typeof(string) })] - string PrivateLinkAlias { get; set; } - /// - /// A custom message to be included in the approval request to connect to the Private Link - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A custom message to be included in the approval request to connect to the Private Link", - SerializedName = @"privateLinkApprovalMessage", - PossibleTypes = new [] { typeof(string) })] - string PrivateLinkApprovalMessage { get; set; } - /// - /// The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated", - SerializedName = @"privateLinkLocation", - PossibleTypes = new [] { typeof(string) })] - string PrivateLinkLocation { get; set; } - /// - /// The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'", - SerializedName = @"privateLinkResourceId", - PossibleTypes = new [] { typeof(string) })] - string PrivateLinkResourceId { get; set; } - /// Weight of this endpoint for load balancing purposes. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Weight of this endpoint for load balancing purposes.", - SerializedName = @"weight", - PossibleTypes = new [] { typeof(int) })] - int? Weight { get; set; } - - } - /// Backend address of a frontDoor load balancer. - internal partial interface IBackendInternal - - { - /// Location of the backend (IP address or FQDN) - string Address { get; set; } - /// - /// The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - /// - string BackendHostHeader { get; set; } - /// - /// Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// The HTTP TCP port number. Must be between 1 and 65535. - int? HttpPort { get; set; } - /// The HTTPS TCP port number. Must be between 1 and 65535. - int? HttpsPort { get; set; } - /// - /// Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend - /// is healthy. - /// - int? Priority { get; set; } - /// The Approval status for the connection to the Private Link - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected", "Disconnected", "Timeout")] - string PrivateEndpointStatus { get; set; } - /// - /// The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - /// - string PrivateLinkAlias { get; set; } - /// - /// A custom message to be included in the approval request to connect to the Private Link - /// - string PrivateLinkApprovalMessage { get; set; } - /// - /// The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - /// - string PrivateLinkLocation { get; set; } - /// - /// The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - /// - string PrivateLinkResourceId { get; set; } - /// Weight of this endpoint for load balancing purposes. - int? Weight { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.json.cs deleted file mode 100644 index 2377d058af35..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Backend.json.cs +++ /dev/null @@ -1,131 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Backend address of a frontDoor load balancer. - public partial class Backend - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal Backend(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_address = If( json?.PropertyT("address"), out var __jsonAddress) ? (string)__jsonAddress : (string)_address;} - {_privateLinkAlias = If( json?.PropertyT("privateLinkAlias"), out var __jsonPrivateLinkAlias) ? (string)__jsonPrivateLinkAlias : (string)_privateLinkAlias;} - {_privateLinkResourceId = If( json?.PropertyT("privateLinkResourceId"), out var __jsonPrivateLinkResourceId) ? (string)__jsonPrivateLinkResourceId : (string)_privateLinkResourceId;} - {_privateLinkLocation = If( json?.PropertyT("privateLinkLocation"), out var __jsonPrivateLinkLocation) ? (string)__jsonPrivateLinkLocation : (string)_privateLinkLocation;} - {_privateEndpointStatus = If( json?.PropertyT("privateEndpointStatus"), out var __jsonPrivateEndpointStatus) ? (string)__jsonPrivateEndpointStatus : (string)_privateEndpointStatus;} - {_privateLinkApprovalMessage = If( json?.PropertyT("privateLinkApprovalMessage"), out var __jsonPrivateLinkApprovalMessage) ? (string)__jsonPrivateLinkApprovalMessage : (string)_privateLinkApprovalMessage;} - {_httpPort = If( json?.PropertyT("httpPort"), out var __jsonHttpPort) ? (int?)__jsonHttpPort : _httpPort;} - {_httpsPort = If( json?.PropertyT("httpsPort"), out var __jsonHttpsPort) ? (int?)__jsonHttpsPort : _httpsPort;} - {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} - {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int?)__jsonPriority : _priority;} - {_weight = If( json?.PropertyT("weight"), out var __jsonWeight) ? (int?)__jsonWeight : _weight;} - {_backendHostHeader = If( json?.PropertyT("backendHostHeader"), out var __jsonBackendHostHeader) ? (string)__jsonBackendHostHeader : (string)_backendHostHeader;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend. - /// - /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new Backend(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._address)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._address.ToString()) : null, "address" ,container.Add ); - AddIf( null != (((object)this._privateLinkAlias)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateLinkAlias.ToString()) : null, "privateLinkAlias" ,container.Add ); - AddIf( null != (((object)this._privateLinkResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateLinkResourceId.ToString()) : null, "privateLinkResourceId" ,container.Add ); - AddIf( null != (((object)this._privateLinkLocation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateLinkLocation.ToString()) : null, "privateLinkLocation" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._privateEndpointStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateEndpointStatus.ToString()) : null, "privateEndpointStatus" ,container.Add ); - } - AddIf( null != (((object)this._privateLinkApprovalMessage)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._privateLinkApprovalMessage.ToString()) : null, "privateLinkApprovalMessage" ,container.Add ); - AddIf( null != this._httpPort ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._httpPort) : null, "httpPort" ,container.Add ); - AddIf( null != this._httpsPort ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._httpsPort) : null, "httpsPort" ,container.Add ); - AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); - AddIf( null != this._priority ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._priority) : null, "priority" ,container.Add ); - AddIf( null != this._weight ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._weight) : null, "weight" ,container.Add ); - AddIf( null != (((object)this._backendHostHeader)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._backendHostHeader.ToString()) : null, "backendHostHeader" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.PowerShell.cs deleted file mode 100644 index dd22991f888c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.PowerShell.cs +++ /dev/null @@ -1,236 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// A backend pool is a collection of backends that can be routed to. - [System.ComponentModel.TypeConverter(typeof(BackendPoolTypeConverter))] - public partial class BackendPool - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal BackendPool(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("Backend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("LoadBalancingSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); - } - if (content.Contains("HealthProbeSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSettingId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackendPool(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("Backend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("LoadBalancingSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); - } - if (content.Contains("HealthProbeSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal)this).HealthProbeSettingId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackendPool(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackendPool(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// A backend pool is a collection of backends that can be routed to. - [System.ComponentModel.TypeConverter(typeof(BackendPoolTypeConverter))] - public partial interface IBackendPool - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.TypeConverter.cs deleted file mode 100644 index e1bec9caa844..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class BackendPoolTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return BackendPool.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return BackendPool.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return BackendPool.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.cs deleted file mode 100644 index b70b30ed2acf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.cs +++ /dev/null @@ -1,194 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// A backend pool is a collection of backends that can be routed to. - public partial class BackendPool : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); - - /// The set of backends for this pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Backend { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).Backend; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).Backend = value ?? null /* arrayOf */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string HealthProbeSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).HealthProbeSettingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).HealthProbeSettingId = value ?? null; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string LoadBalancingSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).LoadBalancingSettingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).LoadBalancingSettingId = value ?? null; } - - /// Internal Acessors for HealthProbeSetting - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).HealthProbeSetting = value ?? null /* model class */; } - - /// Internal Acessors for LoadBalancingSetting - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)Property).LoadBalancingSetting = value ?? null /* model class */; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties()); set { {_property = value;} } } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)Property).ResourceState = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties _property; - - /// Properties of the Front Door Backend Pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties()); set => this._property = value; } - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)Property).ResourceState; } - - /// Backing field for property. - private string _type; - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public BackendPool() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__subResource), __subResource); - await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); - } - } - /// A backend pool is a collection of backends that can be routed to. - public partial interface IBackendPool : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource - { - /// The set of backends for this pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The set of backends for this pool", - SerializedName = @"backends", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend) })] - System.Collections.Generic.List Backend { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string HealthProbeSettingId { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string LoadBalancingSettingId { get; set; } - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// A backend pool is a collection of backends that can be routed to. - internal partial interface IBackendPoolInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal - { - /// The set of backends for this pool - System.Collections.Generic.List Backend { get; set; } - /// L7 health probe settings for a backend pool - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource HealthProbeSetting { get; set; } - /// Resource ID. - string HealthProbeSettingId { get; set; } - /// Load balancing settings for a backend pool - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource LoadBalancingSetting { get; set; } - /// Resource ID. - string LoadBalancingSettingId { get; set; } - /// Resource name. - string Name { get; set; } - /// Properties of the Front Door Backend Pool - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties Property { get; set; } - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// Resource type. - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.json.cs deleted file mode 100644 index 141ce26f955c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPool.json.cs +++ /dev/null @@ -1,117 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// A backend pool is a collection of backends that can be routed to. - public partial class BackendPool - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal BackendPool(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolProperties.FromJson(__jsonProperties) : _property;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPool(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __subResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.PowerShell.cs deleted file mode 100644 index 08b5f3b2a361..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next - /// set of results. - /// - [System.ComponentModel.TypeConverter(typeof(BackendPoolListResultTypeConverter))] - public partial class BackendPoolListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal BackendPoolListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackendPoolListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackendPoolListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackendPoolListResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next - /// set of results. - [System.ComponentModel.TypeConverter(typeof(BackendPoolListResultTypeConverter))] - public partial interface IBackendPoolListResult - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.TypeConverter.cs deleted file mode 100644 index 7d460b42a384..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class BackendPoolListResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return BackendPoolListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return BackendPoolListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return BackendPoolListResult.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.cs deleted file mode 100644 index e9de398b89bf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next - /// set of results. - /// - public partial class BackendPoolListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of BackendPool objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of Backend Pools within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public BackendPoolListResult() - { - - } - } - /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next - /// set of results. - public partial interface IBackendPoolListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// URL to get the next set of BackendPool objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to get the next set of BackendPool objects if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of Backend Pools within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of Backend Pools within a Front Door.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] - System.Collections.Generic.List Value { get; } - - } - /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next - /// set of results. - internal partial interface IBackendPoolListResultInternal - - { - /// URL to get the next set of BackendPool objects if there are any. - string NextLink { get; set; } - /// List of Backend Pools within a Front Door. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.json.cs deleted file mode 100644 index cf189863e888..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolListResult.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next - /// set of results. - /// - public partial class BackendPoolListResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal BackendPoolListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPoolListResult(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.PowerShell.cs deleted file mode 100644 index 3aca1ca4915e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.PowerShell.cs +++ /dev/null @@ -1,204 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// The JSON object that contains the properties required to create a Backend Pool. - [System.ComponentModel.TypeConverter(typeof(BackendPoolPropertiesTypeConverter))] - public partial class BackendPoolProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal BackendPoolProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("LoadBalancingSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); - } - if (content.Contains("HealthProbeSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId, global::System.Convert.ToString); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("Backend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackendPoolProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("LoadBalancingSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); - } - if (content.Contains("HealthProbeSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId, global::System.Convert.ToString); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("Backend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackendPoolProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackendPoolProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The JSON object that contains the properties required to create a Backend Pool. - [System.ComponentModel.TypeConverter(typeof(BackendPoolPropertiesTypeConverter))] - public partial interface IBackendPoolProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.TypeConverter.cs deleted file mode 100644 index 969e1aca7965..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class BackendPoolPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return BackendPoolProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return BackendPoolProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return BackendPoolProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.cs deleted file mode 100644 index decd84ecd343..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.cs +++ /dev/null @@ -1,104 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The JSON object that contains the properties required to create a Backend Pool. - public partial class BackendPoolProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters __backendPoolUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolUpdateParameters(); - - /// The set of backends for this pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List Backend { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).Backend; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).Backend = value ?? null /* arrayOf */; } - - /// L7 health probe settings for a backend pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSetting = value ?? null /* model class */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string HealthProbeSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSettingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSettingId = value ?? null; } - - /// Load balancing settings for a backend pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSetting = value ?? null /* model class */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string LoadBalancingSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSettingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSettingId = value ?? null; } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } - - /// Internal Acessors for HealthProbeSetting - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal.HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).HealthProbeSetting = value ?? null /* model class */; } - - /// Internal Acessors for LoadBalancingSetting - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal.LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)__backendPoolUpdateParameters).LoadBalancingSetting = value ?? null /* model class */; } - - /// Backing field for property. - private string _resourceState; - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceState { get => this._resourceState; } - - /// Creates an new instance. - public BackendPoolProperties() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__backendPoolUpdateParameters), __backendPoolUpdateParameters); - await eventListener.AssertObjectIsValid(nameof(__backendPoolUpdateParameters), __backendPoolUpdateParameters); - } - } - /// The JSON object that contains the properties required to create a Backend Pool. - public partial interface IBackendPoolProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters - { - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - - } - /// The JSON object that contains the properties required to create a Backend Pool. - internal partial interface IBackendPoolPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal - { - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.json.cs deleted file mode 100644 index e175366dc9ed..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolProperties.json.cs +++ /dev/null @@ -1,113 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The JSON object that contains the properties required to create a Backend Pool. - public partial class BackendPoolProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal BackendPoolProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __backendPoolUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolUpdateParameters(json); - {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPoolProperties(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __backendPoolUpdateParameters?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.PowerShell.cs deleted file mode 100644 index fe15116c35bb..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.PowerShell.cs +++ /dev/null @@ -1,196 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// A collection of backends that can be routed to. - [System.ComponentModel.TypeConverter(typeof(BackendPoolUpdateParametersTypeConverter))] - public partial class BackendPoolUpdateParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal BackendPoolUpdateParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("Backend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); - } - if (content.Contains("LoadBalancingSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); - } - if (content.Contains("HealthProbeSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackendPoolUpdateParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("Backend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend = (System.Collections.Generic.List) content.GetValueForProperty("Backend",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).Backend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendTypeConverter.ConvertFrom)); - } - if (content.Contains("LoadBalancingSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId = (string) content.GetValueForProperty("LoadBalancingSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).LoadBalancingSettingId, global::System.Convert.ToString); - } - if (content.Contains("HealthProbeSettingId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId = (string) content.GetValueForProperty("HealthProbeSettingId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal)this).HealthProbeSettingId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackendPoolUpdateParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackendPoolUpdateParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// A collection of backends that can be routed to. - [System.ComponentModel.TypeConverter(typeof(BackendPoolUpdateParametersTypeConverter))] - public partial interface IBackendPoolUpdateParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.TypeConverter.cs deleted file mode 100644 index 003857b6c020..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class BackendPoolUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return BackendPoolUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return BackendPoolUpdateParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return BackendPoolUpdateParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.cs deleted file mode 100644 index 876d60f6c367..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.cs +++ /dev/null @@ -1,112 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// A collection of backends that can be routed to. - public partial class BackendPoolUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _backend; - - /// The set of backends for this pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Backend { get => this._backend; set => this._backend = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource _healthProbeSetting; - - /// L7 health probe settings for a backend pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource HealthProbeSetting { get => (this._healthProbeSetting = this._healthProbeSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set => this._healthProbeSetting = value; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string HealthProbeSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)HealthProbeSetting).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)HealthProbeSetting).Id = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource _loadBalancingSetting; - - /// Load balancing settings for a backend pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource LoadBalancingSetting { get => (this._loadBalancingSetting = this._loadBalancingSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set => this._loadBalancingSetting = value; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string LoadBalancingSettingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)LoadBalancingSetting).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)LoadBalancingSetting).Id = value ?? null; } - - /// Internal Acessors for HealthProbeSetting - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal.HealthProbeSetting { get => (this._healthProbeSetting = this._healthProbeSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set { {_healthProbeSetting = value;} } } - - /// Internal Acessors for LoadBalancingSetting - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParametersInternal.LoadBalancingSetting { get => (this._loadBalancingSetting = this._loadBalancingSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set { {_loadBalancingSetting = value;} } } - - /// Creates an new instance. - public BackendPoolUpdateParameters() - { - - } - } - /// A collection of backends that can be routed to. - public partial interface IBackendPoolUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// The set of backends for this pool - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The set of backends for this pool", - SerializedName = @"backends", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend) })] - System.Collections.Generic.List Backend { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string HealthProbeSettingId { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string LoadBalancingSettingId { get; set; } - - } - /// A collection of backends that can be routed to. - internal partial interface IBackendPoolUpdateParametersInternal - - { - /// The set of backends for this pool - System.Collections.Generic.List Backend { get; set; } - /// L7 health probe settings for a backend pool - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource HealthProbeSetting { get; set; } - /// Resource ID. - string HealthProbeSettingId { get; set; } - /// Load balancing settings for a backend pool - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource LoadBalancingSetting { get; set; } - /// Resource ID. - string LoadBalancingSettingId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.json.cs deleted file mode 100644 index a72422bae1e6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolUpdateParameters.json.cs +++ /dev/null @@ -1,120 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// A collection of backends that can be routed to. - public partial class BackendPoolUpdateParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal BackendPoolUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_loadBalancingSetting = If( json?.PropertyT("loadBalancingSettings"), out var __jsonLoadBalancingSettings) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__jsonLoadBalancingSettings) : _loadBalancingSetting;} - {_healthProbeSetting = If( json?.PropertyT("healthProbeSettings"), out var __jsonHealthProbeSettings) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__jsonHealthProbeSettings) : _healthProbeSetting;} - {_backend = If( json?.PropertyT("backends"), out var __jsonBackends) ? If( __jsonBackends as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Backend.FromJson(__u) )) ))() : null : _backend;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPoolUpdateParameters(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._loadBalancingSetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._loadBalancingSetting.ToJson(null,serializationMode) : null, "loadBalancingSettings" ,container.Add ); - AddIf( null != this._healthProbeSetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._healthProbeSetting.ToJson(null,serializationMode) : null, "healthProbeSettings" ,container.Add ); - if (null != this._backend) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._backend ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("backends",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.PowerShell.cs deleted file mode 100644 index 89c0c669dfa1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Settings that apply to all backend pools. - [System.ComponentModel.TypeConverter(typeof(BackendPoolsSettingsTypeConverter))] - public partial class BackendPoolsSettings - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal BackendPoolsSettings(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EnforceCertificateNameCheck")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).EnforceCertificateNameCheck = (string) content.GetValueForProperty("EnforceCertificateNameCheck",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).EnforceCertificateNameCheck, global::System.Convert.ToString); - } - if (content.Contains("SendRecvTimeoutInSeconds")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).SendRecvTimeoutInSeconds = (int?) content.GetValueForProperty("SendRecvTimeoutInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).SendRecvTimeoutInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackendPoolsSettings(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EnforceCertificateNameCheck")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).EnforceCertificateNameCheck = (string) content.GetValueForProperty("EnforceCertificateNameCheck",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).EnforceCertificateNameCheck, global::System.Convert.ToString); - } - if (content.Contains("SendRecvTimeoutInSeconds")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).SendRecvTimeoutInSeconds = (int?) content.GetValueForProperty("SendRecvTimeoutInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal)this).SendRecvTimeoutInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackendPoolsSettings(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackendPoolsSettings(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Settings that apply to all backend pools. - [System.ComponentModel.TypeConverter(typeof(BackendPoolsSettingsTypeConverter))] - public partial interface IBackendPoolsSettings - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.TypeConverter.cs deleted file mode 100644 index 0001dd4d438f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class BackendPoolsSettingsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return BackendPoolsSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return BackendPoolsSettings.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return BackendPoolsSettings.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.cs deleted file mode 100644 index 37ef5d410ebc..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.cs +++ /dev/null @@ -1,88 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Settings that apply to all backend pools. - public partial class BackendPoolsSettings : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettingsInternal - { - - /// Backing field for property. - private string _enforceCertificateNameCheck; - - /// - /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string EnforceCertificateNameCheck { get => this._enforceCertificateNameCheck; set => this._enforceCertificateNameCheck = value; } - - /// Backing field for property. - private int? _sendRecvTimeoutInSeconds; - - /// - /// Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? SendRecvTimeoutInSeconds { get => this._sendRecvTimeoutInSeconds; set => this._sendRecvTimeoutInSeconds = value; } - - /// Creates an new instance. - public BackendPoolsSettings() - { - - } - } - /// Settings that apply to all backend pools. - public partial interface IBackendPoolsSettings : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.", - SerializedName = @"enforceCertificateNameCheck", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnforceCertificateNameCheck { get; set; } - /// - /// Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.", - SerializedName = @"sendRecvTimeoutSeconds", - PossibleTypes = new [] { typeof(int) })] - int? SendRecvTimeoutInSeconds { get; set; } - - } - /// Settings that apply to all backend pools. - internal partial interface IBackendPoolsSettingsInternal - - { - /// - /// Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnforceCertificateNameCheck { get; set; } - /// - /// Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - /// - int? SendRecvTimeoutInSeconds { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.json.cs deleted file mode 100644 index b34b1188cd31..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/BackendPoolsSettings.json.cs +++ /dev/null @@ -1,110 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Settings that apply to all backend pools. - public partial class BackendPoolsSettings - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal BackendPoolsSettings(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_enforceCertificateNameCheck = If( json?.PropertyT("enforceCertificateNameCheck"), out var __jsonEnforceCertificateNameCheck) ? (string)__jsonEnforceCertificateNameCheck : (string)_enforceCertificateNameCheck;} - {_sendRecvTimeoutInSeconds = If( json?.PropertyT("sendRecvTimeoutSeconds"), out var __jsonSendRecvTimeoutSeconds) ? (int?)__jsonSendRecvTimeoutSeconds : _sendRecvTimeoutInSeconds;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new BackendPoolsSettings(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._enforceCertificateNameCheck)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enforceCertificateNameCheck.ToString()) : null, "enforceCertificateNameCheck" ,container.Add ); - AddIf( null != this._sendRecvTimeoutInSeconds ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._sendRecvTimeoutInSeconds) : null, "sendRecvTimeoutSeconds" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.PowerShell.cs deleted file mode 100644 index 160d6ed60479..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.PowerShell.cs +++ /dev/null @@ -1,190 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. - /// - [System.ComponentModel.TypeConverter(typeof(CacheConfigurationTypeConverter))] - public partial class CacheConfiguration - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CacheConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("QueryParameterStripDirective")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameterStripDirective = (string) content.GetValueForProperty("QueryParameterStripDirective",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameterStripDirective, global::System.Convert.ToString); - } - if (content.Contains("QueryParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameter = (string) content.GetValueForProperty("QueryParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameter, global::System.Convert.ToString); - } - if (content.Contains("DynamicCompression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).DynamicCompression = (string) content.GetValueForProperty("DynamicCompression",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).DynamicCompression, global::System.Convert.ToString); - } - if (content.Contains("CacheDuration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).CacheDuration = (global::System.TimeSpan?) content.GetValueForProperty("CacheDuration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).CacheDuration, (v) => v is global::System.TimeSpan _v ? _v : global::System.Xml.XmlConvert.ToTimeSpan( v.ToString() )); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CacheConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("QueryParameterStripDirective")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameterStripDirective = (string) content.GetValueForProperty("QueryParameterStripDirective",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameterStripDirective, global::System.Convert.ToString); - } - if (content.Contains("QueryParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameter = (string) content.GetValueForProperty("QueryParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).QueryParameter, global::System.Convert.ToString); - } - if (content.Contains("DynamicCompression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).DynamicCompression = (string) content.GetValueForProperty("DynamicCompression",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).DynamicCompression, global::System.Convert.ToString); - } - if (content.Contains("CacheDuration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).CacheDuration = (global::System.TimeSpan?) content.GetValueForProperty("CacheDuration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal)this).CacheDuration, (v) => v is global::System.TimeSpan _v ? _v : global::System.Xml.XmlConvert.ToTimeSpan( v.ToString() )); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CacheConfiguration(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CacheConfiguration(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. - [System.ComponentModel.TypeConverter(typeof(CacheConfigurationTypeConverter))] - public partial interface ICacheConfiguration - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.TypeConverter.cs deleted file mode 100644 index 91ae86bc31fe..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CacheConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CacheConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CacheConfiguration.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CacheConfiguration.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.cs deleted file mode 100644 index 72316800946d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.cs +++ /dev/null @@ -1,129 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. - /// - public partial class CacheConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfigurationInternal - { - - /// Backing field for property. - private global::System.TimeSpan? _cacheDuration; - - /// - /// The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - /// HTTP requires the value to be no more than a year - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public global::System.TimeSpan? CacheDuration { get => this._cacheDuration; set => this._cacheDuration = value; } - - /// Backing field for property. - private string _dynamicCompression; - - /// Whether to use dynamic compression for cached content - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string DynamicCompression { get => this._dynamicCompression; set => this._dynamicCompression = value; } - - /// Backing field for property. - private string _queryParameter; - - /// query parameters to include or exclude (comma separated). - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string QueryParameter { get => this._queryParameter; set => this._queryParameter = value; } - - /// Backing field for property. - private string _queryParameterStripDirective; - - /// Treatment of URL query terms when forming the cache key. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string QueryParameterStripDirective { get => this._queryParameterStripDirective; set => this._queryParameterStripDirective = value; } - - /// Creates an new instance. - public CacheConfiguration() - { - - } - } - /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. - public partial interface ICacheConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - /// HTTP requires the value to be no more than a year - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year", - SerializedName = @"cacheDuration", - PossibleTypes = new [] { typeof(global::System.TimeSpan) })] - global::System.TimeSpan? CacheDuration { get; set; } - /// Whether to use dynamic compression for cached content - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to use dynamic compression for cached content", - SerializedName = @"dynamicCompression", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string DynamicCompression { get; set; } - /// query parameters to include or exclude (comma separated). - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"query parameters to include or exclude (comma separated).", - SerializedName = @"queryParameters", - PossibleTypes = new [] { typeof(string) })] - string QueryParameter { get; set; } - /// Treatment of URL query terms when forming the cache key. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Treatment of URL query terms when forming the cache key.", - SerializedName = @"queryParameterStripDirective", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] - string QueryParameterStripDirective { get; set; } - - } - /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. - internal partial interface ICacheConfigurationInternal - - { - /// - /// The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - /// HTTP requires the value to be no more than a year - /// - global::System.TimeSpan? CacheDuration { get; set; } - /// Whether to use dynamic compression for cached content - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string DynamicCompression { get; set; } - /// query parameters to include or exclude (comma separated). - string QueryParameter { get; set; } - /// Treatment of URL query terms when forming the cache key. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("StripNone", "StripAll", "StripOnly", "StripAllExcept")] - string QueryParameterStripDirective { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.json.cs deleted file mode 100644 index 297a50117d46..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CacheConfiguration.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. - /// - public partial class CacheConfiguration - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal CacheConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_queryParameterStripDirective = If( json?.PropertyT("queryParameterStripDirective"), out var __jsonQueryParameterStripDirective) ? (string)__jsonQueryParameterStripDirective : (string)_queryParameterStripDirective;} - {_queryParameter = If( json?.PropertyT("queryParameters"), out var __jsonQueryParameters) ? (string)__jsonQueryParameters : (string)_queryParameter;} - {_dynamicCompression = If( json?.PropertyT("dynamicCompression"), out var __jsonDynamicCompression) ? (string)__jsonDynamicCompression : (string)_dynamicCompression;} - {_cacheDuration = If( json?.PropertyT("cacheDuration"), out var __jsonCacheDuration) ? global::System.Xml.XmlConvert.ToTimeSpan( __jsonCacheDuration ) : _cacheDuration;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CacheConfiguration(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._queryParameterStripDirective)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._queryParameterStripDirective.ToString()) : null, "queryParameterStripDirective" ,container.Add ); - AddIf( null != (((object)this._queryParameter)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._queryParameter.ToString()) : null, "queryParameters" ,container.Add ); - AddIf( null != (((object)this._dynamicCompression)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._dynamicCompression.ToString()) : null, "dynamicCompression" ,container.Add ); - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)(null != this._cacheDuration ? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(global::System.Xml.XmlConvert.ToString((global::System.TimeSpan)this._cacheDuration)): null), "cacheDuration" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.PowerShell.cs deleted file mode 100644 index 3457179e3fa0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Input of CheckNameAvailability API. - [System.ComponentModel.TypeConverter(typeof(CheckNameAvailabilityInputTypeConverter))] - public partial class CheckNameAvailabilityInput - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CheckNameAvailabilityInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Type, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CheckNameAvailabilityInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal)this).Type, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CheckNameAvailabilityInput(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CheckNameAvailabilityInput(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Input of CheckNameAvailability API. - [System.ComponentModel.TypeConverter(typeof(CheckNameAvailabilityInputTypeConverter))] - public partial interface ICheckNameAvailabilityInput - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.TypeConverter.cs deleted file mode 100644 index 88e75cedb019..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CheckNameAvailabilityInputTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CheckNameAvailabilityInput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CheckNameAvailabilityInput.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CheckNameAvailabilityInput.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.cs deleted file mode 100644 index 28fa8cccbe9f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Input of CheckNameAvailability API. - public partial class CheckNameAvailabilityInput : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInputInternal - { - - /// Backing field for property. - private string _name; - - /// The resource name to validate. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private string _type; - - /// The type of the resource whose name is to be validated. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; set => this._type = value; } - - /// Creates an new instance. - public CheckNameAvailabilityInput() - { - - } - } - /// Input of CheckNameAvailability API. - public partial interface ICheckNameAvailabilityInput : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// The resource name to validate. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The resource name to validate.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The type of the resource whose name is to be validated. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The type of the resource whose name is to be validated.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] - string Type { get; set; } - - } - /// Input of CheckNameAvailability API. - internal partial interface ICheckNameAvailabilityInputInternal - - { - /// The resource name to validate. - string Name { get; set; } - /// The type of the resource whose name is to be validated. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.json.cs deleted file mode 100644 index bf629dda76e4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityInput.json.cs +++ /dev/null @@ -1,110 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Input of CheckNameAvailability API. - public partial class CheckNameAvailabilityInput - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal CheckNameAvailabilityInput(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CheckNameAvailabilityInput(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.PowerShell.cs deleted file mode 100644 index cb195f1926eb..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Output of check name availability API. - [System.ComponentModel.TypeConverter(typeof(CheckNameAvailabilityOutputTypeConverter))] - public partial class CheckNameAvailabilityOutput - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CheckNameAvailabilityOutput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NameAvailability")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).NameAvailability = (string) content.GetValueForProperty("NameAvailability",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).NameAvailability, global::System.Convert.ToString); - } - if (content.Contains("Reason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Reason, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CheckNameAvailabilityOutput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NameAvailability")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).NameAvailability = (string) content.GetValueForProperty("NameAvailability",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).NameAvailability, global::System.Convert.ToString); - } - if (content.Contains("Reason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Reason, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CheckNameAvailabilityOutput(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CheckNameAvailabilityOutput(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Output of check name availability API. - [System.ComponentModel.TypeConverter(typeof(CheckNameAvailabilityOutputTypeConverter))] - public partial interface ICheckNameAvailabilityOutput - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.TypeConverter.cs deleted file mode 100644 index e2a5dfad45cc..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CheckNameAvailabilityOutputTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CheckNameAvailabilityOutput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CheckNameAvailabilityOutput.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CheckNameAvailabilityOutput.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.cs deleted file mode 100644 index ae697cd67a53..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.cs +++ /dev/null @@ -1,105 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Output of check name availability API. - public partial class CheckNameAvailabilityOutput : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal - { - - /// Backing field for property. - private string _message; - - /// The detailed error message describing why the name is not available. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Message { get => this._message; } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal.Message { get => this._message; set { {_message = value;} } } - - /// Internal Acessors for NameAvailability - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal.NameAvailability { get => this._nameAvailability; set { {_nameAvailability = value;} } } - - /// Internal Acessors for Reason - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutputInternal.Reason { get => this._reason; set { {_reason = value;} } } - - /// Backing field for property. - private string _nameAvailability; - - /// Indicates whether the name is available. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NameAvailability { get => this._nameAvailability; } - - /// Backing field for property. - private string _reason; - - /// The reason why the name is not available. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Reason { get => this._reason; } - - /// Creates an new instance. - public CheckNameAvailabilityOutput() - { - - } - } - /// Output of check name availability API. - public partial interface ICheckNameAvailabilityOutput : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// The detailed error message describing why the name is not available. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The detailed error message describing why the name is not available.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - /// Indicates whether the name is available. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Indicates whether the name is available.", - SerializedName = @"nameAvailability", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Available", "Unavailable")] - string NameAvailability { get; } - /// The reason why the name is not available. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The reason why the name is not available.", - SerializedName = @"reason", - PossibleTypes = new [] { typeof(string) })] - string Reason { get; } - - } - /// Output of check name availability API. - internal partial interface ICheckNameAvailabilityOutputInternal - - { - /// The detailed error message describing why the name is not available. - string Message { get; set; } - /// Indicates whether the name is available. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Available", "Unavailable")] - string NameAvailability { get; set; } - /// The reason why the name is not available. - string Reason { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.json.cs deleted file mode 100644 index 6a3a927c5566..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CheckNameAvailabilityOutput.json.cs +++ /dev/null @@ -1,121 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Output of check name availability API. - public partial class CheckNameAvailabilityOutput - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal CheckNameAvailabilityOutput(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_nameAvailability = If( json?.PropertyT("nameAvailability"), out var __jsonNameAvailability) ? (string)__jsonNameAvailability : (string)_nameAvailability;} - {_reason = If( json?.PropertyT("reason"), out var __jsonReason) ? (string)__jsonReason : (string)_reason;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CheckNameAvailabilityOutput(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nameAvailability)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nameAvailability.ToString()) : null, "nameAvailability" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._reason)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._reason.ToString()) : null, "reason" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.PowerShell.cs deleted file mode 100644 index 07612d12934e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.PowerShell.cs +++ /dev/null @@ -1,236 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Https settings for a domain - [System.ComponentModel.TypeConverter(typeof(CustomHttpsConfigurationTypeConverter))] - public partial class CustomHttpsConfiguration - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CustomHttpsConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("KeyVaultCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("KeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("FrontDoorCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("FrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CertificateSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).CertificateSource = (string) content.GetValueForProperty("CertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).CertificateSource, global::System.Convert.ToString); - } - if (content.Contains("ProtocolType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).ProtocolType = (string) content.GetValueForProperty("ProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).ProtocolType, global::System.Convert.ToString); - } - if (content.Contains("MinimumTlsVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterVault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); - } - if (content.Contains("KeyVaultCertificateSourceParameterSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretName = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretName, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterSecretVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretVersion = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretVersion, global::System.Convert.ToString); - } - if (content.Contains("VaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).VaultId, global::System.Convert.ToString); - } - if (content.Contains("FrontDoorCertificateSourceParameterCertificateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameterCertificateType = (string) content.GetValueForProperty("FrontDoorCertificateSourceParameterCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameterCertificateType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CustomHttpsConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("KeyVaultCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("KeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("FrontDoorCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("FrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CertificateSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).CertificateSource = (string) content.GetValueForProperty("CertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).CertificateSource, global::System.Convert.ToString); - } - if (content.Contains("ProtocolType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).ProtocolType = (string) content.GetValueForProperty("ProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).ProtocolType, global::System.Convert.ToString); - } - if (content.Contains("MinimumTlsVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterVault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); - } - if (content.Contains("KeyVaultCertificateSourceParameterSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretName = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretName, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterSecretVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretVersion = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).KeyVaultCertificateSourceParameterSecretVersion, global::System.Convert.ToString); - } - if (content.Contains("VaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).VaultId, global::System.Convert.ToString); - } - if (content.Contains("FrontDoorCertificateSourceParameterCertificateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameterCertificateType = (string) content.GetValueForProperty("FrontDoorCertificateSourceParameterCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)this).FrontDoorCertificateSourceParameterCertificateType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CustomHttpsConfiguration(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CustomHttpsConfiguration(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Https settings for a domain - [System.ComponentModel.TypeConverter(typeof(CustomHttpsConfigurationTypeConverter))] - public partial interface ICustomHttpsConfiguration - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.TypeConverter.cs deleted file mode 100644 index 80a4853c5e6a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CustomHttpsConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CustomHttpsConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CustomHttpsConfiguration.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CustomHttpsConfiguration.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.cs deleted file mode 100644 index df79903beb66..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.cs +++ /dev/null @@ -1,216 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Https settings for a domain - public partial class CustomHttpsConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal - { - - /// Backing field for property. - private string _certificateSource; - - /// Defines the source of the SSL certificate - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CertificateSource { get => this._certificateSource; set => this._certificateSource = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters _frontDoorCertificateSourceParameter; - - /// - /// Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters FrontDoorCertificateSourceParameter { get => (this._frontDoorCertificateSourceParameter = this._frontDoorCertificateSourceParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters()); set => this._frontDoorCertificateSourceParameter = value; } - - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string FrontDoorCertificateSourceParameterCertificateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)FrontDoorCertificateSourceParameter).CertificateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)FrontDoorCertificateSourceParameter).CertificateType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters _keyVaultCertificateSourceParameter; - - /// KeyVault certificate source parameters (if certificateSource=AzureKeyVault) - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters KeyVaultCertificateSourceParameter { get => (this._keyVaultCertificateSourceParameter = this._keyVaultCertificateSourceParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters()); set => this._keyVaultCertificateSourceParameter = value; } - - /// The name of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string KeyVaultCertificateSourceParameterSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).SecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).SecretName = value ?? null; } - - /// The version of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string KeyVaultCertificateSourceParameterSecretVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).SecretVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).SecretVersion = value ?? null; } - - /// Internal Acessors for FrontDoorCertificateSourceParameter - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal.FrontDoorCertificateSourceParameter { get => (this._frontDoorCertificateSourceParameter = this._frontDoorCertificateSourceParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters()); set { {_frontDoorCertificateSourceParameter = value;} } } - - /// Internal Acessors for KeyVaultCertificateSourceParameter - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal.KeyVaultCertificateSourceParameter { get => (this._keyVaultCertificateSourceParameter = this._keyVaultCertificateSourceParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters()); set { {_keyVaultCertificateSourceParameter = value;} } } - - /// Internal Acessors for KeyVaultCertificateSourceParameterVault - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal.KeyVaultCertificateSourceParameterVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).Vault; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).Vault = value ?? null /* model class */; } - - /// Internal Acessors for ProtocolType - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal.ProtocolType { get => this._protocolType; set { {_protocolType = value;} } } - - /// Backing field for property. - private string _minimumTlsVersion; - - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string MinimumTlsVersion { get => this._minimumTlsVersion; set => this._minimumTlsVersion = value; } - - /// Backing field for property. - private string _protocolType= @"ServerNameIndication"; - - /// Defines the TLS extension protocol that is used for secure delivery - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ProtocolType { get => this._protocolType; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string VaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).VaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)KeyVaultCertificateSourceParameter).VaultId = value ?? null; } - - /// Creates an new instance. - public CustomHttpsConfiguration() - { - - } - } - /// Https settings for a domain - public partial interface ICustomHttpsConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Defines the source of the SSL certificate - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the source of the SSL certificate", - SerializedName = @"certificateSource", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - string CertificateSource { get; set; } - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", - SerializedName = @"certificateType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - string FrontDoorCertificateSourceParameterCertificateType { get; set; } - /// The name of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretName", - PossibleTypes = new [] { typeof(string) })] - string KeyVaultCertificateSourceParameterSecretName { get; set; } - /// The version of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The version of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretVersion", - PossibleTypes = new [] { typeof(string) })] - string KeyVaultCertificateSourceParameterSecretVersion { get; set; } - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", - SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - string MinimumTlsVersion { get; set; } - /// Defines the TLS extension protocol that is used for secure delivery - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = true, - Read = true, - Create = true, - Update = true, - Description = @"Defines the TLS extension protocol that is used for secure delivery", - SerializedName = @"protocolType", - PossibleTypes = new [] { typeof(string) })] - string ProtocolType { get; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string VaultId { get; set; } - - } - /// Https settings for a domain - internal partial interface ICustomHttpsConfigurationInternal - - { - /// Defines the source of the SSL certificate - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - string CertificateSource { get; set; } - /// - /// Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters FrontDoorCertificateSourceParameter { get; set; } - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - string FrontDoorCertificateSourceParameterCertificateType { get; set; } - /// KeyVault certificate source parameters (if certificateSource=AzureKeyVault) - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters KeyVaultCertificateSourceParameter { get; set; } - /// The name of the Key Vault secret representing the full certificate PFX - string KeyVaultCertificateSourceParameterSecretName { get; set; } - /// The version of the Key Vault secret representing the full certificate PFX - string KeyVaultCertificateSourceParameterSecretVersion { get; set; } - /// The Key Vault containing the SSL certificate - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault KeyVaultCertificateSourceParameterVault { get; set; } - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - string MinimumTlsVersion { get; set; } - /// Defines the TLS extension protocol that is used for secure delivery - string ProtocolType { get; set; } - /// Resource ID. - string VaultId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.json.cs deleted file mode 100644 index e90bf8f06831..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomHttpsConfiguration.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Https settings for a domain - public partial class CustomHttpsConfiguration - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal CustomHttpsConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_keyVaultCertificateSourceParameter = If( json?.PropertyT("keyVaultCertificateSourceParameters"), out var __jsonKeyVaultCertificateSourceParameters) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParameters.FromJson(__jsonKeyVaultCertificateSourceParameters) : _keyVaultCertificateSourceParameter;} - {_frontDoorCertificateSourceParameter = If( json?.PropertyT("frontDoorCertificateSourceParameters"), out var __jsonFrontDoorCertificateSourceParameters) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParameters.FromJson(__jsonFrontDoorCertificateSourceParameters) : _frontDoorCertificateSourceParameter;} - {_certificateSource = If( json?.PropertyT("certificateSource"), out var __jsonCertificateSource) ? (string)__jsonCertificateSource : (string)_certificateSource;} - {_protocolType = If( json?.PropertyT("protocolType"), out var __jsonProtocolType) ? (string)__jsonProtocolType : (string)_protocolType;} - {_minimumTlsVersion = If( json?.PropertyT("minimumTlsVersion"), out var __jsonMinimumTlsVersion) ? (string)__jsonMinimumTlsVersion : (string)_minimumTlsVersion;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CustomHttpsConfiguration(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._keyVaultCertificateSourceParameter ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._keyVaultCertificateSourceParameter.ToJson(null,serializationMode) : null, "keyVaultCertificateSourceParameters" ,container.Add ); - AddIf( null != this._frontDoorCertificateSourceParameter ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._frontDoorCertificateSourceParameter.ToJson(null,serializationMode) : null, "frontDoorCertificateSourceParameters" ,container.Add ); - AddIf( null != (((object)this._certificateSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._certificateSource.ToString()) : null, "certificateSource" ,container.Add ); - AddIf( null != (((object)this._protocolType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._protocolType.ToString()) : null, "protocolType" ,container.Add ); - AddIf( null != (((object)this._minimumTlsVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._minimumTlsVersion.ToString()) : null, "minimumTlsVersion" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.PowerShell.cs deleted file mode 100644 index e2e761dce375..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.PowerShell.cs +++ /dev/null @@ -1,228 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines contents of a web application rule - [System.ComponentModel.TypeConverter(typeof(CustomRuleTypeConverter))] - public partial class CustomRule - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CustomRule(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Priority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("RuleType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RuleType = (string) content.GetValueForProperty("RuleType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RuleType, global::System.Convert.ToString); - } - if (content.Contains("RateLimitDurationInMinutes")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitDurationInMinutes = (int?) content.GetValueForProperty("RateLimitDurationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitDurationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RateLimitThreshold")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitThreshold = (int?) content.GetValueForProperty("RateLimitThreshold",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("GroupBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).GroupBy = (System.Collections.Generic.List) content.GetValueForProperty("GroupBy",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).GroupBy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariableTypeConverter.ConvertFrom)); - } - if (content.Contains("MatchCondition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).MatchCondition = (System.Collections.Generic.List) content.GetValueForProperty("MatchCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).MatchCondition, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchConditionTypeConverter.ConvertFrom)); - } - if (content.Contains("Action")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Action, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CustomRule(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Priority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("RuleType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RuleType = (string) content.GetValueForProperty("RuleType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RuleType, global::System.Convert.ToString); - } - if (content.Contains("RateLimitDurationInMinutes")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitDurationInMinutes = (int?) content.GetValueForProperty("RateLimitDurationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitDurationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RateLimitThreshold")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitThreshold = (int?) content.GetValueForProperty("RateLimitThreshold",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).RateLimitThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("GroupBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).GroupBy = (System.Collections.Generic.List) content.GetValueForProperty("GroupBy",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).GroupBy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariableTypeConverter.ConvertFrom)); - } - if (content.Contains("MatchCondition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).MatchCondition = (System.Collections.Generic.List) content.GetValueForProperty("MatchCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).MatchCondition, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchConditionTypeConverter.ConvertFrom)); - } - if (content.Contains("Action")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal)this).Action, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CustomRule(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CustomRule(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines contents of a web application rule - [System.ComponentModel.TypeConverter(typeof(CustomRuleTypeConverter))] - public partial interface ICustomRule - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.TypeConverter.cs deleted file mode 100644 index 2613b6f18197..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.TypeConverter.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CustomRuleTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CustomRule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CustomRule.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CustomRule.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.cs deleted file mode 100644 index b74bfb97d844..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.cs +++ /dev/null @@ -1,232 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines contents of a web application rule - public partial class CustomRule : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleInternal - { - - /// Backing field for property. - private string _action; - - /// Describes what action to be applied when rule matches. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Action { get => this._action; set => this._action = value; } - - /// Backing field for property. - private string _enabledState; - - /// - /// Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string EnabledState { get => this._enabledState; set => this._enabledState = value; } - - /// Backing field for property. - private System.Collections.Generic.List _groupBy; - - /// Describes the list of variables to group the rate limit requests - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List GroupBy { get => this._groupBy; set => this._groupBy = value; } - - /// Backing field for property. - private System.Collections.Generic.List _matchCondition; - - /// List of match conditions. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List MatchCondition { get => this._matchCondition; set => this._matchCondition = value; } - - /// Backing field for property. - private string _name; - - /// Describes the name of the rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private int _priority; - - /// - /// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int Priority { get => this._priority; set => this._priority = value; } - - /// Backing field for property. - private int? _rateLimitDurationInMinutes; - - /// Time window for resetting the rate limit count. Default is 1 minute. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? RateLimitDurationInMinutes { get => this._rateLimitDurationInMinutes; set => this._rateLimitDurationInMinutes = value; } - - /// Backing field for property. - private int? _rateLimitThreshold; - - /// Number of allowed requests per client within the time window. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? RateLimitThreshold { get => this._rateLimitThreshold; set => this._rateLimitThreshold = value; } - - /// Backing field for property. - private string _ruleType; - - /// Describes type of rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleType { get => this._ruleType; set => this._ruleType = value; } - - /// Creates an new instance. - public CustomRule() - { - - } - } - /// Defines contents of a web application rule - public partial interface ICustomRule : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Describes what action to be applied when rule matches. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes what action to be applied when rule matches.", - SerializedName = @"action", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] - string Action { get; set; } - /// - /// Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string EnabledState { get; set; } - /// Describes the list of variables to group the rate limit requests - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes the list of variables to group the rate limit requests", - SerializedName = @"groupBy", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable) })] - System.Collections.Generic.List GroupBy { get; set; } - /// List of match conditions. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of match conditions.", - SerializedName = @"matchConditions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition) })] - System.Collections.Generic.List MatchCondition { get; set; } - /// Describes the name of the rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes the name of the rule.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// - /// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.", - SerializedName = @"priority", - PossibleTypes = new [] { typeof(int) })] - int Priority { get; set; } - /// Time window for resetting the rate limit count. Default is 1 minute. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Time window for resetting the rate limit count. Default is 1 minute.", - SerializedName = @"rateLimitDurationInMinutes", - PossibleTypes = new [] { typeof(int) })] - int? RateLimitDurationInMinutes { get; set; } - /// Number of allowed requests per client within the time window. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Number of allowed requests per client within the time window.", - SerializedName = @"rateLimitThreshold", - PossibleTypes = new [] { typeof(int) })] - int? RateLimitThreshold { get; set; } - /// Describes type of rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes type of rule.", - SerializedName = @"ruleType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] - string RuleType { get; set; } - - } - /// Defines contents of a web application rule - internal partial interface ICustomRuleInternal - - { - /// Describes what action to be applied when rule matches. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] - string Action { get; set; } - /// - /// Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string EnabledState { get; set; } - /// Describes the list of variables to group the rate limit requests - System.Collections.Generic.List GroupBy { get; set; } - /// List of match conditions. - System.Collections.Generic.List MatchCondition { get; set; } - /// Describes the name of the rule. - string Name { get; set; } - /// - /// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - /// - int Priority { get; set; } - /// Time window for resetting the rate limit count. Default is 1 minute. - int? RateLimitDurationInMinutes { get; set; } - /// Number of allowed requests per client within the time window. - int? RateLimitThreshold { get; set; } - /// Describes type of rule. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("MatchRule", "RateLimitRule")] - string RuleType { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.json.cs deleted file mode 100644 index 818b89345a04..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRule.json.cs +++ /dev/null @@ -1,138 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines contents of a web application rule - public partial class CustomRule - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal CustomRule(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int)__jsonPriority : _priority;} - {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} - {_ruleType = If( json?.PropertyT("ruleType"), out var __jsonRuleType) ? (string)__jsonRuleType : (string)_ruleType;} - {_rateLimitDurationInMinutes = If( json?.PropertyT("rateLimitDurationInMinutes"), out var __jsonRateLimitDurationInMinutes) ? (int?)__jsonRateLimitDurationInMinutes : _rateLimitDurationInMinutes;} - {_rateLimitThreshold = If( json?.PropertyT("rateLimitThreshold"), out var __jsonRateLimitThreshold) ? (int?)__jsonRateLimitThreshold : _rateLimitThreshold;} - {_groupBy = If( json?.PropertyT("groupBy"), out var __jsonGroupBy) ? If( __jsonGroupBy as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.GroupByVariable.FromJson(__u) )) ))() : null : _groupBy;} - {_matchCondition = If( json?.PropertyT("matchConditions"), out var __jsonMatchConditions) ? If( __jsonMatchConditions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.MatchCondition.FromJson(__p) )) ))() : null : _matchCondition;} - {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)_action;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule. - /// - /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CustomRule(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber(this._priority), "priority" ,container.Add ); - AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); - AddIf( null != (((object)this._ruleType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleType.ToString()) : null, "ruleType" ,container.Add ); - AddIf( null != this._rateLimitDurationInMinutes ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._rateLimitDurationInMinutes) : null, "rateLimitDurationInMinutes" ,container.Add ); - AddIf( null != this._rateLimitThreshold ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._rateLimitThreshold) : null, "rateLimitThreshold" ,container.Add ); - if (null != this._groupBy) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._groupBy ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("groupBy",__w); - } - if (null != this._matchCondition) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._matchCondition ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("matchConditions",__r); - } - AddIf( null != (((object)this._action)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._action.ToString()) : null, "action" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.PowerShell.cs deleted file mode 100644 index 070497977945..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines contents of custom rules - [System.ComponentModel.TypeConverter(typeof(CustomRuleListTypeConverter))] - public partial class CustomRuleList - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CustomRuleList(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CustomRuleList(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CustomRuleList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CustomRuleList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines contents of custom rules - [System.ComponentModel.TypeConverter(typeof(CustomRuleListTypeConverter))] - public partial interface ICustomRuleList - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.TypeConverter.cs deleted file mode 100644 index 1174ab73c742..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CustomRuleListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CustomRuleList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CustomRuleList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CustomRuleList.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.cs deleted file mode 100644 index 30ee33786e91..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines contents of custom rules - public partial class CustomRuleList : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _rule; - - /// List of rules - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Rule { get => this._rule; set => this._rule = value; } - - /// Creates an new instance. - public CustomRuleList() - { - - } - } - /// Defines contents of custom rules - public partial interface ICustomRuleList : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// List of rules - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of rules", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] - System.Collections.Generic.List Rule { get; set; } - - } - /// Defines contents of custom rules - internal partial interface ICustomRuleListInternal - - { - /// List of rules - System.Collections.Generic.List Rule { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.json.cs deleted file mode 100644 index bbc11df9068e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/CustomRuleList.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines contents of custom rules - public partial class CustomRuleList - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal CustomRuleList(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_rule = If( json?.PropertyT("rules"), out var __jsonRules) ? If( __jsonRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRule.FromJson(__u) )) ))() : null : _rule;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new CustomRuleList(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._rule) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._rule ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("rules",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.PowerShell.cs deleted file mode 100644 index 374ed2e9d424..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.PowerShell.cs +++ /dev/null @@ -1,184 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - /// - [System.ComponentModel.TypeConverter(typeof(DefaultErrorResponseTypeConverter))] - public partial class DefaultErrorResponse - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DefaultErrorResponse(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseErrorTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DefaultErrorResponse(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseErrorTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DefaultErrorResponse(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DefaultErrorResponse(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - [System.ComponentModel.TypeConverter(typeof(DefaultErrorResponseTypeConverter))] - public partial interface IDefaultErrorResponse - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.TypeConverter.cs deleted file mode 100644 index e5971b8230d4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class DefaultErrorResponseTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return DefaultErrorResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return DefaultErrorResponse.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return DefaultErrorResponse.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.cs deleted file mode 100644 index 4600f4651e3e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.cs +++ /dev/null @@ -1,91 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - /// - public partial class DefaultErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal - { - - /// Error code. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Code; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError _error; - - /// Error model. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError()); set => this._error = value; } - - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Message; } - - /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Code = value ?? null; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError()); set { {_error = value;} } } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)Error).Message = value ?? null; } - - /// Creates an new instance. - public DefaultErrorResponse() - { - - } - } - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - public partial interface IDefaultErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Error code. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Error code.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; } - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Error message indicating why the operation failed.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - - } - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - internal partial interface IDefaultErrorResponseInternal - - { - /// Error code. - string Code { get; set; } - /// Error model. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError Error { get; set; } - /// Error message indicating why the operation failed. - string Message { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.json.cs deleted file mode 100644 index 1144fc8bdb74..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponse.json.cs +++ /dev/null @@ -1,111 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - /// - public partial class DefaultErrorResponse - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal DefaultErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.DefaultErrorResponseError.FromJson(__jsonError) : _error;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new DefaultErrorResponse(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.PowerShell.cs deleted file mode 100644 index 9dadddf0f849..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Error model. - [System.ComponentModel.TypeConverter(typeof(DefaultErrorResponseErrorTypeConverter))] - public partial class DefaultErrorResponseError - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DefaultErrorResponseError(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DefaultErrorResponseError(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DefaultErrorResponseError(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DefaultErrorResponseError(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Error model. - [System.ComponentModel.TypeConverter(typeof(DefaultErrorResponseErrorTypeConverter))] - public partial interface IDefaultErrorResponseError - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.TypeConverter.cs deleted file mode 100644 index f0c4b9122e93..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class DefaultErrorResponseErrorTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return DefaultErrorResponseError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return DefaultErrorResponseError.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return DefaultErrorResponseError.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.cs deleted file mode 100644 index 8d6164edc621..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.cs +++ /dev/null @@ -1,80 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Error model. - public partial class DefaultErrorResponseError : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal - { - - /// Backing field for property. - private string _code; - - /// Error code. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Code { get => this._code; } - - /// Backing field for property. - private string _message; - - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Message { get => this._message; } - - /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal.Code { get => this._code; set { {_code = value;} } } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseErrorInternal.Message { get => this._message; set { {_message = value;} } } - - /// Creates an new instance. - public DefaultErrorResponseError() - { - - } - } - /// Error model. - public partial interface IDefaultErrorResponseError : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Error code. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Error code.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; } - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Error message indicating why the operation failed.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - - } - /// Error model. - internal partial interface IDefaultErrorResponseErrorInternal - - { - /// Error code. - string Code { get; set; } - /// Error message indicating why the operation failed. - string Message { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.json.cs deleted file mode 100644 index 2eb9842312a3..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/DefaultErrorResponseError.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Error model. - public partial class DefaultErrorResponseError - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal DefaultErrorResponseError(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponseError FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new DefaultErrorResponseError(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.PowerShell.cs deleted file mode 100644 index de87e2561d82..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.PowerShell.cs +++ /dev/null @@ -1,194 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ErrorTypeConverter))] - public partial class Error - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Error(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Error(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Error(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InnerError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).InnerError = (string) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).InnerError, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Error(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InnerError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).InnerError = (string) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal)this).InnerError, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - [System.ComponentModel.TypeConverter(typeof(ErrorTypeConverter))] - public partial interface IError - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.TypeConverter.cs deleted file mode 100644 index 6b0eef667c49..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.TypeConverter.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ErrorTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Error.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Error.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Error.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.cs deleted file mode 100644 index ecd00005bc18..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class Error : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorInternal - { - - /// Backing field for property. - private string _code; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Code { get => this._code; set => this._code = value; } - - /// Backing field for property. - private System.Collections.Generic.List _detail; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Detail { get => this._detail; set => this._detail = value; } - - /// Backing field for property. - private string _innerError; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string InnerError { get => this._innerError; set => this._innerError = value; } - - /// Backing field for property. - private string _message; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Message { get => this._message; set => this._message = value; } - - /// Backing field for property. - private string _target; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Target { get => this._target; set => this._target = value; } - - /// Creates an new instance. - public Error() - { - - } - } - public partial interface IError : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails) })] - System.Collections.Generic.List Detail { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"innerError", - PossibleTypes = new [] { typeof(string) })] - string InnerError { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - - } - internal partial interface IErrorInternal - - { - string Code { get; set; } - - System.Collections.Generic.List Detail { get; set; } - - string InnerError { get; set; } - - string Message { get; set; } - - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.json.cs deleted file mode 100644 index 28f1eced034b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Error.json.cs +++ /dev/null @@ -1,121 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class Error - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal Error(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} - {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)_target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ErrorDetails.FromJson(__u) )) ))() : null : _detail;} - {_innerError = If( json?.PropertyT("innerError"), out var __jsonInnerError) ? (string)__jsonInnerError : (string)_innerError;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError. - /// - /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IError FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new Error(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); - if (null != this._detail) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._detail ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("details",__w); - } - AddIf( null != (((object)this._innerError)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._innerError.ToString()) : null, "innerError" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.PowerShell.cs deleted file mode 100644 index 90f2c43b1134..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.PowerShell.cs +++ /dev/null @@ -1,178 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] - public partial class ErrorDetails - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ErrorDetails(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ErrorDetails(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ErrorDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ErrorDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] - public partial interface IErrorDetails - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.TypeConverter.cs deleted file mode 100644 index 4cce53df4012..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ErrorDetailsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ErrorDetails.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ErrorDetails.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.cs deleted file mode 100644 index f7b51a3eb16c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.cs +++ /dev/null @@ -1,86 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class ErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetailsInternal - { - - /// Backing field for property. - private string _code; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Code { get => this._code; set => this._code = value; } - - /// Backing field for property. - private string _message; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Message { get => this._message; set => this._message = value; } - - /// Backing field for property. - private string _target; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Target { get => this._target; set => this._target = value; } - - /// Creates an new instance. - public ErrorDetails() - { - - } - } - public partial interface IErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - - } - internal partial interface IErrorDetailsInternal - - { - string Code { get; set; } - - string Message { get; set; } - - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.json.cs deleted file mode 100644 index e6410b7a9c74..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorDetails.json.cs +++ /dev/null @@ -1,111 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class ErrorDetails - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} - {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)_target;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ErrorDetails(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); - AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs deleted file mode 100644 index eaa60481dd67..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - /// - [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] - public partial class ErrorResponse - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ErrorResponse(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ErrorResponse(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ErrorResponse(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ErrorResponse(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] - public partial interface IErrorResponse - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs deleted file mode 100644 index c7b3a918c69c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ErrorResponseTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ErrorResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ErrorResponse.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ErrorResponse.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.cs deleted file mode 100644 index 00f099c974cd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.cs +++ /dev/null @@ -1,85 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - /// - public partial class ErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal - { - - /// Backing field for property. - private string _code; - - /// Error code. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Code { get => this._code; } - - /// Backing field for property. - private string _message; - - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Message { get => this._message; } - - /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal.Code { get => this._code; set { {_code = value;} } } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponseInternal.Message { get => this._message; set { {_message = value;} } } - - /// Creates an new instance. - public ErrorResponse() - { - - } - } - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - public partial interface IErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Error code. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Error code.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; } - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Error message indicating why the operation failed.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - - } - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - internal partial interface IErrorResponseInternal - - { - /// Error code. - string Code { get; set; } - /// Error message indicating why the operation failed. - string Message { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.json.cs deleted file mode 100644 index b088bf889804..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ErrorResponse.json.cs +++ /dev/null @@ -1,119 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the - /// error message. - /// - public partial class ErrorResponse - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.PowerShell.cs deleted file mode 100644 index 26126d70b8e8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.PowerShell.cs +++ /dev/null @@ -1,204 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Describes Forwarding Route. - [System.ComponentModel.TypeConverter(typeof(ForwardingConfigurationTypeConverter))] - public partial class ForwardingConfiguration - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ForwardingConfiguration(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ForwardingConfiguration(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ForwardingConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("BackendPool")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPool = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPool, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("CustomForwardingPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CustomForwardingPath = (string) content.GetValueForProperty("CustomForwardingPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CustomForwardingPath, global::System.Convert.ToString); - } - if (content.Contains("ForwardingProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).ForwardingProtocol = (string) content.GetValueForProperty("ForwardingProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).ForwardingProtocol, global::System.Convert.ToString); - } - if (content.Contains("CacheConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CacheConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration) content.GetValueForProperty("CacheConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CacheConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OdataType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); - } - if (content.Contains("BackendPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPoolId = (string) content.GetValueForProperty("BackendPoolId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPoolId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ForwardingConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("BackendPool")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPool = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPool, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("CustomForwardingPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CustomForwardingPath = (string) content.GetValueForProperty("CustomForwardingPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CustomForwardingPath, global::System.Convert.ToString); - } - if (content.Contains("ForwardingProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).ForwardingProtocol = (string) content.GetValueForProperty("ForwardingProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).ForwardingProtocol, global::System.Convert.ToString); - } - if (content.Contains("CacheConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CacheConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration) content.GetValueForProperty("CacheConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).CacheConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OdataType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); - } - if (content.Contains("BackendPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPoolId = (string) content.GetValueForProperty("BackendPoolId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal)this).BackendPoolId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Describes Forwarding Route. - [System.ComponentModel.TypeConverter(typeof(ForwardingConfigurationTypeConverter))] - public partial interface IForwardingConfiguration - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.TypeConverter.cs deleted file mode 100644 index 661ad7852d48..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ForwardingConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ForwardingConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ForwardingConfiguration.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ForwardingConfiguration.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.cs deleted file mode 100644 index acaa78495260..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.cs +++ /dev/null @@ -1,154 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes Forwarding Route. - public partial class ForwardingConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration __routeConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration(); - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource _backendPool; - - /// A reference to the BackendPool which this rule routes to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource BackendPool { get => (this._backendPool = this._backendPool ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set => this._backendPool = value; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string BackendPoolId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)BackendPool).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)BackendPool).Id = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration _cacheConfiguration; - - /// The caching configuration associated with this rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration CacheConfiguration { get => (this._cacheConfiguration = this._cacheConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration()); set => this._cacheConfiguration = value; } - - /// Backing field for property. - private string _customForwardingPath; - - /// - /// A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CustomForwardingPath { get => this._customForwardingPath; set => this._customForwardingPath = value; } - - /// Backing field for property. - private string _forwardingProtocol; - - /// Protocol this rule will use when forwarding traffic to backends. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ForwardingProtocol { get => this._forwardingProtocol; set => this._forwardingProtocol = value; } - - /// Internal Acessors for BackendPool - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfigurationInternal.BackendPool { get => (this._backendPool = this._backendPool ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set { {_backendPool = value;} } } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Constant] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string OdataType { get => "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration"; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)__routeConfiguration).OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration"; } - - /// Creates an new instance. - public ForwardingConfiguration() - { - this.__routeConfiguration.OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration"; - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__routeConfiguration), __routeConfiguration); - await eventListener.AssertObjectIsValid(nameof(__routeConfiguration), __routeConfiguration); - } - } - /// Describes Forwarding Route. - public partial interface IForwardingConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"ResourceGroupName", - PossibleTypes = new [] { typeof(string) })] - string BackendPoolId { get; set; } - /// The caching configuration associated with this rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The caching configuration associated with this rule.", - SerializedName = @"cacheConfiguration", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration CacheConfiguration { get; set; } - /// - /// A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.", - SerializedName = @"customForwardingPath", - PossibleTypes = new [] { typeof(string) })] - string CustomForwardingPath { get; set; } - /// Protocol this rule will use when forwarding traffic to backends. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Protocol this rule will use when forwarding traffic to backends.", - SerializedName = @"forwardingProtocol", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - string ForwardingProtocol { get; set; } - - } - /// Describes Forwarding Route. - internal partial interface IForwardingConfigurationInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal - { - /// A reference to the BackendPool which this rule routes to. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource BackendPool { get; set; } - /// Resource ID. - string BackendPoolId { get; set; } - /// The caching configuration associated with this rule. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration CacheConfiguration { get; set; } - /// - /// A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. - /// - string CustomForwardingPath { get; set; } - /// Protocol this rule will use when forwarding traffic to backends. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - string ForwardingProtocol { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.json.cs deleted file mode 100644 index 753518058efd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ForwardingConfiguration.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes Forwarding Route. - public partial class ForwardingConfiguration - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ForwardingConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __routeConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration(json); - {_backendPool = If( json?.PropertyT("backendPool"), out var __jsonBackendPool) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__jsonBackendPool) : _backendPool;} - {_customForwardingPath = If( json?.PropertyT("customForwardingPath"), out var __jsonCustomForwardingPath) ? (string)__jsonCustomForwardingPath : (string)_customForwardingPath;} - {_forwardingProtocol = If( json?.PropertyT("forwardingProtocol"), out var __jsonForwardingProtocol) ? (string)__jsonForwardingProtocol : (string)_forwardingProtocol;} - {_cacheConfiguration = If( json?.PropertyT("cacheConfiguration"), out var __jsonCacheConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfiguration.FromJson(__jsonCacheConfiguration) : _cacheConfiguration;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IForwardingConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ForwardingConfiguration(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __routeConfiguration?.ToJson(container, serializationMode); - AddIf( null != this._backendPool ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._backendPool.ToJson(null,serializationMode) : null, "backendPool" ,container.Add ); - AddIf( null != (((object)this._customForwardingPath)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customForwardingPath.ToString()) : null, "customForwardingPath" ,container.Add ); - AddIf( null != (((object)this._forwardingProtocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._forwardingProtocol.ToString()) : null, "forwardingProtocol" ,container.Add ); - AddIf( null != this._cacheConfiguration ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._cacheConfiguration.ToJson(null,serializationMode) : null, "cacheConfiguration" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.PowerShell.cs deleted file mode 100644 index d33e1d4d2f3e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.PowerShell.cs +++ /dev/null @@ -1,320 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - /// - [System.ComponentModel.TypeConverter(typeof(FrontDoorTypeConverter))] - public partial class FrontDoor - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontDoor(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontDoor(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontDoor(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RoutingRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPool")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPoolsSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Cname")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Cname = (string) content.GetValueForProperty("Cname",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Cname, global::System.Convert.ToString); - } - if (content.Contains("FrontdoorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontdoorId = (string) content.GetValueForProperty("FrontdoorId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontdoorId, global::System.Convert.ToString); - } - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RulesEngine = (System.Collections.Generic.List) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RulesEngine, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); - } - if (content.Contains("ExtendedProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ExtendedProperty = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) content.GetValueForProperty("ExtendedProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ExtendedProperty, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedPropertiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontDoor(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RoutingRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPool")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPoolsSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Cname")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Cname = (string) content.GetValueForProperty("Cname",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).Cname, global::System.Convert.ToString); - } - if (content.Contains("FrontdoorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontdoorId = (string) content.GetValueForProperty("FrontdoorId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).FrontdoorId, global::System.Convert.ToString); - } - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RulesEngine = (System.Collections.Generic.List) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).RulesEngine, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); - } - if (content.Contains("ExtendedProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ExtendedProperty = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) content.GetValueForProperty("ExtendedProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal)this).ExtendedProperty, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedPropertiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - [System.ComponentModel.TypeConverter(typeof(FrontDoorTypeConverter))] - public partial interface IFrontDoor - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.TypeConverter.cs deleted file mode 100644 index c9fe48a5545d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.TypeConverter.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontDoorTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontDoor.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontDoor.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontDoor.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.cs deleted file mode 100644 index afecd0e640ea..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.cs +++ /dev/null @@ -1,368 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - /// - public partial class FrontDoor : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(); - - /// Backend pools available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List BackendPool { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).BackendPool; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).BackendPool = value ?? null /* arrayOf */; } - - /// Settings for all backendPools - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).BackendPoolsSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).BackendPoolsSetting = value ?? null /* model class */; } - - /// The host that each frontendEndpoint must CNAME to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Cname { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).Cname; } - - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).EnabledState = value ?? null; } - - /// Key-Value pair representing additional properties for frontdoor. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ExtendedProperty; } - - /// A friendly name for the frontDoor - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).FriendlyName = value ?? null; } - - /// The Id of the frontdoor. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string FrontdoorId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).FrontdoorId; } - - /// Frontend endpoints available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List FrontendEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).FrontendEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).FrontendEndpoint = value ?? null /* arrayOf */; } - - /// Health probe settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).HealthProbeSetting = value ?? null /* arrayOf */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; } - - /// Load balancing settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).LoadBalancingSetting = value ?? null /* arrayOf */; } - - /// Resource location. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Cname - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.Cname { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).Cname; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).Cname = value ?? null; } - - /// Internal Acessors for ExtendedProperty - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.ExtendedProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ExtendedProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ExtendedProperty = value ?? null /* model class */; } - - /// Internal Acessors for FrontdoorId - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.FrontdoorId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).FrontdoorId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).FrontdoorId = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ProvisioningState = value ?? null; } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ResourceState = value ?? null; } - - /// Internal Acessors for RulesEngine - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorInternal.RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).RulesEngine; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).RulesEngine = value ?? null /* arrayOf */; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id = value ?? null; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type = value ?? null; } - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties _property; - - /// Properties of the Front Door Load Balancer - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties()); set => this._property = value; } - - /// Provisioning state of the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ProvisioningState; } - - /// Gets the resource group name - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - - /// Resource status of the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).ResourceState; } - - /// Routing rules associated with this Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RoutingRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).RoutingRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)Property).RoutingRule = value ?? null /* arrayOf */; } - - /// Rules Engine Configurations available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)Property).RulesEngine; } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag = value ?? null /* model class */; } - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public FrontDoor() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - public partial interface IFrontDoor : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource - { - /// Backend pools available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Backend pools available to routing rules.", - SerializedName = @"backendPools", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] - System.Collections.Generic.List BackendPool { get; set; } - /// Settings for all backendPools - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Settings for all backendPools", - SerializedName = @"backendPoolsSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get; set; } - /// The host that each frontendEndpoint must CNAME to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The host that each frontendEndpoint must CNAME to.", - SerializedName = @"cname", - PossibleTypes = new [] { typeof(string) })] - string Cname { get; } - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// Key-Value pair representing additional properties for frontdoor. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Key-Value pair representing additional properties for frontdoor.", - SerializedName = @"extendedProperties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get; } - /// A friendly name for the frontDoor - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A friendly name for the frontDoor", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The Id of the frontdoor. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The Id of the frontdoor.", - SerializedName = @"frontdoorId", - PossibleTypes = new [] { typeof(string) })] - string FrontdoorId { get; } - /// Frontend endpoints available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Frontend endpoints available to routing rules.", - SerializedName = @"frontendEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] - System.Collections.Generic.List FrontendEndpoint { get; set; } - /// Health probe settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Health probe settings associated with this Front Door instance.", - SerializedName = @"healthProbeSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] - System.Collections.Generic.List HealthProbeSetting { get; set; } - /// Load balancing settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Load balancing settings associated with this Front Door instance.", - SerializedName = @"loadBalancingSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] - System.Collections.Generic.List LoadBalancingSetting { get; set; } - /// Provisioning state of the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning state of the Front Door.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// Resource status of the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status of the Front Door.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// Routing rules associated with this Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Routing rules associated with this Front Door.", - SerializedName = @"routingRules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] - System.Collections.Generic.List RoutingRule { get; set; } - /// Rules Engine Configurations available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Rules Engine Configurations available to routing rules.", - SerializedName = @"rulesEngines", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) })] - System.Collections.Generic.List RulesEngine { get; } - - } - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - internal partial interface IFrontDoorInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal - { - /// Backend pools available to routing rules. - System.Collections.Generic.List BackendPool { get; set; } - /// Settings for all backendPools - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get; set; } - /// The host that each frontendEndpoint must CNAME to. - string Cname { get; set; } - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// Key-Value pair representing additional properties for frontdoor. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get; set; } - /// A friendly name for the frontDoor - string FriendlyName { get; set; } - /// The Id of the frontdoor. - string FrontdoorId { get; set; } - /// Frontend endpoints available to routing rules. - System.Collections.Generic.List FrontendEndpoint { get; set; } - /// Health probe settings associated with this Front Door instance. - System.Collections.Generic.List HealthProbeSetting { get; set; } - /// Load balancing settings associated with this Front Door instance. - System.Collections.Generic.List LoadBalancingSetting { get; set; } - /// Properties of the Front Door Load Balancer - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties Property { get; set; } - /// Provisioning state of the Front Door. - string ProvisioningState { get; set; } - /// Resource status of the Front Door. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// Routing rules associated with this Front Door. - System.Collections.Generic.List RoutingRule { get; set; } - /// Rules Engine Configurations available to routing rules. - System.Collections.Generic.List RulesEngine { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.json.cs deleted file mode 100644 index f99831ba9b3a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoor.json.cs +++ /dev/null @@ -1,111 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - /// - public partial class FrontDoor - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor. - /// - /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoor(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontDoor(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorProperties.FromJson(__jsonProperties) : _property;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.PowerShell.cs deleted file mode 100644 index bcdafd4d5ff3..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.PowerShell.cs +++ /dev/null @@ -1,166 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Parameters required for enabling SSL with Front Door-managed certificates - [System.ComponentModel.TypeConverter(typeof(FrontDoorCertificateSourceParametersTypeConverter))] - public partial class FrontDoorCertificateSourceParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontDoorCertificateSourceParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontDoorCertificateSourceParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontDoorCertificateSourceParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CertificateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)this).CertificateType = (string) content.GetValueForProperty("CertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)this).CertificateType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontDoorCertificateSourceParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CertificateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)this).CertificateType = (string) content.GetValueForProperty("CertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal)this).CertificateType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Parameters required for enabling SSL with Front Door-managed certificates - [System.ComponentModel.TypeConverter(typeof(FrontDoorCertificateSourceParametersTypeConverter))] - public partial interface IFrontDoorCertificateSourceParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.TypeConverter.cs deleted file mode 100644 index bb99efec06ee..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.TypeConverter.cs +++ /dev/null @@ -1,150 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontDoorCertificateSourceParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontDoorCertificateSourceParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontDoorCertificateSourceParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontDoorCertificateSourceParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.cs deleted file mode 100644 index bba5797af228..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.cs +++ /dev/null @@ -1,62 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Parameters required for enabling SSL with Front Door-managed certificates - public partial class FrontDoorCertificateSourceParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParametersInternal - { - - /// Backing field for property. - private string _certificateType; - - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CertificateType { get => this._certificateType; set => this._certificateType = value; } - - /// Creates an new instance. - public FrontDoorCertificateSourceParameters() - { - - } - } - /// Parameters required for enabling SSL with Front Door-managed certificates - public partial interface IFrontDoorCertificateSourceParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", - SerializedName = @"certificateType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - string CertificateType { get; set; } - - } - /// Parameters required for enabling SSL with Front Door-managed certificates - internal partial interface IFrontDoorCertificateSourceParametersInternal - - { - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - string CertificateType { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.json.cs deleted file mode 100644 index 8c8f41294ac0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorCertificateSourceParameters.json.cs +++ /dev/null @@ -1,109 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Parameters required for enabling SSL with Front Door-managed certificates - public partial class FrontDoorCertificateSourceParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorCertificateSourceParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontDoorCertificateSourceParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_certificateType = If( json?.PropertyT("certificateType"), out var __jsonCertificateType) ? (string)__jsonCertificateType : (string)_certificateType;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._certificateType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._certificateType.ToString()) : null, "certificateType" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.PowerShell.cs deleted file mode 100644 index cafc51312c11..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.PowerShell.cs +++ /dev/null @@ -1,210 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(FrontDoorIdentityTypeConverter))] - public partial class FrontDoorIdentity - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontDoorIdentity(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontDoorIdentity(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontDoorIdentity(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("ResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("PolicyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).PolicyName, global::System.Convert.ToString); - } - if (content.Contains("FrontDoorName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontDoorName = (string) content.GetValueForProperty("FrontDoorName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontDoorName, global::System.Convert.ToString); - } - if (content.Contains("FrontendEndpointName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontendEndpointName = (string) content.GetValueForProperty("FrontendEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontendEndpointName, global::System.Convert.ToString); - } - if (content.Contains("RulesEngineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).RulesEngineName = (string) content.GetValueForProperty("RulesEngineName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).RulesEngineName, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontDoorIdentity(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("ResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("PolicyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).PolicyName, global::System.Convert.ToString); - } - if (content.Contains("FrontDoorName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontDoorName = (string) content.GetValueForProperty("FrontDoorName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontDoorName, global::System.Convert.ToString); - } - if (content.Contains("FrontendEndpointName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontendEndpointName = (string) content.GetValueForProperty("FrontendEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).FrontendEndpointName, global::System.Convert.ToString); - } - if (content.Contains("RulesEngineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).RulesEngineName = (string) content.GetValueForProperty("RulesEngineName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).RulesEngineName, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - [System.ComponentModel.TypeConverter(typeof(FrontDoorIdentityTypeConverter))] - public partial interface IFrontDoorIdentity - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.TypeConverter.cs deleted file mode 100644 index 257453404c85..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.TypeConverter.cs +++ /dev/null @@ -1,157 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontDoorIdentityTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - // we allow string conversion too. - if (type == typeof(global::System.String)) - { - return true; - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - // support direct string to id type conversion. - if (type == typeof(global::System.String)) - { - return new FrontDoorIdentity { Id = sourceValue }; - } - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontDoorIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontDoorIdentity.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontDoorIdentity.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.cs deleted file mode 100644 index 3eab4a9d0df7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class FrontDoorIdentity : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentityInternal - { - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// Backing field for property. - private string _id; - - /// Resource identity path - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Backing field for property. - private string _policyName; - - /// The name of the Web Application Firewall Policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string PolicyName { get => this._policyName; set => this._policyName = value; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _rulesEngineName; - - /// Name of the Rules Engine which is unique within the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RulesEngineName { get => this._rulesEngineName; set => this._rulesEngineName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Creates an new instance. - public FrontDoorIdentity() - { - - } - } - public partial interface IFrontDoorIdentity : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Name of the Front Door which is globally unique. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - string FrontDoorName { get; set; } - /// Name of the Frontend endpoint which is unique within the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - string FrontendEndpointName { get; set; } - /// Resource identity path - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource identity path", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - /// The name of the Web Application Firewall Policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - string PolicyName { get; set; } - /// Name of the Resource group within the Azure subscription. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - string ResourceGroupName { get; set; } - /// Name of the Rules Engine which is unique within the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - string RulesEngineName { get; set; } - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - string SubscriptionId { get; set; } - - } - internal partial interface IFrontDoorIdentityInternal - - { - /// Name of the Front Door which is globally unique. - string FrontDoorName { get; set; } - /// Name of the Frontend endpoint which is unique within the Front Door. - string FrontendEndpointName { get; set; } - /// Resource identity path - string Id { get; set; } - /// The name of the Web Application Firewall Policy. - string PolicyName { get; set; } - /// Name of the Resource group within the Azure subscription. - string ResourceGroupName { get; set; } - /// Name of the Rules Engine which is unique within the Front Door. - string RulesEngineName { get; set; } - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - string SubscriptionId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.json.cs deleted file mode 100644 index b10157fa445a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorIdentity.json.cs +++ /dev/null @@ -1,119 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class FrontDoorIdentity - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorIdentity(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontDoorIdentity(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;} - {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;} - {_policyName = If( json?.PropertyT("policyName"), out var __jsonPolicyName) ? (string)__jsonPolicyName : (string)_policyName;} - {_frontDoorName = If( json?.PropertyT("frontDoorName"), out var __jsonFrontDoorName) ? (string)__jsonFrontDoorName : (string)_frontDoorName;} - {_frontendEndpointName = If( json?.PropertyT("frontendEndpointName"), out var __jsonFrontendEndpointName) ? (string)__jsonFrontendEndpointName : (string)_frontendEndpointName;} - {_rulesEngineName = If( json?.PropertyT("rulesEngineName"), out var __jsonRulesEngineName) ? (string)__jsonRulesEngineName : (string)_rulesEngineName;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); - AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); - AddIf( null != (((object)this._policyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._policyName.ToString()) : null, "policyName" ,container.Add ); - AddIf( null != (((object)this._frontDoorName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._frontDoorName.ToString()) : null, "frontDoorName" ,container.Add ); - AddIf( null != (((object)this._frontendEndpointName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._frontendEndpointName.ToString()) : null, "frontendEndpointName" ,container.Add ); - AddIf( null != (((object)this._rulesEngineName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._rulesEngineName.ToString()) : null, "rulesEngineName" ,container.Add ); - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.PowerShell.cs deleted file mode 100644 index 507dd72af721..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set - /// of results. - /// - [System.ComponentModel.TypeConverter(typeof(FrontDoorListResultTypeConverter))] - public partial class FrontDoorListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontDoorListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontDoorListResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontDoorListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontDoorListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set - /// of results. - [System.ComponentModel.TypeConverter(typeof(FrontDoorListResultTypeConverter))] - public partial interface IFrontDoorListResult - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.TypeConverter.cs deleted file mode 100644 index 26346d6c3259..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontDoorListResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontDoorListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontDoorListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontDoorListResult.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.cs deleted file mode 100644 index fe281e33669b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set - /// of results. - /// - public partial class FrontDoorListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of Front Door objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of Front Doors within a resource group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public FrontDoorListResult() - { - - } - } - /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set - /// of results. - public partial interface IFrontDoorListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// URL to get the next set of Front Door objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to get the next set of Front Door objects if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of Front Doors within a resource group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of Front Doors within a resource group.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor) })] - System.Collections.Generic.List Value { get; } - - } - /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set - /// of results. - internal partial interface IFrontDoorListResultInternal - - { - /// URL to get the next set of Front Door objects if there are any. - string NextLink { get; set; } - /// List of Front Doors within a resource group. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.json.cs deleted file mode 100644 index 6e2804190ccf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorListResult.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set - /// of results. - /// - public partial class FrontDoorListResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontDoorListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.PowerShell.cs deleted file mode 100644 index 7bc39f3ff111..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.PowerShell.cs +++ /dev/null @@ -1,268 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// The JSON object that contains the properties required to create an endpoint. - [System.ComponentModel.TypeConverter(typeof(FrontDoorPropertiesTypeConverter))] - public partial class FrontDoorProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontDoorProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontDoorProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontDoorProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Cname")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).Cname = (string) content.GetValueForProperty("Cname",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).Cname, global::System.Convert.ToString); - } - if (content.Contains("FrontdoorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).FrontdoorId = (string) content.GetValueForProperty("FrontdoorId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).FrontdoorId, global::System.Convert.ToString); - } - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).RulesEngine = (System.Collections.Generic.List) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).RulesEngine, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); - } - if (content.Contains("ExtendedProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ExtendedProperty = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) content.GetValueForProperty("ExtendedProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ExtendedProperty, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RoutingRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPool")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPoolsSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontDoorProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Cname")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).Cname = (string) content.GetValueForProperty("Cname",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).Cname, global::System.Convert.ToString); - } - if (content.Contains("FrontdoorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).FrontdoorId = (string) content.GetValueForProperty("FrontdoorId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).FrontdoorId, global::System.Convert.ToString); - } - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).RulesEngine = (System.Collections.Generic.List) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).RulesEngine, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); - } - if (content.Contains("ExtendedProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ExtendedProperty = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) content.GetValueForProperty("ExtendedProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal)this).ExtendedProperty, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RoutingRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPool")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPoolsSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The JSON object that contains the properties required to create an endpoint. - [System.ComponentModel.TypeConverter(typeof(FrontDoorPropertiesTypeConverter))] - public partial interface IFrontDoorProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.TypeConverter.cs deleted file mode 100644 index 99a0bf120c41..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontDoorPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontDoorProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontDoorProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontDoorProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.cs deleted file mode 100644 index dd1acf72c8f9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.cs +++ /dev/null @@ -1,227 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The JSON object that contains the properties required to create an endpoint. - public partial class FrontDoorProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters __frontDoorUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorUpdateParameters(); - - /// Backend pools available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List BackendPool { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).BackendPool; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).BackendPool = value ?? null /* arrayOf */; } - - /// Settings for all backendPools - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).BackendPoolsSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).BackendPoolsSetting = value ?? null /* model class */; } - - /// Backing field for property. - private string _cname; - - /// The host that each frontendEndpoint must CNAME to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Cname { get => this._cname; } - - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).EnabledState = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties _extendedProperty; - - /// Key-Value pair representing additional properties for frontdoor. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get => (this._extendedProperty = this._extendedProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties()); } - - /// A friendly name for the frontDoor - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).FriendlyName = value ?? null; } - - /// Backing field for property. - private string _frontdoorId; - - /// The Id of the frontdoor. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string FrontdoorId { get => this._frontdoorId; } - - /// Frontend endpoints available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List FrontendEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).FrontendEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).FrontendEndpoint = value ?? null /* arrayOf */; } - - /// Health probe settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List HealthProbeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).HealthProbeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).HealthProbeSetting = value ?? null /* arrayOf */; } - - /// Load balancing settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List LoadBalancingSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).LoadBalancingSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).LoadBalancingSetting = value ?? null /* arrayOf */; } - - /// Internal Acessors for Cname - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.Cname { get => this._cname; set { {_cname = value;} } } - - /// Internal Acessors for ExtendedProperty - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.ExtendedProperty { get => (this._extendedProperty = this._extendedProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties()); set { {_extendedProperty = value;} } } - - /// Internal Acessors for FrontdoorId - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.FrontdoorId { get => this._frontdoorId; set { {_frontdoorId = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } - - /// Internal Acessors for RulesEngine - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesInternal.RulesEngine { get => this._rulesEngine; set { {_rulesEngine = value;} } } - - /// Backing field for property. - private string _provisioningState; - - /// Provisioning state of the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private string _resourceState; - - /// Resource status of the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceState { get => this._resourceState; } - - /// Routing rules associated with this Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List RoutingRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).RoutingRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)__frontDoorUpdateParameters).RoutingRule = value ?? null /* arrayOf */; } - - /// Backing field for property. - private System.Collections.Generic.List _rulesEngine; - - /// Rules Engine Configurations available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List RulesEngine { get => this._rulesEngine; } - - /// Creates an new instance. - public FrontDoorProperties() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__frontDoorUpdateParameters), __frontDoorUpdateParameters); - await eventListener.AssertObjectIsValid(nameof(__frontDoorUpdateParameters), __frontDoorUpdateParameters); - } - } - /// The JSON object that contains the properties required to create an endpoint. - public partial interface IFrontDoorProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters - { - /// The host that each frontendEndpoint must CNAME to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The host that each frontendEndpoint must CNAME to.", - SerializedName = @"cname", - PossibleTypes = new [] { typeof(string) })] - string Cname { get; } - /// Key-Value pair representing additional properties for frontdoor. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Key-Value pair representing additional properties for frontdoor.", - SerializedName = @"extendedProperties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get; } - /// The Id of the frontdoor. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The Id of the frontdoor.", - SerializedName = @"frontdoorId", - PossibleTypes = new [] { typeof(string) })] - string FrontdoorId { get; } - /// Provisioning state of the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning state of the Front Door.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// Resource status of the Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status of the Front Door.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// Rules Engine Configurations available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Rules Engine Configurations available to routing rules.", - SerializedName = @"rulesEngines", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) })] - System.Collections.Generic.List RulesEngine { get; } - - } - /// The JSON object that contains the properties required to create an endpoint. - internal partial interface IFrontDoorPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal - { - /// The host that each frontendEndpoint must CNAME to. - string Cname { get; set; } - /// Key-Value pair representing additional properties for frontdoor. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ExtendedProperty { get; set; } - /// The Id of the frontdoor. - string FrontdoorId { get; set; } - /// Provisioning state of the Front Door. - string ProvisioningState { get; set; } - /// Resource status of the Front Door. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// Rules Engine Configurations available to routing rules. - System.Collections.Generic.List RulesEngine { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.json.cs deleted file mode 100644 index 9eee9048617b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorProperties.json.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The JSON object that contains the properties required to create an endpoint. - public partial class FrontDoorProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontDoorProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __frontDoorUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorUpdateParameters(json); - {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} - {_cname = If( json?.PropertyT("cname"), out var __jsonCname) ? (string)__jsonCname : (string)_cname;} - {_frontdoorId = If( json?.PropertyT("frontdoorId"), out var __jsonFrontdoorId) ? (string)__jsonFrontdoorId : (string)_frontdoorId;} - {_rulesEngine = If( json?.PropertyT("rulesEngines"), out var __jsonRulesEngines) ? If( __jsonRulesEngines as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(__u) )) ))() : null : _rulesEngine;} - {_extendedProperty = If( json?.PropertyT("extendedProperties"), out var __jsonExtendedProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties.FromJson(__jsonExtendedProperties) : _extendedProperty;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __frontDoorUpdateParameters?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._cname)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._cname.ToString()) : null, "cname" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._frontdoorId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._frontdoorId.ToString()) : null, "frontdoorId" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._rulesEngine) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._rulesEngine ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("rulesEngines",__w); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != this._extendedProperty ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._extendedProperty.ToJson(null,serializationMode) : null, "extendedProperties" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.PowerShell.cs deleted file mode 100644 index cdc4144a91c5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.PowerShell.cs +++ /dev/null @@ -1,165 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Key-Value pair representing additional properties for frontdoor. - [System.ComponentModel.TypeConverter(typeof(FrontDoorPropertiesExtendedPropertiesTypeConverter))] - public partial class FrontDoorPropertiesExtendedProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontDoorPropertiesExtendedProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontDoorPropertiesExtendedProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontDoorPropertiesExtendedProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontDoorPropertiesExtendedProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Key-Value pair representing additional properties for frontdoor. - [System.ComponentModel.TypeConverter(typeof(FrontDoorPropertiesExtendedPropertiesTypeConverter))] - public partial interface IFrontDoorPropertiesExtendedProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.TypeConverter.cs deleted file mode 100644 index df41c652515f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.TypeConverter.cs +++ /dev/null @@ -1,150 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontDoorPropertiesExtendedPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontDoorPropertiesExtendedProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontDoorPropertiesExtendedProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontDoorPropertiesExtendedProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.cs deleted file mode 100644 index 1827b54970f6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.cs +++ /dev/null @@ -1,35 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Key-Value pair representing additional properties for frontdoor. - public partial class FrontDoorPropertiesExtendedProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedPropertiesInternal - { - - /// Creates an new instance. - public FrontDoorPropertiesExtendedProperties() - { - - } - } - /// Key-Value pair representing additional properties for frontdoor. - public partial interface IFrontDoorPropertiesExtendedProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray - { - - } - /// Key-Value pair representing additional properties for frontdoor. - internal partial interface IFrontDoorPropertiesExtendedPropertiesInternal - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.dictionary.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.dictionary.cs deleted file mode 100644 index 4ecb2bf5f463..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.dictionary.cs +++ /dev/null @@ -1,75 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class FrontDoorPropertiesExtendedProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorPropertiesExtendedProperties source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.json.cs deleted file mode 100644 index 22018b1d13d0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorPropertiesExtendedProperties.json.cs +++ /dev/null @@ -1,110 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Key-Value pair representing additional properties for frontdoor. - public partial class FrontDoorPropertiesExtendedProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorPropertiesExtendedProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorPropertiesExtendedProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - /// - internal FrontDoorPropertiesExtendedProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, container); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.PowerShell.cs deleted file mode 100644 index 96a595fe4ffd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.PowerShell.cs +++ /dev/null @@ -1,220 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// The properties needed to update a Front Door - [System.ComponentModel.TypeConverter(typeof(FrontDoorUpdateParametersTypeConverter))] - public partial class FrontDoorUpdateParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontDoorUpdateParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontDoorUpdateParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontDoorUpdateParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RoutingRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPool")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPoolsSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontDoorUpdateParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RoutingRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).RoutingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("LoadBalancingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting = (System.Collections.Generic.List) content.GetValueForProperty("LoadBalancingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).LoadBalancingSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("HealthProbeSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting = (System.Collections.Generic.List) content.GetValueForProperty("HealthProbeSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).HealthProbeSetting, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPool")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool = (System.Collections.Generic.List) content.GetValueForProperty("BackendPool",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPool, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolTypeConverter.ConvertFrom)); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("BackendPoolsSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) content.GetValueForProperty("BackendPoolsSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).BackendPoolsSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The properties needed to update a Front Door - [System.ComponentModel.TypeConverter(typeof(FrontDoorUpdateParametersTypeConverter))] - public partial interface IFrontDoorUpdateParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.TypeConverter.cs deleted file mode 100644 index 4d1ced16b3a2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontDoorUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontDoorUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontDoorUpdateParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontDoorUpdateParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.cs deleted file mode 100644 index 7f1eb3ba49bc..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.cs +++ /dev/null @@ -1,202 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The properties needed to update a Front Door - public partial class FrontDoorUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParametersInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _backendPool; - - /// Backend pools available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List BackendPool { get => this._backendPool; set => this._backendPool = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings _backendPoolsSetting; - - /// Settings for all backendPools - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => (this._backendPoolsSetting = this._backendPoolsSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings()); set => this._backendPoolsSetting = value; } - - /// Backing field for property. - private string _enabledState; - - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string EnabledState { get => this._enabledState; set => this._enabledState = value; } - - /// Backing field for property. - private string _friendlyName; - - /// A friendly name for the frontDoor - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } - - /// Backing field for property. - private System.Collections.Generic.List _frontendEndpoint; - - /// Frontend endpoints available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List FrontendEndpoint { get => this._frontendEndpoint; set => this._frontendEndpoint = value; } - - /// Backing field for property. - private System.Collections.Generic.List _healthProbeSetting; - - /// Health probe settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List HealthProbeSetting { get => this._healthProbeSetting; set => this._healthProbeSetting = value; } - - /// Backing field for property. - private System.Collections.Generic.List _loadBalancingSetting; - - /// Load balancing settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List LoadBalancingSetting { get => this._loadBalancingSetting; set => this._loadBalancingSetting = value; } - - /// Backing field for property. - private System.Collections.Generic.List _routingRule; - - /// Routing rules associated with this Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List RoutingRule { get => this._routingRule; set => this._routingRule = value; } - - /// Creates an new instance. - public FrontDoorUpdateParameters() - { - - } - } - /// The properties needed to update a Front Door - public partial interface IFrontDoorUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Backend pools available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Backend pools available to routing rules.", - SerializedName = @"backendPools", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] - System.Collections.Generic.List BackendPool { get; set; } - /// Settings for all backendPools - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Settings for all backendPools", - SerializedName = @"backendPoolsSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get; set; } - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// A friendly name for the frontDoor - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A friendly name for the frontDoor", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// Frontend endpoints available to routing rules. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Frontend endpoints available to routing rules.", - SerializedName = @"frontendEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] - System.Collections.Generic.List FrontendEndpoint { get; set; } - /// Health probe settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Health probe settings associated with this Front Door instance.", - SerializedName = @"healthProbeSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] - System.Collections.Generic.List HealthProbeSetting { get; set; } - /// Load balancing settings associated with this Front Door instance. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Load balancing settings associated with this Front Door instance.", - SerializedName = @"loadBalancingSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] - System.Collections.Generic.List LoadBalancingSetting { get; set; } - /// Routing rules associated with this Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Routing rules associated with this Front Door.", - SerializedName = @"routingRules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] - System.Collections.Generic.List RoutingRule { get; set; } - - } - /// The properties needed to update a Front Door - internal partial interface IFrontDoorUpdateParametersInternal - - { - /// Backend pools available to routing rules. - System.Collections.Generic.List BackendPool { get; set; } - /// Settings for all backendPools - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get; set; } - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// A friendly name for the frontDoor - string FriendlyName { get; set; } - /// Frontend endpoints available to routing rules. - System.Collections.Generic.List FrontendEndpoint { get; set; } - /// Health probe settings associated with this Front Door instance. - System.Collections.Generic.List HealthProbeSetting { get; set; } - /// Load balancing settings associated with this Front Door instance. - System.Collections.Generic.List LoadBalancingSetting { get; set; } - /// Routing rules associated with this Front Door. - System.Collections.Generic.List RoutingRule { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.json.cs deleted file mode 100644 index 081efeb83598..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontDoorUpdateParameters.json.cs +++ /dev/null @@ -1,162 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The properties needed to update a Front Door - public partial class FrontDoorUpdateParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontDoorUpdateParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontDoorUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)_friendlyName;} - {_routingRule = If( json?.PropertyT("routingRules"), out var __jsonRoutingRules) ? If( __jsonRoutingRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule.FromJson(__u) )) ))() : null : _routingRule;} - {_loadBalancingSetting = If( json?.PropertyT("loadBalancingSettings"), out var __jsonLoadBalancingSettings) ? If( __jsonLoadBalancingSettings as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel.FromJson(__p) )) ))() : null : _loadBalancingSetting;} - {_healthProbeSetting = If( json?.PropertyT("healthProbeSettings"), out var __jsonHealthProbeSettings) ? If( __jsonHealthProbeSettings as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel.FromJson(__k) )) ))() : null : _healthProbeSetting;} - {_backendPool = If( json?.PropertyT("backendPools"), out var __jsonBackendPools) ? If( __jsonBackendPools as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPool.FromJson(__f) )) ))() : null : _backendPool;} - {_frontendEndpoint = If( json?.PropertyT("frontendEndpoints"), out var __jsonFrontendEndpoints) ? If( __jsonFrontendEndpoints as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __b) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint.FromJson(__a) )) ))() : null : _frontendEndpoint;} - {_backendPoolsSetting = If( json?.PropertyT("backendPoolsSettings"), out var __jsonBackendPoolsSettings) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings.FromJson(__jsonBackendPoolsSettings) : _backendPoolsSetting;} - {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._friendlyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._friendlyName.ToString()) : null, "friendlyName" ,container.Add ); - if (null != this._routingRule) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._routingRule ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("routingRules",__w); - } - if (null != this._loadBalancingSetting) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._loadBalancingSetting ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("loadBalancingSettings",__r); - } - if (null != this._healthProbeSetting) - { - var __m = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __n in this._healthProbeSetting ) - { - AddIf(__n?.ToJson(null, serializationMode) ,__m.Add); - } - container.Add("healthProbeSettings",__m); - } - if (null != this._backendPool) - { - var __h = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __i in this._backendPool ) - { - AddIf(__i?.ToJson(null, serializationMode) ,__h.Add); - } - container.Add("backendPools",__h); - } - if (null != this._frontendEndpoint) - { - var __c = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __d in this._frontendEndpoint ) - { - AddIf(__d?.ToJson(null, serializationMode) ,__c.Add); - } - container.Add("frontendEndpoints",__c); - } - AddIf( null != this._backendPoolsSetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._backendPoolsSetting.ToJson(null,serializationMode) : null, "backendPoolsSettings" ,container.Add ); - AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.PowerShell.cs deleted file mode 100644 index 25e5d3d297df..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.PowerShell.cs +++ /dev/null @@ -1,340 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// A frontend endpoint used for routing. - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointTypeConverter))] - public partial class FrontendEndpoint - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontendEndpoint(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontendEndpoint(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontendEndpoint(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).HostName, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityEnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityTtlInSeconds")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityTtlInSeconds = (int?) content.GetValueForProperty("SessionAffinityTtlInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityTtlInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CustomHttpsConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) content.GetValueForProperty("CustomHttpsConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningState = (string) content.GetValueForProperty("CustomHttpsProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsProvisioningSubstate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningSubstate = (string) content.GetValueForProperty("CustomHttpsProvisioningSubstate",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningSubstate, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsConfigurationKeyVaultCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationKeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CustomHttpsConfigurationFrontDoorCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationFrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CertificateSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateSource = (string) content.GetValueForProperty("CertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateSource, global::System.Convert.ToString); - } - if (content.Contains("ProtocolType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ProtocolType = (string) content.GetValueForProperty("ProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ProtocolType, global::System.Convert.ToString); - } - if (content.Contains("MinimumTlsVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterVault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); - } - if (content.Contains("SecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretName = (string) content.GetValueForProperty("SecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretName, global::System.Convert.ToString); - } - if (content.Contains("SecretVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretVersion = (string) content.GetValueForProperty("SecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretVersion, global::System.Convert.ToString); - } - if (content.Contains("Vault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Vault = (string) content.GetValueForProperty("Vault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Vault, global::System.Convert.ToString); - } - if (content.Contains("CertificateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateType = (string) content.GetValueForProperty("CertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontendEndpoint(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).HostName, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityEnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityTtlInSeconds")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityTtlInSeconds = (int?) content.GetValueForProperty("SessionAffinityTtlInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SessionAffinityTtlInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CustomHttpsConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) content.GetValueForProperty("CustomHttpsConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningState = (string) content.GetValueForProperty("CustomHttpsProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsProvisioningSubstate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningSubstate = (string) content.GetValueForProperty("CustomHttpsProvisioningSubstate",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsProvisioningSubstate, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsConfigurationKeyVaultCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationKeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CustomHttpsConfigurationFrontDoorCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationFrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CertificateSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateSource = (string) content.GetValueForProperty("CertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateSource, global::System.Convert.ToString); - } - if (content.Contains("ProtocolType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ProtocolType = (string) content.GetValueForProperty("ProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).ProtocolType, global::System.Convert.ToString); - } - if (content.Contains("MinimumTlsVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterVault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); - } - if (content.Contains("SecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretName = (string) content.GetValueForProperty("SecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretName, global::System.Convert.ToString); - } - if (content.Contains("SecretVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretVersion = (string) content.GetValueForProperty("SecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).SecretVersion, global::System.Convert.ToString); - } - if (content.Contains("Vault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Vault = (string) content.GetValueForProperty("Vault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).Vault, global::System.Convert.ToString); - } - if (content.Contains("CertificateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateType = (string) content.GetValueForProperty("CertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal)this).CertificateType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// A frontend endpoint used for routing. - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointTypeConverter))] - public partial interface IFrontendEndpoint - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.TypeConverter.cs deleted file mode 100644 index 3577f2f19829..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontendEndpointTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontendEndpoint.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontendEndpoint.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontendEndpoint.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.cs deleted file mode 100644 index b5c3e3b280f0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.cs +++ /dev/null @@ -1,440 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// A frontend endpoint used for routing. - public partial class FrontendEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); - - /// Defines the source of the SSL certificate - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string CertificateSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationCertificateSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationCertificateSource = value ?? null; } - - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string CertificateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).FrontDoorCertificateSourceParameterCertificateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).FrontDoorCertificateSourceParameterCertificateType = value ?? null; } - - /// Provisioning status of Custom Https of the frontendEndpoint. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string CustomHttpsProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningState; } - - /// - /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string CustomHttpsProvisioningSubstate { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningSubstate; } - - /// The host name of the frontendEndpoint. Must be a domain name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).HostName = value ?? null; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } - - /// Internal Acessors for CustomHttpsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfiguration = value ?? null /* model class */; } - - /// - /// Internal Acessors for CustomHttpsConfigurationFrontDoorCertificateSourceParameter - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsConfigurationFrontDoorCertificateSourceParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationFrontDoorCertificateSourceParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = value ?? null /* model class */; } - - /// - /// Internal Acessors for CustomHttpsConfigurationKeyVaultCertificateSourceParameter - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsConfigurationKeyVaultCertificateSourceParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationKeyVaultCertificateSourceParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = value ?? null /* model class */; } - - /// Internal Acessors for CustomHttpsProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningState = value ?? null; } - - /// Internal Acessors for CustomHttpsProvisioningSubstate - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.CustomHttpsProvisioningSubstate { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningSubstate; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsProvisioningSubstate = value ?? null; } - - /// Internal Acessors for KeyVaultCertificateSourceParameterVault - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.KeyVaultCertificateSourceParameterVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterVault = value ?? null /* model class */; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProtocolType - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.ProtocolType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationProtocolType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationProtocolType = value ?? null; } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).ResourceState = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.Type { get => this._type; set { {_type = value;} } } - - /// Internal Acessors for WebApplicationFirewallPolicyLink - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointInternal.WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } - - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string MinimumTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationMinimumTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationMinimumTlsVersion = value ?? null; } - - /// Backing field for property. - private string _name; - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties _property; - - /// Properties of the Frontend endpoint - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties()); set => this._property = value; } - - /// Defines the TLS extension protocol that is used for secure delivery - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ProtocolType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).CustomHttpsConfigurationProtocolType; } - - /// Gets the resource group name - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).ResourceState; } - - /// The name of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string SecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterSecretName = value ?? null; } - - /// The version of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string SecretVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterSecretVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).KeyVaultCertificateSourceParameterSecretVersion = value ?? null; } - - /// - /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string SessionAffinityEnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).SessionAffinityEnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).SessionAffinityEnabledState = value ?? null; } - - /// - /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public int? SessionAffinityTtlInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).SessionAffinityTtlSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).SessionAffinityTtlSecond = value ?? default(int); } - - /// Backing field for property. - private string _type; - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Vault { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).VaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)Property).VaultId = value ?? null; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).WebApplicationFirewallPolicyLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)Property).WebApplicationFirewallPolicyLinkId = value ?? null; } - - /// Creates an new instance. - public FrontendEndpoint() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__subResource), __subResource); - await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); - } - } - /// A frontend endpoint used for routing. - public partial interface IFrontendEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource - { - /// Defines the source of the SSL certificate - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the source of the SSL certificate", - SerializedName = @"certificateSource", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - string CertificateSource { get; set; } - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", - SerializedName = @"certificateType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - string CertificateType { get; set; } - /// Provisioning status of Custom Https of the frontendEndpoint. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning status of Custom Https of the frontendEndpoint.", - SerializedName = @"customHttpsProvisioningState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabling", "Enabled", "Disabling", "Disabled", "Failed")] - string CustomHttpsProvisioningState { get; } - /// - /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.", - SerializedName = @"customHttpsProvisioningSubstate", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", "CertificateDeployed", "DeletingCertificate", "CertificateDeleted")] - string CustomHttpsProvisioningSubstate { get; } - /// The host name of the frontendEndpoint. Must be a domain name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The host name of the frontendEndpoint. Must be a domain name.", - SerializedName = @"hostName", - PossibleTypes = new [] { typeof(string) })] - string HostName { get; set; } - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", - SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - string MinimumTlsVersion { get; set; } - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// Defines the TLS extension protocol that is used for secure delivery - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = true, - Update = true, - Description = @"Defines the TLS extension protocol that is used for secure delivery", - SerializedName = @"protocolType", - PossibleTypes = new [] { typeof(string) })] - string ProtocolType { get; } - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// The name of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretName", - PossibleTypes = new [] { typeof(string) })] - string SecretName { get; set; } - /// The version of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The version of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretVersion", - PossibleTypes = new [] { typeof(string) })] - string SecretVersion { get; set; } - /// - /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'", - SerializedName = @"sessionAffinityEnabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string SessionAffinityEnabledState { get; set; } - /// - /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.", - SerializedName = @"sessionAffinityTtlSeconds", - PossibleTypes = new [] { typeof(int) })] - int? SessionAffinityTtlInSeconds { get; set; } - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Vault { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string WebApplicationFirewallPolicyLinkId { get; set; } - - } - /// A frontend endpoint used for routing. - internal partial interface IFrontendEndpointInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal - { - /// Defines the source of the SSL certificate - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - string CertificateSource { get; set; } - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - string CertificateType { get; set; } - /// The configuration specifying how to enable HTTPS - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get; set; } - /// - /// Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters CustomHttpsConfigurationFrontDoorCertificateSourceParameter { get; set; } - /// KeyVault certificate source parameters (if certificateSource=AzureKeyVault) - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters CustomHttpsConfigurationKeyVaultCertificateSourceParameter { get; set; } - /// Provisioning status of Custom Https of the frontendEndpoint. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabling", "Enabled", "Disabling", "Disabled", "Failed")] - string CustomHttpsProvisioningState { get; set; } - /// - /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", "CertificateDeployed", "DeletingCertificate", "CertificateDeleted")] - string CustomHttpsProvisioningSubstate { get; set; } - /// The host name of the frontendEndpoint. Must be a domain name. - string HostName { get; set; } - /// The Key Vault containing the SSL certificate - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault KeyVaultCertificateSourceParameterVault { get; set; } - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - string MinimumTlsVersion { get; set; } - /// Resource name. - string Name { get; set; } - /// Properties of the Frontend endpoint - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties Property { get; set; } - /// Defines the TLS extension protocol that is used for secure delivery - string ProtocolType { get; set; } - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// The name of the Key Vault secret representing the full certificate PFX - string SecretName { get; set; } - /// The version of the Key Vault secret representing the full certificate PFX - string SecretVersion { get; set; } - /// - /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string SessionAffinityEnabledState { get; set; } - /// - /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - /// - int? SessionAffinityTtlInSeconds { get; set; } - /// Resource type. - string Type { get; set; } - /// Resource ID. - string Vault { get; set; } - /// Defines the Web Application Firewall policy for each host (if applicable) - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get; set; } - /// Resource ID. - string WebApplicationFirewallPolicyLinkId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.json.cs deleted file mode 100644 index 21c037a14d5b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpoint.json.cs +++ /dev/null @@ -1,117 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// A frontend endpoint used for routing. - public partial class FrontendEndpoint - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpoint(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontendEndpoint(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointProperties.FromJson(__jsonProperties) : _property;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __subResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.PowerShell.cs deleted file mode 100644 index 16edc6a3f461..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines the Resource ID for a Frontend Endpoint. - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointLinkTypeConverter))] - public partial class FrontendEndpointLink - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontendEndpointLink(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontendEndpointLink(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontendEndpointLink(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontendEndpointLink(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines the Resource ID for a Frontend Endpoint. - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointLinkTypeConverter))] - public partial interface IFrontendEndpointLink - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.TypeConverter.cs deleted file mode 100644 index b90b70f77317..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontendEndpointLinkTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontendEndpointLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontendEndpointLink.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontendEndpointLink.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.cs deleted file mode 100644 index 8934037de35a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the Resource ID for a Frontend Endpoint. - public partial class FrontendEndpointLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLinkInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Creates an new instance. - public FrontendEndpointLink() - { - - } - } - /// Defines the Resource ID for a Frontend Endpoint. - public partial interface IFrontendEndpointLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// Defines the Resource ID for a Frontend Endpoint. - internal partial interface IFrontendEndpointLinkInternal - - { - /// Resource ID. - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.json.cs deleted file mode 100644 index d23f1858d84d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointLink.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the Resource ID for a Frontend Endpoint. - public partial class FrontendEndpointLink - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointLink(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontendEndpointLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.PowerShell.cs deleted file mode 100644 index 0e9fecc0c98d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.PowerShell.cs +++ /dev/null @@ -1,310 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// The JSON object that contains the properties required to create a frontend endpoint. - /// - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointPropertiesTypeConverter))] - public partial class FrontendEndpointProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontendEndpointProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontendEndpointProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontendEndpointProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomHttpsConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) content.GetValueForProperty("CustomHttpsConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningState = (string) content.GetValueForProperty("CustomHttpsProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsProvisioningSubstate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningSubstate = (string) content.GetValueForProperty("CustomHttpsProvisioningSubstate",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningSubstate, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityEnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityTtlSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond = (int?) content.GetValueForProperty("SessionAffinityTtlSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CustomHttpsConfigurationKeyVaultCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationKeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CustomHttpsConfigurationFrontDoorCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationFrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CustomHttpsConfigurationCertificateSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationCertificateSource = (string) content.GetValueForProperty("CustomHttpsConfigurationCertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationCertificateSource, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsConfigurationProtocolType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationProtocolType = (string) content.GetValueForProperty("CustomHttpsConfigurationProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationProtocolType, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsConfigurationMinimumTlsVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationMinimumTlsVersion = (string) content.GetValueForProperty("CustomHttpsConfigurationMinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationMinimumTlsVersion, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterVault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); - } - if (content.Contains("KeyVaultCertificateSourceParameterSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretName = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretName, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterSecretVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretVersion = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretVersion, global::System.Convert.ToString); - } - if (content.Contains("VaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).VaultId, global::System.Convert.ToString); - } - if (content.Contains("FrontDoorCertificateSourceParameterCertificateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).FrontDoorCertificateSourceParameterCertificateType = (string) content.GetValueForProperty("FrontDoorCertificateSourceParameterCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).FrontDoorCertificateSourceParameterCertificateType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontendEndpointProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomHttpsConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) content.GetValueForProperty("CustomHttpsConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningState = (string) content.GetValueForProperty("CustomHttpsProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsProvisioningSubstate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningSubstate = (string) content.GetValueForProperty("CustomHttpsProvisioningSubstate",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsProvisioningSubstate, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityEnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityTtlSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond = (int?) content.GetValueForProperty("SessionAffinityTtlSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CustomHttpsConfigurationKeyVaultCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationKeyVaultCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationKeyVaultCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CustomHttpsConfigurationFrontDoorCertificateSourceParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters) content.GetValueForProperty("CustomHttpsConfigurationFrontDoorCertificateSourceParameter",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationFrontDoorCertificateSourceParameter, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoorCertificateSourceParametersTypeConverter.ConvertFrom); - } - if (content.Contains("CustomHttpsConfigurationCertificateSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationCertificateSource = (string) content.GetValueForProperty("CustomHttpsConfigurationCertificateSource",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationCertificateSource, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsConfigurationProtocolType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationProtocolType = (string) content.GetValueForProperty("CustomHttpsConfigurationProtocolType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationProtocolType, global::System.Convert.ToString); - } - if (content.Contains("CustomHttpsConfigurationMinimumTlsVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationMinimumTlsVersion = (string) content.GetValueForProperty("CustomHttpsConfigurationMinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).CustomHttpsConfigurationMinimumTlsVersion, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterVault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterVault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("KeyVaultCertificateSourceParameterVault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterVault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); - } - if (content.Contains("KeyVaultCertificateSourceParameterSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretName = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretName, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultCertificateSourceParameterSecretVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretVersion = (string) content.GetValueForProperty("KeyVaultCertificateSourceParameterSecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).KeyVaultCertificateSourceParameterSecretVersion, global::System.Convert.ToString); - } - if (content.Contains("VaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).VaultId, global::System.Convert.ToString); - } - if (content.Contains("FrontDoorCertificateSourceParameterCertificateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).FrontDoorCertificateSourceParameterCertificateType = (string) content.GetValueForProperty("FrontDoorCertificateSourceParameterCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal)this).FrontDoorCertificateSourceParameterCertificateType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The JSON object that contains the properties required to create a frontend endpoint. - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointPropertiesTypeConverter))] - public partial interface IFrontendEndpointProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.TypeConverter.cs deleted file mode 100644 index 1aa764b016c5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontendEndpointPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontendEndpointProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontendEndpointProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontendEndpointProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.cs deleted file mode 100644 index 78a7edd1f173..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.cs +++ /dev/null @@ -1,336 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The JSON object that contains the properties required to create a frontend endpoint. - /// - public partial class FrontendEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters __frontendEndpointUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParameters(); - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfiguration; - - /// The configuration specifying how to enable HTTPS - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get => (this._customHttpsConfiguration = this._customHttpsConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration()); set => this._customHttpsConfiguration = value; } - - /// Defines the source of the SSL certificate - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string CustomHttpsConfigurationCertificateSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).CertificateSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).CertificateSource = value ?? null; } - - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string CustomHttpsConfigurationMinimumTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).MinimumTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).MinimumTlsVersion = value ?? null; } - - /// Defines the TLS extension protocol that is used for secure delivery - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string CustomHttpsConfigurationProtocolType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).ProtocolType; } - - /// Backing field for property. - private string _customHttpsProvisioningState; - - /// Provisioning status of Custom Https of the frontendEndpoint. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CustomHttpsProvisioningState { get => this._customHttpsProvisioningState; } - - /// Backing field for property. - private string _customHttpsProvisioningSubstate; - - /// - /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CustomHttpsProvisioningSubstate { get => this._customHttpsProvisioningSubstate; } - - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string FrontDoorCertificateSourceParameterCertificateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).FrontDoorCertificateSourceParameterCertificateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).FrontDoorCertificateSourceParameterCertificateType = value ?? null; } - - /// The host name of the frontendEndpoint. Must be a domain name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).HostName = value ?? null; } - - /// The name of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string KeyVaultCertificateSourceParameterSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterSecretName = value ?? null; } - - /// The version of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string KeyVaultCertificateSourceParameterSecretVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterSecretVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterSecretVersion = value ?? null; } - - /// Internal Acessors for CustomHttpsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsConfiguration { get => (this._customHttpsConfiguration = this._customHttpsConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration()); set { {_customHttpsConfiguration = value;} } } - - /// - /// Internal Acessors for CustomHttpsConfigurationFrontDoorCertificateSourceParameter - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsConfigurationFrontDoorCertificateSourceParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).FrontDoorCertificateSourceParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).FrontDoorCertificateSourceParameter = value ?? null /* model class */; } - - /// - /// Internal Acessors for CustomHttpsConfigurationKeyVaultCertificateSourceParameter - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsConfigurationKeyVaultCertificateSourceParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameter = value ?? null /* model class */; } - - /// Internal Acessors for CustomHttpsConfigurationProtocolType - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsConfigurationProtocolType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).ProtocolType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).ProtocolType = value ?? null; } - - /// Internal Acessors for CustomHttpsProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsProvisioningState { get => this._customHttpsProvisioningState; set { {_customHttpsProvisioningState = value;} } } - - /// Internal Acessors for CustomHttpsProvisioningSubstate - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.CustomHttpsProvisioningSubstate { get => this._customHttpsProvisioningSubstate; set { {_customHttpsProvisioningSubstate = value;} } } - - /// Internal Acessors for KeyVaultCertificateSourceParameterVault - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.KeyVaultCertificateSourceParameterVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).KeyVaultCertificateSourceParameterVault = value ?? null /* model class */; } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } - - /// Internal Acessors for WebApplicationFirewallPolicyLink - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal.WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } - - /// Backing field for property. - private string _resourceState; - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceState { get => this._resourceState; } - - /// - /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string SessionAffinityEnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).SessionAffinityEnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).SessionAffinityEnabledState = value ?? null; } - - /// - /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public int? SessionAffinityTtlSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).SessionAffinityTtlSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).SessionAffinityTtlSecond = value ?? default(int); } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string VaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).VaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfigurationInternal)CustomHttpsConfiguration).VaultId = value ?? null; } - - /// Defines the Web Application Firewall policy for each host (if applicable) - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)__frontendEndpointUpdateParameters).WebApplicationFirewallPolicyLinkId = value ?? null; } - - /// Creates an new instance. - public FrontendEndpointProperties() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__frontendEndpointUpdateParameters), __frontendEndpointUpdateParameters); - await eventListener.AssertObjectIsValid(nameof(__frontendEndpointUpdateParameters), __frontendEndpointUpdateParameters); - } - } - /// The JSON object that contains the properties required to create a frontend endpoint. - public partial interface IFrontendEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters - { - /// Defines the source of the SSL certificate - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the source of the SSL certificate", - SerializedName = @"certificateSource", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - string CustomHttpsConfigurationCertificateSource { get; set; } - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", - SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - string CustomHttpsConfigurationMinimumTlsVersion { get; set; } - /// Defines the TLS extension protocol that is used for secure delivery - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = true, - Update = true, - Description = @"Defines the TLS extension protocol that is used for secure delivery", - SerializedName = @"protocolType", - PossibleTypes = new [] { typeof(string) })] - string CustomHttpsConfigurationProtocolType { get; } - /// Provisioning status of Custom Https of the frontendEndpoint. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning status of Custom Https of the frontendEndpoint.", - SerializedName = @"customHttpsProvisioningState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabling", "Enabled", "Disabling", "Disabled", "Failed")] - string CustomHttpsProvisioningState { get; } - /// - /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.", - SerializedName = @"customHttpsProvisioningSubstate", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", "CertificateDeployed", "DeletingCertificate", "CertificateDeleted")] - string CustomHttpsProvisioningSubstate { get; } - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", - SerializedName = @"certificateType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - string FrontDoorCertificateSourceParameterCertificateType { get; set; } - /// The name of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretName", - PossibleTypes = new [] { typeof(string) })] - string KeyVaultCertificateSourceParameterSecretName { get; set; } - /// The version of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The version of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretVersion", - PossibleTypes = new [] { typeof(string) })] - string KeyVaultCertificateSourceParameterSecretVersion { get; set; } - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string VaultId { get; set; } - - } - /// The JSON object that contains the properties required to create a frontend endpoint. - internal partial interface IFrontendEndpointPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal - { - /// The configuration specifying how to enable HTTPS - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get; set; } - /// Defines the source of the SSL certificate - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - string CustomHttpsConfigurationCertificateSource { get; set; } - /// - /// Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorCertificateSourceParameters CustomHttpsConfigurationFrontDoorCertificateSourceParameter { get; set; } - /// KeyVault certificate source parameters (if certificateSource=AzureKeyVault) - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters CustomHttpsConfigurationKeyVaultCertificateSourceParameter { get; set; } - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - string CustomHttpsConfigurationMinimumTlsVersion { get; set; } - /// Defines the TLS extension protocol that is used for secure delivery - string CustomHttpsConfigurationProtocolType { get; set; } - /// Provisioning status of Custom Https of the frontendEndpoint. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabling", "Enabled", "Disabling", "Disabled", "Failed")] - string CustomHttpsProvisioningState { get; set; } - /// - /// Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", "CertificateDeployed", "DeletingCertificate", "CertificateDeleted")] - string CustomHttpsProvisioningSubstate { get; set; } - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - string FrontDoorCertificateSourceParameterCertificateType { get; set; } - /// The name of the Key Vault secret representing the full certificate PFX - string KeyVaultCertificateSourceParameterSecretName { get; set; } - /// The version of the Key Vault secret representing the full certificate PFX - string KeyVaultCertificateSourceParameterSecretVersion { get; set; } - /// The Key Vault containing the SSL certificate - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault KeyVaultCertificateSourceParameterVault { get; set; } - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// Resource ID. - string VaultId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.json.cs deleted file mode 100644 index 22278f0b30f5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointProperties.json.cs +++ /dev/null @@ -1,127 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The JSON object that contains the properties required to create a frontend endpoint. - /// - public partial class FrontendEndpointProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontendEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __frontendEndpointUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParameters(json); - {_customHttpsConfiguration = If( json?.PropertyT("customHttpsConfiguration"), out var __jsonCustomHttpsConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration.FromJson(__jsonCustomHttpsConfiguration) : _customHttpsConfiguration;} - {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} - {_customHttpsProvisioningState = If( json?.PropertyT("customHttpsProvisioningState"), out var __jsonCustomHttpsProvisioningState) ? (string)__jsonCustomHttpsProvisioningState : (string)_customHttpsProvisioningState;} - {_customHttpsProvisioningSubstate = If( json?.PropertyT("customHttpsProvisioningSubstate"), out var __jsonCustomHttpsProvisioningSubstate) ? (string)__jsonCustomHttpsProvisioningSubstate : (string)_customHttpsProvisioningSubstate;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __frontendEndpointUpdateParameters?.ToJson(container, serializationMode); - AddIf( null != this._customHttpsConfiguration ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._customHttpsConfiguration.ToJson(null,serializationMode) : null, "customHttpsConfiguration" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._customHttpsProvisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customHttpsProvisioningState.ToString()) : null, "customHttpsProvisioningState" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._customHttpsProvisioningSubstate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customHttpsProvisioningSubstate.ToString()) : null, "customHttpsProvisioningSubstate" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.PowerShell.cs deleted file mode 100644 index 9d44a98d4ff1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.PowerShell.cs +++ /dev/null @@ -1,196 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Frontend endpoint used in routing rule - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointUpdateParametersTypeConverter))] - public partial class FrontendEndpointUpdateParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontendEndpointUpdateParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontendEndpointUpdateParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontendEndpointUpdateParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityEnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityTtlSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond = (int?) content.GetValueForProperty("SessionAffinityTtlSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontendEndpointUpdateParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).HostName, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityEnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState = (string) content.GetValueForProperty("SessionAffinityEnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityEnabledState, global::System.Convert.ToString); - } - if (content.Contains("SessionAffinityTtlSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond = (int?) content.GetValueForProperty("SessionAffinityTtlSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).SessionAffinityTtlSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Frontend endpoint used in routing rule - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointUpdateParametersTypeConverter))] - public partial interface IFrontendEndpointUpdateParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.TypeConverter.cs deleted file mode 100644 index 4d4803668724..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.TypeConverter.cs +++ /dev/null @@ -1,148 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontendEndpointUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontendEndpointUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontendEndpointUpdateParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontendEndpointUpdateParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.cs deleted file mode 100644 index ab9599bb3335..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.cs +++ /dev/null @@ -1,137 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Frontend endpoint used in routing rule - public partial class FrontendEndpointUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal - { - - /// Backing field for property. - private string _hostName; - - /// The host name of the frontendEndpoint. Must be a domain name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string HostName { get => this._hostName; set => this._hostName = value; } - - /// Internal Acessors for WebApplicationFirewallPolicyLink - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersInternal.WebApplicationFirewallPolicyLink { get => (this._webApplicationFirewallPolicyLink = this._webApplicationFirewallPolicyLink ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink()); set { {_webApplicationFirewallPolicyLink = value;} } } - - /// Backing field for property. - private string _sessionAffinityEnabledState; - - /// - /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string SessionAffinityEnabledState { get => this._sessionAffinityEnabledState; set => this._sessionAffinityEnabledState = value; } - - /// Backing field for property. - private int? _sessionAffinityTtlSecond; - - /// - /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? SessionAffinityTtlSecond { get => this._sessionAffinityTtlSecond; set => this._sessionAffinityTtlSecond = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink _webApplicationFirewallPolicyLink; - - /// Defines the Web Application Firewall policy for each host (if applicable) - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get => (this._webApplicationFirewallPolicyLink = this._webApplicationFirewallPolicyLink ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink()); set => this._webApplicationFirewallPolicyLink = value; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)WebApplicationFirewallPolicyLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)WebApplicationFirewallPolicyLink).Id = value ?? null; } - - /// Creates an new instance. - public FrontendEndpointUpdateParameters() - { - - } - } - /// Frontend endpoint used in routing rule - public partial interface IFrontendEndpointUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// The host name of the frontendEndpoint. Must be a domain name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The host name of the frontendEndpoint. Must be a domain name.", - SerializedName = @"hostName", - PossibleTypes = new [] { typeof(string) })] - string HostName { get; set; } - /// - /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'", - SerializedName = @"sessionAffinityEnabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string SessionAffinityEnabledState { get; set; } - /// - /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.", - SerializedName = @"sessionAffinityTtlSeconds", - PossibleTypes = new [] { typeof(int) })] - int? SessionAffinityTtlSecond { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string WebApplicationFirewallPolicyLinkId { get; set; } - - } - /// Frontend endpoint used in routing rule - internal partial interface IFrontendEndpointUpdateParametersInternal - - { - /// The host name of the frontendEndpoint. Must be a domain name. - string HostName { get; set; } - /// - /// Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string SessionAffinityEnabledState { get; set; } - /// - /// UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - /// - int? SessionAffinityTtlSecond { get; set; } - /// Defines the Web Application Firewall policy for each host (if applicable) - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get; set; } - /// Resource ID. - string WebApplicationFirewallPolicyLinkId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.json.cs deleted file mode 100644 index b342f66797ff..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParameters.json.cs +++ /dev/null @@ -1,114 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Frontend endpoint used in routing rule - public partial class FrontendEndpointUpdateParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointUpdateParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontendEndpointUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_webApplicationFirewallPolicyLink = If( json?.PropertyT("webApplicationFirewallPolicyLink"), out var __jsonWebApplicationFirewallPolicyLink) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.FromJson(__jsonWebApplicationFirewallPolicyLink) : _webApplicationFirewallPolicyLink;} - {_hostName = If( json?.PropertyT("hostName"), out var __jsonHostName) ? (string)__jsonHostName : (string)_hostName;} - {_sessionAffinityEnabledState = If( json?.PropertyT("sessionAffinityEnabledState"), out var __jsonSessionAffinityEnabledState) ? (string)__jsonSessionAffinityEnabledState : (string)_sessionAffinityEnabledState;} - {_sessionAffinityTtlSecond = If( json?.PropertyT("sessionAffinityTtlSeconds"), out var __jsonSessionAffinityTtlSeconds) ? (int?)__jsonSessionAffinityTtlSeconds : _sessionAffinityTtlSecond;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._webApplicationFirewallPolicyLink ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._webApplicationFirewallPolicyLink.ToJson(null,serializationMode) : null, "webApplicationFirewallPolicyLink" ,container.Add ); - AddIf( null != (((object)this._hostName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._hostName.ToString()) : null, "hostName" ,container.Add ); - AddIf( null != (((object)this._sessionAffinityEnabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._sessionAffinityEnabledState.ToString()) : null, "sessionAffinityEnabledState" ,container.Add ); - AddIf( null != this._sessionAffinityTtlSecond ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._sessionAffinityTtlSecond) : null, "sessionAffinityTtlSeconds" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs deleted file mode 100644 index 4c5dbc5e1e86..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs +++ /dev/null @@ -1,169 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines the Web Application Firewall policy for each host (if applicable) - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter))] - public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(content); - } - - /// - /// Creates a new instance of , deserializing - /// the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines the Web Application Firewall policy for each host (if applicable) - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter))] - public partial interface IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs deleted file mode 100644 index c2db3cf6ea30..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs +++ /dev/null @@ -1,153 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there - /// is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there - /// is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs deleted file mode 100644 index 377822b11b56..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.cs +++ /dev/null @@ -1,56 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the Web Application Firewall policy for each host (if applicable) - public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// - /// Creates an new instance. - /// - public FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink() - { - - } - } - /// Defines the Web Application Firewall policy for each host (if applicable) - public partial interface IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// Defines the Web Application Firewall policy for each host (if applicable) - internal partial interface IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkInternal - - { - /// Resource ID. - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.json.cs deleted file mode 100644 index b3873efbe389..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.json.cs +++ /dev/null @@ -1,111 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the Web Application Firewall policy for each host (if applicable) - public partial class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.PowerShell.cs deleted file mode 100644 index 732a24e0a27b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get - /// the next set of results. - /// - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointsListResultTypeConverter))] - public partial class FrontendEndpointsListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FrontendEndpointsListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FrontendEndpointsListResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FrontendEndpointsListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FrontendEndpointsListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get - /// the next set of results. - [System.ComponentModel.TypeConverter(typeof(FrontendEndpointsListResultTypeConverter))] - public partial interface IFrontendEndpointsListResult - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.TypeConverter.cs deleted file mode 100644 index 7714acdc67a6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FrontendEndpointsListResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FrontendEndpointsListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FrontendEndpointsListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FrontendEndpointsListResult.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.cs deleted file mode 100644 index 0d737cfe686a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get - /// the next set of results. - /// - public partial class FrontendEndpointsListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of frontend endpoints if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of Frontend endpoints within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public FrontendEndpointsListResult() - { - - } - } - /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get - /// the next set of results. - public partial interface IFrontendEndpointsListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// URL to get the next set of frontend endpoints if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to get the next set of frontend endpoints if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of Frontend endpoints within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of Frontend endpoints within a Front Door.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] - System.Collections.Generic.List Value { get; } - - } - /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get - /// the next set of results. - internal partial interface IFrontendEndpointsListResultInternal - - { - /// URL to get the next set of frontend endpoints if there are any. - string NextLink { get; set; } - /// List of Frontend endpoints within a Front Door. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.json.cs deleted file mode 100644 index 08051b8aaa5c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/FrontendEndpointsListResult.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get - /// the next set of results. - /// - public partial class FrontendEndpointsListResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new FrontendEndpointsListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal FrontendEndpointsListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpoint.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.PowerShell.cs deleted file mode 100644 index 1aaad2e5ebe5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Describes the variables available to group the rate limit requests - [System.ComponentModel.TypeConverter(typeof(GroupByVariableTypeConverter))] - public partial class GroupByVariable - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new GroupByVariable(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new GroupByVariable(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal GroupByVariable(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VariableName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal)this).VariableName = (string) content.GetValueForProperty("VariableName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal)this).VariableName, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal GroupByVariable(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VariableName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal)this).VariableName = (string) content.GetValueForProperty("VariableName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal)this).VariableName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Describes the variables available to group the rate limit requests - [System.ComponentModel.TypeConverter(typeof(GroupByVariableTypeConverter))] - public partial interface IGroupByVariable - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.TypeConverter.cs deleted file mode 100644 index fe91c9effe7e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class GroupByVariableTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return GroupByVariable.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return GroupByVariable.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return GroupByVariable.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.cs deleted file mode 100644 index f07a077ad8ab..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes the variables available to group the rate limit requests - public partial class GroupByVariable : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariableInternal - { - - /// Backing field for property. - private string _variableName; - - /// Describes the supported variable for group by - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string VariableName { get => this._variableName; set => this._variableName = value; } - - /// Creates an new instance. - public GroupByVariable() - { - - } - } - /// Describes the variables available to group the rate limit requests - public partial interface IGroupByVariable : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Describes the supported variable for group by - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes the supported variable for group by", - SerializedName = @"variableName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] - string VariableName { get; set; } - - } - /// Describes the variables available to group the rate limit requests - internal partial interface IGroupByVariableInternal - - { - /// Describes the supported variable for group by - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("SocketAddr", "GeoLocation", "None")] - string VariableName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.json.cs deleted file mode 100644 index 02a57d7d17b2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/GroupByVariable.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes the variables available to group the rate limit requests - public partial class GroupByVariable - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new GroupByVariable(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal GroupByVariable(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_variableName = If( json?.PropertyT("variableName"), out var __jsonVariableName) ? (string)__jsonVariableName : (string)_variableName;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._variableName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._variableName.ToString()) : null, "variableName" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.PowerShell.cs deleted file mode 100644 index 8df461bdae1f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// An action that can manipulate an http header. - [System.ComponentModel.TypeConverter(typeof(HeaderActionTypeConverter))] - public partial class HeaderAction - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HeaderAction(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HeaderAction(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HeaderAction(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HeaderActionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderActionType = (string) content.GetValueForProperty("HeaderActionType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderActionType, global::System.Convert.ToString); - } - if (content.Contains("HeaderName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderName = (string) content.GetValueForProperty("HeaderName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderName, global::System.Convert.ToString); - } - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).Value, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal HeaderAction(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HeaderActionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderActionType = (string) content.GetValueForProperty("HeaderActionType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderActionType, global::System.Convert.ToString); - } - if (content.Contains("HeaderName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderName = (string) content.GetValueForProperty("HeaderName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).HeaderName, global::System.Convert.ToString); - } - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal)this).Value, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// An action that can manipulate an http header. - [System.ComponentModel.TypeConverter(typeof(HeaderActionTypeConverter))] - public partial interface IHeaderAction - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.TypeConverter.cs deleted file mode 100644 index 5e424b9cd2b4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class HeaderActionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return HeaderAction.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return HeaderAction.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return HeaderAction.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.cs deleted file mode 100644 index 2c1f10734801..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.cs +++ /dev/null @@ -1,102 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// An action that can manipulate an http header. - public partial class HeaderAction : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderActionInternal - { - - /// Backing field for property. - private string _headerActionType; - - /// Which type of manipulation to apply to the header. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string HeaderActionType { get => this._headerActionType; set => this._headerActionType = value; } - - /// Backing field for property. - private string _headerName; - - /// The name of the header this action will apply to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string HeaderName { get => this._headerName; set => this._headerName = value; } - - /// Backing field for property. - private string _value; - - /// - /// The value to update the given header name with. This value is not used if the actionType is Delete. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public HeaderAction() - { - - } - } - /// An action that can manipulate an http header. - public partial interface IHeaderAction : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Which type of manipulation to apply to the header. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Which type of manipulation to apply to the header.", - SerializedName = @"headerActionType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] - string HeaderActionType { get; set; } - /// The name of the header this action will apply to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the header this action will apply to.", - SerializedName = @"headerName", - PossibleTypes = new [] { typeof(string) })] - string HeaderName { get; set; } - /// - /// The value to update the given header name with. This value is not used if the actionType is Delete. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The value to update the given header name with. This value is not used if the actionType is Delete.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(string) })] - string Value { get; set; } - - } - /// An action that can manipulate an http header. - internal partial interface IHeaderActionInternal - - { - /// Which type of manipulation to apply to the header. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Append", "Delete", "Overwrite")] - string HeaderActionType { get; set; } - /// The name of the header this action will apply to. - string HeaderName { get; set; } - /// - /// The value to update the given header name with. This value is not used if the actionType is Delete. - /// - string Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.json.cs deleted file mode 100644 index cede4da70487..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HeaderAction.json.cs +++ /dev/null @@ -1,112 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// An action that can manipulate an http header. - public partial class HeaderAction - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HeaderAction(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal HeaderAction(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_headerActionType = If( json?.PropertyT("headerActionType"), out var __jsonHeaderActionType) ? (string)__jsonHeaderActionType : (string)_headerActionType;} - {_headerName = If( json?.PropertyT("headerName"), out var __jsonHeaderName) ? (string)__jsonHeaderName : (string)_headerName;} - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)_value;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._headerActionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._headerActionType.ToString()) : null, "headerActionType" ,container.Add ); - AddIf( null != (((object)this._headerName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._headerName.ToString()) : null, "headerName" ,container.Add ); - AddIf( null != (((object)this._value)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._value.ToString()) : null, "value" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.PowerShell.cs deleted file mode 100644 index 16b936be5309..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to - /// get the next set of results. - /// - [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsListResultTypeConverter))] - public partial class HealthProbeSettingsListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthProbeSettingsListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthProbeSettingsListResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthProbeSettingsListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal HealthProbeSettingsListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to - /// get the next set of results. - [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsListResultTypeConverter))] - public partial interface IHealthProbeSettingsListResult - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.TypeConverter.cs deleted file mode 100644 index 90032227c3a5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class HealthProbeSettingsListResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return HealthProbeSettingsListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return HealthProbeSettingsListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return HealthProbeSettingsListResult.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.cs deleted file mode 100644 index 3e2178396c69..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to - /// get the next set of results. - /// - public partial class HealthProbeSettingsListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of HealthProbeSettings objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of HealthProbeSettings within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public HealthProbeSettingsListResult() - { - - } - } - /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to - /// get the next set of results. - public partial interface IHealthProbeSettingsListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// URL to get the next set of HealthProbeSettings objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to get the next set of HealthProbeSettings objects if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of HealthProbeSettings within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of HealthProbeSettings within a Front Door.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] - System.Collections.Generic.List Value { get; } - - } - /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to - /// get the next set of results. - internal partial interface IHealthProbeSettingsListResultInternal - - { - /// URL to get the next set of HealthProbeSettings objects if there are any. - string NextLink { get; set; } - /// List of HealthProbeSettings within a Front Door. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.json.cs deleted file mode 100644 index 5efb880bbb92..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsListResult.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to - /// get the next set of results. - /// - public partial class HealthProbeSettingsListResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HealthProbeSettingsListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal HealthProbeSettingsListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsModel.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.PowerShell.cs deleted file mode 100644 index 94f2346fb46e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.PowerShell.cs +++ /dev/null @@ -1,236 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Load balancing settings for a backend pool - [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsModelTypeConverter))] - public partial class HealthProbeSettingsModel - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthProbeSettingsModel(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthProbeSettingsModel(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthProbeSettingsModel(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Protocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Protocol, global::System.Convert.ToString); - } - if (content.Contains("IntervalInSeconds")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).IntervalInSeconds = (int?) content.GetValueForProperty("IntervalInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).IntervalInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HealthProbeMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).HealthProbeMethod, global::System.Convert.ToString); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).ResourceState, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal HealthProbeSettingsModel(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Protocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).Protocol, global::System.Convert.ToString); - } - if (content.Contains("IntervalInSeconds")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).IntervalInSeconds = (int?) content.GetValueForProperty("IntervalInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).IntervalInSeconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HealthProbeMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).HealthProbeMethod, global::System.Convert.ToString); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal)this).ResourceState, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Load balancing settings for a backend pool - [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsModelTypeConverter))] - public partial interface IHealthProbeSettingsModel - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.TypeConverter.cs deleted file mode 100644 index ad9eb68d13bf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class HealthProbeSettingsModelTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return HealthProbeSettingsModel.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return HealthProbeSettingsModel.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return HealthProbeSettingsModel.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.cs deleted file mode 100644 index 200dba3e1cd7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.cs +++ /dev/null @@ -1,239 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Load balancing settings for a backend pool - public partial class HealthProbeSettingsModel : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); - - /// - /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled - /// if there is a single enabled backend in single enabled backend pool. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).EnabledState = value ?? null; } - - /// - /// Configures which HTTP method to use to probe the backends defined under backendPools. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string HealthProbeMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).HealthProbeMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).HealthProbeMethod = value ?? null; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } - - /// The number of seconds between health probes. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public int? IntervalInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).IntervalInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).IntervalInSecond = value ?? default(int); } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties()); set { {_property = value;} } } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)Property).ResourceState = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModelInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// The path to use for the health probe. Default is / - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Path { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).Path = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties _property; - - /// Properties of the health probe settings - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties()); set => this._property = value; } - - /// Protocol scheme to use for this probe - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string Protocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).Protocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)Property).Protocol = value ?? null; } - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)Property).ResourceState; } - - /// Backing field for property. - private string _type; - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public HealthProbeSettingsModel() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__subResource), __subResource); - await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); - } - } - /// Load balancing settings for a backend pool - public partial interface IHealthProbeSettingsModel : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource - { - /// - /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled - /// if there is a single enabled backend in single enabled backend pool. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// - /// Configures which HTTP method to use to probe the backends defined under backendPools. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Configures which HTTP method to use to probe the backends defined under backendPools.", - SerializedName = @"healthProbeMethod", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] - string HealthProbeMethod { get; set; } - /// The number of seconds between health probes. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The number of seconds between health probes.", - SerializedName = @"intervalInSeconds", - PossibleTypes = new [] { typeof(int) })] - int? IntervalInSeconds { get; set; } - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The path to use for the health probe. Default is / - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The path to use for the health probe. Default is /", - SerializedName = @"path", - PossibleTypes = new [] { typeof(string) })] - string Path { get; set; } - /// Protocol scheme to use for this probe - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Protocol scheme to use for this probe", - SerializedName = @"protocol", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - string Protocol { get; set; } - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Load balancing settings for a backend pool - internal partial interface IHealthProbeSettingsModelInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal - { - /// - /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled - /// if there is a single enabled backend in single enabled backend pool. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// - /// Configures which HTTP method to use to probe the backends defined under backendPools. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] - string HealthProbeMethod { get; set; } - /// The number of seconds between health probes. - int? IntervalInSeconds { get; set; } - /// Resource name. - string Name { get; set; } - /// The path to use for the health probe. Default is / - string Path { get; set; } - /// Properties of the health probe settings - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties Property { get; set; } - /// Protocol scheme to use for this probe - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - string Protocol { get; set; } - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// Resource type. - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.json.cs deleted file mode 100644 index 26e34fdedc9d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsModel.json.cs +++ /dev/null @@ -1,117 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Load balancing settings for a backend pool - public partial class HealthProbeSettingsModel - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HealthProbeSettingsModel(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal HealthProbeSettingsModel(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsProperties.FromJson(__jsonProperties) : _property;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __subResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.PowerShell.cs deleted file mode 100644 index 90147d9de7d2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.PowerShell.cs +++ /dev/null @@ -1,206 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// The JSON object that contains the properties required to create a health probe settings. - /// - [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsPropertiesTypeConverter))] - public partial class HealthProbeSettingsProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthProbeSettingsProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthProbeSettingsProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthProbeSettingsProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Protocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol, global::System.Convert.ToString); - } - if (content.Contains("IntervalInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond = (int?) content.GetValueForProperty("IntervalInSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HealthProbeMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod, global::System.Convert.ToString); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal HealthProbeSettingsProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Protocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol, global::System.Convert.ToString); - } - if (content.Contains("IntervalInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond = (int?) content.GetValueForProperty("IntervalInSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HealthProbeMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod, global::System.Convert.ToString); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The JSON object that contains the properties required to create a health probe settings. - [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsPropertiesTypeConverter))] - public partial interface IHealthProbeSettingsProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.TypeConverter.cs deleted file mode 100644 index 27f7bc925d9c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class HealthProbeSettingsPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return HealthProbeSettingsProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return HealthProbeSettingsProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return HealthProbeSettingsProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.cs deleted file mode 100644 index 736324197968..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.cs +++ /dev/null @@ -1,105 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The JSON object that contains the properties required to create a health probe settings. - /// - public partial class HealthProbeSettingsProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters __healthProbeSettingsUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsUpdateParameters(); - - /// - /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled - /// if there is a single enabled backend in single enabled backend pool. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).EnabledState = value ?? null; } - - /// - /// Configures which HTTP method to use to probe the backends defined under backendPools. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string HealthProbeMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).HealthProbeMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).HealthProbeMethod = value ?? null; } - - /// The number of seconds between health probes. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public int? IntervalInSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).IntervalInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).IntervalInSecond = value ?? default(int); } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } - - /// The path to use for the health probe. Default is / - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Path { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).Path = value ?? null; } - - /// Protocol scheme to use for this probe - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Protocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).Protocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)__healthProbeSettingsUpdateParameters).Protocol = value ?? null; } - - /// Backing field for property. - private string _resourceState; - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceState { get => this._resourceState; } - - /// Creates an new instance. - public HealthProbeSettingsProperties() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__healthProbeSettingsUpdateParameters), __healthProbeSettingsUpdateParameters); - await eventListener.AssertObjectIsValid(nameof(__healthProbeSettingsUpdateParameters), __healthProbeSettingsUpdateParameters); - } - } - /// The JSON object that contains the properties required to create a health probe settings. - public partial interface IHealthProbeSettingsProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters - { - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - - } - /// The JSON object that contains the properties required to create a health probe settings. - internal partial interface IHealthProbeSettingsPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal - { - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.json.cs deleted file mode 100644 index bd5d93c3fbc9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsProperties.json.cs +++ /dev/null @@ -1,115 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The JSON object that contains the properties required to create a health probe settings. - /// - public partial class HealthProbeSettingsProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HealthProbeSettingsProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal HealthProbeSettingsProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __healthProbeSettingsUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HealthProbeSettingsUpdateParameters(json); - {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __healthProbeSettingsUpdateParameters?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.PowerShell.cs deleted file mode 100644 index e598d8e001f6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.PowerShell.cs +++ /dev/null @@ -1,198 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// L7 health probe settings for a backend pool - [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsUpdateParametersTypeConverter))] - public partial class HealthProbeSettingsUpdateParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthProbeSettingsUpdateParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthProbeSettingsUpdateParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthProbeSettingsUpdateParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Protocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol, global::System.Convert.ToString); - } - if (content.Contains("IntervalInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond = (int?) content.GetValueForProperty("IntervalInSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HealthProbeMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod, global::System.Convert.ToString); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal HealthProbeSettingsUpdateParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Protocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).Protocol, global::System.Convert.ToString); - } - if (content.Contains("IntervalInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond = (int?) content.GetValueForProperty("IntervalInSecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).IntervalInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HealthProbeMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod = (string) content.GetValueForProperty("HealthProbeMethod",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).HealthProbeMethod, global::System.Convert.ToString); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// L7 health probe settings for a backend pool - [System.ComponentModel.TypeConverter(typeof(HealthProbeSettingsUpdateParametersTypeConverter))] - public partial interface IHealthProbeSettingsUpdateParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.TypeConverter.cs deleted file mode 100644 index a8de74b46b15..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.TypeConverter.cs +++ /dev/null @@ -1,149 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class HealthProbeSettingsUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return HealthProbeSettingsUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return HealthProbeSettingsUpdateParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return HealthProbeSettingsUpdateParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.cs deleted file mode 100644 index 05d4ef990f78..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.cs +++ /dev/null @@ -1,155 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// L7 health probe settings for a backend pool - public partial class HealthProbeSettingsUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParametersInternal - { - - /// Backing field for property. - private string _enabledState; - - /// - /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled - /// if there is a single enabled backend in single enabled backend pool. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string EnabledState { get => this._enabledState; set => this._enabledState = value; } - - /// Backing field for property. - private string _healthProbeMethod; - - /// - /// Configures which HTTP method to use to probe the backends defined under backendPools. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string HealthProbeMethod { get => this._healthProbeMethod; set => this._healthProbeMethod = value; } - - /// Backing field for property. - private int? _intervalInSecond; - - /// The number of seconds between health probes. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? IntervalInSecond { get => this._intervalInSecond; set => this._intervalInSecond = value; } - - /// Backing field for property. - private string _path; - - /// The path to use for the health probe. Default is / - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Path { get => this._path; set => this._path = value; } - - /// Backing field for property. - private string _protocol; - - /// Protocol scheme to use for this probe - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Protocol { get => this._protocol; set => this._protocol = value; } - - /// Creates an new instance. - public HealthProbeSettingsUpdateParameters() - { - - } - } - /// L7 health probe settings for a backend pool - public partial interface IHealthProbeSettingsUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled - /// if there is a single enabled backend in single enabled backend pool. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// - /// Configures which HTTP method to use to probe the backends defined under backendPools. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Configures which HTTP method to use to probe the backends defined under backendPools.", - SerializedName = @"healthProbeMethod", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] - string HealthProbeMethod { get; set; } - /// The number of seconds between health probes. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The number of seconds between health probes.", - SerializedName = @"intervalInSeconds", - PossibleTypes = new [] { typeof(int) })] - int? IntervalInSecond { get; set; } - /// The path to use for the health probe. Default is / - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The path to use for the health probe. Default is /", - SerializedName = @"path", - PossibleTypes = new [] { typeof(string) })] - string Path { get; set; } - /// Protocol scheme to use for this probe - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Protocol scheme to use for this probe", - SerializedName = @"protocol", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - string Protocol { get; set; } - - } - /// L7 health probe settings for a backend pool - internal partial interface IHealthProbeSettingsUpdateParametersInternal - - { - /// - /// Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled - /// if there is a single enabled backend in single enabled backend pool. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// - /// Configures which HTTP method to use to probe the backends defined under backendPools. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("GET", "HEAD")] - string HealthProbeMethod { get; set; } - /// The number of seconds between health probes. - int? IntervalInSecond { get; set; } - /// The path to use for the health probe. Default is / - string Path { get; set; } - /// Protocol scheme to use for this probe - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - string Protocol { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.json.cs deleted file mode 100644 index 1ef646720b74..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/HealthProbeSettingsUpdateParameters.json.cs +++ /dev/null @@ -1,117 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// L7 health probe settings for a backend pool - public partial class HealthProbeSettingsUpdateParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new HealthProbeSettingsUpdateParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal HealthProbeSettingsUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_path = If( json?.PropertyT("path"), out var __jsonPath) ? (string)__jsonPath : (string)_path;} - {_protocol = If( json?.PropertyT("protocol"), out var __jsonProtocol) ? (string)__jsonProtocol : (string)_protocol;} - {_intervalInSecond = If( json?.PropertyT("intervalInSeconds"), out var __jsonIntervalInSeconds) ? (int?)__jsonIntervalInSeconds : _intervalInSecond;} - {_healthProbeMethod = If( json?.PropertyT("healthProbeMethod"), out var __jsonHealthProbeMethod) ? (string)__jsonHealthProbeMethod : (string)_healthProbeMethod;} - {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._path)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._path.ToString()) : null, "path" ,container.Add ); - AddIf( null != (((object)this._protocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._protocol.ToString()) : null, "protocol" ,container.Add ); - AddIf( null != this._intervalInSecond ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._intervalInSecond) : null, "intervalInSeconds" ,container.Add ); - AddIf( null != (((object)this._healthProbeMethod)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._healthProbeMethod.ToString()) : null, "healthProbeMethod" ,container.Add ); - AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.PowerShell.cs deleted file mode 100644 index c836ddf344b7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.PowerShell.cs +++ /dev/null @@ -1,190 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Parameters required for bring-your-own-certification via Key Vault - [System.ComponentModel.TypeConverter(typeof(KeyVaultCertificateSourceParametersTypeConverter))] - public partial class KeyVaultCertificateSourceParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new KeyVaultCertificateSourceParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new KeyVaultCertificateSourceParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal KeyVaultCertificateSourceParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Vault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).Vault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("Vault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).Vault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); - } - if (content.Contains("SecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretName = (string) content.GetValueForProperty("SecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretName, global::System.Convert.ToString); - } - if (content.Contains("SecretVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretVersion = (string) content.GetValueForProperty("SecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretVersion, global::System.Convert.ToString); - } - if (content.Contains("VaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).VaultId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal KeyVaultCertificateSourceParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Vault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).Vault = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault) content.GetValueForProperty("Vault",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).Vault, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVaultTypeConverter.ConvertFrom); - } - if (content.Contains("SecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretName = (string) content.GetValueForProperty("SecretName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretName, global::System.Convert.ToString); - } - if (content.Contains("SecretVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretVersion = (string) content.GetValueForProperty("SecretVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).SecretVersion, global::System.Convert.ToString); - } - if (content.Contains("VaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).VaultId = (string) content.GetValueForProperty("VaultId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal)this).VaultId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Parameters required for bring-your-own-certification via Key Vault - [System.ComponentModel.TypeConverter(typeof(KeyVaultCertificateSourceParametersTypeConverter))] - public partial interface IKeyVaultCertificateSourceParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.TypeConverter.cs deleted file mode 100644 index 66039c438c46..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.TypeConverter.cs +++ /dev/null @@ -1,149 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class KeyVaultCertificateSourceParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return KeyVaultCertificateSourceParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return KeyVaultCertificateSourceParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return KeyVaultCertificateSourceParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.cs deleted file mode 100644 index ea10cdbf128e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.cs +++ /dev/null @@ -1,103 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Parameters required for bring-your-own-certification via Key Vault - public partial class KeyVaultCertificateSourceParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal - { - - /// Internal Acessors for Vault - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersInternal.Vault { get => (this._vault = this._vault ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVault()); set { {_vault = value;} } } - - /// Backing field for property. - private string _secretName; - - /// The name of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string SecretName { get => this._secretName; set => this._secretName = value; } - - /// Backing field for property. - private string _secretVersion; - - /// The version of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string SecretVersion { get => this._secretVersion; set => this._secretVersion = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault _vault; - - /// The Key Vault containing the SSL certificate - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Vault { get => (this._vault = this._vault ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVault()); set => this._vault = value; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string VaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)Vault).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)Vault).Id = value ?? null; } - - /// Creates an new instance. - public KeyVaultCertificateSourceParameters() - { - - } - } - /// Parameters required for bring-your-own-certification via Key Vault - public partial interface IKeyVaultCertificateSourceParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// The name of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretName", - PossibleTypes = new [] { typeof(string) })] - string SecretName { get; set; } - /// The version of the Key Vault secret representing the full certificate PFX - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The version of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretVersion", - PossibleTypes = new [] { typeof(string) })] - string SecretVersion { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string VaultId { get; set; } - - } - /// Parameters required for bring-your-own-certification via Key Vault - internal partial interface IKeyVaultCertificateSourceParametersInternal - - { - /// The name of the Key Vault secret representing the full certificate PFX - string SecretName { get; set; } - /// The version of the Key Vault secret representing the full certificate PFX - string SecretVersion { get; set; } - /// The Key Vault containing the SSL certificate - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault Vault { get; set; } - /// Resource ID. - string VaultId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.json.cs deleted file mode 100644 index 6a61ccee29b6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParameters.json.cs +++ /dev/null @@ -1,113 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Parameters required for bring-your-own-certification via Key Vault - public partial class KeyVaultCertificateSourceParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new KeyVaultCertificateSourceParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal KeyVaultCertificateSourceParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_vault = If( json?.PropertyT("vault"), out var __jsonVault) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.KeyVaultCertificateSourceParametersVault.FromJson(__jsonVault) : _vault;} - {_secretName = If( json?.PropertyT("secretName"), out var __jsonSecretName) ? (string)__jsonSecretName : (string)_secretName;} - {_secretVersion = If( json?.PropertyT("secretVersion"), out var __jsonSecretVersion) ? (string)__jsonSecretVersion : (string)_secretVersion;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._vault ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._vault.ToJson(null,serializationMode) : null, "vault" ,container.Add ); - AddIf( null != (((object)this._secretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._secretName.ToString()) : null, "secretName" ,container.Add ); - AddIf( null != (((object)this._secretVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._secretVersion.ToString()) : null, "secretVersion" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.PowerShell.cs deleted file mode 100644 index 70310064da19..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.PowerShell.cs +++ /dev/null @@ -1,169 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// The Key Vault containing the SSL certificate - [System.ComponentModel.TypeConverter(typeof(KeyVaultCertificateSourceParametersVaultTypeConverter))] - public partial class KeyVaultCertificateSourceParametersVault - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new KeyVaultCertificateSourceParametersVault(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new KeyVaultCertificateSourceParametersVault(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal KeyVaultCertificateSourceParametersVault(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal KeyVaultCertificateSourceParametersVault(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The Key Vault containing the SSL certificate - [System.ComponentModel.TypeConverter(typeof(KeyVaultCertificateSourceParametersVaultTypeConverter))] - public partial interface IKeyVaultCertificateSourceParametersVault - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.TypeConverter.cs deleted file mode 100644 index 0a04138fced7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.TypeConverter.cs +++ /dev/null @@ -1,151 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class KeyVaultCertificateSourceParametersVaultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return KeyVaultCertificateSourceParametersVault.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return KeyVaultCertificateSourceParametersVault.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return KeyVaultCertificateSourceParametersVault.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.cs deleted file mode 100644 index 0a75d7ba8bd1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.cs +++ /dev/null @@ -1,56 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The Key Vault containing the SSL certificate - public partial class KeyVaultCertificateSourceParametersVault : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVaultInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// - /// Creates an new instance. - /// - public KeyVaultCertificateSourceParametersVault() - { - - } - } - /// The Key Vault containing the SSL certificate - public partial interface IKeyVaultCertificateSourceParametersVault : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// The Key Vault containing the SSL certificate - internal partial interface IKeyVaultCertificateSourceParametersVaultInternal - - { - /// Resource ID. - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.json.cs deleted file mode 100644 index ebe2c0086875..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/KeyVaultCertificateSourceParametersVault.json.cs +++ /dev/null @@ -1,110 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The Key Vault containing the SSL certificate - public partial class KeyVaultCertificateSourceParametersVault - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IKeyVaultCertificateSourceParametersVault FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new KeyVaultCertificateSourceParametersVault(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal KeyVaultCertificateSourceParametersVault(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.PowerShell.cs deleted file mode 100644 index 91c63eca59db..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL - /// link to get the next set of results. - /// - [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsListResultTypeConverter))] - public partial class LoadBalancingSettingsListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LoadBalancingSettingsListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LoadBalancingSettingsListResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LoadBalancingSettingsListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal LoadBalancingSettingsListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModelTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL - /// link to get the next set of results. - [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsListResultTypeConverter))] - public partial interface ILoadBalancingSettingsListResult - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.TypeConverter.cs deleted file mode 100644 index 2e5b44a05c06..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.TypeConverter.cs +++ /dev/null @@ -1,148 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class LoadBalancingSettingsListResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return LoadBalancingSettingsListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return LoadBalancingSettingsListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return LoadBalancingSettingsListResult.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.cs deleted file mode 100644 index df30d7adcfc7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL - /// link to get the next set of results. - /// - public partial class LoadBalancingSettingsListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of LoadBalancingSettings objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of Backend Pools within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public LoadBalancingSettingsListResult() - { - - } - } - /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL - /// link to get the next set of results. - public partial interface ILoadBalancingSettingsListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// URL to get the next set of LoadBalancingSettings objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to get the next set of LoadBalancingSettings objects if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of Backend Pools within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of Backend Pools within a Front Door.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] - System.Collections.Generic.List Value { get; } - - } - /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL - /// link to get the next set of results. - internal partial interface ILoadBalancingSettingsListResultInternal - - { - /// URL to get the next set of LoadBalancingSettings objects if there are any. - string NextLink { get; set; } - /// List of Backend Pools within a Front Door. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.json.cs deleted file mode 100644 index 128c8aa552b0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsListResult.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL - /// link to get the next set of results. - /// - public partial class LoadBalancingSettingsListResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new LoadBalancingSettingsListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal LoadBalancingSettingsListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsModel.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.PowerShell.cs deleted file mode 100644 index 646c8d7e7678..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.PowerShell.cs +++ /dev/null @@ -1,220 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Load balancing settings for a backend pool - [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsModelTypeConverter))] - public partial class LoadBalancingSettingsModel - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LoadBalancingSettingsModel(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LoadBalancingSettingsModel(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LoadBalancingSettingsModel(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("SampleSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SuccessfulSamplesRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AdditionalLatencyInMilliseconds")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).AdditionalLatencyInMilliseconds = (int?) content.GetValueForProperty("AdditionalLatencyInMilliseconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).AdditionalLatencyInMilliseconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).ResourceState, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal LoadBalancingSettingsModel(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("SampleSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SuccessfulSamplesRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AdditionalLatencyInMilliseconds")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).AdditionalLatencyInMilliseconds = (int?) content.GetValueForProperty("AdditionalLatencyInMilliseconds",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).AdditionalLatencyInMilliseconds, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal)this).ResourceState, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Load balancing settings for a backend pool - [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsModelTypeConverter))] - public partial interface ILoadBalancingSettingsModel - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.TypeConverter.cs deleted file mode 100644 index 5166485af559..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class LoadBalancingSettingsModelTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return LoadBalancingSettingsModel.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return LoadBalancingSettingsModel.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return LoadBalancingSettingsModel.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.cs deleted file mode 100644 index b36bbe6125e9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.cs +++ /dev/null @@ -1,190 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Load balancing settings for a backend pool - public partial class LoadBalancingSettingsModel : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); - - /// - /// The additional latency in milliseconds for probes to fall into the lowest latency bucket - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public int? AdditionalLatencyInMilliseconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).AdditionalLatencyMillisecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).AdditionalLatencyMillisecond = value ?? default(int); } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties()); set { {_property = value;} } } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)Property).ResourceState = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModelInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties _property; - - /// Properties of the load balancing settings - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties()); set => this._property = value; } - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)Property).ResourceState; } - - /// The number of samples to consider for load balancing decisions - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public int? SampleSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).SampleSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).SampleSize = value ?? default(int); } - - /// The number of samples within the sample period that must succeed - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public int? SuccessfulSamplesRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).SuccessfulSamplesRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)Property).SuccessfulSamplesRequired = value ?? default(int); } - - /// Backing field for property. - private string _type; - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public LoadBalancingSettingsModel() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__subResource), __subResource); - await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); - } - } - /// Load balancing settings for a backend pool - public partial interface ILoadBalancingSettingsModel : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource - { - /// - /// The additional latency in milliseconds for probes to fall into the lowest latency bucket - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The additional latency in milliseconds for probes to fall into the lowest latency bucket", - SerializedName = @"additionalLatencyMilliseconds", - PossibleTypes = new [] { typeof(int) })] - int? AdditionalLatencyInMilliseconds { get; set; } - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// The number of samples to consider for load balancing decisions - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The number of samples to consider for load balancing decisions", - SerializedName = @"sampleSize", - PossibleTypes = new [] { typeof(int) })] - int? SampleSize { get; set; } - /// The number of samples within the sample period that must succeed - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The number of samples within the sample period that must succeed", - SerializedName = @"successfulSamplesRequired", - PossibleTypes = new [] { typeof(int) })] - int? SuccessfulSamplesRequired { get; set; } - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Load balancing settings for a backend pool - internal partial interface ILoadBalancingSettingsModelInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal - { - /// - /// The additional latency in milliseconds for probes to fall into the lowest latency bucket - /// - int? AdditionalLatencyInMilliseconds { get; set; } - /// Resource name. - string Name { get; set; } - /// Properties of the load balancing settings - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties Property { get; set; } - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// The number of samples to consider for load balancing decisions - int? SampleSize { get; set; } - /// The number of samples within the sample period that must succeed - int? SuccessfulSamplesRequired { get; set; } - /// Resource type. - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.json.cs deleted file mode 100644 index 5ab015aeb8db..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsModel.json.cs +++ /dev/null @@ -1,117 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Load balancing settings for a backend pool - public partial class LoadBalancingSettingsModel - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new LoadBalancingSettingsModel(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal LoadBalancingSettingsModel(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsProperties.FromJson(__jsonProperties) : _property;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __subResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.PowerShell.cs deleted file mode 100644 index 742f17f7e161..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.PowerShell.cs +++ /dev/null @@ -1,190 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// The JSON object that contains the properties required to create load balancing settings - /// - [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsPropertiesTypeConverter))] - public partial class LoadBalancingSettingsProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LoadBalancingSettingsProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LoadBalancingSettingsProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LoadBalancingSettingsProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("SampleSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SuccessfulSamplesRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AdditionalLatencyMillisecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond = (int?) content.GetValueForProperty("AdditionalLatencyMillisecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal LoadBalancingSettingsProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("SampleSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SuccessfulSamplesRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AdditionalLatencyMillisecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond = (int?) content.GetValueForProperty("AdditionalLatencyMillisecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The JSON object that contains the properties required to create load balancing settings - [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsPropertiesTypeConverter))] - public partial interface ILoadBalancingSettingsProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.TypeConverter.cs deleted file mode 100644 index 292349b808ed..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.TypeConverter.cs +++ /dev/null @@ -1,148 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class LoadBalancingSettingsPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return LoadBalancingSettingsProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return LoadBalancingSettingsProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return LoadBalancingSettingsProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.cs deleted file mode 100644 index 49ec09230f59..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.cs +++ /dev/null @@ -1,94 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The JSON object that contains the properties required to create load balancing settings - /// - public partial class LoadBalancingSettingsProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters __loadBalancingSettingsUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsUpdateParameters(); - - /// - /// The additional latency in milliseconds for probes to fall into the lowest latency bucket - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public int? AdditionalLatencyMillisecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).AdditionalLatencyMillisecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).AdditionalLatencyMillisecond = value ?? default(int); } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } - - /// Backing field for property. - private string _resourceState; - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceState { get => this._resourceState; } - - /// The number of samples to consider for load balancing decisions - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public int? SampleSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).SampleSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).SampleSize = value ?? default(int); } - - /// The number of samples within the sample period that must succeed - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public int? SuccessfulSamplesRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).SuccessfulSamplesRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)__loadBalancingSettingsUpdateParameters).SuccessfulSamplesRequired = value ?? default(int); } - - /// Creates an new instance. - public LoadBalancingSettingsProperties() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__loadBalancingSettingsUpdateParameters), __loadBalancingSettingsUpdateParameters); - await eventListener.AssertObjectIsValid(nameof(__loadBalancingSettingsUpdateParameters), __loadBalancingSettingsUpdateParameters); - } - } - /// The JSON object that contains the properties required to create load balancing settings - public partial interface ILoadBalancingSettingsProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters - { - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - - } - /// The JSON object that contains the properties required to create load balancing settings - internal partial interface ILoadBalancingSettingsPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal - { - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.json.cs deleted file mode 100644 index d514cc7486b8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsProperties.json.cs +++ /dev/null @@ -1,115 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The JSON object that contains the properties required to create load balancing settings - /// - public partial class LoadBalancingSettingsProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new LoadBalancingSettingsProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal LoadBalancingSettingsProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __loadBalancingSettingsUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.LoadBalancingSettingsUpdateParameters(json); - {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __loadBalancingSettingsUpdateParameters?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.PowerShell.cs deleted file mode 100644 index 4875e3e38d83..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.PowerShell.cs +++ /dev/null @@ -1,185 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Round-Robin load balancing settings for a backend pool - [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsUpdateParametersTypeConverter))] - public partial class LoadBalancingSettingsUpdateParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LoadBalancingSettingsUpdateParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LoadBalancingSettingsUpdateParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LoadBalancingSettingsUpdateParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SampleSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SuccessfulSamplesRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AdditionalLatencyMillisecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond = (int?) content.GetValueForProperty("AdditionalLatencyMillisecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal LoadBalancingSettingsUpdateParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SampleSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize = (int?) content.GetValueForProperty("SampleSize",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SampleSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SuccessfulSamplesRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired = (int?) content.GetValueForProperty("SuccessfulSamplesRequired",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).SuccessfulSamplesRequired, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AdditionalLatencyMillisecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond = (int?) content.GetValueForProperty("AdditionalLatencyMillisecond",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal)this).AdditionalLatencyMillisecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Round-Robin load balancing settings for a backend pool - [System.ComponentModel.TypeConverter(typeof(LoadBalancingSettingsUpdateParametersTypeConverter))] - public partial interface ILoadBalancingSettingsUpdateParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.TypeConverter.cs deleted file mode 100644 index 2575025dbddd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.TypeConverter.cs +++ /dev/null @@ -1,150 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class LoadBalancingSettingsUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return LoadBalancingSettingsUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return LoadBalancingSettingsUpdateParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return LoadBalancingSettingsUpdateParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.cs deleted file mode 100644 index 20a3c9d334fa..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.cs +++ /dev/null @@ -1,100 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Round-Robin load balancing settings for a backend pool - public partial class LoadBalancingSettingsUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParametersInternal - { - - /// Backing field for property. - private int? _additionalLatencyMillisecond; - - /// - /// The additional latency in milliseconds for probes to fall into the lowest latency bucket - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? AdditionalLatencyMillisecond { get => this._additionalLatencyMillisecond; set => this._additionalLatencyMillisecond = value; } - - /// Backing field for property. - private int? _sampleSize; - - /// The number of samples to consider for load balancing decisions - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? SampleSize { get => this._sampleSize; set => this._sampleSize = value; } - - /// Backing field for property. - private int? _successfulSamplesRequired; - - /// The number of samples within the sample period that must succeed - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? SuccessfulSamplesRequired { get => this._successfulSamplesRequired; set => this._successfulSamplesRequired = value; } - - /// Creates an new instance. - public LoadBalancingSettingsUpdateParameters() - { - - } - } - /// Round-Robin load balancing settings for a backend pool - public partial interface ILoadBalancingSettingsUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// The additional latency in milliseconds for probes to fall into the lowest latency bucket - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The additional latency in milliseconds for probes to fall into the lowest latency bucket", - SerializedName = @"additionalLatencyMilliseconds", - PossibleTypes = new [] { typeof(int) })] - int? AdditionalLatencyMillisecond { get; set; } - /// The number of samples to consider for load balancing decisions - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The number of samples to consider for load balancing decisions", - SerializedName = @"sampleSize", - PossibleTypes = new [] { typeof(int) })] - int? SampleSize { get; set; } - /// The number of samples within the sample period that must succeed - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The number of samples within the sample period that must succeed", - SerializedName = @"successfulSamplesRequired", - PossibleTypes = new [] { typeof(int) })] - int? SuccessfulSamplesRequired { get; set; } - - } - /// Round-Robin load balancing settings for a backend pool - internal partial interface ILoadBalancingSettingsUpdateParametersInternal - - { - /// - /// The additional latency in milliseconds for probes to fall into the lowest latency bucket - /// - int? AdditionalLatencyMillisecond { get; set; } - /// The number of samples to consider for load balancing decisions - int? SampleSize { get; set; } - /// The number of samples within the sample period that must succeed - int? SuccessfulSamplesRequired { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.json.cs deleted file mode 100644 index 4690ae8e8b9d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/LoadBalancingSettingsUpdateParameters.json.cs +++ /dev/null @@ -1,113 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Round-Robin load balancing settings for a backend pool - public partial class LoadBalancingSettingsUpdateParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new LoadBalancingSettingsUpdateParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal LoadBalancingSettingsUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_sampleSize = If( json?.PropertyT("sampleSize"), out var __jsonSampleSize) ? (int?)__jsonSampleSize : _sampleSize;} - {_successfulSamplesRequired = If( json?.PropertyT("successfulSamplesRequired"), out var __jsonSuccessfulSamplesRequired) ? (int?)__jsonSuccessfulSamplesRequired : _successfulSamplesRequired;} - {_additionalLatencyMillisecond = If( json?.PropertyT("additionalLatencyMilliseconds"), out var __jsonAdditionalLatencyMilliseconds) ? (int?)__jsonAdditionalLatencyMilliseconds : _additionalLatencyMillisecond;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._sampleSize ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._sampleSize) : null, "sampleSize" ,container.Add ); - AddIf( null != this._successfulSamplesRequired ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._successfulSamplesRequired) : null, "successfulSamplesRequired" ,container.Add ); - AddIf( null != this._additionalLatencyMillisecond ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._additionalLatencyMillisecond) : null, "additionalLatencyMilliseconds" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.PowerShell.cs deleted file mode 100644 index 7a990bb86145..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.PowerShell.cs +++ /dev/null @@ -1,188 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Describes a managed rule definition. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleDefinitionTypeConverter))] - public partial class ManagedRuleDefinition - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleDefinition(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleDefinition(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleDefinition(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RuleId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).RuleId = (string) content.GetValueForProperty("RuleId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).RuleId, global::System.Convert.ToString); - } - if (content.Contains("DefaultState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultState = (string) content.GetValueForProperty("DefaultState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultState, global::System.Convert.ToString); - } - if (content.Contains("DefaultAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultAction = (string) content.GetValueForProperty("DefaultAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultAction, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).Description, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleDefinition(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RuleId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).RuleId = (string) content.GetValueForProperty("RuleId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).RuleId, global::System.Convert.ToString); - } - if (content.Contains("DefaultState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultState = (string) content.GetValueForProperty("DefaultState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultState, global::System.Convert.ToString); - } - if (content.Contains("DefaultAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultAction = (string) content.GetValueForProperty("DefaultAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).DefaultAction, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal)this).Description, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Describes a managed rule definition. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleDefinitionTypeConverter))] - public partial interface IManagedRuleDefinition - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.TypeConverter.cs deleted file mode 100644 index 0df7955a4366..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleDefinition.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleDefinition.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.cs deleted file mode 100644 index f1668480f79a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.cs +++ /dev/null @@ -1,130 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes a managed rule definition. - public partial class ManagedRuleDefinition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal - { - - /// Backing field for property. - private string _defaultAction; - - /// Describes the default action to be applied when the managed rule matches. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string DefaultAction { get => this._defaultAction; } - - /// Backing field for property. - private string _defaultState; - - /// Describes the default state for the managed rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string DefaultState { get => this._defaultState; } - - /// Backing field for property. - private string _description; - - /// Describes the functionality of the managed rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Description { get => this._description; } - - /// Internal Acessors for DefaultAction - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal.DefaultAction { get => this._defaultAction; set { {_defaultAction = value;} } } - - /// Internal Acessors for DefaultState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal.DefaultState { get => this._defaultState; set { {_defaultState = value;} } } - - /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal.Description { get => this._description; set { {_description = value;} } } - - /// Internal Acessors for RuleId - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinitionInternal.RuleId { get => this._ruleId; set { {_ruleId = value;} } } - - /// Backing field for property. - private string _ruleId; - - /// Identifier for the managed rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleId { get => this._ruleId; } - - /// Creates an new instance. - public ManagedRuleDefinition() - { - - } - } - /// Describes a managed rule definition. - public partial interface IManagedRuleDefinition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Describes the default action to be applied when the managed rule matches. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes the default action to be applied when the managed rule matches.", - SerializedName = @"defaultAction", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] - string DefaultAction { get; } - /// Describes the default state for the managed rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes the default state for the managed rule.", - SerializedName = @"defaultState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string DefaultState { get; } - /// Describes the functionality of the managed rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes the functionality of the managed rule.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; } - /// Identifier for the managed rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Identifier for the managed rule.", - SerializedName = @"ruleId", - PossibleTypes = new [] { typeof(string) })] - string RuleId { get; } - - } - /// Describes a managed rule definition. - internal partial interface IManagedRuleDefinitionInternal - - { - /// Describes the default action to be applied when the managed rule matches. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] - string DefaultAction { get; set; } - /// Describes the default state for the managed rule. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string DefaultState { get; set; } - /// Describes the functionality of the managed rule. - string Description { get; set; } - /// Identifier for the managed rule. - string RuleId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.json.cs deleted file mode 100644 index 138fd3afda6c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleDefinition.json.cs +++ /dev/null @@ -1,126 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes a managed rule definition. - public partial class ManagedRuleDefinition - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleDefinition(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleDefinition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_ruleId = If( json?.PropertyT("ruleId"), out var __jsonRuleId) ? (string)__jsonRuleId : (string)_ruleId;} - {_defaultState = If( json?.PropertyT("defaultState"), out var __jsonDefaultState) ? (string)__jsonDefaultState : (string)_defaultState;} - {_defaultAction = If( json?.PropertyT("defaultAction"), out var __jsonDefaultAction) ? (string)__jsonDefaultAction : (string)_defaultAction;} - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._ruleId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleId.ToString()) : null, "ruleId" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._defaultState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._defaultState.ToString()) : null, "defaultState" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._defaultAction)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._defaultAction.ToString()) : null, "defaultAction" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.PowerShell.cs deleted file mode 100644 index 4434bd1e0718..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Exclude variables from managed rule evaluation. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleExclusionTypeConverter))] - public partial class ManagedRuleExclusion - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleExclusion(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleExclusion(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleExclusion(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Variable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Variable = (string) content.GetValueForProperty("Variable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Variable, global::System.Convert.ToString); - } - if (content.Contains("Operator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Operator = (string) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Operator, global::System.Convert.ToString); - } - if (content.Contains("Selector")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Selector, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleExclusion(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Variable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Variable = (string) content.GetValueForProperty("Variable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Variable, global::System.Convert.ToString); - } - if (content.Contains("Operator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Operator = (string) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Operator, global::System.Convert.ToString); - } - if (content.Contains("Selector")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal)this).Selector, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Exclude variables from managed rule evaluation. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleExclusionTypeConverter))] - public partial interface IManagedRuleExclusion - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.TypeConverter.cs deleted file mode 100644 index 3b06eb1eb215..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleExclusionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleExclusion.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleExclusion.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleExclusion.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.cs deleted file mode 100644 index e809c53622ad..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.cs +++ /dev/null @@ -1,104 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Exclude variables from managed rule evaluation. - public partial class ManagedRuleExclusion : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusionInternal - { - - /// Backing field for property. - private string _operator; - - /// - /// Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Operator { get => this._operator; set => this._operator = value; } - - /// Backing field for property. - private string _selector; - - /// Selector value for which elements in the collection this exclusion applies to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Selector { get => this._selector; set => this._selector = value; } - - /// Backing field for property. - private string _variable; - - /// The variable type to be excluded. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Variable { get => this._variable; set => this._variable = value; } - - /// Creates an new instance. - public ManagedRuleExclusion() - { - - } - } - /// Exclude variables from managed rule evaluation. - public partial interface IManagedRuleExclusion : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.", - SerializedName = @"selectorMatchOperator", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] - string Operator { get; set; } - /// Selector value for which elements in the collection this exclusion applies to. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Selector value for which elements in the collection this exclusion applies to.", - SerializedName = @"selector", - PossibleTypes = new [] { typeof(string) })] - string Selector { get; set; } - /// The variable type to be excluded. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The variable type to be excluded.", - SerializedName = @"matchVariable", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - string Variable { get; set; } - - } - /// Exclude variables from managed rule evaluation. - internal partial interface IManagedRuleExclusionInternal - - { - /// - /// Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny")] - string Operator { get; set; } - /// Selector value for which elements in the collection this exclusion applies to. - string Selector { get; set; } - /// The variable type to be excluded. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - string Variable { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.json.cs deleted file mode 100644 index 687cfc58a833..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleExclusion.json.cs +++ /dev/null @@ -1,112 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Exclude variables from managed rule evaluation. - public partial class ManagedRuleExclusion - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleExclusion(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleExclusion(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_variable = If( json?.PropertyT("matchVariable"), out var __jsonMatchVariable) ? (string)__jsonMatchVariable : (string)_variable;} - {_operator = If( json?.PropertyT("selectorMatchOperator"), out var __jsonSelectorMatchOperator) ? (string)__jsonSelectorMatchOperator : (string)_operator;} - {_selector = If( json?.PropertyT("selector"), out var __jsonSelector) ? (string)__jsonSelector : (string)_selector;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._variable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._variable.ToString()) : null, "matchVariable" ,container.Add ); - AddIf( null != (((object)this._operator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._operator.ToString()) : null, "selectorMatchOperator" ,container.Add ); - AddIf( null != (((object)this._selector)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selector.ToString()) : null, "selector" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.PowerShell.cs deleted file mode 100644 index 0df7eb7dea5c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Describes a managed rule group. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleGroupDefinitionTypeConverter))] - public partial class ManagedRuleGroupDefinition - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleGroupDefinition(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleGroupDefinition(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleGroupDefinition(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RuleGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).RuleGroupName = (string) content.GetValueForProperty("RuleGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).RuleGroupName, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinitionTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleGroupDefinition(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RuleGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).RuleGroupName = (string) content.GetValueForProperty("RuleGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).RuleGroupName, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinitionTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Describes a managed rule group. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleGroupDefinitionTypeConverter))] - public partial interface IManagedRuleGroupDefinition - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.TypeConverter.cs deleted file mode 100644 index 0ff47cc76c8a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleGroupDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleGroupDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleGroupDefinition.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleGroupDefinition.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.cs deleted file mode 100644 index 7fbbafc3f8cf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.cs +++ /dev/null @@ -1,103 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes a managed rule group. - public partial class ManagedRuleGroupDefinition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal - { - - /// Backing field for property. - private string _description; - - /// Description of the managed rule group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Description { get => this._description; } - - /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal.Description { get => this._description; set { {_description = value;} } } - - /// Internal Acessors for Rule - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal.Rule { get => this._rule; set { {_rule = value;} } } - - /// Internal Acessors for RuleGroupName - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinitionInternal.RuleGroupName { get => this._ruleGroupName; set { {_ruleGroupName = value;} } } - - /// Backing field for property. - private System.Collections.Generic.List _rule; - - /// List of rules within the managed rule group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Rule { get => this._rule; } - - /// Backing field for property. - private string _ruleGroupName; - - /// Name of the managed rule group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleGroupName { get => this._ruleGroupName; } - - /// Creates an new instance. - public ManagedRuleGroupDefinition() - { - - } - } - /// Describes a managed rule group. - public partial interface IManagedRuleGroupDefinition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Description of the managed rule group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Description of the managed rule group.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; } - /// List of rules within the managed rule group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of rules within the managed rule group.", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition) })] - System.Collections.Generic.List Rule { get; } - /// Name of the managed rule group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Name of the managed rule group.", - SerializedName = @"ruleGroupName", - PossibleTypes = new [] { typeof(string) })] - string RuleGroupName { get; } - - } - /// Describes a managed rule group. - internal partial interface IManagedRuleGroupDefinitionInternal - - { - /// Description of the managed rule group. - string Description { get; set; } - /// List of rules within the managed rule group. - System.Collections.Generic.List Rule { get; set; } - /// Name of the managed rule group. - string RuleGroupName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.json.cs deleted file mode 100644 index c88ca479e65d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupDefinition.json.cs +++ /dev/null @@ -1,129 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes a managed rule group. - public partial class ManagedRuleGroupDefinition - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleGroupDefinition(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleGroupDefinition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_ruleGroupName = If( json?.PropertyT("ruleGroupName"), out var __jsonRuleGroupName) ? (string)__jsonRuleGroupName : (string)_ruleGroupName;} - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} - {_rule = If( json?.PropertyT("rules"), out var __jsonRules) ? If( __jsonRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleDefinition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleDefinition.FromJson(__u) )) ))() : null : _rule;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._ruleGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleGroupName.ToString()) : null, "ruleGroupName" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._rule) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._rule ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("rules",__w); - } - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.PowerShell.cs deleted file mode 100644 index ec6d7f1c54c3..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines a managed rule group override setting. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleGroupOverrideTypeConverter))] - public partial class ManagedRuleGroupOverride - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleGroupOverride(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleGroupOverride(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleGroupOverride(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RuleGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).RuleGroupName = (string) content.GetValueForProperty("RuleGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).RuleGroupName, global::System.Convert.ToString); - } - if (content.Contains("Exclusion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); - } - if (content.Contains("ManagedRuleOverride")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).ManagedRuleOverride = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).ManagedRuleOverride, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverrideTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleGroupOverride(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RuleGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).RuleGroupName = (string) content.GetValueForProperty("RuleGroupName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).RuleGroupName, global::System.Convert.ToString); - } - if (content.Contains("Exclusion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); - } - if (content.Contains("ManagedRuleOverride")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).ManagedRuleOverride = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal)this).ManagedRuleOverride, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverrideTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines a managed rule group override setting. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleGroupOverrideTypeConverter))] - public partial interface IManagedRuleGroupOverride - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.TypeConverter.cs deleted file mode 100644 index 64912402ba1b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleGroupOverrideTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleGroupOverride.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleGroupOverride.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleGroupOverride.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.cs deleted file mode 100644 index 03d695c23eb7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.cs +++ /dev/null @@ -1,100 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines a managed rule group override setting. - public partial class ManagedRuleGroupOverride : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverrideInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _exclusion; - - /// Describes the exclusions that are applied to all rules in the group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Exclusion { get => this._exclusion; set => this._exclusion = value; } - - /// Backing field for property. - private System.Collections.Generic.List _managedRuleOverride; - - /// - /// List of rules that will be disabled. If none specified, all rules in the group will be disabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List ManagedRuleOverride { get => this._managedRuleOverride; set => this._managedRuleOverride = value; } - - /// Backing field for property. - private string _ruleGroupName; - - /// Describes the managed rule group to override. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleGroupName { get => this._ruleGroupName; set => this._ruleGroupName = value; } - - /// Creates an new instance. - public ManagedRuleGroupOverride() - { - - } - } - /// Defines a managed rule group override setting. - public partial interface IManagedRuleGroupOverride : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Describes the exclusions that are applied to all rules in the group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes the exclusions that are applied to all rules in the group.", - SerializedName = @"exclusions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) })] - System.Collections.Generic.List Exclusion { get; set; } - /// - /// List of rules that will be disabled. If none specified, all rules in the group will be disabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of rules that will be disabled. If none specified, all rules in the group will be disabled.", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride) })] - System.Collections.Generic.List ManagedRuleOverride { get; set; } - /// Describes the managed rule group to override. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes the managed rule group to override.", - SerializedName = @"ruleGroupName", - PossibleTypes = new [] { typeof(string) })] - string RuleGroupName { get; set; } - - } - /// Defines a managed rule group override setting. - internal partial interface IManagedRuleGroupOverrideInternal - - { - /// Describes the exclusions that are applied to all rules in the group. - System.Collections.Generic.List Exclusion { get; set; } - /// - /// List of rules that will be disabled. If none specified, all rules in the group will be disabled. - /// - System.Collections.Generic.List ManagedRuleOverride { get; set; } - /// Describes the managed rule group to override. - string RuleGroupName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.json.cs deleted file mode 100644 index 6ea1b0353438..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleGroupOverride.json.cs +++ /dev/null @@ -1,128 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines a managed rule group override setting. - public partial class ManagedRuleGroupOverride - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleGroupOverride(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleGroupOverride(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_ruleGroupName = If( json?.PropertyT("ruleGroupName"), out var __jsonRuleGroupName) ? (string)__jsonRuleGroupName : (string)_ruleGroupName;} - {_exclusion = If( json?.PropertyT("exclusions"), out var __jsonExclusions) ? If( __jsonExclusions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion.FromJson(__u) )) ))() : null : _exclusion;} - {_managedRuleOverride = If( json?.PropertyT("rules"), out var __jsonRules) ? If( __jsonRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleOverride.FromJson(__p) )) ))() : null : _managedRuleOverride;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._ruleGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleGroupName.ToString()) : null, "ruleGroupName" ,container.Add ); - if (null != this._exclusion) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._exclusion ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("exclusions",__w); - } - if (null != this._managedRuleOverride) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._managedRuleOverride ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("rules",__r); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.PowerShell.cs deleted file mode 100644 index afd5f54fbc97..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.PowerShell.cs +++ /dev/null @@ -1,188 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines a managed rule group override setting. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleOverrideTypeConverter))] - public partial class ManagedRuleOverride - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleOverride(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleOverride(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleOverride(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RuleId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).RuleId = (string) content.GetValueForProperty("RuleId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).RuleId, global::System.Convert.ToString); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("Action")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Action, global::System.Convert.ToString); - } - if (content.Contains("Exclusion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleOverride(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RuleId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).RuleId = (string) content.GetValueForProperty("RuleId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).RuleId, global::System.Convert.ToString); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("Action")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Action, global::System.Convert.ToString); - } - if (content.Contains("Exclusion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines a managed rule group override setting. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleOverrideTypeConverter))] - public partial interface IManagedRuleOverride - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.TypeConverter.cs deleted file mode 100644 index 7bd597647888..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleOverrideTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleOverride.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleOverride.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleOverride.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.cs deleted file mode 100644 index e61b5ca0b1e0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines a managed rule group override setting. - public partial class ManagedRuleOverride : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverrideInternal - { - - /// Backing field for property. - private string _action; - - /// Describes the override action to be applied when rule matches. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Action { get => this._action; set => this._action = value; } - - /// Backing field for property. - private string _enabledState; - - /// - /// Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string EnabledState { get => this._enabledState; set => this._enabledState = value; } - - /// Backing field for property. - private System.Collections.Generic.List _exclusion; - - /// Describes the exclusions that are applied to this specific rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Exclusion { get => this._exclusion; set => this._exclusion = value; } - - /// Backing field for property. - private string _ruleId; - - /// Identifier for the managed rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleId { get => this._ruleId; set => this._ruleId = value; } - - /// Creates an new instance. - public ManagedRuleOverride() - { - - } - } - /// Defines a managed rule group override setting. - public partial interface IManagedRuleOverride : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Describes the override action to be applied when rule matches. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes the override action to be applied when rule matches.", - SerializedName = @"action", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] - string Action { get; set; } - /// - /// Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string EnabledState { get; set; } - /// Describes the exclusions that are applied to this specific rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes the exclusions that are applied to this specific rule.", - SerializedName = @"exclusions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) })] - System.Collections.Generic.List Exclusion { get; set; } - /// Identifier for the managed rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Identifier for the managed rule.", - SerializedName = @"ruleId", - PossibleTypes = new [] { typeof(string) })] - string RuleId { get; set; } - - } - /// Defines a managed rule group override setting. - internal partial interface IManagedRuleOverrideInternal - - { - /// Describes the override action to be applied when rule matches. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Allow", "Block", "Log", "Redirect", "AnomalyScoring", "JSChallenge", "CAPTCHA")] - string Action { get; set; } - /// - /// Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string EnabledState { get; set; } - /// Describes the exclusions that are applied to this specific rule. - System.Collections.Generic.List Exclusion { get; set; } - /// Identifier for the managed rule. - string RuleId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.json.cs deleted file mode 100644 index 2cb0f765b3d7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleOverride.json.cs +++ /dev/null @@ -1,122 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines a managed rule group override setting. - public partial class ManagedRuleOverride - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleOverride(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleOverride(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_ruleId = If( json?.PropertyT("ruleId"), out var __jsonRuleId) ? (string)__jsonRuleId : (string)_ruleId;} - {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} - {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)_action;} - {_exclusion = If( json?.PropertyT("exclusions"), out var __jsonExclusions) ? If( __jsonExclusions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion.FromJson(__u) )) ))() : null : _exclusion;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._ruleId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleId.ToString()) : null, "ruleId" ,container.Add ); - AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); - AddIf( null != (((object)this._action)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._action.ToString()) : null, "action" ,container.Add ); - if (null != this._exclusion) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._exclusion ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("exclusions",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.PowerShell.cs deleted file mode 100644 index dda9fde77a94..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.PowerShell.cs +++ /dev/null @@ -1,196 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines a managed rule set. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetTypeConverter))] - public partial class ManagedRuleSet - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleSet(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleSet(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleSet(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("RuleSetAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleSetAction = (string) content.GetValueForProperty("RuleSetAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleSetAction, global::System.Convert.ToString); - } - if (content.Contains("Exclusion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); - } - if (content.Contains("RuleGroupOverride")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleGroupOverride = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroupOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleGroupOverride, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverrideTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleSet(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("RuleSetAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleSetAction = (string) content.GetValueForProperty("RuleSetAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleSetAction, global::System.Convert.ToString); - } - if (content.Contains("Exclusion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Exclusion = (System.Collections.Generic.List) content.GetValueForProperty("Exclusion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).Exclusion, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusionTypeConverter.ConvertFrom)); - } - if (content.Contains("RuleGroupOverride")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleGroupOverride = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroupOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal)this).RuleGroupOverride, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverrideTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines a managed rule set. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetTypeConverter))] - public partial interface IManagedRuleSet - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.TypeConverter.cs deleted file mode 100644 index 1cc0e012af4b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleSetTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleSet.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleSet.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleSet.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.cs deleted file mode 100644 index a896bea0cbb9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.cs +++ /dev/null @@ -1,136 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines a managed rule set. - public partial class ManagedRuleSet : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _exclusion; - - /// Describes the exclusions that are applied to all rules in the set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Exclusion { get => this._exclusion; set => this._exclusion = value; } - - /// Backing field for property. - private System.Collections.Generic.List _ruleGroupOverride; - - /// Defines the rule group overrides to apply to the rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List RuleGroupOverride { get => this._ruleGroupOverride; set => this._ruleGroupOverride = value; } - - /// Backing field for property. - private string _ruleSetAction; - - /// Defines the rule set action. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleSetAction { get => this._ruleSetAction; set => this._ruleSetAction = value; } - - /// Backing field for property. - private string _type; - - /// Defines the rule set type to use. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; set => this._type = value; } - - /// Backing field for property. - private string _version; - - /// Defines the version of the rule set to use. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Version { get => this._version; set => this._version = value; } - - /// Creates an new instance. - public ManagedRuleSet() - { - - } - } - /// Defines a managed rule set. - public partial interface IManagedRuleSet : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Describes the exclusions that are applied to all rules in the set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes the exclusions that are applied to all rules in the set.", - SerializedName = @"exclusions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) })] - System.Collections.Generic.List Exclusion { get; set; } - /// Defines the rule group overrides to apply to the rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the rule group overrides to apply to the rule set.", - SerializedName = @"ruleGroupOverrides", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride) })] - System.Collections.Generic.List RuleGroupOverride { get; set; } - /// Defines the rule set action. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the rule set action.", - SerializedName = @"ruleSetAction", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] - string RuleSetAction { get; set; } - /// Defines the rule set type to use. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the rule set type to use.", - SerializedName = @"ruleSetType", - PossibleTypes = new [] { typeof(string) })] - string Type { get; set; } - /// Defines the version of the rule set to use. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the version of the rule set to use.", - SerializedName = @"ruleSetVersion", - PossibleTypes = new [] { typeof(string) })] - string Version { get; set; } - - } - /// Defines a managed rule set. - internal partial interface IManagedRuleSetInternal - - { - /// Describes the exclusions that are applied to all rules in the set. - System.Collections.Generic.List Exclusion { get; set; } - /// Defines the rule group overrides to apply to the rule set. - System.Collections.Generic.List RuleGroupOverride { get; set; } - /// Defines the rule set action. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Block", "Log", "Redirect")] - string RuleSetAction { get; set; } - /// Defines the rule set type to use. - string Type { get; set; } - /// Defines the version of the rule set to use. - string Version { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.json.cs deleted file mode 100644 index 98d7ab76e4e3..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSet.json.cs +++ /dev/null @@ -1,132 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines a managed rule set. - public partial class ManagedRuleSet - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSet(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleSet(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_type = If( json?.PropertyT("ruleSetType"), out var __jsonRuleSetType) ? (string)__jsonRuleSetType : (string)_type;} - {_version = If( json?.PropertyT("ruleSetVersion"), out var __jsonRuleSetVersion) ? (string)__jsonRuleSetVersion : (string)_version;} - {_ruleSetAction = If( json?.PropertyT("ruleSetAction"), out var __jsonRuleSetAction) ? (string)__jsonRuleSetAction : (string)_ruleSetAction;} - {_exclusion = If( json?.PropertyT("exclusions"), out var __jsonExclusions) ? If( __jsonExclusions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleExclusion.FromJson(__u) )) ))() : null : _exclusion;} - {_ruleGroupOverride = If( json?.PropertyT("ruleGroupOverrides"), out var __jsonRuleGroupOverrides) ? If( __jsonRuleGroupOverrides as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupOverride.FromJson(__p) )) ))() : null : _ruleGroupOverride;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "ruleSetType" ,container.Add ); - AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._version.ToString()) : null, "ruleSetVersion" ,container.Add ); - AddIf( null != (((object)this._ruleSetAction)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleSetAction.ToString()) : null, "ruleSetAction" ,container.Add ); - if (null != this._exclusion) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._exclusion ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("exclusions",__w); - } - if (null != this._ruleGroupOverride) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._ruleGroupOverride ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("ruleGroupOverrides",__r); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.PowerShell.cs deleted file mode 100644 index 41fdc440d74e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.PowerShell.cs +++ /dev/null @@ -1,244 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Describes the a managed rule set definition. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionTypeConverter))] - public partial class ManagedRuleSetDefinition - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleSetDefinition(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleSetDefinition(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleSetDefinition(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("RuleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetId = (string) content.GetValueForProperty("RuleSetId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetId, global::System.Convert.ToString); - } - if (content.Contains("RuleSetType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetType = (string) content.GetValueForProperty("RuleSetType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetType, global::System.Convert.ToString); - } - if (content.Contains("RuleSetVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetVersion = (string) content.GetValueForProperty("RuleSetVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetVersion, global::System.Convert.ToString); - } - if (content.Contains("RuleGroup")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleGroup = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroup",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinitionTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleSetDefinition(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("RuleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetId = (string) content.GetValueForProperty("RuleSetId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetId, global::System.Convert.ToString); - } - if (content.Contains("RuleSetType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetType = (string) content.GetValueForProperty("RuleSetType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetType, global::System.Convert.ToString); - } - if (content.Contains("RuleSetVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetVersion = (string) content.GetValueForProperty("RuleSetVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleSetVersion, global::System.Convert.ToString); - } - if (content.Contains("RuleGroup")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleGroup = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroup",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal)this).RuleGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinitionTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Describes the a managed rule set definition. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionTypeConverter))] - public partial interface IManagedRuleSetDefinition - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.TypeConverter.cs deleted file mode 100644 index 1016b4775ab2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleSetDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleSetDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleSetDefinition.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleSetDefinition.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.cs deleted file mode 100644 index 43afaad7d06a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.cs +++ /dev/null @@ -1,193 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes the a managed rule set definition. - public partial class ManagedRuleSetDefinition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(); - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; } - - /// Resource location. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).ProvisioningState = value ?? null; } - - /// Internal Acessors for RuleGroup - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.RuleGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleGroup = value ?? null /* arrayOf */; } - - /// Internal Acessors for RuleSetId - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.RuleSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetId = value ?? null; } - - /// Internal Acessors for RuleSetType - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.RuleSetType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetType = value ?? null; } - - /// Internal Acessors for RuleSetVersion - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionInternal.RuleSetVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetVersion = value ?? null; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id = value ?? null; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type = value ?? null; } - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties _property; - - /// Properties for a managed rule set definition. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties()); set => this._property = value; } - - /// Provisioning state of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).ProvisioningState; } - - /// Rule groups of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RuleGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleGroup; } - - /// Id of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string RuleSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetId; } - - /// Type of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string RuleSetType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetType; } - - /// Version of the managed rule set type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string RuleSetVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)Property).RuleSetVersion; } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag = value ?? null /* model class */; } - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ManagedRuleSetDefinition() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Describes the a managed rule set definition. - public partial interface IManagedRuleSetDefinition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource - { - /// Provisioning state of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning state of the managed rule set.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// Rule groups of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Rule groups of the managed rule set.", - SerializedName = @"ruleGroups", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition) })] - System.Collections.Generic.List RuleGroup { get; } - /// Id of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Id of the managed rule set.", - SerializedName = @"ruleSetId", - PossibleTypes = new [] { typeof(string) })] - string RuleSetId { get; } - /// Type of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Type of the managed rule set.", - SerializedName = @"ruleSetType", - PossibleTypes = new [] { typeof(string) })] - string RuleSetType { get; } - /// Version of the managed rule set type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Version of the managed rule set type.", - SerializedName = @"ruleSetVersion", - PossibleTypes = new [] { typeof(string) })] - string RuleSetVersion { get; } - - } - /// Describes the a managed rule set definition. - internal partial interface IManagedRuleSetDefinitionInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal - { - /// Properties for a managed rule set definition. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties Property { get; set; } - /// Provisioning state of the managed rule set. - string ProvisioningState { get; set; } - /// Rule groups of the managed rule set. - System.Collections.Generic.List RuleGroup { get; set; } - /// Id of the managed rule set. - string RuleSetId { get; set; } - /// Type of the managed rule set. - string RuleSetType { get; set; } - /// Version of the managed rule set type. - string RuleSetVersion { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.json.cs deleted file mode 100644 index 6875b88eca48..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinition.json.cs +++ /dev/null @@ -1,110 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes the a managed rule set definition. - public partial class ManagedRuleSetDefinition - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSetDefinition(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleSetDefinition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionProperties.FromJson(__jsonProperties) : _property;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.PowerShell.cs deleted file mode 100644 index bcca77fff845..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// List of managed rule set definitions available for use in a policy. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionListTypeConverter))] - public partial class ManagedRuleSetDefinitionList - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleSetDefinitionList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleSetDefinitionList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleSetDefinitionList(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleSetDefinitionList(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinitionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// List of managed rule set definitions available for use in a policy. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionListTypeConverter))] - public partial interface IManagedRuleSetDefinitionList - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.TypeConverter.cs deleted file mode 100644 index fe1e85548133..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleSetDefinitionListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleSetDefinitionList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleSetDefinitionList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleSetDefinitionList.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.cs deleted file mode 100644 index 8a0c25589115..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.cs +++ /dev/null @@ -1,77 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// List of managed rule set definitions available for use in a policy. - public partial class ManagedRuleSetDefinitionList : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionListInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to retrieve next set of managed rule set definitions. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of managed rule set definitions. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public ManagedRuleSetDefinitionList() - { - - } - } - /// List of managed rule set definitions available for use in a policy. - public partial interface IManagedRuleSetDefinitionList : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// URL to retrieve next set of managed rule set definitions. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to retrieve next set of managed rule set definitions.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of managed rule set definitions. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of managed rule set definitions.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition) })] - System.Collections.Generic.List Value { get; } - - } - /// List of managed rule set definitions available for use in a policy. - internal partial interface IManagedRuleSetDefinitionListInternal - - { - /// URL to retrieve next set of managed rule set definitions. - string NextLink { get; set; } - /// List of managed rule set definitions. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.json.cs deleted file mode 100644 index 094c0ed366c1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionList.json.cs +++ /dev/null @@ -1,121 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// List of managed rule set definitions available for use in a policy. - public partial class ManagedRuleSetDefinitionList - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSetDefinitionList(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleSetDefinitionList(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetDefinition.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.PowerShell.cs deleted file mode 100644 index 347ab878bc57..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.PowerShell.cs +++ /dev/null @@ -1,198 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Properties for a managed rule set definition. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionPropertiesTypeConverter))] - public partial class ManagedRuleSetDefinitionProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleSetDefinitionProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleSetDefinitionProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleSetDefinitionProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("RuleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetId = (string) content.GetValueForProperty("RuleSetId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetId, global::System.Convert.ToString); - } - if (content.Contains("RuleSetType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetType = (string) content.GetValueForProperty("RuleSetType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetType, global::System.Convert.ToString); - } - if (content.Contains("RuleSetVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetVersion = (string) content.GetValueForProperty("RuleSetVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetVersion, global::System.Convert.ToString); - } - if (content.Contains("RuleGroup")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleGroup = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroup",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinitionTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleSetDefinitionProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("RuleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetId = (string) content.GetValueForProperty("RuleSetId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetId, global::System.Convert.ToString); - } - if (content.Contains("RuleSetType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetType = (string) content.GetValueForProperty("RuleSetType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetType, global::System.Convert.ToString); - } - if (content.Contains("RuleSetVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetVersion = (string) content.GetValueForProperty("RuleSetVersion",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleSetVersion, global::System.Convert.ToString); - } - if (content.Contains("RuleGroup")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleGroup = (System.Collections.Generic.List) content.GetValueForProperty("RuleGroup",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal)this).RuleGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinitionTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Properties for a managed rule set definition. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetDefinitionPropertiesTypeConverter))] - public partial interface IManagedRuleSetDefinitionProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.TypeConverter.cs deleted file mode 100644 index f95e24cd0451..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.TypeConverter.cs +++ /dev/null @@ -1,149 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleSetDefinitionPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleSetDefinitionProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleSetDefinitionProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleSetDefinitionProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.cs deleted file mode 100644 index 164febcb5205..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.cs +++ /dev/null @@ -1,149 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Properties for a managed rule set definition. - public partial class ManagedRuleSetDefinitionProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal - { - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for RuleGroup - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.RuleGroup { get => this._ruleGroup; set { {_ruleGroup = value;} } } - - /// Internal Acessors for RuleSetId - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.RuleSetId { get => this._ruleSetId; set { {_ruleSetId = value;} } } - - /// Internal Acessors for RuleSetType - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.RuleSetType { get => this._ruleSetType; set { {_ruleSetType = value;} } } - - /// Internal Acessors for RuleSetVersion - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionPropertiesInternal.RuleSetVersion { get => this._ruleSetVersion; set { {_ruleSetVersion = value;} } } - - /// Backing field for property. - private string _provisioningState; - - /// Provisioning state of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private System.Collections.Generic.List _ruleGroup; - - /// Rule groups of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List RuleGroup { get => this._ruleGroup; } - - /// Backing field for property. - private string _ruleSetId; - - /// Id of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleSetId { get => this._ruleSetId; } - - /// Backing field for property. - private string _ruleSetType; - - /// Type of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleSetType { get => this._ruleSetType; } - - /// Backing field for property. - private string _ruleSetVersion; - - /// Version of the managed rule set type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RuleSetVersion { get => this._ruleSetVersion; } - - /// Creates an new instance. - public ManagedRuleSetDefinitionProperties() - { - - } - } - /// Properties for a managed rule set definition. - public partial interface IManagedRuleSetDefinitionProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Provisioning state of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning state of the managed rule set.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// Rule groups of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Rule groups of the managed rule set.", - SerializedName = @"ruleGroups", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition) })] - System.Collections.Generic.List RuleGroup { get; } - /// Id of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Id of the managed rule set.", - SerializedName = @"ruleSetId", - PossibleTypes = new [] { typeof(string) })] - string RuleSetId { get; } - /// Type of the managed rule set. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Type of the managed rule set.", - SerializedName = @"ruleSetType", - PossibleTypes = new [] { typeof(string) })] - string RuleSetType { get; } - /// Version of the managed rule set type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Version of the managed rule set type.", - SerializedName = @"ruleSetVersion", - PossibleTypes = new [] { typeof(string) })] - string RuleSetVersion { get; } - - } - /// Properties for a managed rule set definition. - internal partial interface IManagedRuleSetDefinitionPropertiesInternal - - { - /// Provisioning state of the managed rule set. - string ProvisioningState { get; set; } - /// Rule groups of the managed rule set. - System.Collections.Generic.List RuleGroup { get; set; } - /// Id of the managed rule set. - string RuleSetId { get; set; } - /// Type of the managed rule set. - string RuleSetType { get; set; } - /// Version of the managed rule set type. - string RuleSetVersion { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.json.cs deleted file mode 100644 index 3db916a4cd96..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetDefinitionProperties.json.cs +++ /dev/null @@ -1,140 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Properties for a managed rule set definition. - public partial class ManagedRuleSetDefinitionProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSetDefinitionProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleSetDefinitionProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} - {_ruleSetId = If( json?.PropertyT("ruleSetId"), out var __jsonRuleSetId) ? (string)__jsonRuleSetId : (string)_ruleSetId;} - {_ruleSetType = If( json?.PropertyT("ruleSetType"), out var __jsonRuleSetType) ? (string)__jsonRuleSetType : (string)_ruleSetType;} - {_ruleSetVersion = If( json?.PropertyT("ruleSetVersion"), out var __jsonRuleSetVersion) ? (string)__jsonRuleSetVersion : (string)_ruleSetVersion;} - {_ruleGroup = If( json?.PropertyT("ruleGroups"), out var __jsonRuleGroups) ? If( __jsonRuleGroups as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupDefinition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleGroupDefinition.FromJson(__u) )) ))() : null : _ruleGroup;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._ruleSetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleSetId.ToString()) : null, "ruleSetId" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._ruleSetType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleSetType.ToString()) : null, "ruleSetType" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._ruleSetVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._ruleSetVersion.ToString()) : null, "ruleSetVersion" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._ruleGroup) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._ruleGroup ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("ruleGroups",__w); - } - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.PowerShell.cs deleted file mode 100644 index 7eeb0be68c5c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines the list of managed rule sets for the policy. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetListTypeConverter))] - public partial class ManagedRuleSetList - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedRuleSetList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedRuleSetList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedRuleSetList(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ManagedRuleSet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedRuleSetList(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ManagedRuleSet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines the list of managed rule sets for the policy. - [System.ComponentModel.TypeConverter(typeof(ManagedRuleSetListTypeConverter))] - public partial interface IManagedRuleSetList - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.TypeConverter.cs deleted file mode 100644 index df0a5931b913..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedRuleSetListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedRuleSetList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedRuleSetList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedRuleSetList.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.cs deleted file mode 100644 index 051e7a182860..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the list of managed rule sets for the policy. - public partial class ManagedRuleSetList : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _managedRuleSet; - - /// List of rule sets. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List ManagedRuleSet { get => this._managedRuleSet; set => this._managedRuleSet = value; } - - /// Creates an new instance. - public ManagedRuleSetList() - { - - } - } - /// Defines the list of managed rule sets for the policy. - public partial interface IManagedRuleSetList : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// List of rule sets. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of rule sets.", - SerializedName = @"managedRuleSets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] - System.Collections.Generic.List ManagedRuleSet { get; set; } - - } - /// Defines the list of managed rule sets for the policy. - internal partial interface IManagedRuleSetListInternal - - { - /// List of rule sets. - System.Collections.Generic.List ManagedRuleSet { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.json.cs deleted file mode 100644 index efa5ae489a22..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ManagedRuleSetList.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the list of managed rule sets for the policy. - public partial class ManagedRuleSetList - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ManagedRuleSetList(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedRuleSetList(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_managedRuleSet = If( json?.PropertyT("managedRuleSets"), out var __jsonManagedRuleSets) ? If( __jsonManagedRuleSets as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSet.FromJson(__u) )) ))() : null : _managedRuleSet;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._managedRuleSet) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._managedRuleSet ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("managedRuleSets",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.PowerShell.cs deleted file mode 100644 index 01e6c6f82349..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.PowerShell.cs +++ /dev/null @@ -1,204 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Define a match condition. - [System.ComponentModel.TypeConverter(typeof(MatchConditionTypeConverter))] - public partial class MatchCondition - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MatchCondition(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MatchCondition(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MatchCondition(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MatchVariable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchVariable, global::System.Convert.ToString); - } - if (content.Contains("Selector")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Selector, global::System.Convert.ToString); - } - if (content.Contains("OperatorProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).OperatorProperty = (string) content.GetValueForProperty("OperatorProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).OperatorProperty, global::System.Convert.ToString); - } - if (content.Contains("NegateCondition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).NegateCondition = (bool?) content.GetValueForProperty("NegateCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).NegateCondition, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MatchValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchValue = (System.Collections.Generic.List) content.GetValueForProperty("MatchValue",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchValue, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("Transform")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Transform = (System.Collections.Generic.List) content.GetValueForProperty("Transform",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Transform, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MatchCondition(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MatchVariable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchVariable, global::System.Convert.ToString); - } - if (content.Contains("Selector")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Selector, global::System.Convert.ToString); - } - if (content.Contains("OperatorProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).OperatorProperty = (string) content.GetValueForProperty("OperatorProperty",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).OperatorProperty, global::System.Convert.ToString); - } - if (content.Contains("NegateCondition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).NegateCondition = (bool?) content.GetValueForProperty("NegateCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).NegateCondition, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MatchValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchValue = (System.Collections.Generic.List) content.GetValueForProperty("MatchValue",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).MatchValue, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("Transform")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Transform = (System.Collections.Generic.List) content.GetValueForProperty("Transform",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal)this).Transform, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Define a match condition. - [System.ComponentModel.TypeConverter(typeof(MatchConditionTypeConverter))] - public partial interface IMatchCondition - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.TypeConverter.cs deleted file mode 100644 index 1b2d628ff52c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class MatchConditionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return MatchCondition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return MatchCondition.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return MatchCondition.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.cs deleted file mode 100644 index 1f7635f44a53..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.cs +++ /dev/null @@ -1,166 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Define a match condition. - public partial class MatchCondition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchConditionInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _matchValue; - - /// List of possible match values. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List MatchValue { get => this._matchValue; set => this._matchValue = value; } - - /// Backing field for property. - private string _matchVariable; - - /// Request variable to compare with. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string MatchVariable { get => this._matchVariable; set => this._matchVariable = value; } - - /// Backing field for property. - private bool? _negateCondition; - - /// Describes if the result of this condition should be negated. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public bool? NegateCondition { get => this._negateCondition; set => this._negateCondition = value; } - - /// Backing field for property. - private string _operatorProperty; - - /// Comparison type to use for matching with the variable value. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string OperatorProperty { get => this._operatorProperty; set => this._operatorProperty = value; } - - /// Backing field for property. - private string _selector; - - /// - /// Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Selector { get => this._selector; set => this._selector = value; } - - /// Backing field for property. - private System.Collections.Generic.List _transform; - - /// List of transforms. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Transform { get => this._transform; set => this._transform = value; } - - /// Creates an new instance. - public MatchCondition() - { - - } - } - /// Define a match condition. - public partial interface IMatchCondition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// List of possible match values. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of possible match values.", - SerializedName = @"matchValue", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List MatchValue { get; set; } - /// Request variable to compare with. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Request variable to compare with.", - SerializedName = @"matchVariable", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] - string MatchVariable { get; set; } - /// Describes if the result of this condition should be negated. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes if the result of this condition should be negated.", - SerializedName = @"negateCondition", - PossibleTypes = new [] { typeof(bool) })] - bool? NegateCondition { get; set; } - /// Comparison type to use for matching with the variable value. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Comparison type to use for matching with the variable value.", - SerializedName = @"operator", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] - string OperatorProperty { get; set; } - /// - /// Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.", - SerializedName = @"selector", - PossibleTypes = new [] { typeof(string) })] - string Selector { get; set; } - /// List of transforms. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of transforms.", - SerializedName = @"transforms", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - System.Collections.Generic.List Transform { get; set; } - - } - /// Define a match condition. - internal partial interface IMatchConditionInternal - - { - /// List of possible match values. - System.Collections.Generic.List MatchValue { get; set; } - /// Request variable to compare with. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", "RequestBody", "Cookies", "SocketAddr")] - string MatchVariable { get; set; } - /// Describes if the result of this condition should be negated. - bool? NegateCondition { get; set; } - /// Comparison type to use for matching with the variable value. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")] - string OperatorProperty { get; set; } - /// - /// Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - /// - string Selector { get; set; } - /// List of transforms. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - System.Collections.Generic.List Transform { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.json.cs deleted file mode 100644 index 9a68107ccc2f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/MatchCondition.json.cs +++ /dev/null @@ -1,134 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Define a match condition. - public partial class MatchCondition - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new MatchCondition(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal MatchCondition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_matchVariable = If( json?.PropertyT("matchVariable"), out var __jsonMatchVariable) ? (string)__jsonMatchVariable : (string)_matchVariable;} - {_selector = If( json?.PropertyT("selector"), out var __jsonSelector) ? (string)__jsonSelector : (string)_selector;} - {_operatorProperty = If( json?.PropertyT("operator"), out var __jsonOperator) ? (string)__jsonOperator : (string)_operatorProperty;} - {_negateCondition = If( json?.PropertyT("negateCondition"), out var __jsonNegateCondition) ? (bool?)__jsonNegateCondition : _negateCondition;} - {_matchValue = If( json?.PropertyT("matchValue"), out var __jsonMatchValue) ? If( __jsonMatchValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _matchValue;} - {_transform = If( json?.PropertyT("transforms"), out var __jsonTransforms) ? If( __jsonTransforms as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _transform;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._matchVariable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._matchVariable.ToString()) : null, "matchVariable" ,container.Add ); - AddIf( null != (((object)this._selector)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selector.ToString()) : null, "selector" ,container.Add ); - AddIf( null != (((object)this._operatorProperty)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._operatorProperty.ToString()) : null, "operator" ,container.Add ); - AddIf( null != this._negateCondition ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonBoolean((bool)this._negateCondition) : null, "negateCondition" ,container.Add ); - if (null != this._matchValue) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._matchValue ) - { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); - } - container.Add("matchValue",__w); - } - if (null != this._transform) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._transform ) - { - AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); - } - container.Add("transforms",__r); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.PowerShell.cs deleted file mode 100644 index 5aab61fae2ff..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.PowerShell.cs +++ /dev/null @@ -1,228 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines top-level WebApplicationFirewallPolicy configuration settings. - [System.ComponentModel.TypeConverter(typeof(PolicySettingsTypeConverter))] - public partial class PolicySettings - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PolicySettings(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PolicySettings(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PolicySettings(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("Mode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).Mode = (string) content.GetValueForProperty("Mode",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).Mode, global::System.Convert.ToString); - } - if (content.Contains("RedirectUrl")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RedirectUrl = (string) content.GetValueForProperty("RedirectUrl",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RedirectUrl, global::System.Convert.ToString); - } - if (content.Contains("CustomBlockResponseStatusCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseStatusCode = (int?) content.GetValueForProperty("CustomBlockResponseStatusCode",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseStatusCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CustomBlockResponseBody")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseBody = (string) content.GetValueForProperty("CustomBlockResponseBody",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseBody, global::System.Convert.ToString); - } - if (content.Contains("RequestBodyCheck")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RequestBodyCheck = (string) content.GetValueForProperty("RequestBodyCheck",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RequestBodyCheck, global::System.Convert.ToString); - } - if (content.Contains("JavascriptChallengeExpirationInMinutes")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).JavascriptChallengeExpirationInMinutes = (int?) content.GetValueForProperty("JavascriptChallengeExpirationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).JavascriptChallengeExpirationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CaptchaExpirationInMinutes")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CaptchaExpirationInMinutes = (int?) content.GetValueForProperty("CaptchaExpirationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CaptchaExpirationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("LogScrubbingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).LogScrubbingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing) content.GetValueForProperty("LogScrubbingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).LogScrubbingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbingTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PolicySettings(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("Mode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).Mode = (string) content.GetValueForProperty("Mode",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).Mode, global::System.Convert.ToString); - } - if (content.Contains("RedirectUrl")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RedirectUrl = (string) content.GetValueForProperty("RedirectUrl",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RedirectUrl, global::System.Convert.ToString); - } - if (content.Contains("CustomBlockResponseStatusCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseStatusCode = (int?) content.GetValueForProperty("CustomBlockResponseStatusCode",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseStatusCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CustomBlockResponseBody")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseBody = (string) content.GetValueForProperty("CustomBlockResponseBody",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CustomBlockResponseBody, global::System.Convert.ToString); - } - if (content.Contains("RequestBodyCheck")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RequestBodyCheck = (string) content.GetValueForProperty("RequestBodyCheck",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).RequestBodyCheck, global::System.Convert.ToString); - } - if (content.Contains("JavascriptChallengeExpirationInMinutes")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).JavascriptChallengeExpirationInMinutes = (int?) content.GetValueForProperty("JavascriptChallengeExpirationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).JavascriptChallengeExpirationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CaptchaExpirationInMinutes")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CaptchaExpirationInMinutes = (int?) content.GetValueForProperty("CaptchaExpirationInMinutes",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).CaptchaExpirationInMinutes, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("LogScrubbingSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).LogScrubbingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing) content.GetValueForProperty("LogScrubbingSetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal)this).LogScrubbingSetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbingTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines top-level WebApplicationFirewallPolicy configuration settings. - [System.ComponentModel.TypeConverter(typeof(PolicySettingsTypeConverter))] - public partial interface IPolicySettings - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.TypeConverter.cs deleted file mode 100644 index 46b449e3fbd8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PolicySettingsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PolicySettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PolicySettings.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PolicySettings.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.cs deleted file mode 100644 index 966f07e1b6f6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.cs +++ /dev/null @@ -1,252 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines top-level WebApplicationFirewallPolicy configuration settings. - public partial class PolicySettings : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsInternal - { - - /// Backing field for property. - private int? _captchaExpirationInMinutes; - - /// - /// 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. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? CaptchaExpirationInMinutes { get => this._captchaExpirationInMinutes; set => this._captchaExpirationInMinutes = value; } - - /// Backing field for property. - private string _customBlockResponseBody; - - /// - /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CustomBlockResponseBody { get => this._customBlockResponseBody; set => this._customBlockResponseBody = value; } - - /// Backing field for property. - private int? _customBlockResponseStatusCode; - - /// If the action type is block, customer can override the response status code. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? CustomBlockResponseStatusCode { get => this._customBlockResponseStatusCode; set => this._customBlockResponseStatusCode = value; } - - /// Backing field for property. - private string _enabledState; - - /// - /// Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string EnabledState { get => this._enabledState; set => this._enabledState = value; } - - /// - /// Backing field for property. - /// - private int? _javascriptChallengeExpirationInMinutes; - - /// - /// 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. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int? JavascriptChallengeExpirationInMinutes { get => this._javascriptChallengeExpirationInMinutes; set => this._javascriptChallengeExpirationInMinutes = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing _logScrubbingSetting; - - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing LogScrubbingSetting { get => (this._logScrubbingSetting = this._logScrubbingSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing()); set => this._logScrubbingSetting = value; } - - /// Backing field for property. - private string _mode; - - /// Describes if it is in detection mode or prevention mode at policy level. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Mode { get => this._mode; set => this._mode = value; } - - /// Backing field for property. - private string _redirectUrl; - - /// If action type is redirect, this field represents redirect URL for the client. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RedirectUrl { get => this._redirectUrl; set => this._redirectUrl = value; } - - /// Backing field for property. - private string _requestBodyCheck; - - /// Describes if policy managed rules will inspect the request body content. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RequestBodyCheck { get => this._requestBodyCheck; set => this._requestBodyCheck = value; } - - /// Creates an new instance. - public PolicySettings() - { - - } - } - /// Defines top-level WebApplicationFirewallPolicy configuration settings. - public partial interface IPolicySettings : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// 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. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"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.", - SerializedName = @"captchaExpirationInMinutes", - PossibleTypes = new [] { typeof(int) })] - int? CaptchaExpirationInMinutes { get; set; } - /// - /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"If the action type is block, customer can override the response body. The body must be specified in base64 encoding.", - SerializedName = @"customBlockResponseBody", - PossibleTypes = new [] { typeof(string) })] - string CustomBlockResponseBody { get; set; } - /// If the action type is block, customer can override the response status code. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"If the action type is block, customer can override the response status code.", - SerializedName = @"customBlockResponseStatusCode", - PossibleTypes = new [] { typeof(int) })] - int? CustomBlockResponseStatusCode { get; set; } - /// - /// Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string EnabledState { get; set; } - /// - /// 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. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"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.", - SerializedName = @"javascriptChallengeExpirationInMinutes", - PossibleTypes = new [] { typeof(int) })] - int? JavascriptChallengeExpirationInMinutes { get; set; } - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines rules that scrub sensitive fields in the Web Application Firewall logs.", - SerializedName = @"logScrubbing", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing LogScrubbingSetting { get; set; } - /// Describes if it is in detection mode or prevention mode at policy level. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes if it is in detection mode or prevention mode at policy level.", - SerializedName = @"mode", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] - string Mode { get; set; } - /// If action type is redirect, this field represents redirect URL for the client. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"If action type is redirect, this field represents redirect URL for the client.", - SerializedName = @"redirectUrl", - PossibleTypes = new [] { typeof(string) })] - string RedirectUrl { get; set; } - /// Describes if policy managed rules will inspect the request body content. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes if policy managed rules will inspect the request body content.", - SerializedName = @"requestBodyCheck", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string RequestBodyCheck { get; set; } - - } - /// Defines top-level WebApplicationFirewallPolicy configuration settings. - internal partial interface IPolicySettingsInternal - - { - /// - /// 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. - /// - int? CaptchaExpirationInMinutes { get; set; } - /// - /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - /// - string CustomBlockResponseBody { get; set; } - /// If the action type is block, customer can override the response status code. - int? CustomBlockResponseStatusCode { get; set; } - /// - /// Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string EnabledState { get; set; } - /// - /// 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. - /// - int? JavascriptChallengeExpirationInMinutes { get; set; } - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing LogScrubbingSetting { get; set; } - /// Describes if it is in detection mode or prevention mode at policy level. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Prevention", "Detection")] - string Mode { get; set; } - /// If action type is redirect, this field represents redirect URL for the client. - string RedirectUrl { get; set; } - /// Describes if policy managed rules will inspect the request body content. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Disabled", "Enabled")] - string RequestBodyCheck { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.json.cs deleted file mode 100644 index 710b2df266bd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettings.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines top-level WebApplicationFirewallPolicy configuration settings. - public partial class PolicySettings - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new PolicySettings(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal PolicySettings(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} - {_mode = If( json?.PropertyT("mode"), out var __jsonMode) ? (string)__jsonMode : (string)_mode;} - {_redirectUrl = If( json?.PropertyT("redirectUrl"), out var __jsonRedirectUrl) ? (string)__jsonRedirectUrl : (string)_redirectUrl;} - {_customBlockResponseStatusCode = If( json?.PropertyT("customBlockResponseStatusCode"), out var __jsonCustomBlockResponseStatusCode) ? (int?)__jsonCustomBlockResponseStatusCode : _customBlockResponseStatusCode;} - {_customBlockResponseBody = If( json?.PropertyT("customBlockResponseBody"), out var __jsonCustomBlockResponseBody) ? (string)__jsonCustomBlockResponseBody : (string)_customBlockResponseBody;} - {_requestBodyCheck = If( json?.PropertyT("requestBodyCheck"), out var __jsonRequestBodyCheck) ? (string)__jsonRequestBodyCheck : (string)_requestBodyCheck;} - {_javascriptChallengeExpirationInMinutes = If( json?.PropertyT("javascriptChallengeExpirationInMinutes"), out var __jsonJavascriptChallengeExpirationInMinutes) ? (int?)__jsonJavascriptChallengeExpirationInMinutes : _javascriptChallengeExpirationInMinutes;} - {_captchaExpirationInMinutes = If( json?.PropertyT("captchaExpirationInMinutes"), out var __jsonCaptchaExpirationInMinutes) ? (int?)__jsonCaptchaExpirationInMinutes : _captchaExpirationInMinutes;} - {_logScrubbingSetting = If( json?.PropertyT("logScrubbing"), out var __jsonLogScrubbing) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsLogScrubbing.FromJson(__jsonLogScrubbing) : _logScrubbingSetting;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); - AddIf( null != (((object)this._mode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._mode.ToString()) : null, "mode" ,container.Add ); - AddIf( null != (((object)this._redirectUrl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._redirectUrl.ToString()) : null, "redirectUrl" ,container.Add ); - AddIf( null != this._customBlockResponseStatusCode ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._customBlockResponseStatusCode) : null, "customBlockResponseStatusCode" ,container.Add ); - AddIf( null != (((object)this._customBlockResponseBody)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customBlockResponseBody.ToString()) : null, "customBlockResponseBody" ,container.Add ); - AddIf( null != (((object)this._requestBodyCheck)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._requestBodyCheck.ToString()) : null, "requestBodyCheck" ,container.Add ); - AddIf( null != this._javascriptChallengeExpirationInMinutes ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._javascriptChallengeExpirationInMinutes) : null, "javascriptChallengeExpirationInMinutes" ,container.Add ); - AddIf( null != this._captchaExpirationInMinutes ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber((int)this._captchaExpirationInMinutes) : null, "captchaExpirationInMinutes" ,container.Add ); - AddIf( null != this._logScrubbingSetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._logScrubbingSetting.ToJson(null,serializationMode) : null, "logScrubbing" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.PowerShell.cs deleted file mode 100644 index ad32615107b0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [System.ComponentModel.TypeConverter(typeof(PolicySettingsLogScrubbingTypeConverter))] - public partial class PolicySettingsLogScrubbing - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PolicySettingsLogScrubbing(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PolicySettingsLogScrubbing(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PolicySettingsLogScrubbing(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("ScrubbingRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).ScrubbingRule = (System.Collections.Generic.List) content.GetValueForProperty("ScrubbingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).ScrubbingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRulesTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PolicySettingsLogScrubbing(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("ScrubbingRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).ScrubbingRule = (System.Collections.Generic.List) content.GetValueForProperty("ScrubbingRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal)this).ScrubbingRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRulesTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [System.ComponentModel.TypeConverter(typeof(PolicySettingsLogScrubbingTypeConverter))] - public partial interface IPolicySettingsLogScrubbing - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.TypeConverter.cs deleted file mode 100644 index cfd1fe88eb34..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PolicySettingsLogScrubbingTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PolicySettingsLogScrubbing.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PolicySettingsLogScrubbing.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PolicySettingsLogScrubbing.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.cs deleted file mode 100644 index 776a10a03e81..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - public partial class PolicySettingsLogScrubbing : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbingInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _scrubbingRule; - - /// List of log scrubbing rules applied to the Web Application Firewall logs. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List ScrubbingRule { get => this._scrubbingRule; set => this._scrubbingRule = value; } - - /// Backing field for property. - private string _state; - - /// State of the log scrubbing config. Default value is Enabled. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string State { get => this._state; set => this._state = value; } - - /// Creates an new instance. - public PolicySettingsLogScrubbing() - { - - } - } - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - public partial interface IPolicySettingsLogScrubbing : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// List of log scrubbing rules applied to the Web Application Firewall logs. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of log scrubbing rules applied to the Web Application Firewall logs.", - SerializedName = @"scrubbingRules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules) })] - System.Collections.Generic.List ScrubbingRule { get; set; } - /// State of the log scrubbing config. Default value is Enabled. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"State of the log scrubbing config. Default value is Enabled.", - SerializedName = @"state", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string State { get; set; } - - } - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - internal partial interface IPolicySettingsLogScrubbingInternal - - { - /// List of log scrubbing rules applied to the Web Application Firewall logs. - System.Collections.Generic.List ScrubbingRule { get; set; } - /// State of the log scrubbing config. Default value is Enabled. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string State { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.json.cs deleted file mode 100644 index bf5d12d3ca9d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PolicySettingsLogScrubbing.json.cs +++ /dev/null @@ -1,118 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines rules that scrub sensitive fields in the Web Application Firewall logs. - public partial class PolicySettingsLogScrubbing - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettingsLogScrubbing FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new PolicySettingsLogScrubbing(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal PolicySettingsLogScrubbing(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)_state;} - {_scrubbingRule = If( json?.PropertyT("scrubbingRules"), out var __jsonScrubbingRules) ? If( __jsonScrubbingRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallScrubbingRules.FromJson(__u) )) ))() : null : _scrubbingRule;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); - if (null != this._scrubbingRule) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._scrubbingRule ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("scrubbingRules",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.PowerShell.cs deleted file mode 100644 index 78d37be7da46..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Parameters required for content purge. - [System.ComponentModel.TypeConverter(typeof(PurgeParametersTypeConverter))] - public partial class PurgeParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PurgeParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PurgeParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PurgeParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContentPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal)this).ContentPath = (System.Collections.Generic.List) content.GetValueForProperty("ContentPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal)this).ContentPath, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PurgeParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContentPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal)this).ContentPath = (System.Collections.Generic.List) content.GetValueForProperty("ContentPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal)this).ContentPath, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Parameters required for content purge. - [System.ComponentModel.TypeConverter(typeof(PurgeParametersTypeConverter))] - public partial interface IPurgeParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.TypeConverter.cs deleted file mode 100644 index 5f0004345957..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PurgeParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PurgeParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PurgeParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PurgeParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.cs deleted file mode 100644 index dbdfcab15d6b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.cs +++ /dev/null @@ -1,60 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Parameters required for content purge. - public partial class PurgeParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParametersInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _contentPath; - - /// - /// The path to the content to be purged. Can describe a file path or a wild card directory. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List ContentPath { get => this._contentPath; set => this._contentPath = value; } - - /// Creates an new instance. - public PurgeParameters() - { - - } - } - /// Parameters required for content purge. - public partial interface IPurgeParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// The path to the content to be purged. Can describe a file path or a wild card directory. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The path to the content to be purged. Can describe a file path or a wild card directory.", - SerializedName = @"contentPaths", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List ContentPath { get; set; } - - } - /// Parameters required for content purge. - internal partial interface IPurgeParametersInternal - - { - /// - /// The path to the content to be purged. Can describe a file path or a wild card directory. - /// - System.Collections.Generic.List ContentPath { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.json.cs deleted file mode 100644 index 152fefdf58e4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/PurgeParameters.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Parameters required for content purge. - public partial class PurgeParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new PurgeParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal PurgeParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_contentPath = If( json?.PropertyT("contentPaths"), out var __jsonContentPaths) ? If( __jsonContentPaths as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _contentPath;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._contentPath) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._contentPath ) - { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); - } - container.Add("contentPaths",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.PowerShell.cs deleted file mode 100644 index 9da388980d0f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.PowerShell.cs +++ /dev/null @@ -1,212 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Describes Redirect Route. - [System.ComponentModel.TypeConverter(typeof(RedirectConfigurationTypeConverter))] - public partial class RedirectConfiguration - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RedirectConfiguration(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RedirectConfiguration(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RedirectConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RedirectType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectType = (string) content.GetValueForProperty("RedirectType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectType, global::System.Convert.ToString); - } - if (content.Contains("RedirectProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectProtocol = (string) content.GetValueForProperty("RedirectProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectProtocol, global::System.Convert.ToString); - } - if (content.Contains("CustomHost")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomHost = (string) content.GetValueForProperty("CustomHost",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomHost, global::System.Convert.ToString); - } - if (content.Contains("CustomPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomPath = (string) content.GetValueForProperty("CustomPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomPath, global::System.Convert.ToString); - } - if (content.Contains("CustomFragment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomFragment = (string) content.GetValueForProperty("CustomFragment",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomFragment, global::System.Convert.ToString); - } - if (content.Contains("CustomQueryString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomQueryString = (string) content.GetValueForProperty("CustomQueryString",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomQueryString, global::System.Convert.ToString); - } - if (content.Contains("OdataType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RedirectConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RedirectType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectType = (string) content.GetValueForProperty("RedirectType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectType, global::System.Convert.ToString); - } - if (content.Contains("RedirectProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectProtocol = (string) content.GetValueForProperty("RedirectProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).RedirectProtocol, global::System.Convert.ToString); - } - if (content.Contains("CustomHost")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomHost = (string) content.GetValueForProperty("CustomHost",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomHost, global::System.Convert.ToString); - } - if (content.Contains("CustomPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomPath = (string) content.GetValueForProperty("CustomPath",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomPath, global::System.Convert.ToString); - } - if (content.Contains("CustomFragment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomFragment = (string) content.GetValueForProperty("CustomFragment",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomFragment, global::System.Convert.ToString); - } - if (content.Contains("CustomQueryString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomQueryString = (string) content.GetValueForProperty("CustomQueryString",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal)this).CustomQueryString, global::System.Convert.ToString); - } - if (content.Contains("OdataType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Describes Redirect Route. - [System.ComponentModel.TypeConverter(typeof(RedirectConfigurationTypeConverter))] - public partial interface IRedirectConfiguration - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.TypeConverter.cs deleted file mode 100644 index c4390c2df946..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RedirectConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RedirectConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RedirectConfiguration.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RedirectConfiguration.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.cs deleted file mode 100644 index f2e42fa0bef2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.cs +++ /dev/null @@ -1,208 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes Redirect Route. - public partial class RedirectConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfigurationInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration __routeConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration(); - - /// Backing field for property. - private string _customFragment; - - /// - /// Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CustomFragment { get => this._customFragment; set => this._customFragment = value; } - - /// Backing field for property. - private string _customHost; - - /// Host to redirect. Leave empty to use the incoming host as the destination host. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CustomHost { get => this._customHost; set => this._customHost = value; } - - /// Backing field for property. - private string _customPath; - - /// - /// The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination - /// path. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CustomPath { get => this._customPath; set => this._customPath = value; } - - /// Backing field for property. - private string _customQueryString; - - /// - /// The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; - /// leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will - /// be added automatically so do not include them in the front, but do separate multiple query strings with &. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string CustomQueryString { get => this._customQueryString; set => this._customQueryString = value; } - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Constant] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string OdataType { get => "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)__routeConfiguration).OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"; } - - /// Backing field for property. - private string _redirectProtocol; - - /// The protocol of the destination to where the traffic is redirected - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RedirectProtocol { get => this._redirectProtocol; set => this._redirectProtocol = value; } - - /// Backing field for property. - private string _redirectType; - - /// The redirect type the rule will use when redirecting traffic. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string RedirectType { get => this._redirectType; set => this._redirectType = value; } - - /// Creates an new instance. - public RedirectConfiguration() - { - this.__routeConfiguration.OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"; - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__routeConfiguration), __routeConfiguration); - await eventListener.AssertObjectIsValid(nameof(__routeConfiguration), __routeConfiguration); - } - } - /// Describes Redirect Route. - public partial interface IRedirectConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration - { - /// - /// Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.", - SerializedName = @"customFragment", - PossibleTypes = new [] { typeof(string) })] - string CustomFragment { get; set; } - /// Host to redirect. Leave empty to use the incoming host as the destination host. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Host to redirect. Leave empty to use the incoming host as the destination host.", - SerializedName = @"customHost", - PossibleTypes = new [] { typeof(string) })] - string CustomHost { get; set; } - /// - /// The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination - /// path. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.", - SerializedName = @"customPath", - PossibleTypes = new [] { typeof(string) })] - string CustomPath { get; set; } - /// - /// The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; - /// leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will - /// be added automatically so do not include them in the front, but do separate multiple query strings with &. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.", - SerializedName = @"customQueryString", - PossibleTypes = new [] { typeof(string) })] - string CustomQueryString { get; set; } - /// The protocol of the destination to where the traffic is redirected - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The protocol of the destination to where the traffic is redirected", - SerializedName = @"redirectProtocol", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - string RedirectProtocol { get; set; } - /// The redirect type the rule will use when redirecting traffic. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The redirect type the rule will use when redirecting traffic.", - SerializedName = @"redirectType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - string RedirectType { get; set; } - - } - /// Describes Redirect Route. - internal partial interface IRedirectConfigurationInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal - { - /// - /// Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. - /// - string CustomFragment { get; set; } - /// Host to redirect. Leave empty to use the incoming host as the destination host. - string CustomHost { get; set; } - /// - /// The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination - /// path. - /// - string CustomPath { get; set; } - /// - /// The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; - /// leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will - /// be added automatically so do not include them in the front, but do separate multiple query strings with &. - /// - string CustomQueryString { get; set; } - /// The protocol of the destination to where the traffic is redirected - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")] - string RedirectProtocol { get; set; } - /// The redirect type the rule will use when redirecting traffic. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")] - string RedirectType { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.json.cs deleted file mode 100644 index 29312fff6c6e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RedirectConfiguration.json.cs +++ /dev/null @@ -1,120 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Describes Redirect Route. - public partial class RedirectConfiguration - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRedirectConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RedirectConfiguration(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RedirectConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __routeConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration(json); - {_redirectType = If( json?.PropertyT("redirectType"), out var __jsonRedirectType) ? (string)__jsonRedirectType : (string)_redirectType;} - {_redirectProtocol = If( json?.PropertyT("redirectProtocol"), out var __jsonRedirectProtocol) ? (string)__jsonRedirectProtocol : (string)_redirectProtocol;} - {_customHost = If( json?.PropertyT("customHost"), out var __jsonCustomHost) ? (string)__jsonCustomHost : (string)_customHost;} - {_customPath = If( json?.PropertyT("customPath"), out var __jsonCustomPath) ? (string)__jsonCustomPath : (string)_customPath;} - {_customFragment = If( json?.PropertyT("customFragment"), out var __jsonCustomFragment) ? (string)__jsonCustomFragment : (string)_customFragment;} - {_customQueryString = If( json?.PropertyT("customQueryString"), out var __jsonCustomQueryString) ? (string)__jsonCustomQueryString : (string)_customQueryString;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __routeConfiguration?.ToJson(container, serializationMode); - AddIf( null != (((object)this._redirectType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._redirectType.ToString()) : null, "redirectType" ,container.Add ); - AddIf( null != (((object)this._redirectProtocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._redirectProtocol.ToString()) : null, "redirectProtocol" ,container.Add ); - AddIf( null != (((object)this._customHost)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customHost.ToString()) : null, "customHost" ,container.Add ); - AddIf( null != (((object)this._customPath)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customPath.ToString()) : null, "customPath" ,container.Add ); - AddIf( null != (((object)this._customFragment)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customFragment.ToString()) : null, "customFragment" ,container.Add ); - AddIf( null != (((object)this._customQueryString)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._customQueryString.ToString()) : null, "customQueryString" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.PowerShell.cs deleted file mode 100644 index 8f5e031fe380..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.PowerShell.cs +++ /dev/null @@ -1,196 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Common resource representation. - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial class Resource - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Resource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Resource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Resource(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Resource(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Common resource representation. - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial interface IResource - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.TypeConverter.cs deleted file mode 100644 index 3db7b81fdb58..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.TypeConverter.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ResourceTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Resource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Resource.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Resource.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.cs deleted file mode 100644 index ca07e6987568..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.cs +++ /dev/null @@ -1,143 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Common resource representation. - public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Backing field for property. - private string _location; - - /// Resource location. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags()); set => this._tag = value; } - - /// Backing field for property. - private string _type; - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public Resource() - { - - } - } - /// Common resource representation. - public partial interface IResource : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// Resource location. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get; set; } - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Common resource representation. - internal partial interface IResourceInternal - - { - /// Resource ID. - string Id { get; set; } - /// Resource location. - string Location { get; set; } - /// Resource name. - string Name { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get; set; } - /// Resource type. - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.json.cs deleted file mode 100644 index a80b619d05ff..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Resource.json.cs +++ /dev/null @@ -1,123 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Common resource representation. - public partial class Resource - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource. - /// - /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new Resource(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal Resource(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags.FromJson(__jsonTags) : _tag;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); - AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.PowerShell.cs deleted file mode 100644 index cc8d16ce5e00..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.PowerShell.cs +++ /dev/null @@ -1,160 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Resource tags. - [System.ComponentModel.TypeConverter(typeof(ResourceTagsTypeConverter))] - public partial class ResourceTags - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ResourceTags(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ResourceTags(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ResourceTags(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ResourceTags(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Resource tags. - [System.ComponentModel.TypeConverter(typeof(ResourceTagsTypeConverter))] - public partial interface IResourceTags - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs deleted file mode 100644 index 5823d9b045c2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ResourceTagsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ResourceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ResourceTags.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ResourceTags.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.cs deleted file mode 100644 index 97897aa9c8fd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.cs +++ /dev/null @@ -1,35 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Resource tags. - public partial class ResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTagsInternal - { - - /// Creates an new instance. - public ResourceTags() - { - - } - } - /// Resource tags. - public partial interface IResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray - { - - } - /// Resource tags. - internal partial interface IResourceTagsInternal - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.dictionary.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.dictionary.cs deleted file mode 100644 index c50aa6e2a530..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.dictionary.cs +++ /dev/null @@ -1,75 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class ResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTags source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.json.cs deleted file mode 100644 index 76e718ce88e0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ResourceTags.json.cs +++ /dev/null @@ -1,109 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Resource tags. - public partial class ResourceTags - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ResourceTags(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - /// - internal ResourceTags(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, container); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.PowerShell.cs deleted file mode 100644 index 316b7a9ec03f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Base class for all types of Route. - [System.ComponentModel.TypeConverter(typeof(RouteConfigurationTypeConverter))] - public partial class RouteConfiguration - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RouteConfiguration(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RouteConfiguration(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RouteConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OdataType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RouteConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OdataType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType = (string) content.GetValueForProperty("OdataType",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal)this).OdataType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Base class for all types of Route. - [System.ComponentModel.TypeConverter(typeof(RouteConfigurationTypeConverter))] - public partial interface IRouteConfiguration - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.TypeConverter.cs deleted file mode 100644 index b23b171a7cfb..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RouteConfigurationTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RouteConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RouteConfiguration.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RouteConfiguration.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.cs deleted file mode 100644 index c854138b9227..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.cs +++ /dev/null @@ -1,51 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Base class for all types of Route. - public partial class RouteConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfigurationInternal - { - - /// Backing field for property. - private string _odataType; - - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string OdataType { get => this._odataType; set => this._odataType = value; } - - /// Creates an new instance. - public RouteConfiguration() - { - - } - } - /// Base class for all types of Route. - public partial interface IRouteConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"@odata.type", - PossibleTypes = new [] { typeof(string) })] - string OdataType { get; set; } - - } - /// Base class for all types of Route. - internal partial interface IRouteConfigurationInternal - - { - string OdataType { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.json.cs deleted file mode 100644 index 413d532a76bf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RouteConfiguration.json.cs +++ /dev/null @@ -1,127 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Base class for all types of Route. - public partial class RouteConfiguration - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration interface is polymorphic, and the precise - /// model class that will get deserialized is determined at runtime based on the payload. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - if (!(node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json)) - { - return null; - } - // Polymorphic type -- select the appropriate constructor using the discriminator - - switch ( json.StringProperty("@odata.type") ) - { - case "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration": - { - return new ForwardingConfiguration(json); - } - case "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration": - { - return new RedirectConfiguration(json); - } - } - return new RouteConfiguration(json); - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RouteConfiguration(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_odataType = If( json?.PropertyT("@odata.type"), out var __jsonOdataType) ? (string)__jsonOdataType : (string)_odataType;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._odataType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._odataType.ToString()) : null, "@odata.type" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.PowerShell.cs deleted file mode 100644 index f3de82109b3c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.PowerShell.cs +++ /dev/null @@ -1,270 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. - /// - [System.ComponentModel.TypeConverter(typeof(RoutingRuleTypeConverter))] - public partial class RoutingRule - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoutingRule(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoutingRule(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoutingRule(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRulePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("RouteConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); - } - if (content.Contains("AcceptedProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("PatternsToMatch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("RuleEngineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RuleEngineId, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoutingRule(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRulePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("RouteConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); - } - if (content.Contains("AcceptedProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("PatternsToMatch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("RuleEngineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).RuleEngineId, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. - [System.ComponentModel.TypeConverter(typeof(RoutingRuleTypeConverter))] - public partial interface IRoutingRule - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.TypeConverter.cs deleted file mode 100644 index 73011b607dd7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RoutingRuleTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RoutingRule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RoutingRule.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RoutingRule.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.cs deleted file mode 100644 index 067f04a6908c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.cs +++ /dev/null @@ -1,276 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. - /// - public partial class RoutingRule : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(); - - /// Protocol schemes to match for this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List AcceptedProtocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).AcceptedProtocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).AcceptedProtocol = value ?? null /* arrayOf */; } - - /// - /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).EnabledState = value ?? null; } - - /// Frontend endpoints associated with this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List FrontendEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).FrontendEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).FrontendEndpoint = value ?? null /* arrayOf */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)__subResource).Id = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties()); set { {_property = value;} } } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)Property).ResourceState = value ?? null; } - - /// Internal Acessors for RulesEngine - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RulesEngine; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RulesEngine = value ?? null /* model class */; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.Type { get => this._type; set { {_type = value;} } } - - /// Internal Acessors for WebApplicationFirewallPolicyLink - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleInternal.WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } - - /// Backing field for property. - private string _name; - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// The route patterns of the rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List PatternsToMatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).PatternsToMatch; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).PatternsToMatch = value ?? null /* arrayOf */; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties _property; - - /// Properties of the Front Door Routing Rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties()); set => this._property = value; } - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)Property).ResourceState; } - - /// A reference to the routing configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RouteConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RouteConfiguration = value ?? null /* model class */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string RuleEngineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RuleEngineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).RuleEngineId = value ?? null; } - - /// Backing field for property. - private string _type; - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).WebApplicationFirewallPolicyLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)Property).WebApplicationFirewallPolicyLinkId = value ?? null; } - - /// Creates an new instance. - public RoutingRule() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__subResource), __subResource); - await eventListener.AssertObjectIsValid(nameof(__subResource), __subResource); - } - } - /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. - public partial interface IRoutingRule : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource - { - /// Protocol schemes to match for this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Protocol schemes to match for this rule", - SerializedName = @"acceptedProtocols", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - System.Collections.Generic.List AcceptedProtocol { get; set; } - /// - /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// Frontend endpoints associated with this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Frontend endpoints associated with this rule", - SerializedName = @"frontendEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) })] - System.Collections.Generic.List FrontendEndpoint { get; set; } - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The route patterns of the rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The route patterns of the rule.", - SerializedName = @"patternsToMatch", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List PatternsToMatch { get; set; } - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// A reference to the routing configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A reference to the routing configuration.", - SerializedName = @"routeConfiguration", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string RuleEngineId { get; set; } - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string WebApplicationFirewallPolicyLinkId { get; set; } - - } - /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. - internal partial interface IRoutingRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal - { - /// Protocol schemes to match for this rule - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - System.Collections.Generic.List AcceptedProtocol { get; set; } - /// - /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// Frontend endpoints associated with this rule - System.Collections.Generic.List FrontendEndpoint { get; set; } - /// Resource name. - string Name { get; set; } - /// The route patterns of the rule. - System.Collections.Generic.List PatternsToMatch { get; set; } - /// Properties of the Front Door Routing Rule - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties Property { get; set; } - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// A reference to the routing configuration. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get; set; } - /// Resource ID. - string RuleEngineId { get; set; } - /// A reference to a specific Rules Engine Configuration to apply to this route. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource RulesEngine { get; set; } - /// Resource type. - string Type { get; set; } - /// - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get; set; } - /// Resource ID. - string WebApplicationFirewallPolicyLinkId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.json.cs deleted file mode 100644 index c2ea7d52e967..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRule.json.cs +++ /dev/null @@ -1,119 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. - /// - public partial class RoutingRule - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRule(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RoutingRule(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __subResource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleProperties.FromJson(__jsonProperties) : _property;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __subResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.PowerShell.cs deleted file mode 100644 index 1f70ecc194e1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines the Resource ID for a Routing Rule. - [System.ComponentModel.TypeConverter(typeof(RoutingRuleLinkTypeConverter))] - public partial class RoutingRuleLink - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoutingRuleLink(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoutingRuleLink(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoutingRuleLink(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoutingRuleLink(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines the Resource ID for a Routing Rule. - [System.ComponentModel.TypeConverter(typeof(RoutingRuleLinkTypeConverter))] - public partial interface IRoutingRuleLink - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.TypeConverter.cs deleted file mode 100644 index 99b8e69a8ce1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RoutingRuleLinkTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RoutingRuleLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RoutingRuleLink.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RoutingRuleLink.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.cs deleted file mode 100644 index 2ff026ec939e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the Resource ID for a Routing Rule. - public partial class RoutingRuleLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLinkInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Creates an new instance. - public RoutingRuleLink() - { - - } - } - /// Defines the Resource ID for a Routing Rule. - public partial interface IRoutingRuleLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// Defines the Resource ID for a Routing Rule. - internal partial interface IRoutingRuleLinkInternal - - { - /// Resource ID. - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.json.cs deleted file mode 100644 index ad6b7342aa24..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleLink.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the Resource ID for a Routing Rule. - public partial class RoutingRuleLink - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleLink(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RoutingRuleLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.PowerShell.cs deleted file mode 100644 index 74eb1c682d2e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next - /// set of results. - /// - [System.ComponentModel.TypeConverter(typeof(RoutingRuleListResultTypeConverter))] - public partial class RoutingRuleListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoutingRuleListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoutingRuleListResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoutingRuleListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoutingRuleListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next - /// set of results. - [System.ComponentModel.TypeConverter(typeof(RoutingRuleListResultTypeConverter))] - public partial interface IRoutingRuleListResult - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.TypeConverter.cs deleted file mode 100644 index c8dda60ba39f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RoutingRuleListResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RoutingRuleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RoutingRuleListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RoutingRuleListResult.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.cs deleted file mode 100644 index c4c8102b7734..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next - /// set of results. - /// - public partial class RoutingRuleListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of RoutingRule objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of Routing Rules within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public RoutingRuleListResult() - { - - } - } - /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next - /// set of results. - public partial interface IRoutingRuleListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// URL to get the next set of RoutingRule objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to get the next set of RoutingRule objects if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of Routing Rules within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of Routing Rules within a Front Door.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] - System.Collections.Generic.List Value { get; } - - } - /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next - /// set of results. - internal partial interface IRoutingRuleListResultInternal - - { - /// URL to get the next set of RoutingRule objects if there are any. - string NextLink { get; set; } - /// List of Routing Rules within a Front Door. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.json.cs deleted file mode 100644 index 3d2b9ad55d5b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleListResult.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next - /// set of results. - /// - public partial class RoutingRuleListResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RoutingRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRule.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.PowerShell.cs deleted file mode 100644 index d381b932b5a2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.PowerShell.cs +++ /dev/null @@ -1,236 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// The JSON object that contains the properties required to create a routing rule. - [System.ComponentModel.TypeConverter(typeof(RoutingRulePropertiesTypeConverter))] - public partial class RoutingRuleProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoutingRuleProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoutingRuleProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoutingRuleProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("RuleEngineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); - } - if (content.Contains("AcceptedProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("PatternsToMatch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("RouteConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoutingRuleProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("RuleEngineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); - } - if (content.Contains("AcceptedProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("PatternsToMatch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("RouteConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The JSON object that contains the properties required to create a routing rule. - [System.ComponentModel.TypeConverter(typeof(RoutingRulePropertiesTypeConverter))] - public partial interface IRoutingRuleProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.TypeConverter.cs deleted file mode 100644 index d8775b660851..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RoutingRulePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RoutingRuleProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RoutingRuleProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RoutingRuleProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.cs deleted file mode 100644 index 95a5693e0b24..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The JSON object that contains the properties required to create a routing rule. - public partial class RoutingRuleProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters __routingRuleUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParameters(); - - /// Protocol schemes to match for this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List AcceptedProtocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).AcceptedProtocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).AcceptedProtocol = value ?? null /* arrayOf */; } - - /// - /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string EnabledState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).EnabledState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).EnabledState = value ?? null; } - - /// Frontend endpoints associated with this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List FrontendEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).FrontendEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).FrontendEndpoint = value ?? null /* arrayOf */; } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRulePropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } - - /// Internal Acessors for RulesEngine - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal.RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RulesEngine; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RulesEngine = value ?? null /* model class */; } - - /// Internal Acessors for WebApplicationFirewallPolicyLink - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal.WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } - - /// The route patterns of the rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List PatternsToMatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).PatternsToMatch; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).PatternsToMatch = value ?? null /* arrayOf */; } - - /// Backing field for property. - private string _resourceState; - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceState { get => this._resourceState; } - - /// A reference to the routing configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RouteConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RouteConfiguration = value ?? null /* model class */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string RuleEngineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RuleEngineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RuleEngineId = value ?? null; } - - /// A reference to a specific Rules Engine Configuration to apply to this route. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource RulesEngine { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RulesEngine; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).RulesEngine = value ?? null /* model class */; } - - /// - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLink = value ?? null /* model class */; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)__routingRuleUpdateParameters).WebApplicationFirewallPolicyLinkId = value ?? null; } - - /// Creates an new instance. - public RoutingRuleProperties() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__routingRuleUpdateParameters), __routingRuleUpdateParameters); - await eventListener.AssertObjectIsValid(nameof(__routingRuleUpdateParameters), __routingRuleUpdateParameters); - } - } - /// The JSON object that contains the properties required to create a routing rule. - public partial interface IRoutingRuleProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters - { - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - - } - /// The JSON object that contains the properties required to create a routing rule. - internal partial interface IRoutingRulePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal - { - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.json.cs deleted file mode 100644 index 2795f59329ce..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleProperties.json.cs +++ /dev/null @@ -1,113 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The JSON object that contains the properties required to create a routing rule. - public partial class RoutingRuleProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RoutingRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __routingRuleUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParameters(json); - {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __routingRuleUpdateParameters?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.PowerShell.cs deleted file mode 100644 index 28d3618433e3..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.PowerShell.cs +++ /dev/null @@ -1,228 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Routing rules to apply to an endpoint - [System.ComponentModel.TypeConverter(typeof(RoutingRuleUpdateParametersTypeConverter))] - public partial class RoutingRuleUpdateParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoutingRuleUpdateParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoutingRuleUpdateParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoutingRuleUpdateParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); - } - if (content.Contains("AcceptedProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("PatternsToMatch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("RouteConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("RuleEngineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoutingRuleUpdateParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RulesEngine")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) content.GetValueForProperty("RulesEngine",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RulesEngine, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("WebApplicationFirewallPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink) content.GetValueForProperty("WebApplicationFirewallPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLink, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).FrontendEndpoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResourceTypeConverter.ConvertFrom)); - } - if (content.Contains("AcceptedProtocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol = (System.Collections.Generic.List) content.GetValueForProperty("AcceptedProtocol",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).AcceptedProtocol, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("PatternsToMatch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch = (System.Collections.Generic.List) content.GetValueForProperty("PatternsToMatch",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).PatternsToMatch, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("EnabledState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState = (string) content.GetValueForProperty("EnabledState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).EnabledState, global::System.Convert.ToString); - } - if (content.Contains("RouteConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RouteConfiguration, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("RuleEngineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId = (string) content.GetValueForProperty("RuleEngineId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).RuleEngineId, global::System.Convert.ToString); - } - if (content.Contains("WebApplicationFirewallPolicyLinkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId = (string) content.GetValueForProperty("WebApplicationFirewallPolicyLinkId",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal)this).WebApplicationFirewallPolicyLinkId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Routing rules to apply to an endpoint - [System.ComponentModel.TypeConverter(typeof(RoutingRuleUpdateParametersTypeConverter))] - public partial interface IRoutingRuleUpdateParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.TypeConverter.cs deleted file mode 100644 index d0a9e84af95c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RoutingRuleUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RoutingRuleUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RoutingRuleUpdateParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RoutingRuleUpdateParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.cs deleted file mode 100644 index 43dddd3c8b9e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.cs +++ /dev/null @@ -1,206 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Routing rules to apply to an endpoint - public partial class RoutingRuleUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _acceptedProtocol; - - /// Protocol schemes to match for this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List AcceptedProtocol { get => this._acceptedProtocol; set => this._acceptedProtocol = value; } - - /// Backing field for property. - private string _enabledState; - - /// - /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string EnabledState { get => this._enabledState; set => this._enabledState = value; } - - /// Backing field for property. - private System.Collections.Generic.List _frontendEndpoint; - - /// Frontend endpoints associated with this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List FrontendEndpoint { get => this._frontendEndpoint; set => this._frontendEndpoint = value; } - - /// Internal Acessors for RulesEngine - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal.RulesEngine { get => (this._rulesEngine = this._rulesEngine ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set { {_rulesEngine = value;} } } - - /// Internal Acessors for WebApplicationFirewallPolicyLink - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersInternal.WebApplicationFirewallPolicyLink { get => (this._webApplicationFirewallPolicyLink = this._webApplicationFirewallPolicyLink ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink()); set { {_webApplicationFirewallPolicyLink = value;} } } - - /// Backing field for property. - private System.Collections.Generic.List _patternsToMatch; - - /// The route patterns of the rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List PatternsToMatch { get => this._patternsToMatch; set => this._patternsToMatch = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration _routeConfiguration; - - /// A reference to the routing configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get => (this._routeConfiguration = this._routeConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration()); set => this._routeConfiguration = value; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string RuleEngineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)RulesEngine).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)RulesEngine).Id = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource _rulesEngine; - - /// A reference to a specific Rules Engine Configuration to apply to this route. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource RulesEngine { get => (this._rulesEngine = this._rulesEngine ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource()); set => this._rulesEngine = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink _webApplicationFirewallPolicyLink; - - /// - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get => (this._webApplicationFirewallPolicyLink = this._webApplicationFirewallPolicyLink ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink()); set => this._webApplicationFirewallPolicyLink = value; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string WebApplicationFirewallPolicyLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)WebApplicationFirewallPolicyLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)WebApplicationFirewallPolicyLink).Id = value ?? null; } - - /// Creates an new instance. - public RoutingRuleUpdateParameters() - { - - } - } - /// Routing rules to apply to an endpoint - public partial interface IRoutingRuleUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Protocol schemes to match for this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Protocol schemes to match for this rule", - SerializedName = @"acceptedProtocols", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - System.Collections.Generic.List AcceptedProtocol { get; set; } - /// - /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// Frontend endpoints associated with this rule - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Frontend endpoints associated with this rule", - SerializedName = @"frontendEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) })] - System.Collections.Generic.List FrontendEndpoint { get; set; } - /// The route patterns of the rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The route patterns of the rule.", - SerializedName = @"patternsToMatch", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List PatternsToMatch { get; set; } - /// A reference to the routing configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A reference to the routing configuration.", - SerializedName = @"routeConfiguration", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string RuleEngineId { get; set; } - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string WebApplicationFirewallPolicyLinkId { get; set; } - - } - /// Routing rules to apply to an endpoint - internal partial interface IRoutingRuleUpdateParametersInternal - - { - /// Protocol schemes to match for this rule - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Http", "Https")] - System.Collections.Generic.List AcceptedProtocol { get; set; } - /// - /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string EnabledState { get; set; } - /// Frontend endpoints associated with this rule - System.Collections.Generic.List FrontendEndpoint { get; set; } - /// The route patterns of the rule. - System.Collections.Generic.List PatternsToMatch { get; set; } - /// A reference to the routing configuration. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfiguration { get; set; } - /// Resource ID. - string RuleEngineId { get; set; } - /// A reference to a specific Rules Engine Configuration to apply to this route. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource RulesEngine { get; set; } - /// - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink WebApplicationFirewallPolicyLink { get; set; } - /// Resource ID. - string WebApplicationFirewallPolicyLinkId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.json.cs deleted file mode 100644 index 84ff39a6cd1d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParameters.json.cs +++ /dev/null @@ -1,144 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Routing rules to apply to an endpoint - public partial class RoutingRuleUpdateParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleUpdateParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RoutingRuleUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_rulesEngine = If( json?.PropertyT("rulesEngine"), out var __jsonRulesEngine) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__jsonRulesEngine) : _rulesEngine;} - {_webApplicationFirewallPolicyLink = If( json?.PropertyT("webApplicationFirewallPolicyLink"), out var __jsonWebApplicationFirewallPolicyLink) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.FromJson(__jsonWebApplicationFirewallPolicyLink) : _webApplicationFirewallPolicyLink;} - {_frontendEndpoint = If( json?.PropertyT("frontendEndpoints"), out var __jsonFrontendEndpoints) ? If( __jsonFrontendEndpoints as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SubResource.FromJson(__u) )) ))() : null : _frontendEndpoint;} - {_acceptedProtocol = If( json?.PropertyT("acceptedProtocols"), out var __jsonAcceptedProtocols) ? If( __jsonAcceptedProtocols as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _acceptedProtocol;} - {_patternsToMatch = If( json?.PropertyT("patternsToMatch"), out var __jsonPatternsToMatch) ? If( __jsonPatternsToMatch as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(string) (__k is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null)) ))() : null : _patternsToMatch;} - {_enabledState = If( json?.PropertyT("enabledState"), out var __jsonEnabledState) ? (string)__jsonEnabledState : (string)_enabledState;} - {_routeConfiguration = If( json?.PropertyT("routeConfiguration"), out var __jsonRouteConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration.FromJson(__jsonRouteConfiguration) : _routeConfiguration;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._rulesEngine ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._rulesEngine.ToJson(null,serializationMode) : null, "rulesEngine" ,container.Add ); - AddIf( null != this._webApplicationFirewallPolicyLink ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._webApplicationFirewallPolicyLink.ToJson(null,serializationMode) : null, "webApplicationFirewallPolicyLink" ,container.Add ); - if (null != this._frontendEndpoint) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._frontendEndpoint ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("frontendEndpoints",__w); - } - if (null != this._acceptedProtocol) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._acceptedProtocol ) - { - AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); - } - container.Add("acceptedProtocols",__r); - } - if (null != this._patternsToMatch) - { - var __m = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __n in this._patternsToMatch ) - { - AddIf(null != (((object)__n)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__n.ToString()) : null ,__m.Add); - } - container.Add("patternsToMatch",__m); - } - AddIf( null != (((object)this._enabledState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._enabledState.ToString()) : null, "enabledState" ,container.Add ); - AddIf( null != this._routeConfiguration ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._routeConfiguration.ToJson(null,serializationMode) : null, "routeConfiguration" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs deleted file mode 100644 index ff71175a4445..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.PowerShell.cs +++ /dev/null @@ -1,171 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - /// - [System.ComponentModel.TypeConverter(typeof(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter))] - public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(content); - } - - /// - /// Creates a new instance of , deserializing the - /// content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - [System.ComponentModel.TypeConverter(typeof(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter))] - public partial interface IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs deleted file mode 100644 index 6635a53abe6d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.TypeConverter.cs +++ /dev/null @@ -1,153 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is - /// no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is - /// no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs deleted file mode 100644 index 7548e07a17a7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.cs +++ /dev/null @@ -1,58 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - /// - public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// - /// Creates an new instance. - /// - public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink() - { - - } - } - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - public partial interface IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - internal partial interface IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkInternal - - { - /// Resource ID. - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.json.cs deleted file mode 100644 index 04b063c15120..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.json.cs +++ /dev/null @@ -1,113 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Defines the Web Application Firewall policy for each routing rule (if applicable) - /// - public partial class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.PowerShell.cs deleted file mode 100644 index ef0193a62fe8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.PowerShell.cs +++ /dev/null @@ -1,208 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - /// - [System.ComponentModel.TypeConverter(typeof(RulesEngineTypeConverter))] - public partial class RulesEngine - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RulesEngine(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RulesEngine(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RulesEngine(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEnginePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).ResourceState, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RulesEngine(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEnginePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal)this).ResourceState, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - [System.ComponentModel.TypeConverter(typeof(RulesEngineTypeConverter))] - public partial interface IRulesEngine - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.TypeConverter.cs deleted file mode 100644 index 9aa28d5ec7f7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RulesEngineTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RulesEngine.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RulesEngine.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RulesEngine.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.cs deleted file mode 100644 index 182fa9f88a4f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.cs +++ /dev/null @@ -1,163 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - /// - public partial class RulesEngine : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties()); set { {_property = value;} } } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)Property).ResourceState = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties _property; - - /// Properties of the Rules Engine Configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties()); set => this._property = value; } - - /// Gets the resource group name - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)Property).ResourceState; } - - /// A list of rules that define a particular Rules Engine Configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Rule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)Property).Rule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)Property).Rule = value ?? null /* arrayOf */; } - - /// Backing field for property. - private string _type; - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public RulesEngine() - { - - } - } - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - public partial interface IRulesEngine : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - /// A list of rules that define a particular Rules Engine Configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A list of rules that define a particular Rules Engine Configuration.", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] - System.Collections.Generic.List Rule { get; set; } - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - internal partial interface IRulesEngineInternal - - { - /// Resource ID. - string Id { get; set; } - /// Resource name. - string Name { get; set; } - /// Properties of the Rules Engine Configuration. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties Property { get; set; } - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - /// A list of rules that define a particular Rules Engine Configuration. - System.Collections.Generic.List Rule { get; set; } - /// Resource type. - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.json.cs deleted file mode 100644 index 1e2a9f64a4a8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngine.json.cs +++ /dev/null @@ -1,126 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - /// - public partial class RulesEngine - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngine(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RulesEngine(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineProperties.FromJson(__jsonProperties) : _property;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.PowerShell.cs deleted file mode 100644 index 3e1ec3ab6799..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// One or more actions that will execute, modifying the request and/or response. - [System.ComponentModel.TypeConverter(typeof(RulesEngineActionTypeConverter))] - public partial class RulesEngineAction - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RulesEngineAction(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RulesEngineAction(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RulesEngineAction(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RequestHeaderAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RequestHeaderAction = (System.Collections.Generic.List) content.GetValueForProperty("RequestHeaderAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RequestHeaderAction, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderActionTypeConverter.ConvertFrom)); - } - if (content.Contains("ResponseHeaderAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).ResponseHeaderAction = (System.Collections.Generic.List) content.GetValueForProperty("ResponseHeaderAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).ResponseHeaderAction, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderActionTypeConverter.ConvertFrom)); - } - if (content.Contains("RouteConfigurationOverride")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RouteConfigurationOverride = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfigurationOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RouteConfigurationOverride, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RulesEngineAction(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RequestHeaderAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RequestHeaderAction = (System.Collections.Generic.List) content.GetValueForProperty("RequestHeaderAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RequestHeaderAction, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderActionTypeConverter.ConvertFrom)); - } - if (content.Contains("ResponseHeaderAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).ResponseHeaderAction = (System.Collections.Generic.List) content.GetValueForProperty("ResponseHeaderAction",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).ResponseHeaderAction, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderActionTypeConverter.ConvertFrom)); - } - if (content.Contains("RouteConfigurationOverride")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RouteConfigurationOverride = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) content.GetValueForProperty("RouteConfigurationOverride",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal)this).RouteConfigurationOverride, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfigurationTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// One or more actions that will execute, modifying the request and/or response. - [System.ComponentModel.TypeConverter(typeof(RulesEngineActionTypeConverter))] - public partial interface IRulesEngineAction - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.TypeConverter.cs deleted file mode 100644 index acec8526b932..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RulesEngineActionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RulesEngineAction.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RulesEngineAction.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RulesEngineAction.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.cs deleted file mode 100644 index 9f21877dbd84..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.cs +++ /dev/null @@ -1,94 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// One or more actions that will execute, modifying the request and/or response. - public partial class RulesEngineAction : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineActionInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _requestHeaderAction; - - /// A list of header actions to apply from the request from AFD to the origin. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List RequestHeaderAction { get => this._requestHeaderAction; set => this._requestHeaderAction = value; } - - /// Backing field for property. - private System.Collections.Generic.List _responseHeaderAction; - - /// A list of header actions to apply from the response from AFD to the client. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List ResponseHeaderAction { get => this._responseHeaderAction; set => this._responseHeaderAction = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration _routeConfigurationOverride; - - /// Override the route configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfigurationOverride { get => (this._routeConfigurationOverride = this._routeConfigurationOverride ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration()); set => this._routeConfigurationOverride = value; } - - /// Creates an new instance. - public RulesEngineAction() - { - - } - } - /// One or more actions that will execute, modifying the request and/or response. - public partial interface IRulesEngineAction : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// A list of header actions to apply from the request from AFD to the origin. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A list of header actions to apply from the request from AFD to the origin.", - SerializedName = @"requestHeaderActions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction) })] - System.Collections.Generic.List RequestHeaderAction { get; set; } - /// A list of header actions to apply from the response from AFD to the client. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A list of header actions to apply from the response from AFD to the client.", - SerializedName = @"responseHeaderActions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction) })] - System.Collections.Generic.List ResponseHeaderAction { get; set; } - /// Override the route configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Override the route configuration.", - SerializedName = @"routeConfigurationOverride", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfigurationOverride { get; set; } - - } - /// One or more actions that will execute, modifying the request and/or response. - internal partial interface IRulesEngineActionInternal - - { - /// A list of header actions to apply from the request from AFD to the origin. - System.Collections.Generic.List RequestHeaderAction { get; set; } - /// A list of header actions to apply from the response from AFD to the client. - System.Collections.Generic.List ResponseHeaderAction { get; set; } - /// Override the route configuration. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRouteConfiguration RouteConfigurationOverride { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.json.cs deleted file mode 100644 index e2c3a60ba648..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineAction.json.cs +++ /dev/null @@ -1,128 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// One or more actions that will execute, modifying the request and/or response. - public partial class RulesEngineAction - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineAction(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RulesEngineAction(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_requestHeaderAction = If( json?.PropertyT("requestHeaderActions"), out var __jsonRequestHeaderActions) ? If( __jsonRequestHeaderActions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction.FromJson(__u) )) ))() : null : _requestHeaderAction;} - {_responseHeaderAction = If( json?.PropertyT("responseHeaderActions"), out var __jsonResponseHeaderActions) ? If( __jsonResponseHeaderActions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHeaderAction) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.HeaderAction.FromJson(__p) )) ))() : null : _responseHeaderAction;} - {_routeConfigurationOverride = If( json?.PropertyT("routeConfigurationOverride"), out var __jsonRouteConfigurationOverride) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RouteConfiguration.FromJson(__jsonRouteConfigurationOverride) : _routeConfigurationOverride;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._requestHeaderAction) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._requestHeaderAction ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("requestHeaderActions",__w); - } - if (null != this._responseHeaderAction) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._responseHeaderAction ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("responseHeaderActions",__r); - } - AddIf( null != this._routeConfigurationOverride ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._routeConfigurationOverride.ToJson(null,serializationMode) : null, "routeConfigurationOverride" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.PowerShell.cs deleted file mode 100644 index a7e451af370b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to - /// get the next set of results. - /// - [System.ComponentModel.TypeConverter(typeof(RulesEngineListResultTypeConverter))] - public partial class RulesEngineListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RulesEngineListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RulesEngineListResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RulesEngineListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RulesEngineListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to - /// get the next set of results. - [System.ComponentModel.TypeConverter(typeof(RulesEngineListResultTypeConverter))] - public partial interface IRulesEngineListResult - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.TypeConverter.cs deleted file mode 100644 index c5810ba0b0f9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RulesEngineListResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RulesEngineListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RulesEngineListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RulesEngineListResult.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.cs deleted file mode 100644 index 122f836cb944..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to - /// get the next set of results. - /// - public partial class RulesEngineListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of RulesEngine objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of rulesEngines within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public RulesEngineListResult() - { - - } - } - /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to - /// get the next set of results. - public partial interface IRulesEngineListResult : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// URL to get the next set of RulesEngine objects if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to get the next set of RulesEngine objects if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of rulesEngines within a Front Door. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of rulesEngines within a Front Door.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) })] - System.Collections.Generic.List Value { get; } - - } - /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to - /// get the next set of results. - internal partial interface IRulesEngineListResultInternal - - { - /// URL to get the next set of RulesEngine objects if there are any. - string NextLink { get; set; } - /// List of rulesEngines within a Front Door. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.json.cs deleted file mode 100644 index 95ec963a9d4b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineListResult.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to - /// get the next set of results. - /// - public partial class RulesEngineListResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RulesEngineListResult(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.PowerShell.cs deleted file mode 100644 index ae3f52831034..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.PowerShell.cs +++ /dev/null @@ -1,204 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Define a match condition - [System.ComponentModel.TypeConverter(typeof(RulesEngineMatchConditionTypeConverter))] - public partial class RulesEngineMatchCondition - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RulesEngineMatchCondition(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RulesEngineMatchCondition(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RulesEngineMatchCondition(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MatchVariable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchVariable, global::System.Convert.ToString); - } - if (content.Contains("Selector")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Selector, global::System.Convert.ToString); - } - if (content.Contains("Operator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Operator = (string) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Operator, global::System.Convert.ToString); - } - if (content.Contains("NegateCondition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).NegateCondition = (bool?) content.GetValueForProperty("NegateCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).NegateCondition, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MatchValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchValue = (System.Collections.Generic.List) content.GetValueForProperty("MatchValue",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchValue, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("Transform")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Transform = (System.Collections.Generic.List) content.GetValueForProperty("Transform",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Transform, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RulesEngineMatchCondition(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MatchVariable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchVariable, global::System.Convert.ToString); - } - if (content.Contains("Selector")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Selector, global::System.Convert.ToString); - } - if (content.Contains("Operator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Operator = (string) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Operator, global::System.Convert.ToString); - } - if (content.Contains("NegateCondition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).NegateCondition = (bool?) content.GetValueForProperty("NegateCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).NegateCondition, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MatchValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchValue = (System.Collections.Generic.List) content.GetValueForProperty("MatchValue",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).MatchValue, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("Transform")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Transform = (System.Collections.Generic.List) content.GetValueForProperty("Transform",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal)this).Transform, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Define a match condition - [System.ComponentModel.TypeConverter(typeof(RulesEngineMatchConditionTypeConverter))] - public partial interface IRulesEngineMatchCondition - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.TypeConverter.cs deleted file mode 100644 index 612d2b0795bf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RulesEngineMatchConditionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RulesEngineMatchCondition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RulesEngineMatchCondition.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RulesEngineMatchCondition.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.cs deleted file mode 100644 index 8233be073c26..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.cs +++ /dev/null @@ -1,169 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Define a match condition - public partial class RulesEngineMatchCondition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchConditionInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _matchValue; - - /// - /// Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the - /// variable with the given operator this match condition is considered a match. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List MatchValue { get => this._matchValue; set => this._matchValue = value; } - - /// Backing field for property. - private string _matchVariable; - - /// Match Variable - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string MatchVariable { get => this._matchVariable; set => this._matchVariable = value; } - - /// Backing field for property. - private bool? _negateCondition; - - /// Describes if this is negate condition or not - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public bool? NegateCondition { get => this._negateCondition; set => this._negateCondition = value; } - - /// Backing field for property. - private string _operator; - - /// Describes operator to apply to the match condition. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Operator { get => this._operator; set => this._operator = value; } - - /// Backing field for property. - private string _selector; - - /// Name of selector in RequestHeader or RequestBody to be matched - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Selector { get => this._selector; set => this._selector = value; } - - /// Backing field for property. - private System.Collections.Generic.List _transform; - - /// List of transforms - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Transform { get => this._transform; set => this._transform = value; } - - /// Creates an new instance. - public RulesEngineMatchCondition() - { - - } - } - /// Define a match condition - public partial interface IRulesEngineMatchCondition : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the - /// variable with the given operator this match condition is considered a match. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.", - SerializedName = @"rulesEngineMatchValue", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List MatchValue { get; set; } - /// Match Variable - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Match Variable", - SerializedName = @"rulesEngineMatchVariable", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] - string MatchVariable { get; set; } - /// Describes if this is negate condition or not - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes if this is negate condition or not", - SerializedName = @"negateCondition", - PossibleTypes = new [] { typeof(bool) })] - bool? NegateCondition { get; set; } - /// Describes operator to apply to the match condition. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes operator to apply to the match condition.", - SerializedName = @"rulesEngineOperator", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] - string Operator { get; set; } - /// Name of selector in RequestHeader or RequestBody to be matched - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of selector in RequestHeader or RequestBody to be matched", - SerializedName = @"selector", - PossibleTypes = new [] { typeof(string) })] - string Selector { get; set; } - /// List of transforms - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of transforms", - SerializedName = @"transforms", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - System.Collections.Generic.List Transform { get; set; } - - } - /// Define a match condition - internal partial interface IRulesEngineMatchConditionInternal - - { - /// - /// Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the - /// variable with the given operator this match condition is considered a match. - /// - System.Collections.Generic.List MatchValue { get; set; } - /// Match Variable - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", "RequestScheme")] - string MatchVariable { get; set; } - /// Describes if this is negate condition or not - bool? NegateCondition { get; set; } - /// Describes operator to apply to the match condition. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith")] - string Operator { get; set; } - /// Name of selector in RequestHeader or RequestBody to be matched - string Selector { get; set; } - /// List of transforms - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")] - System.Collections.Generic.List Transform { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.json.cs deleted file mode 100644 index 9b1c9a01a384..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineMatchCondition.json.cs +++ /dev/null @@ -1,134 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Define a match condition - public partial class RulesEngineMatchCondition - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineMatchCondition(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RulesEngineMatchCondition(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_matchVariable = If( json?.PropertyT("rulesEngineMatchVariable"), out var __jsonRulesEngineMatchVariable) ? (string)__jsonRulesEngineMatchVariable : (string)_matchVariable;} - {_selector = If( json?.PropertyT("selector"), out var __jsonSelector) ? (string)__jsonSelector : (string)_selector;} - {_operator = If( json?.PropertyT("rulesEngineOperator"), out var __jsonRulesEngineOperator) ? (string)__jsonRulesEngineOperator : (string)_operator;} - {_negateCondition = If( json?.PropertyT("negateCondition"), out var __jsonNegateCondition) ? (bool?)__jsonNegateCondition : _negateCondition;} - {_matchValue = If( json?.PropertyT("rulesEngineMatchValue"), out var __jsonRulesEngineMatchValue) ? If( __jsonRulesEngineMatchValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _matchValue;} - {_transform = If( json?.PropertyT("transforms"), out var __jsonTransforms) ? If( __jsonTransforms as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _transform;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._matchVariable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._matchVariable.ToString()) : null, "rulesEngineMatchVariable" ,container.Add ); - AddIf( null != (((object)this._selector)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selector.ToString()) : null, "selector" ,container.Add ); - AddIf( null != (((object)this._operator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._operator.ToString()) : null, "rulesEngineOperator" ,container.Add ); - AddIf( null != this._negateCondition ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonBoolean((bool)this._negateCondition) : null, "negateCondition" ,container.Add ); - if (null != this._matchValue) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._matchValue ) - { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); - } - container.Add("rulesEngineMatchValue",__w); - } - if (null != this._transform) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._transform ) - { - AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); - } - container.Add("transforms",__r); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.PowerShell.cs deleted file mode 100644 index bc8246f163d7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.PowerShell.cs +++ /dev/null @@ -1,174 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// The JSON object that contains the properties required to create a Rules Engine Configuration. - /// - [System.ComponentModel.TypeConverter(typeof(RulesEnginePropertiesTypeConverter))] - public partial class RulesEngineProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RulesEngineProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RulesEngineProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RulesEngineProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RulesEngineProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The JSON object that contains the properties required to create a Rules Engine Configuration. - [System.ComponentModel.TypeConverter(typeof(RulesEnginePropertiesTypeConverter))] - public partial interface IRulesEngineProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.TypeConverter.cs deleted file mode 100644 index 3e55e45b1925..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RulesEnginePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RulesEngineProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RulesEngineProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RulesEngineProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.cs deleted file mode 100644 index a2d6904401c5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The JSON object that contains the properties required to create a Rules Engine Configuration. - /// - public partial class RulesEngineProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters __rulesEngineUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineUpdateParameters(); - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEnginePropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } - - /// Backing field for property. - private string _resourceState; - - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceState { get => this._resourceState; } - - /// A list of rules that define a particular Rules Engine Configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public System.Collections.Generic.List Rule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)__rulesEngineUpdateParameters).Rule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)__rulesEngineUpdateParameters).Rule = value ?? null /* arrayOf */; } - - /// Creates an new instance. - public RulesEngineProperties() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__rulesEngineUpdateParameters), __rulesEngineUpdateParameters); - await eventListener.AssertObjectIsValid(nameof(__rulesEngineUpdateParameters), __rulesEngineUpdateParameters); - } - } - /// The JSON object that contains the properties required to create a Rules Engine Configuration. - public partial interface IRulesEngineProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters - { - /// Resource status. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; } - - } - /// The JSON object that contains the properties required to create a Rules Engine Configuration. - internal partial interface IRulesEnginePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal - { - /// Resource status. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", "Migrated")] - string ResourceState { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.json.cs deleted file mode 100644 index 5fdce6e2e029..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineProperties.json.cs +++ /dev/null @@ -1,115 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The JSON object that contains the properties required to create a Rules Engine Configuration. - /// - public partial class RulesEngineProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RulesEngineProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __rulesEngineUpdateParameters = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineUpdateParameters(json); - {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __rulesEngineUpdateParameters?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.PowerShell.cs deleted file mode 100644 index 21d11c6097f1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.PowerShell.cs +++ /dev/null @@ -1,202 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the - /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers - /// manipulation. - /// - [System.ComponentModel.TypeConverter(typeof(RulesEngineRuleTypeConverter))] - public partial class RulesEngineRule - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RulesEngineRule(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RulesEngineRule(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RulesEngineRule(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Priority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Action")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineActionTypeConverter.ConvertFrom); - } - if (content.Contains("MatchCondition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchCondition = (System.Collections.Generic.List) content.GetValueForProperty("MatchCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchCondition, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchConditionTypeConverter.ConvertFrom)); - } - if (content.Contains("MatchProcessingBehavior")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchProcessingBehavior = (string) content.GetValueForProperty("MatchProcessingBehavior",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchProcessingBehavior, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RulesEngineRule(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Priority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Action")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineActionTypeConverter.ConvertFrom); - } - if (content.Contains("MatchCondition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchCondition = (System.Collections.Generic.List) content.GetValueForProperty("MatchCondition",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchCondition, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchConditionTypeConverter.ConvertFrom)); - } - if (content.Contains("MatchProcessingBehavior")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchProcessingBehavior = (string) content.GetValueForProperty("MatchProcessingBehavior",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal)this).MatchProcessingBehavior, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the - /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers - /// manipulation. - [System.ComponentModel.TypeConverter(typeof(RulesEngineRuleTypeConverter))] - public partial interface IRulesEngineRule - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.TypeConverter.cs deleted file mode 100644 index 74fc806eb801..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RulesEngineRuleTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RulesEngineRule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RulesEngineRule.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RulesEngineRule.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.cs deleted file mode 100644 index 5f0eb8f44b9c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.cs +++ /dev/null @@ -1,168 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the - /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers - /// manipulation. - /// - public partial class RulesEngineRule : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRuleInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction _action; - - /// - /// Actions to perform on the request and response if all of the match conditions are met. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction()); set => this._action = value; } - - /// Backing field for property. - private System.Collections.Generic.List _matchCondition; - - /// - /// A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means - /// the actions will always run. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List MatchCondition { get => this._matchCondition; set => this._matchCondition = value; } - - /// Backing field for property. - private string _matchProcessingBehavior; - - /// - /// If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults - /// to Continue. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string MatchProcessingBehavior { get => this._matchProcessingBehavior; set => this._matchProcessingBehavior = value; } - - /// Backing field for property. - private string _name; - - /// A name to refer to this specific rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private int _priority; - - /// A priority assigned to this rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public int Priority { get => this._priority; set => this._priority = value; } - - /// Creates an new instance. - public RulesEngineRule() - { - - } - } - /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the - /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers - /// manipulation. - public partial interface IRulesEngineRule : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// Actions to perform on the request and response if all of the match conditions are met. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Actions to perform on the request and response if all of the match conditions are met.", - SerializedName = @"action", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction Action { get; set; } - /// - /// A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means - /// the actions will always run. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.", - SerializedName = @"matchConditions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition) })] - System.Collections.Generic.List MatchCondition { get; set; } - /// - /// If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults - /// to Continue. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.", - SerializedName = @"matchProcessingBehavior", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] - string MatchProcessingBehavior { get; set; } - /// A name to refer to this specific rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A name to refer to this specific rule.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// A priority assigned to this rule. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A priority assigned to this rule. ", - SerializedName = @"priority", - PossibleTypes = new [] { typeof(int) })] - int Priority { get; set; } - - } - /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the - /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers - /// manipulation. - internal partial interface IRulesEngineRuleInternal - - { - /// - /// Actions to perform on the request and response if all of the match conditions are met. - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineAction Action { get; set; } - /// - /// A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means - /// the actions will always run. - /// - System.Collections.Generic.List MatchCondition { get; set; } - /// - /// If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults - /// to Continue. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Continue", "Stop")] - string MatchProcessingBehavior { get; set; } - /// A name to refer to this specific rule. - string Name { get; set; } - /// A priority assigned to this rule. - int Priority { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.json.cs deleted file mode 100644 index c89ce7b2c429..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineRule.json.cs +++ /dev/null @@ -1,128 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the - /// actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers - /// manipulation. - /// - public partial class RulesEngineRule - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineRule(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RulesEngineRule(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int)__jsonPriority : _priority;} - {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineAction.FromJson(__jsonAction) : _action;} - {_matchCondition = If( json?.PropertyT("matchConditions"), out var __jsonMatchConditions) ? If( __jsonMatchConditions as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineMatchCondition.FromJson(__u) )) ))() : null : _matchCondition;} - {_matchProcessingBehavior = If( json?.PropertyT("matchProcessingBehavior"), out var __jsonMatchProcessingBehavior) ? (string)__jsonMatchProcessingBehavior : (string)_matchProcessingBehavior;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNumber(this._priority), "priority" ,container.Add ); - AddIf( null != this._action ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._action.ToJson(null,serializationMode) : null, "action" ,container.Add ); - if (null != this._matchCondition) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._matchCondition ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("matchConditions",__w); - } - AddIf( null != (((object)this._matchProcessingBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._matchProcessingBehavior.ToString()) : null, "matchProcessingBehavior" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.PowerShell.cs deleted file mode 100644 index c44efc0e3343..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Rules Engine Configuration to apply to a Routing Rule. - [System.ComponentModel.TypeConverter(typeof(RulesEngineUpdateParametersTypeConverter))] - public partial class RulesEngineUpdateParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RulesEngineUpdateParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RulesEngineUpdateParameters(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RulesEngineUpdateParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RulesEngineUpdateParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Rule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule = (System.Collections.Generic.List) content.GetValueForProperty("Rule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal)this).Rule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Rules Engine Configuration to apply to a Routing Rule. - [System.ComponentModel.TypeConverter(typeof(RulesEngineUpdateParametersTypeConverter))] - public partial interface IRulesEngineUpdateParameters - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.TypeConverter.cs deleted file mode 100644 index a9f0872a8c96..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RulesEngineUpdateParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RulesEngineUpdateParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RulesEngineUpdateParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RulesEngineUpdateParameters.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.cs deleted file mode 100644 index cf93a6cd17f2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Rules Engine Configuration to apply to a Routing Rule. - public partial class RulesEngineUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParametersInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _rule; - - /// A list of rules that define a particular Rules Engine Configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Rule { get => this._rule; set => this._rule = value; } - - /// Creates an new instance. - public RulesEngineUpdateParameters() - { - - } - } - /// Rules Engine Configuration to apply to a Routing Rule. - public partial interface IRulesEngineUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// A list of rules that define a particular Rules Engine Configuration. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A list of rules that define a particular Rules Engine Configuration.", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] - System.Collections.Generic.List Rule { get; set; } - - } - /// Rules Engine Configuration to apply to a Routing Rule. - internal partial interface IRulesEngineUpdateParametersInternal - - { - /// A list of rules that define a particular Rules Engine Configuration. - System.Collections.Generic.List Rule { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.json.cs deleted file mode 100644 index fb039403f104..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/RulesEngineUpdateParameters.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Rules Engine Configuration to apply to a Routing Rule. - public partial class RulesEngineUpdateParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new RulesEngineUpdateParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal RulesEngineUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_rule = If( json?.PropertyT("rules"), out var __jsonRules) ? If( __jsonRules as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRule.FromJson(__u) )) ))() : null : _rule;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._rule) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._rule ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("rules",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.PowerShell.cs deleted file mode 100644 index f0cea852d6b8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines the Resource ID for a Security Policy. - [System.ComponentModel.TypeConverter(typeof(SecurityPolicyLinkTypeConverter))] - public partial class SecurityPolicyLink - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SecurityPolicyLink(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SecurityPolicyLink(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SecurityPolicyLink(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal SecurityPolicyLink(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Defines the Resource ID for a Security Policy. - [System.ComponentModel.TypeConverter(typeof(SecurityPolicyLinkTypeConverter))] - public partial interface ISecurityPolicyLink - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.TypeConverter.cs deleted file mode 100644 index f5dc6fd00e20..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class SecurityPolicyLinkTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return SecurityPolicyLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return SecurityPolicyLink.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return SecurityPolicyLink.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.cs deleted file mode 100644 index fae4c59ae368..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the Resource ID for a Security Policy. - public partial class SecurityPolicyLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLinkInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Creates an new instance. - public SecurityPolicyLink() - { - - } - } - /// Defines the Resource ID for a Security Policy. - public partial interface ISecurityPolicyLink : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// Defines the Resource ID for a Security Policy. - internal partial interface ISecurityPolicyLinkInternal - - { - /// Resource ID. - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.json.cs deleted file mode 100644 index caf7b831406c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SecurityPolicyLink.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the Resource ID for a Security Policy. - public partial class SecurityPolicyLink - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new SecurityPolicyLink(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal SecurityPolicyLink(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.PowerShell.cs deleted file mode 100644 index aacb8d9514e6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// The pricing tier of the web application firewall policy. - [System.ComponentModel.TypeConverter(typeof(SkuTypeConverter))] - public partial class Sku - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Sku(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Sku(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Sku(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)this).Name, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Sku(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)this).Name, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The pricing tier of the web application firewall policy. - [System.ComponentModel.TypeConverter(typeof(SkuTypeConverter))] - public partial interface ISku - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.TypeConverter.cs deleted file mode 100644 index 9a92076a3891..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.TypeConverter.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class SkuTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Sku.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Sku.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Sku.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.cs deleted file mode 100644 index 21b824e7ecdd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.cs +++ /dev/null @@ -1,56 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The pricing tier of the web application firewall policy. - public partial class Sku : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal - { - - /// Backing field for property. - private string _name; - - /// Name of the pricing tier. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Creates an new instance. - public Sku() - { - - } - } - /// The pricing tier of the web application firewall policy. - public partial interface ISku : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Name of the pricing tier. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the pricing tier.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - string Name { get; set; } - - } - /// The pricing tier of the web application firewall policy. - internal partial interface ISkuInternal - - { - /// Name of the pricing tier. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - string Name { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.json.cs deleted file mode 100644 index b633a322fad0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/Sku.json.cs +++ /dev/null @@ -1,106 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// The pricing tier of the web application firewall policy. - public partial class Sku - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku. - /// - /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new Sku(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal Sku(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.PowerShell.cs deleted file mode 100644 index 6abf2dc70263..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Reference to another subresource. - [System.ComponentModel.TypeConverter(typeof(SubResourceTypeConverter))] - public partial class SubResource - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SubResource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SubResource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SubResource(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal SubResource(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Reference to another subresource. - [System.ComponentModel.TypeConverter(typeof(SubResourceTypeConverter))] - public partial interface ISubResource - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.TypeConverter.cs deleted file mode 100644 index 0e32c5776bdc..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class SubResourceTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return SubResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return SubResource.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return SubResource.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.cs deleted file mode 100644 index 5beed6d70ccf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Reference to another subresource. - public partial class SubResource : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResourceInternal - { - - /// Backing field for property. - private string _id; - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Creates an new instance. - public SubResource() - { - - } - } - /// Reference to another subresource. - public partial interface ISubResource : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// Reference to another subresource. - internal partial interface ISubResourceInternal - - { - /// Resource ID. - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.json.cs deleted file mode 100644 index ae23c52ec729..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/SubResource.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Reference to another subresource. - public partial class SubResource - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new SubResource(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal SubResource(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.PowerShell.cs deleted file mode 100644 index f045e4831a5e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Tags object for patch operations. - [System.ComponentModel.TypeConverter(typeof(TagsObjectTypeConverter))] - public partial class TagsObject - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TagsObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TagsObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TagsObject(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal TagsObject(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTagsTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Tags object for patch operations. - [System.ComponentModel.TypeConverter(typeof(TagsObjectTypeConverter))] - public partial interface ITagsObject - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.TypeConverter.cs deleted file mode 100644 index da3394ff8733..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.TypeConverter.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class TagsObjectTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return TagsObject.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return TagsObject.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return TagsObject.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.cs deleted file mode 100644 index 87ad8599665d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Tags object for patch operations. - public partial class TagsObject : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags()); set => this._tag = value; } - - /// Creates an new instance. - public TagsObject() - { - - } - } - /// Tags object for patch operations. - public partial interface ITagsObject : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags Tag { get; set; } - - } - /// Tags object for patch operations. - internal partial interface ITagsObjectInternal - - { - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.json.cs deleted file mode 100644 index 78e0e15f2bd0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObject.json.cs +++ /dev/null @@ -1,106 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Tags object for patch operations. - public partial class TagsObject - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject. - /// - /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new TagsObject(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal TagsObject(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags.FromJson(__jsonTags) : _tag;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.PowerShell.cs deleted file mode 100644 index fc32886fa56a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.PowerShell.cs +++ /dev/null @@ -1,160 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Resource tags. - [System.ComponentModel.TypeConverter(typeof(TagsObjectTagsTypeConverter))] - public partial class TagsObjectTags - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TagsObjectTags(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TagsObjectTags(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TagsObjectTags(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal TagsObjectTags(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Resource tags. - [System.ComponentModel.TypeConverter(typeof(TagsObjectTagsTypeConverter))] - public partial interface ITagsObjectTags - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.TypeConverter.cs deleted file mode 100644 index 6a7af49f800e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class TagsObjectTagsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return TagsObjectTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return TagsObjectTags.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return TagsObjectTags.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.cs deleted file mode 100644 index f964a30d9882..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.cs +++ /dev/null @@ -1,35 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Resource tags. - public partial class TagsObjectTags : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTagsInternal - { - - /// Creates an new instance. - public TagsObjectTags() - { - - } - } - /// Resource tags. - public partial interface ITagsObjectTags : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray - { - - } - /// Resource tags. - internal partial interface ITagsObjectTagsInternal - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.dictionary.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.dictionary.cs deleted file mode 100644 index 849e2769087e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.dictionary.cs +++ /dev/null @@ -1,75 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public partial class TagsObjectTags : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.TagsObjectTags source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.json.cs deleted file mode 100644 index fa431660e99e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/TagsObjectTags.json.cs +++ /dev/null @@ -1,109 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Resource tags. - public partial class TagsObjectTags - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ITagsObjectTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new TagsObjectTags(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - /// - internal TagsObjectTags(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IAssociativeArray)this).AdditionalProperties, container); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.PowerShell.cs deleted file mode 100644 index a8d18b2b4fb9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Input of the custom domain to be validated for DNS mapping. - [System.ComponentModel.TypeConverter(typeof(ValidateCustomDomainInputTypeConverter))] - public partial class ValidateCustomDomainInput - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ValidateCustomDomainInput(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ValidateCustomDomainInput(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ValidateCustomDomainInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal)this).HostName, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ValidateCustomDomainInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal)this).HostName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Input of the custom domain to be validated for DNS mapping. - [System.ComponentModel.TypeConverter(typeof(ValidateCustomDomainInputTypeConverter))] - public partial interface IValidateCustomDomainInput - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.TypeConverter.cs deleted file mode 100644 index a56d7832f1eb..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ValidateCustomDomainInputTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ValidateCustomDomainInput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ValidateCustomDomainInput.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ValidateCustomDomainInput.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.cs deleted file mode 100644 index e9a18e662d7f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Input of the custom domain to be validated for DNS mapping. - public partial class ValidateCustomDomainInput : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInputInternal - { - - /// Backing field for property. - private string _hostName; - - /// The host name of the custom domain. Must be a domain name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string HostName { get => this._hostName; set => this._hostName = value; } - - /// Creates an new instance. - public ValidateCustomDomainInput() - { - - } - } - /// Input of the custom domain to be validated for DNS mapping. - public partial interface IValidateCustomDomainInput : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// The host name of the custom domain. Must be a domain name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The host name of the custom domain. Must be a domain name.", - SerializedName = @"hostName", - PossibleTypes = new [] { typeof(string) })] - string HostName { get; set; } - - } - /// Input of the custom domain to be validated for DNS mapping. - internal partial interface IValidateCustomDomainInputInternal - - { - /// The host name of the custom domain. Must be a domain name. - string HostName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.json.cs deleted file mode 100644 index a8b431f0656b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainInput.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Input of the custom domain to be validated for DNS mapping. - public partial class ValidateCustomDomainInput - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ValidateCustomDomainInput(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._hostName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._hostName.ToString()) : null, "hostName" ,container.Add ); - AfterToJson(ref container); - return container; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ValidateCustomDomainInput(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_hostName = If( json?.PropertyT("hostName"), out var __jsonHostName) ? (string)__jsonHostName : (string)_hostName;} - AfterFromJson(json); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.PowerShell.cs deleted file mode 100644 index 455851af6fa4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Output of custom domain validation. - [System.ComponentModel.TypeConverter(typeof(ValidateCustomDomainOutputTypeConverter))] - public partial class ValidateCustomDomainOutput - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ValidateCustomDomainOutput(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ValidateCustomDomainOutput(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ValidateCustomDomainOutput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDomainValidated")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).CustomDomainValidated = (bool?) content.GetValueForProperty("CustomDomainValidated",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).CustomDomainValidated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Reason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Reason, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ValidateCustomDomainOutput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDomainValidated")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).CustomDomainValidated = (bool?) content.GetValueForProperty("CustomDomainValidated",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).CustomDomainValidated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Reason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Reason, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal)this).Message, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Output of custom domain validation. - [System.ComponentModel.TypeConverter(typeof(ValidateCustomDomainOutputTypeConverter))] - public partial interface IValidateCustomDomainOutput - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.TypeConverter.cs deleted file mode 100644 index f898dbc853b8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ValidateCustomDomainOutputTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ValidateCustomDomainOutput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ValidateCustomDomainOutput.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ValidateCustomDomainOutput.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.cs deleted file mode 100644 index a73e04fad541..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.cs +++ /dev/null @@ -1,103 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Output of custom domain validation. - public partial class ValidateCustomDomainOutput : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal - { - - /// Backing field for property. - private bool? _customDomainValidated; - - /// Indicates whether the custom domain is valid or not. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public bool? CustomDomainValidated { get => this._customDomainValidated; } - - /// Backing field for property. - private string _message; - - /// Error message describing why the custom domain is not valid. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Message { get => this._message; } - - /// Internal Acessors for CustomDomainValidated - bool? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal.CustomDomainValidated { get => this._customDomainValidated; set { {_customDomainValidated = value;} } } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal.Message { get => this._message; set { {_message = value;} } } - - /// Internal Acessors for Reason - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutputInternal.Reason { get => this._reason; set { {_reason = value;} } } - - /// Backing field for property. - private string _reason; - - /// The reason why the custom domain is not valid. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Reason { get => this._reason; } - - /// Creates an new instance. - public ValidateCustomDomainOutput() - { - - } - } - /// Output of custom domain validation. - public partial interface IValidateCustomDomainOutput : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// Indicates whether the custom domain is valid or not. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Indicates whether the custom domain is valid or not.", - SerializedName = @"customDomainValidated", - PossibleTypes = new [] { typeof(bool) })] - bool? CustomDomainValidated { get; } - /// Error message describing why the custom domain is not valid. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Error message describing why the custom domain is not valid.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - /// The reason why the custom domain is not valid. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The reason why the custom domain is not valid.", - SerializedName = @"reason", - PossibleTypes = new [] { typeof(string) })] - string Reason { get; } - - } - /// Output of custom domain validation. - internal partial interface IValidateCustomDomainOutputInternal - - { - /// Indicates whether the custom domain is valid or not. - bool? CustomDomainValidated { get; set; } - /// Error message describing why the custom domain is not valid. - string Message { get; set; } - /// The reason why the custom domain is not valid. - string Reason { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.json.cs deleted file mode 100644 index 00655cfecfd2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/ValidateCustomDomainOutput.json.cs +++ /dev/null @@ -1,121 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Output of custom domain validation. - public partial class ValidateCustomDomainOutput - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new ValidateCustomDomainOutput(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != this._customDomainValidated ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonBoolean((bool)this._customDomainValidated) : null, "customDomainValidated" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._reason)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._reason.ToString()) : null, "reason" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal ValidateCustomDomainOutput(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_customDomainValidated = If( json?.PropertyT("customDomainValidated"), out var __jsonCustomDomainValidated) ? (bool?)__jsonCustomDomainValidated : _customDomainValidated;} - {_reason = If( json?.PropertyT("reason"), out var __jsonReason) ? (string)__jsonReason : (string)_reason;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} - AfterFromJson(json); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.PowerShell.cs deleted file mode 100644 index a6a030e8108c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.PowerShell.cs +++ /dev/null @@ -1,308 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines web application firewall policy. - [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyTypeConverter))] - public partial class WebApplicationFirewallPolicy - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new WebApplicationFirewallPolicy(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new WebApplicationFirewallPolicy(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal WebApplicationFirewallPolicy(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("PolicySetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) content.GetValueForProperty("PolicySetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).PolicySetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("CustomRuleList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRuleList = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList) content.GetValueForProperty("CustomRuleList",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRuleList, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleListTypeConverter.ConvertFrom); - } - if (content.Contains("ManagedRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList) content.GetValueForProperty("ManagedRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetListTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpointLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).FrontendEndpointLink = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpointLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).FrontendEndpointLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("RoutingRuleLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).RoutingRuleLink = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRuleLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).RoutingRuleLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("SecurityPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SecurityPolicyLink = (System.Collections.Generic.List) content.GetValueForProperty("SecurityPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SecurityPolicyLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("CustomRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRule = (System.Collections.Generic.List) content.GetValueForProperty("CustomRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("ManagedRuleSet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal WebApplicationFirewallPolicy(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("PolicySetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) content.GetValueForProperty("PolicySetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).PolicySetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("CustomRuleList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRuleList = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList) content.GetValueForProperty("CustomRuleList",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRuleList, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleListTypeConverter.ConvertFrom); - } - if (content.Contains("ManagedRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList) content.GetValueForProperty("ManagedRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetListTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpointLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).FrontendEndpointLink = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpointLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).FrontendEndpointLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("RoutingRuleLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).RoutingRuleLink = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRuleLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).RoutingRuleLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("SecurityPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SecurityPolicyLink = (System.Collections.Generic.List) content.GetValueForProperty("SecurityPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).SecurityPolicyLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("CustomRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRule = (System.Collections.Generic.List) content.GetValueForProperty("CustomRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).CustomRule, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("ManagedRuleSet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - } - /// Defines web application firewall policy. - [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyTypeConverter))] - public partial interface IWebApplicationFirewallPolicy - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.TypeConverter.cs deleted file mode 100644 index 393080618197..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class WebApplicationFirewallPolicyTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return WebApplicationFirewallPolicy.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return WebApplicationFirewallPolicy.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return WebApplicationFirewallPolicy.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.cs deleted file mode 100644 index 207f25d14152..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.cs +++ /dev/null @@ -1,321 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines web application firewall policy. - public partial class WebApplicationFirewallPolicy : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(); - - /// List of rules - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List CustomRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).CustomRuleRules; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).CustomRuleRules = value ?? null /* arrayOf */; } - - /// Backing field for property. - private string _etag; - - /// Gets a unique read-only string that changes whenever the resource is updated. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Etag { get => this._etag; set => this._etag = value; } - - /// - /// Describes Frontend Endpoints associated with this Web Application Firewall policy. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List FrontendEndpointLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).FrontendEndpointLink; } - - /// Resource ID. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; } - - /// Resource location. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Location = value ?? null; } - - /// List of rule sets. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ManagedRuleSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ManagedRuleSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ManagedRuleSet = value ?? null /* arrayOf */; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Id = value ?? null; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type = value ?? null; } - - /// Internal Acessors for CustomRuleList - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.CustomRuleList { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).CustomRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).CustomRule = value ?? null /* model class */; } - - /// Internal Acessors for FrontendEndpointLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.FrontendEndpointLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).FrontendEndpointLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).FrontendEndpointLink = value ?? null /* arrayOf */; } - - /// Internal Acessors for ManagedRule - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.ManagedRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ManagedRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ManagedRule = value ?? null /* model class */; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ProvisioningState = value ?? null; } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ResourceState = value ?? null; } - - /// Internal Acessors for RoutingRuleLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.RoutingRuleLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).RoutingRuleLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).RoutingRuleLink = value ?? null /* arrayOf */; } - - /// Internal Acessors for SecurityPolicyLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.SecurityPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).SecurityPolicyLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).SecurityPolicyLink = value ?? null /* arrayOf */; } - - /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku()); set { {_sku = value;} } } - - /// Resource name. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Name; } - - /// Describes settings for the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).PolicySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).PolicySetting = value ?? null /* model class */; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties _property; - - /// Properties of the web application firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties()); set => this._property = value; } - - /// Provisioning state of the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ProvisioningState; } - - /// Gets the resource group name - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - - /// Resource status of the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).ResourceState; } - - /// Describes Routing Rules associated with this Web Application Firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RoutingRuleLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).RoutingRuleLink; } - - /// Describes Security Policy associated with this Web Application Firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List SecurityPolicyLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)Property).SecurityPolicyLink; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku _sku; - - /// - /// The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku()); set => this._sku = value; } - - /// Name of the pricing tier. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISkuInternal)Sku).Name = value ?? null; } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Tag = value ?? null /* model class */; } - - /// Resource type. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal)__resource).Type; } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - - /// Creates an new instance. - public WebApplicationFirewallPolicy() - { - - } - } - /// Defines web application firewall policy. - public partial interface IWebApplicationFirewallPolicy : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResource - { - /// List of rules - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of rules", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] - System.Collections.Generic.List CustomRule { get; set; } - /// Gets a unique read-only string that changes whenever the resource is updated. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets a unique read-only string that changes whenever the resource is updated.", - SerializedName = @"etag", - PossibleTypes = new [] { typeof(string) })] - string Etag { get; set; } - /// - /// Describes Frontend Endpoints associated with this Web Application Firewall policy. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes Frontend Endpoints associated with this Web Application Firewall policy.", - SerializedName = @"frontendEndpointLinks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink) })] - System.Collections.Generic.List FrontendEndpointLink { get; } - /// List of rule sets. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of rule sets.", - SerializedName = @"managedRuleSets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] - System.Collections.Generic.List ManagedRuleSet { get; set; } - /// Describes settings for the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes settings for the policy.", - SerializedName = @"policySettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get; set; } - /// Provisioning state of the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning state of the policy.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// Resource status of the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status of the policy.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting")] - string ResourceState { get; } - /// Describes Routing Rules associated with this Web Application Firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes Routing Rules associated with this Web Application Firewall policy.", - SerializedName = @"routingRuleLinks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink) })] - System.Collections.Generic.List RoutingRuleLink { get; } - /// Describes Security Policy associated with this Web Application Firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes Security Policy associated with this Web Application Firewall policy.", - SerializedName = @"securityPolicyLinks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink) })] - System.Collections.Generic.List SecurityPolicyLink { get; } - /// Name of the pricing tier. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the pricing tier.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - string SkuName { get; set; } - - } - /// Defines web application firewall policy. - internal partial interface IWebApplicationFirewallPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceInternal - { - /// List of rules - System.Collections.Generic.List CustomRule { get; set; } - /// Describes custom rules inside the policy. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList CustomRuleList { get; set; } - /// Gets a unique read-only string that changes whenever the resource is updated. - string Etag { get; set; } - /// - /// Describes Frontend Endpoints associated with this Web Application Firewall policy. - /// - System.Collections.Generic.List FrontendEndpointLink { get; set; } - /// Describes managed rules inside the policy. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList ManagedRule { get; set; } - /// List of rule sets. - System.Collections.Generic.List ManagedRuleSet { get; set; } - /// Describes settings for the policy. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get; set; } - /// Properties of the web application firewall policy. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties Property { get; set; } - /// Provisioning state of the policy. - string ProvisioningState { get; set; } - /// Resource status of the policy. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting")] - string ResourceState { get; set; } - /// Describes Routing Rules associated with this Web Application Firewall policy. - System.Collections.Generic.List RoutingRuleLink { get; set; } - /// Describes Security Policy associated with this Web Application Firewall policy. - System.Collections.Generic.List SecurityPolicyLink { get; set; } - /// - /// The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified. - /// - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISku Sku { get; set; } - /// Name of the pricing tier. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - string SkuName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.json.cs deleted file mode 100644 index d6d01c91e153..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicy.json.cs +++ /dev/null @@ -1,114 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines web application firewall policy. - public partial class WebApplicationFirewallPolicy - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new WebApplicationFirewallPolicy(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); - AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); - AfterToJson(ref container); - return container; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal WebApplicationFirewallPolicy(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyProperties.FromJson(__jsonProperties) : _property;} - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.Sku.FromJson(__jsonSku) : _sku;} - {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;} - AfterFromJson(json); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.PowerShell.cs deleted file mode 100644 index 4ca5561837b7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.PowerShell.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL - /// link to get the next set of results. - /// - [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyListTypeConverter))] - public partial class WebApplicationFirewallPolicyList - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new WebApplicationFirewallPolicyList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new WebApplicationFirewallPolicyList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal WebApplicationFirewallPolicyList(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal WebApplicationFirewallPolicyList(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicyTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL - /// link to get the next set of results. - [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyListTypeConverter))] - public partial interface IWebApplicationFirewallPolicyList - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.TypeConverter.cs deleted file mode 100644 index 335eea93fb6b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.TypeConverter.cs +++ /dev/null @@ -1,148 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class WebApplicationFirewallPolicyListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return WebApplicationFirewallPolicyList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return WebApplicationFirewallPolicyList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return WebApplicationFirewallPolicyList.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.cs deleted file mode 100644 index ba239393da3e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.cs +++ /dev/null @@ -1,88 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL - /// link to get the next set of results. - /// - public partial class WebApplicationFirewallPolicyList : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal - { - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyListInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// - /// URL to get the next set of WebApplicationFirewallPolicy objects if there are any. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// List of WebApplicationFirewallPolicies within a resource group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } - - /// Creates an new instance. - public WebApplicationFirewallPolicyList() - { - - } - } - /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL - /// link to get the next set of results. - public partial interface IWebApplicationFirewallPolicyList : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// - /// URL to get the next set of WebApplicationFirewallPolicy objects if there are any. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"URL to get the next set of WebApplicationFirewallPolicy objects if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// List of WebApplicationFirewallPolicies within a resource group. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"List of WebApplicationFirewallPolicies within a resource group.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy) })] - System.Collections.Generic.List Value { get; } - - } - /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL - /// link to get the next set of results. - internal partial interface IWebApplicationFirewallPolicyListInternal - - { - /// - /// URL to get the next set of WebApplicationFirewallPolicy objects if there are any. - /// - string NextLink { get; set; } - /// List of WebApplicationFirewallPolicies within a resource group. - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.json.cs deleted file mode 100644 index 7d692bfd405e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyList.json.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL - /// link to get the next set of results. - /// - public partial class WebApplicationFirewallPolicyList - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new WebApplicationFirewallPolicyList(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal WebApplicationFirewallPolicyList(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.PowerShell.cs deleted file mode 100644 index 8172ec816f69..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.PowerShell.cs +++ /dev/null @@ -1,241 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines web application firewall policy properties. - [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyPropertiesTypeConverter))] - public partial class WebApplicationFirewallPolicyProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new WebApplicationFirewallPolicyProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new WebApplicationFirewallPolicyProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal WebApplicationFirewallPolicyProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList) content.GetValueForProperty("CustomRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleListTypeConverter.ConvertFrom); - } - if (content.Contains("ManagedRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList) content.GetValueForProperty("ManagedRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetListTypeConverter.ConvertFrom); - } - if (content.Contains("PolicySetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) content.GetValueForProperty("PolicySetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).PolicySetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpointLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).FrontendEndpointLink = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpointLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).FrontendEndpointLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("RoutingRuleLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).RoutingRuleLink = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRuleLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).RoutingRuleLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("SecurityPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).SecurityPolicyLink = (System.Collections.Generic.List) content.GetValueForProperty("SecurityPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).SecurityPolicyLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("CustomRuleRules")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRuleRules = (System.Collections.Generic.List) content.GetValueForProperty("CustomRuleRules",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRuleRules, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("ManagedRuleSet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal WebApplicationFirewallPolicyProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList) content.GetValueForProperty("CustomRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleListTypeConverter.ConvertFrom); - } - if (content.Contains("ManagedRule")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList) content.GetValueForProperty("ManagedRule",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRule, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetListTypeConverter.ConvertFrom); - } - if (content.Contains("PolicySetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) content.GetValueForProperty("PolicySetting",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).PolicySetting, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FrontendEndpointLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).FrontendEndpointLink = (System.Collections.Generic.List) content.GetValueForProperty("FrontendEndpointLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).FrontendEndpointLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("RoutingRuleLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).RoutingRuleLink = (System.Collections.Generic.List) content.GetValueForProperty("RoutingRuleLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).RoutingRuleLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("SecurityPolicyLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).SecurityPolicyLink = (System.Collections.Generic.List) content.GetValueForProperty("SecurityPolicyLink",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).SecurityPolicyLink, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("ResourceState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ResourceState = (string) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ResourceState, global::System.Convert.ToString); - } - if (content.Contains("CustomRuleRules")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRuleRules = (System.Collections.Generic.List) content.GetValueForProperty("CustomRuleRules",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).CustomRuleRules, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleTypeConverter.ConvertFrom)); - } - if (content.Contains("ManagedRuleSet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRuleSet = (System.Collections.Generic.List) content.GetValueForProperty("ManagedRuleSet",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal)this).ManagedRuleSet, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - } - /// Defines web application firewall policy properties. - [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallPolicyPropertiesTypeConverter))] - public partial interface IWebApplicationFirewallPolicyProperties - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.TypeConverter.cs deleted file mode 100644 index eae6b79898d3..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.TypeConverter.cs +++ /dev/null @@ -1,151 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class WebApplicationFirewallPolicyPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return WebApplicationFirewallPolicyProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return WebApplicationFirewallPolicyProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return WebApplicationFirewallPolicyProperties.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.cs deleted file mode 100644 index 94d871894f59..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.cs +++ /dev/null @@ -1,235 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines web application firewall policy properties. - public partial class WebApplicationFirewallPolicyProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList _customRule; - - /// Describes custom rules inside the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList CustomRule { get => (this._customRule = this._customRule ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleList()); set => this._customRule = value; } - - /// List of rules - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List CustomRuleRules { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)CustomRule).Rule; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleListInternal)CustomRule).Rule = value ?? null /* arrayOf */; } - - /// Backing field for property. - private System.Collections.Generic.List _frontendEndpointLink; - - /// - /// Describes Frontend Endpoints associated with this Web Application Firewall policy. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List FrontendEndpointLink { get => this._frontendEndpointLink; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList _managedRule; - - /// Describes managed rules inside the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList ManagedRule { get => (this._managedRule = this._managedRule ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetList()); set => this._managedRule = value; } - - /// List of rule sets. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ManagedRuleSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)ManagedRule).ManagedRuleSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetListInternal)ManagedRule).ManagedRuleSet = value ?? null /* arrayOf */; } - - /// Internal Acessors for CustomRule - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.CustomRule { get => (this._customRule = this._customRule ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleList()); set { {_customRule = value;} } } - - /// Internal Acessors for FrontendEndpointLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.FrontendEndpointLink { get => this._frontendEndpointLink; set { {_frontendEndpointLink = value;} } } - - /// Internal Acessors for ManagedRule - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.ManagedRule { get => (this._managedRule = this._managedRule ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetList()); set { {_managedRule = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for ResourceState - string Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } - - /// Internal Acessors for RoutingRuleLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.RoutingRuleLink { get => this._routingRuleLink; set { {_routingRuleLink = value;} } } - - /// Internal Acessors for SecurityPolicyLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyPropertiesInternal.SecurityPolicyLink { get => this._securityPolicyLink; set { {_securityPolicyLink = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings _policySetting; - - /// Describes settings for the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => (this._policySetting = this._policySetting ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings()); set => this._policySetting = value; } - - /// Backing field for property. - private string _provisioningState; - - /// Provisioning state of the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private string _resourceState; - - /// Resource status of the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string ResourceState { get => this._resourceState; } - - /// Backing field for property. - private System.Collections.Generic.List _routingRuleLink; - - /// Describes Routing Rules associated with this Web Application Firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List RoutingRuleLink { get => this._routingRuleLink; } - - /// Backing field for property. - private System.Collections.Generic.List _securityPolicyLink; - - /// Describes Security Policy associated with this Web Application Firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public System.Collections.Generic.List SecurityPolicyLink { get => this._securityPolicyLink; } - - /// Creates an new instance. - public WebApplicationFirewallPolicyProperties() - { - - } - } - /// Defines web application firewall policy properties. - public partial interface IWebApplicationFirewallPolicyProperties : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// List of rules - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of rules", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] - System.Collections.Generic.List CustomRuleRules { get; set; } - /// - /// Describes Frontend Endpoints associated with this Web Application Firewall policy. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes Frontend Endpoints associated with this Web Application Firewall policy.", - SerializedName = @"frontendEndpointLinks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink) })] - System.Collections.Generic.List FrontendEndpointLink { get; } - /// List of rule sets. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"List of rule sets.", - SerializedName = @"managedRuleSets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] - System.Collections.Generic.List ManagedRuleSet { get; set; } - /// Describes settings for the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Describes settings for the policy.", - SerializedName = @"policySettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get; set; } - /// Provisioning state of the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Provisioning state of the policy.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// Resource status of the policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Resource status of the policy.", - SerializedName = @"resourceState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting")] - string ResourceState { get; } - /// Describes Routing Rules associated with this Web Application Firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes Routing Rules associated with this Web Application Firewall policy.", - SerializedName = @"routingRuleLinks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink) })] - System.Collections.Generic.List RoutingRuleLink { get; } - /// Describes Security Policy associated with this Web Application Firewall policy. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Describes Security Policy associated with this Web Application Firewall policy.", - SerializedName = @"securityPolicyLinks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink) })] - System.Collections.Generic.List SecurityPolicyLink { get; } - - } - /// Defines web application firewall policy properties. - internal partial interface IWebApplicationFirewallPolicyPropertiesInternal - - { - /// Describes custom rules inside the policy. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRuleList CustomRule { get; set; } - /// List of rules - System.Collections.Generic.List CustomRuleRules { get; set; } - /// - /// Describes Frontend Endpoints associated with this Web Application Firewall policy. - /// - System.Collections.Generic.List FrontendEndpointLink { get; set; } - /// Describes managed rules inside the policy. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetList ManagedRule { get; set; } - /// List of rule sets. - System.Collections.Generic.List ManagedRuleSet { get; set; } - /// Describes settings for the policy. - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get; set; } - /// Provisioning state of the policy. - string ProvisioningState { get; set; } - /// Resource status of the policy. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting")] - string ResourceState { get; set; } - /// Describes Routing Rules associated with this Web Application Firewall policy. - System.Collections.Generic.List RoutingRuleLink { get; set; } - /// Describes Security Policy associated with this Web Application Firewall policy. - System.Collections.Generic.List SecurityPolicyLink { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.json.cs deleted file mode 100644 index d19beba69e96..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallPolicyProperties.json.cs +++ /dev/null @@ -1,162 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines web application firewall policy properties. - public partial class WebApplicationFirewallPolicyProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new WebApplicationFirewallPolicyProperties(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._customRule ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._customRule.ToJson(null,serializationMode) : null, "customRules" ,container.Add ); - AddIf( null != this._managedRule ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._managedRule.ToJson(null,serializationMode) : null, "managedRules" ,container.Add ); - AddIf( null != this._policySetting ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) this._policySetting.ToJson(null,serializationMode) : null, "policySettings" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._frontendEndpointLink) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __x in this._frontendEndpointLink ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("frontendEndpointLinks",__w); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._routingRuleLink) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __s in this._routingRuleLink ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("routingRuleLinks",__r); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - if (null != this._securityPolicyLink) - { - var __m = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.XNodeArray(); - foreach( var __n in this._securityPolicyLink ) - { - AddIf(__n?.ToJson(null, serializationMode) ,__m.Add); - } - container.Add("securityPolicyLinks",__m); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._resourceState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._resourceState.ToString()) : null, "resourceState" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal WebApplicationFirewallPolicyProperties(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_customRule = If( json?.PropertyT("customRules"), out var __jsonCustomRules) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomRuleList.FromJson(__jsonCustomRules) : _customRule;} - {_managedRule = If( json?.PropertyT("managedRules"), out var __jsonManagedRules) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ManagedRuleSetList.FromJson(__jsonManagedRules) : _managedRule;} - {_policySetting = If( json?.PropertyT("policySettings"), out var __jsonPolicySettings) ? Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PolicySettings.FromJson(__jsonPolicySettings) : _policySetting;} - {_frontendEndpointLink = If( json?.PropertyT("frontendEndpointLinks"), out var __jsonFrontendEndpointLinks) ? If( __jsonFrontendEndpointLinks as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointLink) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontendEndpointLink.FromJson(__u) )) ))() : null : _frontendEndpointLink;} - {_routingRuleLink = If( json?.PropertyT("routingRuleLinks"), out var __jsonRoutingRuleLinks) ? If( __jsonRoutingRuleLinks as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRuleLink) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RoutingRuleLink.FromJson(__p) )) ))() : null : _routingRuleLink;} - {_securityPolicyLink = If( json?.PropertyT("securityPolicyLinks"), out var __jsonSecurityPolicyLinks) ? If( __jsonSecurityPolicyLinks as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ISecurityPolicyLink) (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.SecurityPolicyLink.FromJson(__k) )) ))() : null : _securityPolicyLink;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} - {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)_resourceState;} - AfterFromJson(json); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.PowerShell.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.PowerShell.cs deleted file mode 100644 index 063ea3202c63..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.PowerShell.cs +++ /dev/null @@ -1,190 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// Defines the contents of the log scrubbing rules. - [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallScrubbingRulesTypeConverter))] - public partial class WebApplicationFirewallScrubbingRules - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new WebApplicationFirewallScrubbingRules(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new WebApplicationFirewallScrubbingRules(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal WebApplicationFirewallScrubbingRules(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MatchVariable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).MatchVariable, global::System.Convert.ToString); - } - if (content.Contains("SelectorMatchOperator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).SelectorMatchOperator = (string) content.GetValueForProperty("SelectorMatchOperator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).SelectorMatchOperator, global::System.Convert.ToString); - } - if (content.Contains("Selector")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).Selector, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).State, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal WebApplicationFirewallScrubbingRules(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MatchVariable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).MatchVariable = (string) content.GetValueForProperty("MatchVariable",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).MatchVariable, global::System.Convert.ToString); - } - if (content.Contains("SelectorMatchOperator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).SelectorMatchOperator = (string) content.GetValueForProperty("SelectorMatchOperator",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).SelectorMatchOperator, global::System.Convert.ToString); - } - if (content.Contains("Selector")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).Selector = (string) content.GetValueForProperty("Selector",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).Selector, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal)this).State, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Defines the contents of the log scrubbing rules. - [System.ComponentModel.TypeConverter(typeof(WebApplicationFirewallScrubbingRulesTypeConverter))] - public partial interface IWebApplicationFirewallScrubbingRules - - { - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.TypeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.TypeConverter.cs deleted file mode 100644 index 967dc7506aaa..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.TypeConverter.cs +++ /dev/null @@ -1,150 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class WebApplicationFirewallScrubbingRulesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return WebApplicationFirewallScrubbingRules.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return WebApplicationFirewallScrubbingRules.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return WebApplicationFirewallScrubbingRules.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.cs deleted file mode 100644 index b68d69ce2d85..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.cs +++ /dev/null @@ -1,135 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the contents of the log scrubbing rules. - public partial class WebApplicationFirewallScrubbingRules : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRulesInternal - { - - /// Backing field for property. - private string _matchVariable; - - /// The variable to be scrubbed from the logs. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string MatchVariable { get => this._matchVariable; set => this._matchVariable = value; } - - /// Backing field for property. - private string _selector; - - /// - /// When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string Selector { get => this._selector; set => this._selector = value; } - - /// Backing field for property. - private string _selectorMatchOperator; - - /// - /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies - /// to. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string SelectorMatchOperator { get => this._selectorMatchOperator; set => this._selectorMatchOperator = value; } - - /// Backing field for property. - private string _state; - - /// Defines the state of a log scrubbing rule. Default value is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Origin(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PropertyOrigin.Owned)] - public string State { get => this._state; set => this._state = value; } - - /// Creates an new instance. - public WebApplicationFirewallScrubbingRules() - { - - } - } - /// Defines the contents of the log scrubbing rules. - public partial interface IWebApplicationFirewallScrubbingRules : - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable - { - /// The variable to be scrubbed from the logs. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The variable to be scrubbed from the logs.", - SerializedName = @"matchVariable", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - string MatchVariable { get; set; } - /// - /// When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.", - SerializedName = @"selector", - PossibleTypes = new [] { typeof(string) })] - string Selector { get; set; } - /// - /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies - /// to. - /// - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.", - SerializedName = @"selectorMatchOperator", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] - string SelectorMatchOperator { get; set; } - /// Defines the state of a log scrubbing rule. Default value is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Defines the state of a log scrubbing rule. Default value is enabled.", - SerializedName = @"state", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string State { get; set; } - - } - /// Defines the contents of the log scrubbing rules. - internal partial interface IWebApplicationFirewallScrubbingRulesInternal - - { - /// The variable to be scrubbed from the logs. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames", "RequestHeaderNames", "RequestCookieNames", "RequestBodyPostArgNames", "RequestBodyJsonArgNames")] - string MatchVariable { get; set; } - /// - /// When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - /// - string Selector { get; set; } - /// - /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies - /// to. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("EqualsAny", "Equals")] - string SelectorMatchOperator { get; set; } - /// Defines the state of a log scrubbing rule. Default value is enabled. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - string State { get; set; } - - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.json.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.json.cs deleted file mode 100644 index ace27063173c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/api/Models/WebApplicationFirewallScrubbingRules.json.cs +++ /dev/null @@ -1,115 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// Defines the contents of the log scrubbing rules. - public partial class WebApplicationFirewallScrubbingRules - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new WebApplicationFirewallScrubbingRules(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._matchVariable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._matchVariable.ToString()) : null, "matchVariable" ,container.Add ); - AddIf( null != (((object)this._selectorMatchOperator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selectorMatchOperator.ToString()) : null, "selectorMatchOperator" ,container.Add ); - AddIf( null != (((object)this._selector)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._selector.ToString()) : null, "selector" ,container.Add ); - AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); - AfterToJson(ref container); - return container; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject instance to deserialize from. - internal WebApplicationFirewallScrubbingRules(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_matchVariable = If( json?.PropertyT("matchVariable"), out var __jsonMatchVariable) ? (string)__jsonMatchVariable : (string)_matchVariable;} - {_selectorMatchOperator = If( json?.PropertyT("selectorMatchOperator"), out var __jsonSelectorMatchOperator) ? (string)__jsonSelectorMatchOperator : (string)_selectorMatchOperator;} - {_selector = If( json?.PropertyT("selector"), out var __jsonSelector) ? (string)__jsonSelector : (string)_selector;} - {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)_state;} - AfterFromJson(json); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_Disable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_Disable.cs deleted file mode 100644 index 316490a1b1df..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_Disable.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] DisableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Disable, @"AzFrontDoorCustomDomainHttps_Disable", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Disables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", ApiVersion = "2021-06-01")] - public partial class DisableAzFrontDoorCustomDomainHttps_Disable : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of DisableAzFrontDoorCustomDomainHttps_Disable - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.DisableAzFrontDoorCustomDomainHttps_Disable Clone() - { - var clone = new DisableAzFrontDoorCustomDomainHttps_Disable(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.FrontendEndpointName = this.FrontendEndpointName; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public DisableAzFrontDoorCustomDomainHttps_Disable() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsDisableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendEndpointsDisableHttps(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity.cs deleted file mode 100644 index 2ab6077027fd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity.cs +++ /dev/null @@ -1,544 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] DisableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Disable, @"AzFrontDoorCustomDomainHttps_DisableViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Disables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", ApiVersion = "2021-06-01")] - public partial class DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity Clone() - { - var clone = new DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public DisableAzFrontDoorCustomDomainHttps_DisableViaIdentity() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsDisableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.FrontendEndpointsDisableHttpsViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontendEndpointName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.FrontendEndpointsDisableHttps(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.FrontendEndpointName ?? null, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor.cs deleted file mode 100644 index 0745d819786d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor.cs +++ /dev/null @@ -1,559 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Disables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] DisableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Disable, @"AzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Disables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", ApiVersion = "2021-06-01")] - public partial class DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor Clone() - { - var clone = new DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.FrontendEndpointName = this.FrontendEndpointName; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet - /// class. - /// - public DisableAzFrontDoorCustomDomainHttps_DisableViaIdentityFrontDoor() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsDisableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (FrontDoorInputObject?.Id != null) - { - this.FrontDoorInputObject.Id += $"/frontendEndpoints/{(global::System.Uri.EscapeDataString(this.FrontendEndpointName.ToString()))}"; - await this.Client.FrontendEndpointsDisableHttpsViaIdentity(FrontDoorInputObject.Id, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == FrontDoorInputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - await this.Client.FrontendEndpointsDisableHttps(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, FrontendEndpointName, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { FrontendEndpointName=FrontendEndpointName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_Enable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_Enable.cs deleted file mode 100644 index 7bbb224c7a39..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_Enable.cs +++ /dev/null @@ -1,596 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_Enable", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] - public partial class EnableAzFrontDoorCustomDomainHttps_Enable : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfiguration; - - /// Https settings for a domain - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Https settings for a domain", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Https settings for a domain", - SerializedName = @"customHttpsConfiguration", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get => this._customHttpsConfiguration; set => this._customHttpsConfiguration = value; } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_Enable - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_Enable Clone() - { - var clone = new EnableAzFrontDoorCustomDomainHttps_Enable(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.FrontendEndpointName = this.FrontendEndpointName; - clone.CustomHttpsConfiguration = this.CustomHttpsConfiguration; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public EnableAzFrontDoorCustomDomainHttps_Enable() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendEndpointsEnableHttps(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableExpanded.cs deleted file mode 100644 index 2461b4352684..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableExpanded.cs +++ /dev/null @@ -1,663 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] - public partial class EnableAzFrontDoorCustomDomainHttps_EnableExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Https settings for a domain - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// Defines the source of the SSL certificate - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Defines the source of the SSL certificate")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Defines the source of the SSL certificate", - SerializedName = @"certificateSource", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - public string CertificateSource { get => _customHttpsConfigurationBody.CertificateSource ?? null; set => _customHttpsConfigurationBody.CertificateSource = value; } - - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines the type of the certificate used for secure connections to a frontendEndpoint")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", - SerializedName = @"certificateType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - public string CertificateType { get => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType ?? null; set => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType = value; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", - SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"1.2", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - public string MinimumTlsVersion { get => _customHttpsConfigurationBody.MinimumTlsVersion ?? null; set => _customHttpsConfigurationBody.MinimumTlsVersion = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// The name of the Key Vault secret representing the full certificate PFX - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretName", - PossibleTypes = new [] { typeof(string) })] - public string SecretName { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName = value; } - - /// The version of the Key Vault secret representing the full certificate PFX - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The version of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretVersion", - PossibleTypes = new [] { typeof(string) })] - public string SecretVersion { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Resource ID. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - public string VaultId { get => _customHttpsConfigurationBody.VaultId ?? null; set => _customHttpsConfigurationBody.VaultId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableExpanded Clone() - { - var clone = new EnableAzFrontDoorCustomDomainHttps_EnableExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._customHttpsConfigurationBody = this._customHttpsConfigurationBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.FrontendEndpointName = this.FrontendEndpointName; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public EnableAzFrontDoorCustomDomainHttps_EnableExpanded() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendEndpointsEnableHttps(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity.cs deleted file mode 100644 index 339640ab05d2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity.cs +++ /dev/null @@ -1,560 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] - public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfiguration; - - /// Https settings for a domain - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Https settings for a domain", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Https settings for a domain", - SerializedName = @"customHttpsConfiguration", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get => this._customHttpsConfiguration; set => this._customHttpsConfiguration = value; } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity Clone() - { - var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.CustomHttpsConfiguration = this.CustomHttpsConfiguration; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public EnableAzFrontDoorCustomDomainHttps_EnableViaIdentity() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.FrontendEndpointsEnableHttpsViaIdentity(InputObject.Id, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontendEndpointName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.FrontendEndpointsEnableHttps(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.FrontendEndpointName ?? null, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded.cs deleted file mode 100644 index 99dee53f2437..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded.cs +++ /dev/null @@ -1,629 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] - public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Https settings for a domain - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// Defines the source of the SSL certificate - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Defines the source of the SSL certificate")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Defines the source of the SSL certificate", - SerializedName = @"certificateSource", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - public string CertificateSource { get => _customHttpsConfigurationBody.CertificateSource ?? null; set => _customHttpsConfigurationBody.CertificateSource = value; } - - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines the type of the certificate used for secure connections to a frontendEndpoint")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", - SerializedName = @"certificateType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - public string CertificateType { get => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType ?? null; set => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType = value; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", - SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"1.2", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - public string MinimumTlsVersion { get => _customHttpsConfigurationBody.MinimumTlsVersion ?? null; set => _customHttpsConfigurationBody.MinimumTlsVersion = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// The name of the Key Vault secret representing the full certificate PFX - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretName", - PossibleTypes = new [] { typeof(string) })] - public string SecretName { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName = value; } - - /// The version of the Key Vault secret representing the full certificate PFX - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The version of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretVersion", - PossibleTypes = new [] { typeof(string) })] - public string SecretVersion { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion = value; } - - /// Resource ID. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - public string VaultId { get => _customHttpsConfigurationBody.VaultId ?? null; set => _customHttpsConfigurationBody.VaultId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded Clone() - { - var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._customHttpsConfigurationBody = this._customHttpsConfigurationBody; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.FrontendEndpointsEnableHttpsViaIdentity(InputObject.Id, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontendEndpointName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.FrontendEndpointsEnableHttps(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.FrontendEndpointName ?? null, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor.cs deleted file mode 100644 index 593addffa902..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor.cs +++ /dev/null @@ -1,575 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] - public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfiguration; - - /// Https settings for a domain - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Https settings for a domain", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Https settings for a domain", - SerializedName = @"customHttpsConfiguration", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration CustomHttpsConfiguration { get => this._customHttpsConfiguration; set => this._customHttpsConfiguration = value; } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor Clone() - { - var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.FrontendEndpointName = this.FrontendEndpointName; - clone.CustomHttpsConfiguration = this.CustomHttpsConfiguration; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet - /// class. - /// - public EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (FrontDoorInputObject?.Id != null) - { - this.FrontDoorInputObject.Id += $"/frontendEndpoints/{(global::System.Uri.EscapeDataString(this.FrontendEndpointName.ToString()))}"; - await this.Client.FrontendEndpointsEnableHttpsViaIdentity(FrontDoorInputObject.Id, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == FrontDoorInputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - await this.Client.FrontendEndpointsEnableHttps(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, FrontendEndpointName, CustomHttpsConfiguration, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { FrontendEndpointName=FrontendEndpointName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded.cs deleted file mode 100644 index 2d88ae790f35..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded.cs +++ /dev/null @@ -1,642 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] - public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Https settings for a domain - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration _customHttpsConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CustomHttpsConfiguration(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// Defines the source of the SSL certificate - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Defines the source of the SSL certificate")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Defines the source of the SSL certificate", - SerializedName = @"certificateSource", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - public string CertificateSource { get => _customHttpsConfigurationBody.CertificateSource ?? null; set => _customHttpsConfigurationBody.CertificateSource = value; } - - /// - /// Defines the type of the certificate used for secure connections to a frontendEndpoint - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines the type of the certificate used for secure connections to a frontendEndpoint")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Defines the type of the certificate used for secure connections to a frontendEndpoint", - SerializedName = @"certificateType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - public string CertificateType { get => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType ?? null; set => _customHttpsConfigurationBody.FrontDoorCertificateSourceParameterCertificateType = value; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The minimum TLS version required from the clients to establish an SSL handshake with Front Door.", - SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"1.2", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - public string MinimumTlsVersion { get => _customHttpsConfigurationBody.MinimumTlsVersion ?? null; set => _customHttpsConfigurationBody.MinimumTlsVersion = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// The name of the Key Vault secret representing the full certificate PFX - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the Key Vault secret representing the full certificate PFX")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretName", - PossibleTypes = new [] { typeof(string) })] - public string SecretName { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretName = value; } - - /// The version of the Key Vault secret representing the full certificate PFX - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the Key Vault secret representing the full certificate PFX")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The version of the Key Vault secret representing the full certificate PFX", - SerializedName = @"secretVersion", - PossibleTypes = new [] { typeof(string) })] - public string SecretVersion { get => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion ?? null; set => _customHttpsConfigurationBody.KeyVaultCertificateSourceParameterSecretVersion = value; } - - /// Resource ID. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - public string VaultId { get => _customHttpsConfigurationBody.VaultId ?? null; set => _customHttpsConfigurationBody.VaultId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded Clone() - { - var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._customHttpsConfigurationBody = this._customHttpsConfigurationBody; - clone.FrontendEndpointName = this.FrontendEndpointName; - return clone; - } - - /// - /// Initializes a new instance of the - /// cmdlet class. - /// - public EnableAzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (FrontDoorInputObject?.Id != null) - { - this.FrontDoorInputObject.Id += $"/frontendEndpoints/{(global::System.Uri.EscapeDataString(this.FrontendEndpointName.ToString()))}"; - await this.Client.FrontendEndpointsEnableHttpsViaIdentity(FrontDoorInputObject.Id, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == FrontDoorInputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - await this.Client.FrontendEndpointsEnableHttps(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, FrontendEndpointName, _customHttpsConfigurationBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { FrontendEndpointName=FrontendEndpointName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath.cs deleted file mode 100644 index 8aaea31cf6f0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath.cs +++ /dev/null @@ -1,600 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - public global::System.String _jsonString; - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Enable operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Enable operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Enable operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath Clone() - { - var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.FrontendEndpointName = this.FrontendEndpointName; - clone.JsonFilePath = this.JsonFilePath; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public EnableAzFrontDoorCustomDomainHttps_EnableViaJsonFilePath() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendEndpointsEnableHttpsViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString.cs deleted file mode 100644 index 489c1f67d5d6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString.cs +++ /dev/null @@ -1,596 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Enables a frontendEndpoint for HTTPS traffic - /// - /// [OpenAPI] EnableHttps=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Enable, @"AzFrontDoorCustomDomainHttps_EnableViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Enables a frontendEndpoint for HTTPS traffic")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// Backing field for property. - private string _frontendEndpointName; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontendEndpointName { get => this._frontendEndpointName; set => this._frontendEndpointName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Enable operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Enable operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Enable operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString Clone() - { - var clone = new EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.FrontendEndpointName = this.FrontendEndpointName; - clone.JsonString = this.JsonString; - return clone; - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public EnableAzFrontDoorCustomDomainHttps_EnableViaJsonString() - { - - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontendEndpointsEnableHttps' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendEndpointsEnableHttpsViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, FrontendEndpointName, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,FrontendEndpointName=FrontendEndpointName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_Get.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_Get.cs deleted file mode 100644 index 1a2d7f664b4f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_Get.cs +++ /dev/null @@ -1,528 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorFrontendEndpoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Frontend endpoint with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoorFrontendEndpoint_Get : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontendEndpointName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorFrontendEndpoint_Get() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendEndpointsGet(SubscriptionId, ResourceGroupName, FrontDoorName, Name, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentity.cs deleted file mode 100644 index fd39335f981e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentity.cs +++ /dev/null @@ -1,492 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorFrontendEndpoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Frontend endpoint with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoorFrontendEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorFrontendEndpoint_GetViaIdentity() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.FrontendEndpointsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontendEndpointName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.FrontendEndpointsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.FrontendEndpointName ?? null, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor.cs deleted file mode 100644 index 9f36c96c3fad..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor.cs +++ /dev/null @@ -1,504 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Gets a Frontend endpoint with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Frontend endpoint with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Frontend endpoint which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Frontend endpoint which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Frontend endpoint which is unique within the Front Door.", - SerializedName = @"frontendEndpointName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontendEndpointName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (FrontDoorInputObject?.Id != null) - { - this.FrontDoorInputObject.Id += $"/frontendEndpoints/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; - await this.Client.FrontendEndpointsGetViaIdentity(FrontDoorInputObject.Id, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == FrontDoorInputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - await this.Client.FrontendEndpointsGet(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, Name, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_List.cs deleted file mode 100644 index 55aebc9a8f87..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorFrontendEndpoint_List.cs +++ /dev/null @@ -1,538 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Lists all of the frontend endpoints within a Front Door. - /// - /// [OpenAPI] ListByFrontDoor=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorFrontendEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the frontend endpoints within a Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoorFrontendEndpoint_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// A flag to tell whether it is the first onOK call. - private bool _isFirst = true; - - /// Link to retrieve next page. - private string _nextLink; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorFrontendEndpoint_List() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendEndpointsListByFrontDoor(SubscriptionId, ResourceGroupName, FrontDoorName, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpointsListResult - var result = (await response); - // response should be returning an array of some kind. +Pageable - // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } - _nextLink = result.NextLink; - if (_isFirst) - { - _isFirst = false; - while (!String.IsNullOrEmpty(_nextLink)) - { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) - { - requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendEndpointsListByFrontDoor_Call(requestMessage, onOk, onDefault, this, Pipeline); - } - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_Get.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_Get.cs deleted file mode 100644 index c9d877922d61..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_Get.cs +++ /dev/null @@ -1,527 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorRulesEngine_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoorRulesEngine_Get : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorRulesEngine_Get() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesGet(SubscriptionId, ResourceGroupName, FrontDoorName, Name, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentity.cs deleted file mode 100644 index 418433bab195..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentity.cs +++ /dev/null @@ -1,491 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorRulesEngine_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoorRulesEngine_GetViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorRulesEngine_GetViaIdentity() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.RulesEnginesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.RulesEngineName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RulesEngineName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.RulesEnginesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.RulesEngineName ?? null, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor.cs deleted file mode 100644 index 9e83346b24c0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor.cs +++ /dev/null @@ -1,503 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Gets a Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorRulesEngine_GetViaIdentityFrontDoor")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorRulesEngine_GetViaIdentityFrontDoor() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (FrontDoorInputObject?.Id != null) - { - this.FrontDoorInputObject.Id += $"/rulesEngines/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; - await this.Client.RulesEnginesGetViaIdentity(FrontDoorInputObject.Id, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == FrontDoorInputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - await this.Client.RulesEnginesGet(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, Name, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_List.cs deleted file mode 100644 index 6b78fe793294..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorRulesEngine_List.cs +++ /dev/null @@ -1,537 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Lists all of the Rules Engine Configurations within a Front Door. - /// - /// [OpenAPI] ListByFrontDoor=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorRulesEngine_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the Rules Engine Configurations within a Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoorRulesEngine_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// A flag to tell whether it is the first onOK call. - private bool _isFirst = true; - - /// Link to retrieve next page. - private string _nextLink; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorRulesEngine_List() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesListByFrontDoor(SubscriptionId, ResourceGroupName, FrontDoorName, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineListResult - var result = (await response); - // response should be returning an array of some kind. +Pageable - // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } - _nextLink = result.NextLink; - if (_isFirst) - { - _isFirst = false; - while (!String.IsNullOrEmpty(_nextLink)) - { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) - { - requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesListByFrontDoor_Call(requestMessage, onOk, onDefault, this, Pipeline); - } - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafManagedRuleSetDefinition_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafManagedRuleSetDefinition_List.cs deleted file mode 100644 index e817e6a1d323..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafManagedRuleSetDefinition_List.cs +++ /dev/null @@ -1,509 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Lists all available managed rule sets. - /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafManagedRuleSetDefinition_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinition))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all available managed rule sets.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets", ApiVersion = "2025-03-01")] - public partial class GetAzFrontDoorWafManagedRuleSetDefinition_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// A flag to tell whether it is the first onOK call. - private bool _isFirst = true; - - /// Link to retrieve next page. - private string _nextLink; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorWafManagedRuleSetDefinition_List() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ManagedRuleSetsList(SubscriptionId, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSetDefinitionList - var result = (await response); - // response should be returning an array of some kind. +Pageable - // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } - _nextLink = result.NextLink; - if (_isFirst) - { - _isFirst = false; - while (!String.IsNullOrEmpty(_nextLink)) - { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) - { - requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ManagedRuleSetsList_Call(requestMessage, onOk, onDefault, this, Pipeline); - } - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_Get.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_Get.cs deleted file mode 100644 index 79a3f1d6ac42..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_Get.cs +++ /dev/null @@ -1,511 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Retrieve protection policy with specified name within a resource group. - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafPolicy_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Retrieve protection policy with specified name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - public partial class GetAzFrontDoorWafPolicy_Get : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorWafPolicy_Get() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_GetViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_GetViaIdentity.cs deleted file mode 100644 index 2e279840b318..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_GetViaIdentity.cs +++ /dev/null @@ -1,485 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Retrieve protection policy with specified name within a resource group. - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafPolicy_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Retrieve protection policy with specified name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - public partial class GetAzFrontDoorWafPolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorWafPolicy_GetViaIdentity() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.PoliciesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.PolicyName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.PoliciesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PolicyName ?? null, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List.cs deleted file mode 100644 index 975d0430d2be..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List.cs +++ /dev/null @@ -1,523 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Lists all of the protection policies within a resource group. - /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafPolicy_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the protection policies within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies", ApiVersion = "2025-03-01")] - public partial class GetAzFrontDoorWafPolicy_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// A flag to tell whether it is the first onOK call. - private bool _isFirst = true; - - /// Link to retrieve next page. - private string _nextLink; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorWafPolicy_List() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesList(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList - var result = (await response); - // response should be returning an array of some kind. +Pageable - // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } - _nextLink = result.NextLink; - if (_isFirst) - { - _isFirst = false; - while (!String.IsNullOrEmpty(_nextLink)) - { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) - { - requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesList_Call(requestMessage, onOk, onDefault, this, Pipeline); - } - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List1.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List1.cs deleted file mode 100644 index c03572cb8573..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoorWafPolicy_List1.cs +++ /dev/null @@ -1,509 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Lists all of the protection policies within a subscription. - /// - /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoorWafPolicy_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the protection policies within a subscription.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies", ApiVersion = "2025-03-01")] - public partial class GetAzFrontDoorWafPolicy_List1 : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// A flag to tell whether it is the first onOK call. - private bool _isFirst = true; - - /// Link to retrieve next page. - private string _nextLink; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoorWafPolicy_List1() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesListBySubscription(SubscriptionId, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IDefaultErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicyList - var result = (await response); - // response should be returning an array of some kind. +Pageable - // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } - _nextLink = result.NextLink; - if (_isFirst) - { - _isFirst = false; - while (!String.IsNullOrEmpty(_nextLink)) - { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) - { - requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); - } - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_Get.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_Get.cs deleted file mode 100644 index 89ee418f6d61..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_Get.cs +++ /dev/null @@ -1,513 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoor_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Front Door with the specified Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoor_Get : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoor_Get() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_GetViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_GetViaIdentity.cs deleted file mode 100644 index b7bf3ac67f72..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_GetViaIdentity.cs +++ /dev/null @@ -1,487 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Gets a Front Door with the specified Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoor_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Gets a Front Door with the specified Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoor_GetViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoor_GetViaIdentity() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.FrontDoorsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.FrontDoorsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List.cs deleted file mode 100644 index ae0044cce5b0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List.cs +++ /dev/null @@ -1,509 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Lists all of the Front Doors within an Azure subscription. - /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoor_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the Front Doors within an Azure subscription.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoor_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// A flag to tell whether it is the first onOK call. - private bool _isFirst = true; - - /// Link to retrieve next page. - private string _nextLink; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoor_List() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsList(SubscriptionId, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult - var result = (await response); - // response should be returning an array of some kind. +Pageable - // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } - _nextLink = result.NextLink; - if (_isFirst) - { - _isFirst = false; - while (!String.IsNullOrEmpty(_nextLink)) - { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) - { - requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsList_Call(requestMessage, onOk, onDefault, this, Pipeline); - } - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List1.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List1.cs deleted file mode 100644 index eae5da6d3988..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/GetAzFrontDoor_List1.cs +++ /dev/null @@ -1,523 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Lists all of the Front Doors within a resource group under a subscription. - /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzFrontDoor_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Lists all of the Front Doors within a resource group under a subscription.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors", ApiVersion = "2021-06-01")] - public partial class GetAzFrontDoor_List1 : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// A flag to tell whether it is the first onOK call. - private bool _isFirst = true; - - /// Link to retrieve next page. - private string _nextLink; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string[] _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public GetAzFrontDoor_List1() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - foreach( var SubscriptionId in this.SubscriptionId ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsListByResourceGroup(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorListResult - var result = (await response); - // response should be returning an array of some kind. +Pageable - // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } - _nextLink = result.NextLink; - if (_isFirst) - { - _isFirst = false; - while (!String.IsNullOrEmpty(_nextLink)) - { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) - { - requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); - } - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateExpanded.cs deleted file mode 100644 index 9a569e5c0ef1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateExpanded.cs +++ /dev/null @@ -1,598 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// create a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorRulesEngine_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - public partial class NewAzFrontDoorRulesEngine_CreateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine _rulesEngineParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// A list of rules that define a particular Rules Engine Configuration. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A list of rules that define a particular Rules Engine Configuration.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of rules that define a particular Rules Engine Configuration.", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] Rule { get => _rulesEngineParametersBody.Rule?.ToArray() ?? null /* fixedArrayOf */; set => _rulesEngineParametersBody.Rule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoorRulesEngine_CreateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorRulesEngine_CreateExpanded Clone() - { - var clone = new NewAzFrontDoorRulesEngine_CreateExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._rulesEngineParametersBody = this._rulesEngineParametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoorRulesEngine_CreateExpanded() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesCreateOrUpdate(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _rulesEngineParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonFilePath.cs deleted file mode 100644 index b005842c7422..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonFilePath.cs +++ /dev/null @@ -1,596 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// create a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorRulesEngine_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class NewAzFrontDoorRulesEngine_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - public global::System.String _jsonString; - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Create operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Create operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Create operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoorRulesEngine_CreateViaJsonFilePath - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorRulesEngine_CreateViaJsonFilePath Clone() - { - var clone = new NewAzFrontDoorRulesEngine_CreateViaJsonFilePath(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.Name = this.Name; - clone.JsonFilePath = this.JsonFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoorRulesEngine_CreateViaJsonFilePath() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonString.cs deleted file mode 100644 index 84ccb95c45cd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorRulesEngine_CreateViaJsonString.cs +++ /dev/null @@ -1,594 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// create a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorRulesEngine_CreateViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class NewAzFrontDoorRulesEngine_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Create operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Create operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Create operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoorRulesEngine_CreateViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorRulesEngine_CreateViaJsonString Clone() - { - var clone = new NewAzFrontDoorRulesEngine_CreateViaJsonString(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.Name = this.Name; - clone.JsonString = this.JsonString; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoorRulesEngine_CreateViaJsonString() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateExpanded.cs deleted file mode 100644 index c09c9cdaa092..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateExpanded.cs +++ /dev/null @@ -1,658 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// create policy with specified rule set name within a resource group. - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorWafPolicy_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create policy with specified rule set name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - public partial class NewAzFrontDoorWafPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// Defines web application firewall policy. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// List of rules - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rules")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of rules", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] CustomRule { get => _parametersBody.CustomRule?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.CustomRule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Gets a unique read-only string that changes whenever the resource is updated. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets a unique read-only string that changes whenever the resource is updated.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets a unique read-only string that changes whenever the resource is updated.", - SerializedName = @"etag", - PossibleTypes = new [] { typeof(string) })] - public string Etag { get => _parametersBody.Etag ?? null; set => _parametersBody.Etag = value; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Resource location. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""global""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] - public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } - - /// List of rule sets. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rule sets.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of rule sets.", - SerializedName = @"managedRuleSets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] ManagedRuleSet { get => _parametersBody.ManagedRuleSet?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.ManagedRuleSet = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// Describes settings for the policy. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes settings for the policy.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Describes settings for the policy.", - SerializedName = @"policySettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => _parametersBody.PolicySetting ?? null /* object */; set => _parametersBody.PolicySetting = value; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Name of the pricing tier. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the pricing tier.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the pricing tier.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - public string SkuName { get => _parametersBody.SkuName ?? null; set => _parametersBody.SkuName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoorWafPolicy_CreateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorWafPolicy_CreateExpanded Clone() - { - var clone = new NewAzFrontDoorWafPolicy_CreateExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._parametersBody = this._parametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoorWafPolicy_CreateExpanded() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) - { - Location = (string)this.MyInvocation.BoundParameters["Location"]; - } - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonFilePath.cs deleted file mode 100644 index cfb3cfe2b2c3..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonFilePath.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// create policy with specified rule set name within a resource group. - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorWafPolicy_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create policy with specified rule set name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class NewAzFrontDoorWafPolicy_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - public global::System.String _jsonString; - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Create operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Create operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Create operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoorWafPolicy_CreateViaJsonFilePath - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorWafPolicy_CreateViaJsonFilePath Clone() - { - var clone = new NewAzFrontDoorWafPolicy_CreateViaJsonFilePath(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonFilePath = this.JsonFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoorWafPolicy_CreateViaJsonFilePath() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonString.cs deleted file mode 100644 index 447a9c86827f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoorWafPolicy_CreateViaJsonString.cs +++ /dev/null @@ -1,578 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// create policy with specified rule set name within a resource group. - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoorWafPolicy_CreateViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create policy with specified rule set name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class NewAzFrontDoorWafPolicy_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Create operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Create operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Create operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoorWafPolicy_CreateViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoorWafPolicy_CreateViaJsonString Clone() - { - var clone = new NewAzFrontDoorWafPolicy_CreateViaJsonString(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonString = this.JsonString; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoorWafPolicy_CreateViaJsonString() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateExpanded.cs deleted file mode 100644 index 32d45e437b77..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateExpanded.cs +++ /dev/null @@ -1,706 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// create a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoor_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Front Door with a Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - public partial class NewAzFrontDoor_CreateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor _frontDoorParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Backend pools available to routing rules. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backend pools available to routing rules.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Backend pools available to routing rules.", - SerializedName = @"backendPools", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] BackendPool { get => _frontDoorParametersBody.BackendPool?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.BackendPool = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Settings for all backendPools - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings for all backendPools")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Settings for all backendPools", - SerializedName = @"backendPoolsSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => _frontDoorParametersBody.BackendPoolsSetting ?? null /* object */; set => _frontDoorParametersBody.BackendPoolsSetting = value; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""Enabled""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - public string EnabledState { get => _frontDoorParametersBody.EnabledState ?? null; set => _frontDoorParametersBody.EnabledState = value; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// A friendly name for the frontDoor - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A friendly name for the frontDoor")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A friendly name for the frontDoor", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - public string FriendlyName { get => _frontDoorParametersBody.FriendlyName ?? null; set => _frontDoorParametersBody.FriendlyName = value; } - - /// Frontend endpoints available to routing rules. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rules.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Frontend endpoints available to routing rules.", - SerializedName = @"frontendEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] FrontendEndpoint { get => _frontDoorParametersBody.FrontendEndpoint?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.FrontendEndpoint = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Health probe settings associated with this Front Door instance. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Health probe settings associated with this Front Door instance.", - SerializedName = @"healthProbeSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] HealthProbeSetting { get => _frontDoorParametersBody.HealthProbeSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.HealthProbeSetting = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Load balancing settings associated with this Front Door instance. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Load balancing settings associated with this Front Door instance.", - SerializedName = @"loadBalancingSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] LoadBalancingSetting { get => _frontDoorParametersBody.LoadBalancingSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.LoadBalancingSetting = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Resource location. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""global""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] - public string Location { get => _frontDoorParametersBody.Location ?? null; set => _frontDoorParametersBody.Location = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Routing rules associated with this Front Door. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Routing rules associated with this Front Door.", - SerializedName = @"routingRules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] RoutingRule { get => _frontDoorParametersBody.RoutingRule?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.RoutingRule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _frontDoorParametersBody.Tag ?? null /* object */; set => _frontDoorParametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoor_CreateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoor_CreateExpanded Clone() - { - var clone = new NewAzFrontDoor_CreateExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._frontDoorParametersBody = this._frontDoorParametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoor_CreateExpanded() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) - { - Location = (string)this.MyInvocation.BoundParameters["Location"]; - } - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonFilePath.cs deleted file mode 100644 index f149de53e408..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonFilePath.cs +++ /dev/null @@ -1,582 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// create a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoor_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Front Door with a Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class NewAzFrontDoor_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - public global::System.String _jsonString; - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Create operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Create operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Create operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoor_CreateViaJsonFilePath - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoor_CreateViaJsonFilePath Clone() - { - var clone = new NewAzFrontDoor_CreateViaJsonFilePath(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonFilePath = this.JsonFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoor_CreateViaJsonFilePath() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonString.cs deleted file mode 100644 index 60373fa231bc..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/NewAzFrontDoor_CreateViaJsonString.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// create a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFrontDoor_CreateViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"create a new Front Door with a Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class NewAzFrontDoor_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Create operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Create operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Create operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzFrontDoor_CreateViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.NewAzFrontDoor_CreateViaJsonString Clone() - { - var clone = new NewAzFrontDoor_CreateViaJsonString(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonString = this.JsonString; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public NewAzFrontDoor_CreateViaJsonString() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_Purge.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_Purge.cs deleted file mode 100644 index cd3b9b2098bf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_Purge.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Removes a content from Front Door. - /// - /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_Purge", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoorContent_Purge : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters _contentFilePath; - - /// Parameters required for content purge. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Parameters required for content purge.", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Parameters required for content purge.", - SerializedName = @"contentFilePaths", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters ContentFilePath { get => this._contentFilePath; set => this._contentFilePath = value; } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorContent_Purge - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_Purge Clone() - { - var clone = new RemoveAzFrontDoorContent_Purge(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.ContentFilePath = this.ContentFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.EndpointsPurgeContent(SubscriptionId, ResourceGroupName, Name, ContentFilePath, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorContent_Purge() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeExpanded.cs deleted file mode 100644 index 132f7fecce01..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeExpanded.cs +++ /dev/null @@ -1,583 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Removes a content from Front Door. - /// - /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoorContent_PurgeExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Parameters required for content purge. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters _contentFilePathsBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PurgeParameters(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The path to the content to be purged. Can describe a file path or a wild card directory. - /// - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The path to the content to be purged. Can describe a file path or a wild card directory.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The path to the content to be purged. Can describe a file path or a wild card directory.", - SerializedName = @"contentPaths", - PossibleTypes = new [] { typeof(string) })] - public string[] ContentPath { get => _contentFilePathsBody.ContentPath?.ToArray() ?? null /* fixedArrayOf */; set => _contentFilePathsBody.ContentPath = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorContent_PurgeExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeExpanded Clone() - { - var clone = new RemoveAzFrontDoorContent_PurgeExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._contentFilePathsBody = this._contentFilePathsBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.EndpointsPurgeContent(SubscriptionId, ResourceGroupName, Name, _contentFilePathsBody, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorContent_PurgeExpanded() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentity.cs deleted file mode 100644 index f8dd1ccd4285..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentity.cs +++ /dev/null @@ -1,555 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Removes a content from Front Door. - /// - /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoorContent_PurgeViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters _contentFilePath; - - /// Parameters required for content purge. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Parameters required for content purge.", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Parameters required for content purge.", - SerializedName = @"contentFilePaths", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters ContentFilePath { get => this._contentFilePath; set => this._contentFilePath = value; } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorContent_PurgeViaIdentity - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeViaIdentity Clone() - { - var clone = new RemoveAzFrontDoorContent_PurgeViaIdentity(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ContentFilePath = this.ContentFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.EndpointsPurgeContentViaIdentity(InputObject.Id, ContentFilePath, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.EndpointsPurgeContent(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, ContentFilePath, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorContent_PurgeViaIdentity() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentityExpanded.cs deleted file mode 100644 index 55c8748c4741..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaIdentityExpanded.cs +++ /dev/null @@ -1,558 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Removes a content from Front Door. - /// - /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoorContent_PurgeViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Parameters required for content purge. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPurgeParameters _contentFilePathsBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.PurgeParameters(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The path to the content to be purged. Can describe a file path or a wild card directory. - /// - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The path to the content to be purged. Can describe a file path or a wild card directory.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The path to the content to be purged. Can describe a file path or a wild card directory.", - SerializedName = @"contentPaths", - PossibleTypes = new [] { typeof(string) })] - public string[] ContentPath { get => _contentFilePathsBody.ContentPath?.ToArray() ?? null /* fixedArrayOf */; set => _contentFilePathsBody.ContentPath = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorContent_PurgeViaIdentityExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeViaIdentityExpanded Clone() - { - var clone = new RemoveAzFrontDoorContent_PurgeViaIdentityExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._contentFilePathsBody = this._contentFilePathsBody; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.EndpointsPurgeContentViaIdentity(InputObject.Id, _contentFilePathsBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.EndpointsPurgeContent(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, _contentFilePathsBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorContent_PurgeViaIdentityExpanded() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonFilePath.cs deleted file mode 100644 index 74f041b2e455..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonFilePath.cs +++ /dev/null @@ -1,582 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Removes a content from Front Door. - /// - /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class RemoveAzFrontDoorContent_PurgeViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - public global::System.String _jsonString; - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Purge operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Purge operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Purge operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorContent_PurgeViaJsonFilePath - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeViaJsonFilePath Clone() - { - var clone = new RemoveAzFrontDoorContent_PurgeViaJsonFilePath(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonFilePath = this.JsonFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.EndpointsPurgeContentViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorContent_PurgeViaJsonFilePath() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonString.cs deleted file mode 100644 index cd8a4294e502..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorContent_PurgeViaJsonString.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Removes a content from Front Door. - /// - /// [OpenAPI] PurgeContent=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorContent_PurgeViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Removes a content from Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class RemoveAzFrontDoorContent_PurgeViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Purge operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Purge operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Purge operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorContent_PurgeViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorContent_PurgeViaJsonString Clone() - { - var clone = new RemoveAzFrontDoorContent_PurgeViaJsonString(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonString = this.JsonString; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'EndpointsPurgeContent' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.EndpointsPurgeContentViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorContent_PurgeViaJsonString() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_Delete.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_Delete.cs deleted file mode 100644 index c435eb5874a1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_Delete.cs +++ /dev/null @@ -1,615 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Deletes an existing Rules Engine Configuration with the specified parameters. - /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorRulesEngine_Delete", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Rules Engine Configuration with the specified parameters.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoorRulesEngine_Delete : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of - /// what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNoContent method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorRulesEngine_Delete - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorRulesEngine_Delete Clone() - { - var clone = new RemoveAzFrontDoorRulesEngine_Delete(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesDelete' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesDelete(SubscriptionId, ResourceGroupName, FrontDoorName, Name, onNoContent, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorRulesEngine_Delete() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 204 (NoContent). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNoContent(responseMessage, ref _returnNow); - // if overrideOnNoContent has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNoContent - response for 204 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentity.cs deleted file mode 100644 index cca29a0bd3b7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentity.cs +++ /dev/null @@ -1,578 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Deletes an existing Rules Engine Configuration with the specified parameters. - /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorRulesEngine_DeleteViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Rules Engine Configuration with the specified parameters.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoorRulesEngine_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of - /// what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNoContent method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorRulesEngine_DeleteViaIdentity - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorRulesEngine_DeleteViaIdentity Clone() - { - var clone = new RemoveAzFrontDoorRulesEngine_DeleteViaIdentity(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesDelete' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.RulesEnginesDeleteViaIdentity(InputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.RulesEngineName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RulesEngineName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.RulesEnginesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, InputObject.RulesEngineName ?? null, onNoContent, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorRulesEngine_DeleteViaIdentity() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 204 (NoContent). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNoContent(responseMessage, ref _returnNow); - // if overrideOnNoContent has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNoContent - response for 204 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor.cs deleted file mode 100644 index 7cf0fe6c7e09..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor.cs +++ /dev/null @@ -1,591 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Deletes an existing Rules Engine Configuration with the specified parameters. - /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Rules Engine Configuration with the specified parameters.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _frontDoorInputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity FrontDoorInputObject { get => this._frontDoorInputObject; set => this._frontDoorInputObject = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of - /// what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNoContent method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor Clone() - { - var clone = new RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesDelete' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (FrontDoorInputObject?.Id != null) - { - this.FrontDoorInputObject.Id += $"/rulesEngines/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; - await this.Client.RulesEnginesDeleteViaIdentity(FrontDoorInputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == FrontDoorInputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - if (null == FrontDoorInputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("FrontDoorInputObject has null value for FrontDoorInputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, FrontDoorInputObject) ); - } - await this.Client.RulesEnginesDelete(FrontDoorInputObject.SubscriptionId ?? null, FrontDoorInputObject.ResourceGroupName ?? null, FrontDoorInputObject.FrontDoorName ?? null, Name, onNoContent, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorRulesEngine_DeleteViaIdentityFrontDoor() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 204 (NoContent). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNoContent(responseMessage, ref _returnNow); - // if overrideOnNoContent has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNoContent - response for 204 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_Delete.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_Delete.cs deleted file mode 100644 index d5de6b9b26ce..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_Delete.cs +++ /dev/null @@ -1,546 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Deletes Policy - /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorWafPolicy_Delete", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes Policy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - public partial class RemoveAzFrontDoorWafPolicy_Delete : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of - /// what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNoContent method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorWafPolicy_Delete - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorWafPolicy_Delete Clone() - { - var clone = new RemoveAzFrontDoorWafPolicy_Delete(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesDelete' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesDelete(SubscriptionId, ResourceGroupName, Name, onOk, onNoContent, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorWafPolicy_Delete() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// a delegate that is called when the remote service returns 204 (NoContent). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNoContent(responseMessage, ref _returnNow); - // if overrideOnNoContent has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNoContent - response for 204 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_DeleteViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_DeleteViaIdentity.cs deleted file mode 100644 index 0ad125717fc0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoorWafPolicy_DeleteViaIdentity.cs +++ /dev/null @@ -1,520 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Deletes Policy - /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoorWafPolicy_DeleteViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes Policy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - public partial class RemoveAzFrontDoorWafPolicy_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of - /// what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNoContent method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoorWafPolicy_DeleteViaIdentity - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoorWafPolicy_DeleteViaIdentity Clone() - { - var clone = new RemoveAzFrontDoorWafPolicy_DeleteViaIdentity(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesDelete' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.PoliciesDeleteViaIdentity(InputObject.Id, onOk, onNoContent, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.PolicyName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.PoliciesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PolicyName ?? null, onOk, onNoContent, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoorWafPolicy_DeleteViaIdentity() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// a delegate that is called when the remote service returns 204 (NoContent). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNoContent(responseMessage, ref _returnNow); - // if overrideOnNoContent has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNoContent - response for 204 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_Delete.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_Delete.cs deleted file mode 100644 index eab8ded8d8bb..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_Delete.cs +++ /dev/null @@ -1,600 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Deletes an existing Front Door with the specified parameters. - /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoor_Delete", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Front Door with the specified parameters.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoor_Delete : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of - /// what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNoContent method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoor_Delete - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoor_Delete Clone() - { - var clone = new RemoveAzFrontDoor_Delete(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsDelete' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsDelete(SubscriptionId, ResourceGroupName, Name, onNoContent, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoor_Delete() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 204 (NoContent). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNoContent(responseMessage, ref _returnNow); - // if overrideOnNoContent has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNoContent - response for 204 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_DeleteViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_DeleteViaIdentity.cs deleted file mode 100644 index 645ec0033c58..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/RemoveAzFrontDoor_DeleteViaIdentity.cs +++ /dev/null @@ -1,574 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Deletes an existing Front Door with the specified parameters. - /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzFrontDoor_DeleteViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Deletes an existing Front Door with the specified parameters.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - public partial class RemoveAzFrontDoor_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of - /// what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNoContent method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzFrontDoor_DeleteViaIdentity - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.RemoveAzFrontDoor_DeleteViaIdentity Clone() - { - var clone = new RemoveAzFrontDoor_DeleteViaIdentity(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsDelete' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.FrontDoorsDeleteViaIdentity(InputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.FrontDoorsDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, onNoContent, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public RemoveAzFrontDoor_DeleteViaIdentity() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 204 (NoContent). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNoContent(responseMessage, ref _returnNow); - // if overrideOnNoContent has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNoContent - response for 204 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / - if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded.cs deleted file mode 100644 index 508372abff78..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded.cs +++ /dev/null @@ -1,599 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorRulesEngine_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - public partial class SetAzFrontDoorRulesEngine_UpdateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine _rulesEngineParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// A list of rules that define a particular Rules Engine Configuration. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A list of rules that define a particular Rules Engine Configuration.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of rules that define a particular Rules Engine Configuration.", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] Rule { get => _rulesEngineParametersBody.Rule?.ToArray() ?? null /* fixedArrayOf */; set => _rulesEngineParametersBody.Rule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoorRulesEngine_UpdateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorRulesEngine_UpdateExpanded Clone() - { - var clone = new SetAzFrontDoorRulesEngine_UpdateExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._rulesEngineParametersBody = this._rulesEngineParametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesCreateOrUpdate(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _rulesEngineParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoorRulesEngine_UpdateExpanded() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded1.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded1.cs deleted file mode 100644 index 2d6e6d2e6a8f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateExpanded1.cs +++ /dev/null @@ -1,608 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorRulesEngine_UpdateExpanded1", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - public partial class SetAzFrontDoorRulesEngine_UpdateExpanded1 : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// - /// A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and - /// response. - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine _rulesEngineParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngine(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// A list of rules that define a particular Rules Engine Configuration. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A list of rules that define a particular Rules Engine Configuration.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of rules that define a particular Rules Engine Configuration.", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[] Rule { get => _rulesEngineParametersBody.Rule?.ToArray() ?? null /* fixedArrayOf */; set => _rulesEngineParametersBody.Rule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoorRulesEngine_UpdateExpanded1 - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorRulesEngine_UpdateExpanded1 Clone() - { - var clone = new SetAzFrontDoorRulesEngine_UpdateExpanded1(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._rulesEngineParametersBody = this._rulesEngineParametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - _rulesEngineParametersBody = await this.Client.RulesEnginesGetWithResult(SubscriptionId, ResourceGroupName, FrontDoorName, Name, this, Pipeline); - this.Update_rulesEngineParametersBody(); - await this.Client.RulesEnginesCreateOrUpdate(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _rulesEngineParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoorRulesEngine_UpdateExpanded1() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - private void Update_rulesEngineParametersBody() - { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Rule"))) - { - this.Rule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[])(this.MyInvocation?.BoundParameters["Rule"]); - } - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath.cs deleted file mode 100644 index d958c8e66212..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath.cs +++ /dev/null @@ -1,597 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorRulesEngine_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - public global::System.String _jsonString; - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Update operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Update operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Update operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath Clone() - { - var clone = new SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.Name = this.Name; - clone.JsonFilePath = this.JsonFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoorRulesEngine_UpdateViaJsonFilePath() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonString.cs deleted file mode 100644 index 3be65f9e0111..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorRulesEngine_UpdateViaJsonString.cs +++ /dev/null @@ -1,595 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Rules Engine Configuration with the specified name within the specified Front Door. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorRulesEngine_UpdateViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Rules Engine Configuration with the specified name within the specified Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class SetAzFrontDoorRulesEngine_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Update operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Update operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Update operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Rules Engine which is unique within the Front Door. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Rules Engine which is unique within the Front Door.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Rules Engine which is unique within the Front Door.", - SerializedName = @"rulesEngineName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("RulesEngineName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoorRulesEngine_UpdateViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorRulesEngine_UpdateViaJsonString Clone() - { - var clone = new SetAzFrontDoorRulesEngine_UpdateViaJsonString(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.FrontDoorName = this.FrontDoorName; - clone.Name = this.Name; - clone.JsonString = this.JsonString; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RulesEnginesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RulesEnginesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoorRulesEngine_UpdateViaJsonString() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateExpanded.cs deleted file mode 100644 index 854b4832746a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateExpanded.cs +++ /dev/null @@ -1,658 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// update policy with specified rule set name within a resource group. - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorWafPolicy_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - public partial class SetAzFrontDoorWafPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// Defines web application firewall policy. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// List of rules - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rules")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of rules", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] CustomRule { get => _parametersBody.CustomRule?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.CustomRule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Gets a unique read-only string that changes whenever the resource is updated. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets a unique read-only string that changes whenever the resource is updated.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets a unique read-only string that changes whenever the resource is updated.", - SerializedName = @"etag", - PossibleTypes = new [] { typeof(string) })] - public string Etag { get => _parametersBody.Etag ?? null; set => _parametersBody.Etag = value; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Resource location. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""global""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] - public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } - - /// List of rule sets. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rule sets.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of rule sets.", - SerializedName = @"managedRuleSets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] ManagedRuleSet { get => _parametersBody.ManagedRuleSet?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.ManagedRuleSet = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// Describes settings for the policy. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes settings for the policy.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Describes settings for the policy.", - SerializedName = @"policySettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => _parametersBody.PolicySetting ?? null /* object */; set => _parametersBody.PolicySetting = value; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Name of the pricing tier. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the pricing tier.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the pricing tier.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - public string SkuName { get => _parametersBody.SkuName ?? null; set => _parametersBody.SkuName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoorWafPolicy_UpdateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorWafPolicy_UpdateExpanded Clone() - { - var clone = new SetAzFrontDoorWafPolicy_UpdateExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._parametersBody = this._parametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) - { - Location = (string)this.MyInvocation.BoundParameters["Location"]; - } - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoorWafPolicy_UpdateExpanded() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath.cs deleted file mode 100644 index ca397836a416..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// update policy with specified rule set name within a resource group. - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorWafPolicy_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - public global::System.String _jsonString; - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Update operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Update operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Update operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath Clone() - { - var clone = new SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonFilePath = this.JsonFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoorWafPolicy_UpdateViaJsonFilePath() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonString.cs deleted file mode 100644 index e11a7b623719..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoorWafPolicy_UpdateViaJsonString.cs +++ /dev/null @@ -1,578 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// update policy with specified rule set name within a resource group. - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoorWafPolicy_UpdateViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", ApiVersion = "2025-03-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class SetAzFrontDoorWafPolicy_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Update operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Update operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Update operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoorWafPolicy_UpdateViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoorWafPolicy_UpdateViaJsonString Clone() - { - var clone = new SetAzFrontDoorWafPolicy_UpdateViaJsonString(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonString = this.JsonString; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PoliciesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoorWafPolicy_UpdateViaJsonString() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateExpanded.cs deleted file mode 100644 index ca4ef2fb888d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateExpanded.cs +++ /dev/null @@ -1,701 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoor_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - public partial class SetAzFrontDoor_UpdateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor _frontDoorParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Backend pools available to routing rules. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backend pools available to routing rules.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Backend pools available to routing rules.", - SerializedName = @"backendPools", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] BackendPool { get => _frontDoorParametersBody.BackendPool?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.BackendPool = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Settings for all backendPools - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings for all backendPools")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Settings for all backendPools", - SerializedName = @"backendPoolsSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => _frontDoorParametersBody.BackendPoolsSetting ?? null /* object */; set => _frontDoorParametersBody.BackendPoolsSetting = value; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - public string EnabledState { get => _frontDoorParametersBody.EnabledState ?? null; set => _frontDoorParametersBody.EnabledState = value; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// A friendly name for the frontDoor - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A friendly name for the frontDoor")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A friendly name for the frontDoor", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - public string FriendlyName { get => _frontDoorParametersBody.FriendlyName ?? null; set => _frontDoorParametersBody.FriendlyName = value; } - - /// Frontend endpoints available to routing rules. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rules.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Frontend endpoints available to routing rules.", - SerializedName = @"frontendEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] FrontendEndpoint { get => _frontDoorParametersBody.FrontendEndpoint?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.FrontendEndpoint = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Health probe settings associated with this Front Door instance. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Health probe settings associated with this Front Door instance.", - SerializedName = @"healthProbeSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] HealthProbeSetting { get => _frontDoorParametersBody.HealthProbeSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.HealthProbeSetting = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Load balancing settings associated with this Front Door instance. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Load balancing settings associated with this Front Door instance.", - SerializedName = @"loadBalancingSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] LoadBalancingSetting { get => _frontDoorParametersBody.LoadBalancingSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.LoadBalancingSetting = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Resource location. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""global""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] - public string Location { get => _frontDoorParametersBody.Location ?? null; set => _frontDoorParametersBody.Location = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Routing rules associated with this Front Door. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Routing rules associated with this Front Door.", - SerializedName = @"routingRules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] RoutingRule { get => _frontDoorParametersBody.RoutingRule?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.RoutingRule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _frontDoorParametersBody.Tag ?? null /* object */; set => _frontDoorParametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoor_UpdateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoor_UpdateExpanded Clone() - { - var clone = new SetAzFrontDoor_UpdateExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._frontDoorParametersBody = this._frontDoorParametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) - { - Location = (string)this.MyInvocation.BoundParameters["Location"]; - } - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoor_UpdateExpanded() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonFilePath.cs deleted file mode 100644 index d76ea959669e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonFilePath.cs +++ /dev/null @@ -1,582 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoor_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class SetAzFrontDoor_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - public global::System.String _jsonString; - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Update operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Update operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Update operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoor_UpdateViaJsonFilePath - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoor_UpdateViaJsonFilePath Clone() - { - var clone = new SetAzFrontDoor_UpdateViaJsonFilePath(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonFilePath = this.JsonFilePath; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoor_UpdateViaJsonFilePath() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonString.cs deleted file mode 100644 index bc41859fe28f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/SetAzFrontDoor_UpdateViaJsonString.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzFrontDoor_UpdateViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class SetAzFrontDoor_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Update operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Update operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Update operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzFrontDoor_UpdateViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.SetAzFrontDoor_UpdateViaJsonString Clone() - { - var clone = new SetAzFrontDoor_UpdateViaJsonString(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - clone.JsonString = this.JsonString; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, Name, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public SetAzFrontDoor_UpdateViaJsonString() - { - - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_Validate.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_Validate.cs deleted file mode 100644 index ac5abc8acf3d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_Validate.cs +++ /dev/null @@ -1,527 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// - /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_Validate", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] - public partial class TestAzFrontDoorCustomDomain_Validate : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput _customDomainProperty; - - /// Input of the custom domain to be validated for DNS mapping. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Input of the custom domain to be validated for DNS mapping.", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Input of the custom domain to be validated for DNS mapping.", - SerializedName = @"customDomainProperties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput CustomDomainProperty { get => this._customDomainProperty; set => this._customDomainProperty = value; } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsValidateCustomDomain(SubscriptionId, ResourceGroupName, FrontDoorName, CustomDomainProperty, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorCustomDomain_Validate() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateExpanded.cs deleted file mode 100644 index 1084623ae171..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateExpanded.cs +++ /dev/null @@ -1,527 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// - /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] - public partial class TestAzFrontDoorCustomDomain_ValidateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Input of the custom domain to be validated for DNS mapping. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput _customDomainPropertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainInput(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// The host name of the custom domain. Must be a domain name. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The host name of the custom domain. Must be a domain name.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The host name of the custom domain. Must be a domain name.", - SerializedName = @"hostName", - PossibleTypes = new [] { typeof(string) })] - public string HostName { get => _customDomainPropertiesBody.HostName ?? null; set => _customDomainPropertiesBody.HostName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsValidateCustomDomain(SubscriptionId, ResourceGroupName, FrontDoorName, _customDomainPropertiesBody, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorCustomDomain_ValidateExpanded() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentity.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentity.cs deleted file mode 100644 index 6469fce76b27..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentity.cs +++ /dev/null @@ -1,505 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// - /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] - public partial class TestAzFrontDoorCustomDomain_ValidateViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput _customDomainProperty; - - /// Input of the custom domain to be validated for DNS mapping. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Input of the custom domain to be validated for DNS mapping.", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Input of the custom domain to be validated for DNS mapping.", - SerializedName = @"customDomainProperties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput CustomDomainProperty { get => this._customDomainProperty; set => this._customDomainProperty = value; } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.FrontDoorsValidateCustomDomainViaIdentity(InputObject.Id, CustomDomainProperty, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.FrontDoorsValidateCustomDomain(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, CustomDomainProperty, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorCustomDomain_ValidateViaIdentity() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded.cs deleted file mode 100644 index 1310907138a5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded.cs +++ /dev/null @@ -1,505 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// - /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] - public partial class TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Input of the custom domain to be validated for DNS mapping. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput _customDomainPropertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ValidateCustomDomainInput(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// The host name of the custom domain. Must be a domain name. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The host name of the custom domain. Must be a domain name.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The host name of the custom domain. Must be a domain name.", - SerializedName = @"hostName", - PossibleTypes = new [] { typeof(string) })] - public string HostName { get => _customDomainPropertiesBody.HostName ?? null; set => _customDomainPropertiesBody.HostName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.FrontDoorsValidateCustomDomainViaIdentity(InputObject.Id, _customDomainPropertiesBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.FrontDoorsValidateCustomDomain(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, _customDomainPropertiesBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorCustomDomain_ValidateViaIdentityExpanded() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath.cs deleted file mode 100644 index a6f372cd4241..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath.cs +++ /dev/null @@ -1,529 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// - /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - public global::System.String _jsonString; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Validate operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Validate operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Validate operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsValidateCustomDomainViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorCustomDomain_ValidateViaJsonFilePath() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonString.cs deleted file mode 100644 index f55c6b2c6f86..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorCustomDomain_ValidateViaJsonString.cs +++ /dev/null @@ -1,527 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. - /// - /// - /// [OpenAPI] ValidateCustomDomain=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorCustomDomain_ValidateViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class TestAzFrontDoorCustomDomain_ValidateViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// Backing field for property. - private string _frontDoorName; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string FrontDoorName { get => this._frontDoorName; set => this._frontDoorName = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Validate operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Validate operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Validate operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsValidateCustomDomain' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorsValidateCustomDomainViaJsonString(SubscriptionId, ResourceGroupName, FrontDoorName, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,FrontDoorName=FrontDoorName}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorCustomDomain_ValidateViaJsonString() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_Check.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_Check.cs deleted file mode 100644 index 6d8fb8cda76d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_Check.cs +++ /dev/null @@ -1,497 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Check the availability of a Front Door subdomain. - /// - /// [OpenAPI] Check=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailabilityWithSubscription_Check", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door subdomain.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] - public partial class TestAzFrontDoorNameAvailabilityWithSubscription_Check : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput _checkFrontDoorNameAvailabilityInput; - - /// Input of CheckNameAvailability API. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Input of CheckNameAvailability API.", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Input of CheckNameAvailability API.", - SerializedName = @"checkFrontDoorNameAvailabilityInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput CheckFrontDoorNameAvailabilityInput { get => this._checkFrontDoorNameAvailabilityInput; set => this._checkFrontDoorNameAvailabilityInput = value; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityWithSubscriptionCheck' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorNameAvailabilityWithSubscriptionCheck(SubscriptionId, CheckFrontDoorNameAvailabilityInput, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorNameAvailabilityWithSubscription_Check() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded.cs deleted file mode 100644 index 8c1450c47392..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded.cs +++ /dev/null @@ -1,510 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Check the availability of a Front Door subdomain. - /// - /// [OpenAPI] Check=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailabilityWithSubscription_CheckExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door subdomain.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] - public partial class TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Input of CheckNameAvailability API. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput _checkFrontDoorNameAvailabilityInputBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityInput(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// The resource name to validate. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The resource name to validate.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The resource name to validate.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - public string Name { get => _checkFrontDoorNameAvailabilityInputBody.Name ?? null; set => _checkFrontDoorNameAvailabilityInputBody.Name = value; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// The type of the resource whose name is to be validated. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The type of the resource whose name is to be validated.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The type of the resource whose name is to be validated.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] - public string Type { get => _checkFrontDoorNameAvailabilityInputBody.Type ?? null; set => _checkFrontDoorNameAvailabilityInputBody.Type = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityWithSubscriptionCheck' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorNameAvailabilityWithSubscriptionCheck(SubscriptionId, _checkFrontDoorNameAvailabilityInputBody, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet - /// class. - /// - public TestAzFrontDoorNameAvailabilityWithSubscription_CheckExpanded() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath.cs deleted file mode 100644 index 5a141525e733..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath.cs +++ /dev/null @@ -1,500 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Check the availability of a Front Door subdomain. - /// - /// [OpenAPI] Check=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door subdomain.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - public global::System.String _jsonString; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Check operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Check operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Check operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityWithSubscriptionCheck' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorNameAvailabilityWithSubscriptionCheckViaJsonString(SubscriptionId, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the - /// cmdlet class. - /// - public TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString.cs deleted file mode 100644 index 21e2cc686af2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString.cs +++ /dev/null @@ -1,498 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Check the availability of a Front Door subdomain. - /// - /// [OpenAPI] Check=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door subdomain.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Check operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Check operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Check operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityWithSubscriptionCheck' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorNameAvailabilityWithSubscriptionCheckViaJsonString(SubscriptionId, _jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet - /// class. - /// - public TestAzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_Check.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_Check.cs deleted file mode 100644 index b9b1befd4af1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_Check.cs +++ /dev/null @@ -1,475 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Check the availability of a Front Door resource name. - /// - /// [OpenAPI] Check=>POST:"/providers/Microsoft.Network/checkFrontDoorNameAvailability" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailability_Check", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door resource name.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] - public partial class TestAzFrontDoorNameAvailability_Check : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput _checkFrontDoorNameAvailabilityInput; - - /// Input of CheckNameAvailability API. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Input of CheckNameAvailability API.", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Input of CheckNameAvailability API.", - SerializedName = @"checkFrontDoorNameAvailabilityInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput CheckFrontDoorNameAvailabilityInput { get => this._checkFrontDoorNameAvailabilityInput; set => this._checkFrontDoorNameAvailabilityInput = value; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityCheck' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorNameAvailabilityCheck(CheckFrontDoorNameAvailabilityInput, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorNameAvailability_Check() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckExpanded.cs deleted file mode 100644 index 70ae01f61318..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckExpanded.cs +++ /dev/null @@ -1,487 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Check the availability of a Front Door resource name. - /// - /// [OpenAPI] Check=>POST:"/providers/Microsoft.Network/checkFrontDoorNameAvailability" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailability_CheckExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door resource name.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] - public partial class TestAzFrontDoorNameAvailability_CheckExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Input of CheckNameAvailability API. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput _checkFrontDoorNameAvailabilityInputBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CheckNameAvailabilityInput(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// The resource name to validate. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The resource name to validate.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The resource name to validate.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - public string Name { get => _checkFrontDoorNameAvailabilityInputBody.Name ?? null; set => _checkFrontDoorNameAvailabilityInputBody.Name = value; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// The type of the resource whose name is to be validated. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The type of the resource whose name is to be validated.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The type of the resource whose name is to be validated.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] - public string Type { get => _checkFrontDoorNameAvailabilityInputBody.Type ?? null; set => _checkFrontDoorNameAvailabilityInputBody.Type = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityCheck' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorNameAvailabilityCheck(_checkFrontDoorNameAvailabilityInputBody, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorNameAvailability_CheckExpanded() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonFilePath.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonFilePath.cs deleted file mode 100644 index 56f41e8f7504..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonFilePath.cs +++ /dev/null @@ -1,477 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Check the availability of a Front Door resource name. - /// - /// [OpenAPI] Check=>POST:"/providers/Microsoft.Network/checkFrontDoorNameAvailability" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailability_CheckViaJsonFilePath", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door resource name.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class TestAzFrontDoorNameAvailability_CheckViaJsonFilePath : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - public global::System.String _jsonString; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonFilePath; - - /// Path of Json file supplied to the Check operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Check operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Path of Json file supplied to the Check operation", - SerializedName = @"JsonFilePath", - PossibleTypes = new [] { typeof(string) })] - public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityCheck' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorNameAvailabilityCheckViaJsonString(_jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorNameAvailability_CheckViaJsonFilePath() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonString.cs deleted file mode 100644 index 05b2210b6dc0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/TestAzFrontDoorNameAvailability_CheckViaJsonString.cs +++ /dev/null @@ -1,475 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// Check the availability of a Front Door resource name. - /// - /// [OpenAPI] Check=>POST:"/providers/Microsoft.Network/checkFrontDoorNameAvailability" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzFrontDoorNameAvailability_CheckViaJsonString", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"Check the availability of a Front Door resource name.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.HttpPath(Path = "/providers/Microsoft.Network/checkFrontDoorNameAvailability", ApiVersion = "2021-06-01")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.NotSuggestDefaultParameterSet] - public partial class TestAzFrontDoorNameAvailability_CheckViaJsonString : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Backing field for property. - private string _jsonString; - - /// Json string supplied to the Check operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Check operation")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Json string supplied to the Check operation", - SerializedName = @"JsonString", - PossibleTypes = new [] { typeof(string) })] - public string JsonString { get => this._jsonString; set => this._jsonString = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorNameAvailabilityCheck' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontDoorNameAvailabilityCheckViaJsonString(_jsonString, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public TestAzFrontDoorNameAvailability_CheckViaJsonString() - { - - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput - var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateExpanded.cs deleted file mode 100644 index 27ed37cc27e7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateExpanded.cs +++ /dev/null @@ -1,692 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// update policy with specified rule set name within a resource group. - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFrontDoorWafPolicy_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - public partial class UpdateAzFrontDoorWafPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// Defines web application firewall policy. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// List of rules - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rules")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of rules", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] CustomRule { get => _parametersBody.CustomRule?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.CustomRule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Gets a unique read-only string that changes whenever the resource is updated. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets a unique read-only string that changes whenever the resource is updated.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets a unique read-only string that changes whenever the resource is updated.", - SerializedName = @"etag", - PossibleTypes = new [] { typeof(string) })] - public string Etag { get => _parametersBody.Etag ?? null; set => _parametersBody.Etag = value; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Resource location. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""global""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] - public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } - - /// List of rule sets. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rule sets.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of rule sets.", - SerializedName = @"managedRuleSets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] ManagedRuleSet { get => _parametersBody.ManagedRuleSet?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.ManagedRuleSet = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the Web Application Firewall Policy. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Web Application Firewall Policy.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the Web Application Firewall Policy.", - SerializedName = @"policyName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("PolicyName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// Describes settings for the policy. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes settings for the policy.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Describes settings for the policy.", - SerializedName = @"policySettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => _parametersBody.PolicySetting ?? null /* object */; set => _parametersBody.PolicySetting = value; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Name of the pricing tier. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the pricing tier.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the pricing tier.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - public string SkuName { get => _parametersBody.SkuName ?? null; set => _parametersBody.SkuName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of UpdateAzFrontDoorWafPolicy_UpdateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.UpdateAzFrontDoorWafPolicy_UpdateExpanded Clone() - { - var clone = new UpdateAzFrontDoorWafPolicy_UpdateExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._parametersBody = this._parametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) - { - Location = (string)this.MyInvocation.BoundParameters["Location"]; - } - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - _parametersBody = await this.Client.PoliciesGetWithResult(SubscriptionId, ResourceGroupName, Name, this, Pipeline); - this.Update_parametersBody(); - await this.Client.PoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public UpdateAzFrontDoorWafPolicy_UpdateExpanded() - { - - } - - private void Update_parametersBody() - { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Location"))) - { - this.Location = (string)(this.MyInvocation?.BoundParameters["Location"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) - { - this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Etag"))) - { - this.Etag = (string)(this.MyInvocation?.BoundParameters["Etag"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("PolicySetting"))) - { - this.PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings)(this.MyInvocation?.BoundParameters["PolicySetting"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuName"))) - { - this.SkuName = (string)(this.MyInvocation?.BoundParameters["SkuName"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("CustomRule"))) - { - this.CustomRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[])(this.MyInvocation?.BoundParameters["CustomRule"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ManagedRuleSet"))) - { - this.ManagedRuleSet = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[])(this.MyInvocation?.BoundParameters["ManagedRuleSet"]); - } - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded.cs deleted file mode 100644 index 20e5dc795bee..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,668 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// update policy with specified rule set name within a resource group. - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFrontDoorWafPolicy_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update policy with specified rule set name within a resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - public partial class UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// Defines web application firewall policy. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.WebApplicationFirewallPolicy(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// List of rules - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rules")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of rules", - SerializedName = @"rules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[] CustomRule { get => _parametersBody.CustomRule?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.CustomRule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Gets a unique read-only string that changes whenever the resource is updated. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets a unique read-only string that changes whenever the resource is updated.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets a unique read-only string that changes whenever the resource is updated.", - SerializedName = @"etag", - PossibleTypes = new [] { typeof(string) })] - public string Etag { get => _parametersBody.Etag ?? null; set => _parametersBody.Etag = value; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Resource location. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""global""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] - public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } - - /// List of rule sets. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of rule sets.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of rule sets.", - SerializedName = @"managedRuleSets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[] ManagedRuleSet { get => _parametersBody.ManagedRuleSet?.ToArray() ?? null /* fixedArrayOf */; set => _parametersBody.ManagedRuleSet = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// Describes settings for the policy. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes settings for the policy.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Describes settings for the policy.", - SerializedName = @"policySettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings PolicySetting { get => _parametersBody.PolicySetting ?? null /* object */; set => _parametersBody.PolicySetting = value; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Name of the pricing tier. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the pricing tier.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the pricing tier.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - public string SkuName { get => _parametersBody.SkuName ?? null; set => _parametersBody.SkuName = value; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded Clone() - { - var clone = new UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._parametersBody = this._parametersBody; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PoliciesCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) - { - Location = (string)this.MyInvocation.BoundParameters["Location"]; - } - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - _parametersBody = await this.Client.PoliciesGetViaIdentityWithResult(InputObject.Id, this, Pipeline); - this.Update_parametersBody(); - await this.Client.PoliciesCreateOrUpdateViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.PolicyName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - _parametersBody = await this.Client.PoliciesGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PolicyName ?? null, this, Pipeline); - this.Update_parametersBody(); - await this.Client.PoliciesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PolicyName ?? null, _parametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public UpdateAzFrontDoorWafPolicy_UpdateViaIdentityExpanded() - { - - } - - private void Update_parametersBody() - { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Location"))) - { - this.Location = (string)(this.MyInvocation?.BoundParameters["Location"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) - { - this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Etag"))) - { - this.Etag = (string)(this.MyInvocation?.BoundParameters["Etag"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("PolicySetting"))) - { - this.PolicySetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings)(this.MyInvocation?.BoundParameters["PolicySetting"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuName"))) - { - this.SkuName = (string)(this.MyInvocation?.BoundParameters["SkuName"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("CustomRule"))) - { - this.CustomRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[])(this.MyInvocation?.BoundParameters["CustomRule"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ManagedRuleSet"))) - { - this.ManagedRuleSet = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[])(this.MyInvocation?.BoundParameters["ManagedRuleSet"]); - } - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateExpanded.cs deleted file mode 100644 index 9c61e497514c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateExpanded.cs +++ /dev/null @@ -1,747 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFrontDoor_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - public partial class UpdateAzFrontDoor_UpdateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor _frontDoorParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Backend pools available to routing rules. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backend pools available to routing rules.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Backend pools available to routing rules.", - SerializedName = @"backendPools", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] BackendPool { get => _frontDoorParametersBody.BackendPool?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.BackendPool = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Settings for all backendPools - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings for all backendPools")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Settings for all backendPools", - SerializedName = @"backendPoolsSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => _frontDoorParametersBody.BackendPoolsSetting ?? null /* object */; set => _frontDoorParametersBody.BackendPoolsSetting = value; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - public string EnabledState { get => _frontDoorParametersBody.EnabledState ?? null; set => _frontDoorParametersBody.EnabledState = value; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// A friendly name for the frontDoor - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A friendly name for the frontDoor")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A friendly name for the frontDoor", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - public string FriendlyName { get => _frontDoorParametersBody.FriendlyName ?? null; set => _frontDoorParametersBody.FriendlyName = value; } - - /// Frontend endpoints available to routing rules. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rules.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Frontend endpoints available to routing rules.", - SerializedName = @"frontendEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] FrontendEndpoint { get => _frontDoorParametersBody.FrontendEndpoint?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.FrontendEndpoint = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Health probe settings associated with this Front Door instance. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Health probe settings associated with this Front Door instance.", - SerializedName = @"healthProbeSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] HealthProbeSetting { get => _frontDoorParametersBody.HealthProbeSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.HealthProbeSetting = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Load balancing settings associated with this Front Door instance. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Load balancing settings associated with this Front Door instance.", - SerializedName = @"loadBalancingSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] LoadBalancingSetting { get => _frontDoorParametersBody.LoadBalancingSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.LoadBalancingSetting = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Resource location. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""global""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] - public string Location { get => _frontDoorParametersBody.Location ?? null; set => _frontDoorParametersBody.Location = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// Name of the Front Door which is globally unique. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Front Door which is globally unique.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Front Door which is globally unique.", - SerializedName = @"frontDoorName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("FrontDoorName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// Name of the Resource group within the Azure subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the Resource group within the Azure subscription.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the Resource group within the Azure subscription.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Routing rules associated with this Front Door. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Routing rules associated with this Front Door.", - SerializedName = @"routingRules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] RoutingRule { get => _frontDoorParametersBody.RoutingRule?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.RoutingRule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _frontDoorParametersBody.Tag ?? null /* object */; set => _frontDoorParametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of UpdateAzFrontDoor_UpdateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.UpdateAzFrontDoor_UpdateExpanded Clone() - { - var clone = new UpdateAzFrontDoor_UpdateExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._frontDoorParametersBody = this._frontDoorParametersBody; - clone.SubscriptionId = this.SubscriptionId; - clone.ResourceGroupName = this.ResourceGroupName; - clone.Name = this.Name; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) - { - Location = (string)this.MyInvocation.BoundParameters["Location"]; - } - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - _frontDoorParametersBody = await this.Client.FrontDoorsGetWithResult(SubscriptionId, ResourceGroupName, Name, this, Pipeline); - this.Update_frontDoorParametersBody(); - await this.Client.FrontDoorsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public UpdateAzFrontDoor_UpdateExpanded() - { - - } - - private void Update_frontDoorParametersBody() - { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Location"))) - { - this.Location = (string)(this.MyInvocation?.BoundParameters["Location"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) - { - this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("FriendlyName"))) - { - this.FriendlyName = (string)(this.MyInvocation?.BoundParameters["FriendlyName"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("RoutingRule"))) - { - this.RoutingRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[])(this.MyInvocation?.BoundParameters["RoutingRule"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("LoadBalancingSetting"))) - { - this.LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[])(this.MyInvocation?.BoundParameters["LoadBalancingSetting"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("HealthProbeSetting"))) - { - this.HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[])(this.MyInvocation?.BoundParameters["HealthProbeSetting"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("BackendPool"))) - { - this.BackendPool = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[])(this.MyInvocation?.BoundParameters["BackendPool"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("FrontendEndpoint"))) - { - this.FrontendEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[])(this.MyInvocation?.BoundParameters["FrontendEndpoint"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("BackendPoolsSetting"))) - { - this.BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings)(this.MyInvocation?.BoundParameters["BackendPoolsSetting"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("EnabledState"))) - { - this.EnabledState = (string)(this.MyInvocation?.BoundParameters["EnabledState"]); - } - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateViaIdentityExpanded.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateViaIdentityExpanded.cs deleted file mode 100644 index e124e37ab1cf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/cmdlets/UpdateAzFrontDoor_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,723 +0,0 @@ -// 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. - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets; - using System; - - /// - /// update a new Front Door with a Front Door name under the specified subscription and resource group. - /// - /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFrontDoor_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor))] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Description(@"update a new Front Door with a Front Door name under the specified subscription and resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Generated] - public partial class UpdateAzFrontDoor_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener, - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// A dictionary to carry over additional data for pipeline. - private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - - /// - /// Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic - /// is sent there. - /// - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor _frontDoorParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.FrontDoor(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Backend pools available to routing rules. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backend pools available to routing rules.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Backend pools available to routing rules.", - SerializedName = @"backendPools", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[] BackendPool { get => _frontDoorParametersBody.BackendPool?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.BackendPool = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Settings for all backendPools - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings for all backendPools")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Settings for all backendPools", - SerializedName = @"backendPoolsSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings BackendPoolsSetting { get => _frontDoorParametersBody.BackendPoolsSetting ?? null /* object */; set => _frontDoorParametersBody.BackendPoolsSetting = value; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// Accessor for cancellationTokenSource. - public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.ClientAPI; - - /// - /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet - /// against a different subscription - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// - /// Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled' - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", - SerializedName = @"enabledState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - public string EnabledState { get => _frontDoorParametersBody.EnabledState ?? null; set => _frontDoorParametersBody.EnabledState = value; } - - /// Accessor for extensibleParameters. - public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - - /// A friendly name for the frontDoor - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A friendly name for the frontDoor")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A friendly name for the frontDoor", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - public string FriendlyName { get => _frontDoorParametersBody.FriendlyName ?? null; set => _frontDoorParametersBody.FriendlyName = value; } - - /// Frontend endpoints available to routing rules. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frontend endpoints available to routing rules.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Frontend endpoints available to routing rules.", - SerializedName = @"frontendEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[] FrontendEndpoint { get => _frontDoorParametersBody.FrontendEndpoint?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.FrontendEndpoint = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Health probe settings associated with this Front Door instance. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Health probe settings associated with this Front Door instance.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Health probe settings associated with this Front Door instance.", - SerializedName = @"healthProbeSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[] HealthProbeSetting { get => _frontDoorParametersBody.HealthProbeSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.HealthProbeSetting = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// Load balancing settings associated with this Front Door instance. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing settings associated with this Front Door instance.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Load balancing settings associated with this Front Door instance.", - SerializedName = @"loadBalancingSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[] LoadBalancingSetting { get => _frontDoorParametersBody.LoadBalancingSetting?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.LoadBalancingSetting = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Resource location. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"""global""", - SetCondition = @"")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.DoNotExport] - public string Location { get => _frontDoorParametersBody.Location ?? null; set => _frontDoorParametersBody.Location = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// - /// The instance of the that the remote call will use. - /// - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Routing rules associated with this Front Door. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Routing rules associated with this Front Door.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Routing rules associated with this Front Door.", - SerializedName = @"routingRules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[] RoutingRule { get => _frontDoorParametersBody.RoutingRule?.ToArray() ?? null /* fixedArrayOf */; set => _frontDoorParametersBody.RoutingRule = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags Tag { get => _frontDoorParametersBody.Tag ?? null /* object */; set => _frontDoorParametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of UpdateAzFrontDoor_UpdateViaIdentityExpanded - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Cmdlets.UpdateAzFrontDoor_UpdateViaIdentityExpanded Clone() - { - var clone = new UpdateAzFrontDoor_UpdateViaIdentityExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._frontDoorParametersBody = this._frontDoorParametersBody; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); - if (telemetryInfo != null) - { - telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); - telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); - telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (showSecretsWarning == "true") - { - if (string.IsNullOrEmpty(sanitizedProperties)) - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - else - { - WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); - } - } - } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.Progress: - { - var data = messageData(); - int progress = (int)data.Value; - string activityMessage, statusDescription; - global::System.Management.Automation.ProgressRecordType recordType; - if (progress < 100) - { - activityMessage = "In progress"; - statusDescription = "Checking operation status"; - recordType = System.Management.Automation.ProgressRecordType.Processing; - } - else - { - activityMessage = "Completed"; - statusDescription = "Completed"; - recordType = System.Management.Automation.ProgressRecordType.Completed; - } - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) - { - PercentComplete = progress, - RecordType = recordType - }); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.DelayBeforePolling: - { - var data = messageData(); - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - else - { - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - WriteDebug($"Delaying {delay} seconds before polling."); - for (var now = 0; now < delay; ++now) - { - WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") - { - PercentComplete = now * 100 / delay - }); - await global::System.Threading.Tasks.Task.Delay(1000, token); - } - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'FrontDoorsCreateOrUpdate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - if (true == this.MyInvocation?.BoundParameters?.ContainsKey("Location")) - { - Location = (string)this.MyInvocation.BoundParameters["Location"]; - } - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - _frontDoorParametersBody = await this.Client.FrontDoorsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); - this.Update_frontDoorParametersBody(); - await this.Client.FrontDoorsCreateOrUpdateViaIdentity(InputObject.Id, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.FrontDoorName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontDoorName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - _frontDoorParametersBody = await this.Client.FrontDoorsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, this, Pipeline); - this.Update_frontDoorParametersBody(); - await this.Client.FrontDoorsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.FrontDoorName ?? null, _frontDoorParametersBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SerializationMode.IncludeUpdate); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Initializes a new instance of the cmdlet class. - /// - public UpdateAzFrontDoor_UpdateViaIdentityExpanded() - { - - } - - private void Update_frontDoorParametersBody() - { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Location"))) - { - this.Location = (string)(this.MyInvocation?.BoundParameters["Location"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) - { - this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("FriendlyName"))) - { - this.FriendlyName = (string)(this.MyInvocation?.BoundParameters["FriendlyName"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("RoutingRule"))) - { - this.RoutingRule = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[])(this.MyInvocation?.BoundParameters["RoutingRule"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("LoadBalancingSetting"))) - { - this.LoadBalancingSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[])(this.MyInvocation?.BoundParameters["LoadBalancingSetting"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("HealthProbeSetting"))) - { - this.HealthProbeSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[])(this.MyInvocation?.BoundParameters["HealthProbeSetting"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("BackendPool"))) - { - this.BackendPool = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[])(this.MyInvocation?.BoundParameters["BackendPool"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("FrontendEndpoint"))) - { - this.FrontendEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[])(this.MyInvocation?.BoundParameters["FrontendEndpoint"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("BackendPoolsSetting"))) - { - this.BackendPoolsSetting = (Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings)(this.MyInvocation?.BoundParameters["BackendPoolsSetting"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("EnabledState"))) - { - this.EnabledState = (string)(this.MyInvocation?.BoundParameters["EnabledState"]); - } - } - - /// - new protected void WriteObject(object sendToPipeline) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline); - } - - /// - /// - new protected void WriteObject(object sendToPipeline, bool enumerateCollection) - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); - base.WriteObject(sendToPipeline, enumerateCollection); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor - var result = (await response); - WriteObject(result, false); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncCommandRuntime.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncCommandRuntime.cs deleted file mode 100644 index f2b5be261ab5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncCommandRuntime.cs +++ /dev/null @@ -1,832 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - using System.Management.Automation; - using System.Management.Automation.Host; - using System.Threading; - using System.Linq; - - internal interface IAsyncCommandRuntimeExtensions - { - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep func); - System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs); - - T ExecuteSync(System.Func step); - } - - public class AsyncCommandRuntime : System.Management.Automation.ICommandRuntime2, IAsyncCommandRuntimeExtensions, System.IDisposable - { - private ICommandRuntime2 originalCommandRuntime; - private System.Threading.Thread originalThread; - public bool AllowInteractive { get; set; } = false; - - public CancellationToken cancellationToken; - SemaphoreSlim semaphore = new SemaphoreSlim(1, 1); - ManualResetEventSlim readyToRun = new ManualResetEventSlim(false); - ManualResetEventSlim completed = new ManualResetEventSlim(false); - - System.Action runOnMainThread; - - private System.Management.Automation.PSCmdlet cmdlet; - - internal AsyncCommandRuntime(System.Management.Automation.PSCmdlet cmdlet, CancellationToken cancellationToken) - { - this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; - this.originalThread = System.Threading.Thread.CurrentThread; - this.cancellationToken = cancellationToken; - this.cmdlet = cmdlet; - if (cmdlet.PagingParameters != null) - { - WriteDebug("Client side pagination is enabled for this cmdlet"); - } - cmdlet.CommandRuntime = this; - } - - public PSHost Host => this.originalCommandRuntime.Host; - - public PSTransactionContext CurrentPSTransaction => this.originalCommandRuntime.CurrentPSTransaction; - - private void CheckForInteractive() - { - // This is an interactive call -- if we are not on the original thread, this will only work if this was done at ACR creation time; - if (!AllowInteractive) - { - throw new System.Exception("AsyncCommandRuntime is not configured for interactive calls"); - } - } - private void WaitOurTurn() - { - // wait for our turn to play - semaphore?.Wait(cancellationToken); - - // ensure that completed is not set - completed.Reset(); - } - - private void WaitForCompletion() - { - // wait for the result (or cancellation!) - WaitHandle.WaitAny(new[] { cancellationToken.WaitHandle, completed?.WaitHandle }); - - // let go of the semaphore - semaphore?.Release(); - - } - - public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yesToAll, ref noToAll); - } - - CheckForInteractive(); - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - bool yta = yesToAll; - bool nta = noToAll; - bool result = false; - - // set the function to run - runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yta, ref nta); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // set the output variables - yesToAll = yta; - noToAll = nta; - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public bool ShouldContinue(string query, string caption) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return originalCommandRuntime.ShouldContinue(query, caption); - } - - CheckForInteractive(); - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - bool result = false; - - // set the function to run - runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // set the output variables - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return originalCommandRuntime.ShouldContinue(query, caption, ref yesToAll, ref noToAll); - } - - CheckForInteractive(); - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - bool yta = yesToAll; - bool nta = noToAll; - bool result = false; - - // set the function to run - runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, ref yta, ref nta); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // set the output variables - yesToAll = yta; - noToAll = nta; - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public bool ShouldProcess(string target) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return originalCommandRuntime.ShouldProcess(target); - } - - CheckForInteractive(); - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - bool result = false; - - // set the function to run - runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // set the output variables - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public bool ShouldProcess(string target, string action) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return originalCommandRuntime.ShouldProcess(target, action); - } - - CheckForInteractive(); - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - bool result = false; - - // set the function to run - runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target, action); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // set the output variables - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); - } - - CheckForInteractive(); - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - bool result = false; - - // set the function to run - runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // set the output variables - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out shouldProcessReason); - } - - CheckForInteractive(); - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - bool result = false; - ShouldProcessReason reason = ShouldProcessReason.None; - - // set the function to run - runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out reason); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // set the output variables - shouldProcessReason = reason; - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void ThrowTerminatingError(ErrorRecord errorRecord) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.ThrowTerminatingError(errorRecord); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.ThrowTerminatingError(errorRecord); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public bool TransactionAvailable() - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return originalCommandRuntime.TransactionAvailable(); - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - bool result = false; - - // set the function to run - runOnMainThread = () => result = originalCommandRuntime.TransactionAvailable(); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // set the output variables - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteCommandDetail(string text) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteCommandDetail(text); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteCommandDetail(text); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteDebug(string text) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteDebug(text); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteDebug(text); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteError(ErrorRecord errorRecord) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteError(errorRecord); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteError(errorRecord); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteInformation(InformationRecord informationRecord) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteInformation(informationRecord); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteInformation(informationRecord); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteObject(object sendToPipeline) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteObject(sendToPipeline); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteObject(object sendToPipeline, bool enumerateCollection) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteProgress(ProgressRecord progressRecord) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteProgress(progressRecord); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteProgress(progressRecord); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteProgress(long sourceId, ProgressRecord progressRecord) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteProgress(sourceId, progressRecord); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteProgress(sourceId, progressRecord); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteVerbose(string text) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteVerbose(text); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteVerbose(text); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void WriteWarning(string text) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - originalCommandRuntime.WriteWarning(text); - return; - } - - // otherwise, queue up the request and wait for the main thread to do the right thing. - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - - // set the function to run - runOnMainThread = () => originalCommandRuntime.WriteWarning(text); - - // tell the main thread to go ahead - readyToRun.Set(); - - // wait for the result (or cancellation!) - WaitForCompletion(); - - // return - return; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void Wait(System.Threading.Tasks.Task ProcessRecordAsyncTask, System.Threading.CancellationToken cancellationToken) - { - do - { - WaitHandle.WaitAny(new[] { readyToRun.WaitHandle, ((System.IAsyncResult)ProcessRecordAsyncTask).AsyncWaitHandle }); - if (readyToRun.IsSet) - { - // reset the request for the next time - readyToRun.Reset(); - - // run the delegate on this thread - runOnMainThread(); - - // tell the originator everything is complete - completed.Set(); - } - } - while (!ProcessRecordAsyncTask.IsCompleted); - if (ProcessRecordAsyncTask.IsFaulted) - { - // don't unwrap a Aggregate Exception -- we'll lose the stack trace of the actual exception. - // if( ProcessRecordAsyncTask.Exception is System.AggregateException aggregate ) { - // throw aggregate.InnerException; - // } - throw ProcessRecordAsyncTask.Exception; - } - } - public Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep func) => func.Target.GetType().Name != "Closure" ? func : (p1, p2, p3) => ExecuteSync>(() => func(p1, p2, p3)); - public System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs) => funcs?.Select(Wrap); - - public T ExecuteSync(System.Func step) - { - // if we are on the original thread, just call straight thru. - if (this.originalThread == System.Threading.Thread.CurrentThread) - { - return step(); - } - - T result = default(T); - try - { - // wait for our turn to talk to the main thread - WaitOurTurn(); - // set the function to run - runOnMainThread = () => { result = step(); }; - // tell the main thread to go ahead - readyToRun.Set(); - // wait for the result (or cancellation!) - WaitForCompletion(); - // return - return result; - } - catch (System.OperationCanceledException exception) - { - // maybe don't even worry? - throw exception; - } - } - - public void Dispose() - { - if (cmdlet != null) - { - cmdlet.CommandRuntime = this.originalCommandRuntime; - cmdlet = null; - } - - semaphore?.Dispose(); - semaphore = null; - readyToRun?.Dispose(); - readyToRun = null; - completed?.Dispose(); - completed = null; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncJob.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncJob.cs deleted file mode 100644 index 4fb3e4c77b52..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncJob.cs +++ /dev/null @@ -1,270 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - using System.Management.Automation; - using System.Management.Automation.Host; - using System.Threading; - - using System.Threading.Tasks; - - public class LongRunningJobCancelledException : System.Exception - { - public LongRunningJobCancelledException(string message) : base(message) - { - - } - } - - public class AsyncJob : Job, System.Management.Automation.ICommandRuntime2 - { - const int MaxRecords = 1000; - - private string _statusMessage = string.Empty; - - public override string StatusMessage => _statusMessage; - - public override bool HasMoreData => Output.Count > 0 || Progress.Count > 0 || Error.Count > 0 || Warning.Count > 0 || Verbose.Count > 0 || Debug.Count > 0; - - public override string Location => "localhost"; - - public PSHost Host => originalCommandRuntime.Host; - - public PSTransactionContext CurrentPSTransaction => originalCommandRuntime.CurrentPSTransaction; - - public override void StopJob() - { - Cancel(); - } - - private readonly PSCmdlet cmdlet; - private readonly ICommandRuntime2 originalCommandRuntime; - private readonly System.Threading.Thread originalThread; - - private void CheckForInteractive() - { - // This is an interactive call -- We should never allow interactivity in AsnycJob cmdlets. - throw new System.Exception("Cmdlets in AsyncJob; interactive calls are not permitted."); - } - private bool IsJobDone => CancellationToken.IsCancellationRequested || this.JobStateInfo.State == JobState.Failed || this.JobStateInfo.State == JobState.Stopped || this.JobStateInfo.State == JobState.Stopping || this.JobStateInfo.State == JobState.Completed; - - private readonly System.Action Cancel; - private readonly CancellationToken CancellationToken; - - internal AsyncJob(PSCmdlet cmdlet, string line, string name, CancellationToken cancellationToken, System.Action cancelMethod) : base(line, name) - { - SetJobState(JobState.NotStarted); - // know how to cancel/check for cancelation - this.CancellationToken = cancellationToken; - this.Cancel = cancelMethod; - - // we might need these. - this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; - this.originalThread = System.Threading.Thread.CurrentThread; - - // the instance of the cmdlet we're going to run - this.cmdlet = cmdlet; - - // set the command runtime to the AsyncJob - cmdlet.CommandRuntime = this; - } - - /// - /// Monitors the task (which should be ProcessRecordAsync) to control - /// the lifetime of the job itself - /// - /// - public void Monitor(Task task) - { - SetJobState(JobState.Running); - task.ContinueWith(antecedent => - { - if (antecedent.IsCanceled) - { - // if the task was canceled, we're just going to call it completed. - SetJobState(JobState.Completed); - } - else if (antecedent.IsFaulted) - { - foreach (var innerException in antecedent.Exception.Flatten().InnerExceptions) - { - WriteError(new System.Management.Automation.ErrorRecord(innerException, string.Empty, System.Management.Automation.ErrorCategory.NotSpecified, null)); - } - - // a fault indicates an actual failure - SetJobState(JobState.Failed); - } - else - { - // otherwiser it's a completed state. - SetJobState(JobState.Completed); - } - }, CancellationToken); - } - - private void CheckForCancellation() - { - if (IsJobDone) - { - throw new LongRunningJobCancelledException("Long running job is canceled or stopping, continuation of the cmdlet is not permitted."); - } - } - - public void WriteInformation(InformationRecord informationRecord) - { - CheckForCancellation(); - - this.Information.Add(informationRecord); - } - - public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) - { - CheckForInteractive(); - return false; - } - - public void WriteDebug(string text) - { - _statusMessage = text; - CheckForCancellation(); - - if (Debug.IsOpen && Debug.Count < MaxRecords) - { - Debug.Add(new DebugRecord(text)); - } - } - - public void WriteError(ErrorRecord errorRecord) - { - if (Error.IsOpen) - { - Error.Add(errorRecord); - } - } - - public void WriteObject(object sendToPipeline) - { - CheckForCancellation(); - - if (Output.IsOpen) - { - Output.Add(new PSObject(sendToPipeline)); - } - } - - public void WriteObject(object sendToPipeline, bool enumerateCollection) - { - CheckForCancellation(); - - if (enumerateCollection && sendToPipeline is System.Collections.IEnumerable enumerable) - { - foreach (var item in enumerable) - { - WriteObject(item); - } - } - else - { - WriteObject(sendToPipeline); - } - } - - public void WriteProgress(ProgressRecord progressRecord) - { - CheckForCancellation(); - - if (Progress.IsOpen && Progress.Count < MaxRecords) - { - Progress.Add(progressRecord); - } - } - - public void WriteProgress(long sourceId, ProgressRecord progressRecord) - { - CheckForCancellation(); - - if (Progress.IsOpen && Progress.Count < MaxRecords) - { - Progress.Add(progressRecord); - } - } - - public void WriteVerbose(string text) - { - CheckForCancellation(); - - if (Verbose.IsOpen && Verbose.Count < MaxRecords) - { - Verbose.Add(new VerboseRecord(text)); - } - } - - public void WriteWarning(string text) - { - CheckForCancellation(); - - if (Warning.IsOpen && Warning.Count < MaxRecords) - { - Warning.Add(new WarningRecord(text)); - } - } - - public void WriteCommandDetail(string text) - { - WriteVerbose(text); - } - - public bool ShouldProcess(string target) - { - CheckForInteractive(); - return false; - } - - public bool ShouldProcess(string target, string action) - { - CheckForInteractive(); - return false; - } - - public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) - { - CheckForInteractive(); - return false; - } - - public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) - { - CheckForInteractive(); - shouldProcessReason = ShouldProcessReason.None; - return false; - } - - public bool ShouldContinue(string query, string caption) - { - CheckForInteractive(); - return false; - } - - public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) - { - CheckForInteractive(); - return false; - } - - public bool TransactionAvailable() - { - // interactivity required? - return false; - } - - public void ThrowTerminatingError(ErrorRecord errorRecord) - { - if (Error.IsOpen) - { - Error.Add(errorRecord); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncOperationResponse.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncOperationResponse.cs deleted file mode 100644 index 42403442dac3..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/AsyncOperationResponse.cs +++ /dev/null @@ -1,176 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - [System.ComponentModel.TypeConverter(typeof(AsyncOperationResponseTypeConverter))] - public class AsyncOperationResponse - { - private string _target; - public string Target { get => _target; set => _target = value; } - public AsyncOperationResponse() - { - } - internal AsyncOperationResponse(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json) - { - // pull target - { Target = If(json?.PropertyT("target"), out var _v) ? (string)_v : (string)Target; } - } - public string ToJsonString() - { - return $"{{ \"target\" : \"{this.Target}\" }}"; - } - - public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject json ? new AsyncOperationResponse(json) : null; - } - - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(jsonText)); - - } - - public partial class AsyncOperationResponseTypeConverter : System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the - /// parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to a type - /// parameter. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static object ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(AsyncOperationResponse).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return AsyncOperationResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString()); ; - } - catch - { - // Unable to use JSON pattern - } - - if (typeof(System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return new AsyncOperationResponse { Target = (sourceValue as System.Management.Automation.PSObject).GetValueForProperty("target", "", global::System.Convert.ToString) }; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return new AsyncOperationResponse { Target = (sourceValue as global::System.Collections.IDictionary).GetValueForProperty("target", "", global::System.Convert.ToString) }; - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs deleted file mode 100644 index c8a15fe5b62c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor -{ - using System; - using System.Collections.Generic; - using System.Text; - - [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)] - public class ExternalDocsAttribute : Attribute - { - - public string Description { get; } - - public string Url { get; } - - public ExternalDocsAttribute(string url) - { - Url = url; - } - - public ExternalDocsAttribute(string url, string description) - { - Url = url; - Description = description; - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs deleted file mode 100644 index 400c3d14471a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using System.Management.Automation; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor -{ - public class PSArgumentCompleterAttribute : ArgumentCompleterAttribute - { - internal string[] ResourceTypes; - - public PSArgumentCompleterAttribute(params string[] argumentList) : base(CreateScriptBlock(argumentList)) - { - ResourceTypes = argumentList; - } - - public static ScriptBlock CreateScriptBlock(string[] resourceTypes) - { - List outputResourceTypes = new List(); - foreach (string resourceType in resourceTypes) - { - if (resourceType.Contains(" ")) - { - outputResourceTypes.Add("\'\'" + resourceType + "\'\'"); - } - else - { - outputResourceTypes.Add(resourceType); - } - } - string scriptResourceTypeList = "'" + String.Join("' , '", outputResourceTypes) + "'"; - string script = "param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)\n" + - String.Format("$values = {0}\n", scriptResourceTypeList) + - "$values | Where-Object { $_ -Like \"$wordToComplete*\" -or $_ -Like \"'$wordToComplete*\" } | Sort-Object | ForEach-Object { [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) }"; - ScriptBlock scriptBlock = ScriptBlock.Create(script); - return scriptBlock; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs deleted file mode 100644 index 0c76ac8d5972..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs +++ /dev/null @@ -1,113 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Management.Automation; -using System.Text; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsData.Export, "CmdletSurface")] - [DoNotExport] - public class ExportCmdletSurface : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ModuleName { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string CmdletFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string OutputFolder { get; set; } - - [Parameter] - public bool IncludeGeneralParameters { get; set; } - - [Parameter] - public bool UseExpandedFormat { get; set; } - - protected override void ProcessRecord() - { - try - { - var variants = GetScriptCmdlets(this, CmdletFolder) - .SelectMany(fi => fi.ToVariants()) - .Where(v => !v.IsDoNotExport) - .ToArray(); - var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); - var profileGroups = allProfiles.Any() - ? variants - .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) - .GroupBy(pv => pv.profile) - .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) - : new[] { new ProfileGroup(variants) }; - foreach (var profileGroup in profileGroups) - { - var variantGroups = profileGroup.Variants - .GroupBy(v => new { v.CmdletName }) - .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), String.Empty, profileGroup.ProfileName)); - var sb = UseExpandedFormat ? ExpandedFormat(variantGroups) : CondensedFormat(variantGroups); - Directory.CreateDirectory(OutputFolder); - File.WriteAllText(Path.Combine(OutputFolder, $"CmdletSurface-{profileGroup.ProfileName}.md"), sb.ToString()); - } - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - - private StringBuilder ExpandedFormat(IEnumerable variantGroups) - { - var sb = new StringBuilder(); - foreach (var variantGroup in variantGroups.OrderBy(vg => vg.CmdletName)) - { - sb.Append($"### {variantGroup.CmdletName}{Environment.NewLine}"); - var parameterGroups = variantGroup.ParameterGroups - .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); - foreach (var parameterGroup in parameterGroups) - { - sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); - } - sb.AppendLine(); - } - - return sb; - } - - private StringBuilder CondensedFormat(IEnumerable variantGroups) - { - var sb = new StringBuilder(); - var condensedGroups = variantGroups - .GroupBy(vg => vg.CmdletNoun) - .Select(vgg => ( - CmdletNoun: vgg.Key, - CmdletVerbs: vgg.Select(vg => vg.CmdletVerb).OrderBy(cv => cv).ToArray(), - ParameterGroups: vgg.SelectMany(vg => vg.ParameterGroups).DistinctBy(p => p.ParameterName).ToArray(), - OutputTypes: vgg.SelectMany(vg => vg.OutputTypes).Select(ot => ot.Type).DistinctBy(t => t.Name).Select(t => t.ToSyntaxTypeName()).ToArray())) - .OrderBy(vg => vg.CmdletNoun); - foreach (var condensedGroup in condensedGroups) - { - sb.Append($"### {condensedGroup.CmdletNoun} [{String.Join(", ", condensedGroup.CmdletVerbs)}] `{String.Join(", ", condensedGroup.OutputTypes)}`{Environment.NewLine}"); - var parameterGroups = condensedGroup.ParameterGroups - .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); - foreach (var parameterGroup in parameterGroups) - { - sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); - } - sb.AppendLine(); - } - - return sb; - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs deleted file mode 100644 index 0fd1ebb272ef..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs +++ /dev/null @@ -1,74 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.IO; -using System.Linq; -using System.Management.Automation; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownTypesExtensions; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsData.Export, "ExampleStub")] - [DoNotExport] - public class ExportExampleStub : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string OutputFolder { get; set; } - - protected override void ProcessRecord() - { - try - { - if (!Directory.Exists(ExportsFolder)) - { - throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); - } - - var exportDirectories = Directory.GetDirectories(ExportsFolder); - if (!exportDirectories.Any()) - { - exportDirectories = new[] { ExportsFolder }; - } - - var exampleText = String.Join(String.Empty, DefaultExampleHelpInfos.Select(ehi => ehi.ToHelpExampleOutput())); - foreach (var exportDirectory in exportDirectories) - { - var outputFolder = OutputFolder; - if (exportDirectory != ExportsFolder) - { - outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); - Directory.CreateDirectory(outputFolder); - } - - var cmdletFilePaths = GetScriptCmdlets(exportDirectory).Select(fi => Path.Combine(outputFolder, $"{fi.Name}.md")).ToArray(); - var currentExamplesFilePaths = Directory.GetFiles(outputFolder).ToArray(); - // Remove examples of non-existing cmdlets - var removedCmdletFilePaths = currentExamplesFilePaths.Except(cmdletFilePaths); - foreach (var removedCmdletFilePath in removedCmdletFilePaths) - { - File.Delete(removedCmdletFilePath); - } - - // Only create example stubs if they don't exist - foreach (var cmdletFilePath in cmdletFilePaths.Except(currentExamplesFilePaths)) - { - File.WriteAllText(cmdletFilePath, exampleText); - } - } - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs deleted file mode 100644 index f0b944dafb1a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs +++ /dev/null @@ -1,103 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Management.Automation; -using System.Reflection; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsData.Export, "FormatPs1xml")] - [DoNotExport] - public class ExportFormatPs1xml : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string FilePath { get; set; } - - private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models"; - private const string SupportNamespace = @"${$project.supportNamespace.fullName}"; - private const string PropertiesExcludedForTableview = @"Id,Type"; - - private static readonly bool IsAzure = Convert.ToBoolean(@"true"); - - private static string SelectedBySuffix = @"#Multiple"; - - protected override void ProcessRecord() - { - try - { - var viewModels = GetFilteredViewParameters().Select(CreateViewModel).ToList(); - var ps1xml = new Configuration - { - ViewDefinitions = new ViewDefinitions - { - Views = viewModels - } - }; - File.WriteAllText(FilePath, ps1xml.ToXmlString()); - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - - private static IEnumerable GetFilteredViewParameters() - { - //https://stackoverflow.com/a/79738/294804 - //https://stackoverflow.com/a/949285/294804 - var types = Assembly.GetExecutingAssembly().GetExportedTypes() - .Where(t => t.IsClass - && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace)) - && !t.GetCustomAttributes().Any()); - return types.Select(t => new ViewParameters(t, t.GetProperties() - .Select(p => new PropertyFormat(p)) - .Where(pf => !pf.Property.GetCustomAttributes().Any() - && (!PropertiesExcludedForTableview.Split(',').Contains(pf.Property.Name)) - && (pf.FormatTable != null || (pf.Origin != PropertyOrigin.Inlined && pf.Property.PropertyType.IsPsSimple()))) - .OrderByDescending(pf => pf.Index.HasValue) - .ThenBy(pf => pf.Index) - .ThenByDescending(pf => pf.Origin.HasValue) - .ThenBy(pf => pf.Origin))).Where(vp => vp.Properties.Any()); - } - - private static View CreateViewModel(ViewParameters viewParameters) - { - var entries = viewParameters.Properties.Select(pf => - (TableColumnHeader: new TableColumnHeader { Label = pf.Label, Width = pf.Width }, - TableColumnItem: new TableColumnItem { PropertyName = pf.Property.Name })).ToArray(); - - return new View - { - Name = viewParameters.Type.FullName, - ViewSelectedBy = new ViewSelectedBy - { - TypeName = string.Concat(viewParameters.Type.FullName, SelectedBySuffix) - }, - TableControl = new TableControl - { - TableHeaders = new TableHeaders - { - TableColumnHeaders = entries.Select(e => e.TableColumnHeader).ToList() - }, - TableRowEntries = new TableRowEntries - { - TableRowEntry = new TableRowEntry - { - TableColumnItems = new TableColumnItems - { - TableItems = entries.Select(e => e.TableColumnItem).ToList() - } - } - } - } - }; - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs deleted file mode 100644 index c03a6f7cd691..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ /dev/null @@ -1,56 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Linq; -using System.Management.Automation; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownRenderer; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsData.Export, "HelpMarkdown")] - [DoNotExport] - public class ExportHelpMarkdown : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public PSModuleInfo ModuleInfo { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public PSObject[] FunctionInfo { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public PSObject[] HelpInfo { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string DocsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExamplesFolder { get; set; } - - [Parameter()] - public SwitchParameter AddComplexInterfaceInfo { get; set; } - - protected override void ProcessRecord() - { - try - { - var helpInfos = HelpInfo.Select(hi => hi.ToPsHelpInfo()); - var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() - .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) - .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); - WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder, AddComplexInterfaceInfo.IsPresent); - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs deleted file mode 100644 index 33263ed1a39a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs +++ /dev/null @@ -1,117 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Management.Automation; -using System.Reflection; -using System.Text; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsData.Export, "ModelSurface")] - [DoNotExport] - public class ExportModelSurface : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string OutputFolder { get; set; } - - [Parameter] - public bool UseExpandedFormat { get; set; } - - private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models"; - private const string SupportNamespace = @"${$project.supportNamespace.fullName}"; - - protected override void ProcessRecord() - { - try - { - var types = Assembly.GetExecutingAssembly().GetExportedTypes() - .Where(t => t.IsClass && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace))); - var typeInfos = types.Select(t => new ModelTypeInfo - { - Type = t, - TypeName = t.Name, - Properties = t.GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(p => !p.GetIndexParameters().Any()).OrderBy(p => p.Name).ToArray(), - NamespaceGroup = t.Namespace.Split('.').LastOrDefault().EmptyIfNull() - }).Where(mti => mti.Properties.Any()); - var sb = UseExpandedFormat ? ExpandedFormat(typeInfos) : CondensedFormat(typeInfos); - Directory.CreateDirectory(OutputFolder); - File.WriteAllText(Path.Combine(OutputFolder, "ModelSurface.md"), sb.ToString()); - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - - private static StringBuilder ExpandedFormat(IEnumerable typeInfos) - { - var sb = new StringBuilder(); - foreach (var typeInfo in typeInfos.OrderBy(mti => mti.TypeName).ThenBy(mti => mti.NamespaceGroup)) - { - sb.Append($"### {typeInfo.TypeName} [{typeInfo.NamespaceGroup}]{Environment.NewLine}"); - foreach (var property in typeInfo.Properties) - { - sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}`{Environment.NewLine}"); - } - sb.AppendLine(); - } - - return sb; - } - - private static StringBuilder CondensedFormat(IEnumerable typeInfos) - { - var sb = new StringBuilder(); - var typeGroups = typeInfos - .GroupBy(mti => mti.TypeName) - .Select(tig => ( - Types: tig.Select(mti => mti.Type).ToArray(), - TypeName: tig.Key, - Properties: tig.SelectMany(mti => mti.Properties).DistinctBy(p => p.Name).OrderBy(p => p.Name).ToArray(), - NamespaceGroups: tig.Select(mti => mti.NamespaceGroup).OrderBy(ng => ng).ToArray() - )) - .OrderBy(tg => tg.TypeName); - foreach (var typeGroup in typeGroups) - { - var aType = typeGroup.Types.Select(GetAssociativeType).FirstOrDefault(t => t != null); - var aText = aType != null ? $@" \<{aType.ToSyntaxTypeName()}\>" : String.Empty; - sb.Append($"### {typeGroup.TypeName}{aText} [{String.Join(", ", typeGroup.NamespaceGroups)}]{Environment.NewLine}"); - foreach (var property in typeGroup.Properties) - { - var propertyAType = GetAssociativeType(property.PropertyType); - var propertyAText = propertyAType != null ? $" <{propertyAType.ToSyntaxTypeName()}>" : String.Empty; - var enumNames = GetEnumFieldNames(property.PropertyType.Unwrap()); - var enumNamesText = enumNames.Any() ? $" **{{{String.Join(", ", enumNames)}}}**" : String.Empty; - sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}{propertyAText}`{enumNamesText}{Environment.NewLine}"); - } - sb.AppendLine(); - } - - return sb; - } - - //https://stackoverflow.com/a/4963190/294804 - private static Type GetAssociativeType(Type type) => - type.GetInterfaces().FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>))?.GetGenericArguments().First(); - - private static string[] GetEnumFieldNames(Type type) => - type.IsValueType && !type.IsPrimitive && type != typeof(decimal) && type != typeof(DateTime) - ? type.GetFields(BindingFlags.Public | BindingFlags.Static).Where(f => f.FieldType == type).Select(p => p.Name).ToArray() - : new string[] { }; - - private class ModelTypeInfo - { - public Type Type { get; set; } - public string TypeName { get; set; } - public PropertyInfo[] Properties { get; set; } - public string NamespaceGroup { get; set; } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs deleted file mode 100644 index cf808ea5d0a6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ /dev/null @@ -1,180 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.IO; -using System.Linq; -using System.Management.Automation; -using System.Text; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownRenderer; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyTypeExtensions; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsData.Export, "ProxyCmdlet", DefaultParameterSetName = "Docs")] - [DoNotExport] - public class ExportProxyCmdlet : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ModuleName { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string[] ModulePath { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string InternalFolder { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = "Docs")] - [AllowEmptyString] - public string ModuleDescription { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = "Docs")] - [ValidateNotNullOrEmpty] - public string DocsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExamplesFolder { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = "Docs")] - public Guid ModuleGuid { get; set; } - - [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] - public SwitchParameter ExcludeDocs { get; set; } - - [Parameter(ParameterSetName = "Docs")] - public SwitchParameter AddComplexInterfaceInfo { get; set; } - - protected override void ProcessRecord() - { - try - { - var variants = GetModuleCmdletsAndHelpInfo(this, ModulePath).SelectMany(ci => ci.ToVariants()).Where(v => !v.IsDoNotExport).ToArray(); - var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); - var profileGroups = allProfiles.Any() - ? variants - .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) - .GroupBy(pv => pv.profile) - .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) - : new[] { new ProfileGroup(variants) }; - var variantGroups = profileGroups.SelectMany(pg => pg.Variants - .GroupBy(v => new { v.CmdletName, v.IsInternal }) - .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), - Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) - .ToArray(); - var license = new StringBuilder(); - license.Append(@" -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the ""License""); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an ""AS IS"" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- -"); - HashSet LicenseSet = new HashSet(); - foreach (var variantGroup in variantGroups) - { - var parameterGroups = variantGroup.ParameterGroups.ToList(); - var isValidProfile = !String.IsNullOrEmpty(variantGroup.ProfileName) && variantGroup.ProfileName != NoProfiles; - var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, variantGroup.ProfileName) : ExamplesFolder; - var markdownInfo = new MarkdownHelpInfo(variantGroup, examplesFolder); - List examples = new List(); - foreach (var it in markdownInfo.Examples) - { - examples.Add(it); - } - variantGroup.HelpInfo.Examples = examples.ToArray(); - var sb = new StringBuilder(); - sb.Append($"{Environment.NewLine}"); - sb.Append(variantGroup.ToHelpCommentOutput()); - sb.Append($"function {variantGroup.CmdletName} {{{Environment.NewLine}"); - sb.Append(variantGroup.Aliases.ToAliasOutput()); - sb.Append(variantGroup.OutputTypes.ToOutputTypeOutput()); - sb.Append(variantGroup.ToCmdletBindingOutput()); - sb.Append(variantGroup.ProfileName.ToProfileOutput()); - - sb.Append("param("); - sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); - - foreach (var parameterGroup in parameterGroups) - { - var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; - parameters = parameters.Where(p => !p.IsHidden()); - if (!parameters.Any()) - { - continue; - } - foreach (var parameter in parameters) - { - sb.Append(parameter.ToParameterOutput(variantGroup.HasMultipleVariants, parameterGroup.HasAllVariants)); - } - sb.Append(parameterGroup.Aliases.ToAliasOutput(true)); - sb.Append(parameterGroup.HasValidateNotNull.ToValidateNotNullOutput()); - sb.Append(parameterGroup.HasAllowEmptyArray.ToAllowEmptyArray()); - sb.Append(parameterGroup.CompleterInfo.ToArgumentCompleterOutput()); - sb.Append(parameterGroup.OrderCategory.ToParameterCategoryOutput()); - sb.Append(parameterGroup.InfoAttribute.ToInfoOutput(parameterGroup.ParameterType)); - sb.Append(parameterGroup.ToDefaultInfoOutput()); - sb.Append(parameterGroup.ParameterType.ToParameterTypeOutput()); - sb.Append(parameterGroup.Description.ToParameterDescriptionOutput()); - sb.Append(parameterGroup.ParameterName.ToParameterNameOutput(parameterGroups.IndexOf(parameterGroup) == parameterGroups.Count - 1)); - } - sb.Append($"){Environment.NewLine}{Environment.NewLine}"); - - sb.Append(variantGroup.ToBeginOutput()); - sb.Append(variantGroup.ToProcessOutput()); - sb.Append(variantGroup.ToEndOutput()); - - sb.Append($"}}{Environment.NewLine}"); - - Directory.CreateDirectory(variantGroup.OutputFolder); - File.WriteAllText(variantGroup.FilePath, license.ToString()); - File.AppendAllText(variantGroup.FilePath, sb.ToString()); - if (!LicenseSet.Contains(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"))) - { - // only add license in the header - File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), license.ToString()); - LicenseSet.Add(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1")); - } - File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), sb.ToString()); - } - - if (!ExcludeDocs) - { - var moduleInfo = new PsModuleHelpInfo(ModuleName, ModuleGuid, ModuleDescription); - foreach (var variantGroupsByProfile in variantGroups.GroupBy(vg => vg.ProfileName)) - { - var profileName = variantGroupsByProfile.Key; - var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; - var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; - var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; - WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder, AddComplexInterfaceInfo.IsPresent); - } - } - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs deleted file mode 100644 index 76269b550aa2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ /dev/null @@ -1,193 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.IO; -using System.Linq; -using System.Management.Automation; -using System.Text; -using System.Text.RegularExpressions; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsData.Export, "Psd1")] - [DoNotExport] - public class ExportPsd1 : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string CustomFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string Psd1Path { get; set; } - - [Parameter(Mandatory = true)] - public Guid ModuleGuid { get; set; } - - private static readonly bool IsAzure = Convert.ToBoolean(@"true"); - private const string CustomFolderRelative = "./custom"; - private const string Indent = Psd1Indent; - private const string Undefined = "undefined"; - private bool IsUndefined(string value) => string.Equals(Undefined, value, StringComparison.OrdinalIgnoreCase); - - protected override void ProcessRecord() - { - try - { - if (!Directory.Exists(ExportsFolder)) - { - throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); - } - - if (!Directory.Exists(CustomFolder)) - { - throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); - } - - string version = Convert.ToString(@"0.1.0"); - // Validate the module version should be semantic version - // Following regex is official from https://semver.org/ - Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); - if (rx.Matches(version).Count != 1) - { - throw new ArgumentException("Module-version is not a valid Semantic Version"); - } - - string previewVersion = null; - if (version.Contains('-')) - { - string[] versions = version.Split("-".ToCharArray(), 2); - version = versions[0]; - previewVersion = versions[1]; - } - - var sb = new StringBuilder(); - sb.AppendLine("@{"); - sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); - sb.AppendLine($@"{Indent}RootModule = '{"./Az.FrontDoor.psm1"}'"); - sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); - sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); - sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); - sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); - sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); - sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: FrontDoor cmdlets"}'"); - sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); - sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); - - // RequiredModules - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}RequiredModules = @({"undefined"})"); - } - - // RequiredAssemblies - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}RequiredAssemblies = @({"undefined"})"); - } - else - { - sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.FrontDoor.private.dll"}'"); - } - - // NestedModules - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}NestedModules = @({"undefined"})"); - } - - // FormatsToProcess - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}FormatsToProcess = @({"undefined"})"); - } - else - { - var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) - .Where(f => f.EndsWith(".format.ps1xml")) - .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); - var formatList = customFormatPs1xmlFiles.Prepend("./Az.FrontDoor.format.ps1xml").ToPsList(); - sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); - } - - // TypesToProcess - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}TypesToProcess = @({"undefined"})"); - } - - // ScriptsToProcess - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}ScriptsToProcess = @({"undefined"})"); - } - - var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); - // FunctionsToExport - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}FunctionsToExport = @({"undefined"})"); - } - else - { - var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().ToPsList(); - sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); - } - - // AliasesToExport - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}AliasesToExport = @({"undefined"})"); - } - else - { - var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().ToPsList(); - if (!String.IsNullOrEmpty(aliasesList)) { - sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); - } - } - - // CmdletsToExport - if (!IsUndefined("undefined")) - { - sb.AppendLine($@"{Indent}CmdletsToExport = @({"undefined"})"); - } - - sb.AppendLine($@"{Indent}PrivateData = @{{"); - sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); - - if (previewVersion != null) - { - sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = '{previewVersion}'"); - } - sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule FrontDoor".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); - sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); - sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); - sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); - var profilesList = ""; - if (IsAzure && !String.IsNullOrEmpty(profilesList)) - { - sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); - } - - sb.AppendLine($@"{Indent}{Indent}}}"); - sb.AppendLine($@"{Indent}}}"); - sb.AppendLine(@"}"); - - File.WriteAllText(Psd1Path, sb.ToString()); - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs deleted file mode 100644 index 5af285afaa5b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs +++ /dev/null @@ -1,197 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.IO; -using System.Linq; -using System.Management.Automation; -using System.Text; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyOutputExtensions; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsData.Export, "TestStub")] - [DoNotExport] - public class ExportTestStub : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ModuleName { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string OutputFolder { get; set; } - - [Parameter] - public SwitchParameter IncludeGenerated { get; set; } - - protected override void ProcessRecord() - { - try - { - if (!Directory.Exists(ExportsFolder)) - { - throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); - } - - var exportDirectories = Directory.GetDirectories(ExportsFolder); - if (!exportDirectories.Any()) - { - exportDirectories = new[] { ExportsFolder }; - } - /*var loadEnvFile = Path.Combine(OutputFolder, "loadEnv.ps1"); - if (!File.Exists(loadEnvFile)) - { - var sc = new StringBuilder(); - sc.AppendLine(@" -$envFile = 'env.json' -if ($TestMode -eq 'live') { - $envFile = 'localEnv.json' -} - -if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { - $envFilePath = Join-Path $PSScriptRoot $envFile -} else { - $envFilePath = Join-Path $PSScriptRoot '..\$envFile' -} -$env = @{} -if (Test-Path -Path $envFilePath) { - $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json -}"); - File.WriteAllText(loadEnvFile, sc.ToString()); - }*/ - var utilFile = Path.Combine(OutputFolder, "utils.ps1"); - if (!File.Exists(utilFile)) - { - var sc = new StringBuilder(); - sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { - if ($allChars) { - return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) - } else { - return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) - } -} -function Start-TestSleep { - [CmdletBinding(DefaultParameterSetName = 'SleepBySeconds')] - param( - [parameter(Mandatory = $true, Position = 0, ParameterSetName = 'SleepBySeconds')] - [ValidateRange(0.0, 2147483.0)] - [double] $Seconds, - - [parameter(Mandatory = $true, ParameterSetName = 'SleepByMilliseconds')] - [ValidateRange('NonNegative')] - [Alias('ms')] - [int] $Milliseconds - ) - - if ($TestMode -ne 'playback') { - switch ($PSCmdlet.ParameterSetName) { - 'SleepBySeconds' { - Start-Sleep -Seconds $Seconds - } - 'SleepByMilliseconds' { - Start-Sleep -Milliseconds $Milliseconds - } - } - } -} - -$env = @{} -if ($UsePreviousConfigForRecord) { - $previousEnv = Get-Content (Join-Path $PSScriptRoot 'env.json') | ConvertFrom-Json - $previousEnv.psobject.properties | Foreach-Object { $env[$_.Name] = $_.Value } -} -# Add script method called AddWithCache to $env, when useCache is set true, it will try to get the value from the $env first. -# example: $val = $env.AddWithCache('key', $val, $true) -$env | Add-Member -Type ScriptMethod -Value { param( [string]$key, [object]$val, [bool]$useCache) if ($this.Contains($key) -and $useCache) { return $this[$key] } else { $this[$key] = $val; return $val } } -Name 'AddWithCache' -function setupEnv() { - # Preload subscriptionId and tenant from context, which will be used in test - # as default. You could change them if needed. - $env.SubscriptionId = (Get-AzContext).Subscription.Id - $env.Tenant = (Get-AzContext).Tenant.Id - # For any resources you created for test, you should add it to $env here. - $envFile = 'env.json' - if ($TestMode -eq 'live') { - $envFile = 'localEnv.json' - } - set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) -} -function cleanupEnv() { - # Clean resources you create for testing -} -"); - File.WriteAllText(utilFile, sc.ToString()); - } - - - - foreach (var exportDirectory in exportDirectories) - { - var outputFolder = OutputFolder; - if (exportDirectory != ExportsFolder) - { - outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); - Directory.CreateDirectory(outputFolder); - } - - var variantGroups = GetScriptCmdlets(exportDirectory) - .SelectMany(fi => fi.ToVariants()) - .Where(v => !v.IsDoNotExport) - .GroupBy(v => v.CmdletName) - .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) - .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); - - foreach (var variantGroup in variantGroups) - { - var sb = new StringBuilder(); - sb.AppendLine($"if(($null -eq $TestName) -or ($TestName -contains '{variantGroup.CmdletName}'))"); - sb.AppendLine(@"{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath)" - ); - sb.AppendLine($@" $TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); - sb.AppendLine(@" $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} -"); - - - sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); - var variants = variantGroup.Variants - .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) - .ToList(); - - foreach (var variant in variants) - { - sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); - sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); - var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; - sb.AppendLine($"{Indent}}}{variantSeparator}"); - } - sb.AppendLine("}"); - - File.WriteAllText(variantGroup.FilePath, sb.ToString()); - } - } - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs deleted file mode 100644 index 37ff3ec7e0a4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsCommon.Get, "CommonParameter")] - [OutputType(typeof(Dictionary))] - [DoNotExport] - public class GetCommonParameter : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public PSCmdlet PSCmdlet { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public Dictionary PSBoundParameter { get; set; } - - protected override void ProcessRecord() - { - try - { - var variants = PSCmdlet.MyInvocation.MyCommand.ToVariants(); - var commonParameterNames = variants.ToParameterGroups() - .Where(pg => pg.OrderCategory == ParameterCategory.Azure || pg.OrderCategory == ParameterCategory.Runtime) - .Select(pg => pg.ParameterName); - if (variants.Any(v => v.SupportsShouldProcess)) - { - commonParameterNames = commonParameterNames.Append("Confirm").Append("WhatIf"); - } - if (variants.Any(v => v.SupportsPaging)) - { - commonParameterNames = commonParameterNames.Append("First").Append("Skip").Append("IncludeTotalCount"); - } - - var names = commonParameterNames.ToArray(); - var keys = PSBoundParameter.Keys.Where(k => names.Contains(k)); - WriteObject(keys.ToDictionary(key => key, key => PSBoundParameter[key]), true); - } - catch (System.Exception ee) - { - System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs deleted file mode 100644 index 3cac7f3cb3c6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs +++ /dev/null @@ -1,31 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System.Management.Automation; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsCommon.Get, "ModuleGuid")] - [DoNotExport] - public class GetModuleGuid : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string Psd1Path { get; set; } - - protected override void ProcessRecord() - { - try - { - WriteObject(ReadGuidFromPsd1(Psd1Path)); - } - catch (System.Exception ee) - { - System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs deleted file mode 100644 index 33cd83c2f020..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs +++ /dev/null @@ -1,54 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System.Linq; -using System.Management.Automation; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpers; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - [Cmdlet(VerbsCommon.Get, "ScriptCmdlet")] - [OutputType(typeof(string[]))] - [DoNotExport] - public class GetScriptCmdlet : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ScriptFolder { get; set; } - - [Parameter] - public SwitchParameter IncludeDoNotExport { get; set; } - - [Parameter] - public SwitchParameter AsAlias { get; set; } - - [Parameter] - public SwitchParameter AsFunctionInfo { get; set; } - - protected override void ProcessRecord() - { - try - { - var functionInfos = GetScriptCmdlets(this, ScriptFolder) - .Where(fi => IncludeDoNotExport || !fi.ScriptBlock.Attributes.OfType().Any()) - .ToArray(); - if (AsFunctionInfo) - { - WriteObject(functionInfos, true); - return; - } - var aliases = functionInfos.SelectMany(i => i.ScriptBlock.Attributes).ToAliasNames(); - var names = functionInfos.Select(fi => fi.Name).Distinct(); - var output = (AsAlias ? aliases : names).DefaultIfEmpty("''").ToArray(); - WriteObject(output, true); - } - catch (System.Exception ee) - { - System.Console.Error.WriteLine($"{ee.GetType().Name}: {ee.Message}"); - System.Console.Error.WriteLine(ee.StackTrace); - throw ee; - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs deleted file mode 100644 index dbde316ed50d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal static class CollectionExtensions - { - public static T[] NullIfEmpty(this T[] collection) => (collection?.Any() ?? false) ? collection : null; - public static IEnumerable EmptyIfNull(this IEnumerable collection) => collection ?? Enumerable.Empty(); - - // https://stackoverflow.com/a/4158364/294804 - public static IEnumerable DistinctBy(this IEnumerable collection, Func selector) => - collection.GroupBy(selector).Select(group => group.First()); - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs deleted file mode 100644 index c58837a03f67..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ /dev/null @@ -1,122 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownTypesExtensions; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyOutputExtensions; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal static class MarkdownRenderer - { - public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder, bool AddComplexInterfaceInfo = true) - { - Directory.CreateDirectory(docsFolder); - var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); - - foreach (var markdownInfo in markdownInfos) - { - var sb = new StringBuilder(); - sb.Append(markdownInfo.ToHelpMetadataOutput()); - sb.Append($"# {markdownInfo.CmdletName}{Environment.NewLine}{Environment.NewLine}"); - sb.Append($"## SYNOPSIS{Environment.NewLine}{markdownInfo.Synopsis.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); - - sb.Append($"## SYNTAX{Environment.NewLine}{Environment.NewLine}"); - var hasMultipleParameterSets = markdownInfo.SyntaxInfos.Length > 1; - foreach (var syntaxInfo in markdownInfo.SyntaxInfos) - { - sb.Append(syntaxInfo.ToHelpSyntaxOutput(hasMultipleParameterSets)); - } - - sb.Append($"## DESCRIPTION{Environment.NewLine}{markdownInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); - - sb.Append($"## EXAMPLES{Environment.NewLine}{Environment.NewLine}"); - foreach (var exampleInfo in markdownInfo.Examples) - { - sb.Append(exampleInfo.ToHelpExampleOutput()); - } - - sb.Append($"## PARAMETERS{Environment.NewLine}{Environment.NewLine}"); - foreach (var parameter in markdownInfo.Parameters) - { - sb.Append(parameter.ToHelpParameterOutput()); - } - if (markdownInfo.SupportsShouldProcess) - { - foreach (var parameter in SupportsShouldProcessParameters) - { - sb.Append(parameter.ToHelpParameterOutput()); - } - } - - sb.Append($"### CommonParameters{Environment.NewLine}This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).{Environment.NewLine}{Environment.NewLine}"); - - sb.Append($"## INPUTS{Environment.NewLine}{Environment.NewLine}"); - foreach (var input in markdownInfo.Inputs) - { - sb.Append($"### {input}{Environment.NewLine}{Environment.NewLine}"); - } - - sb.Append($"## OUTPUTS{Environment.NewLine}{Environment.NewLine}"); - foreach (var output in markdownInfo.Outputs) - { - sb.Append($"### {output}{Environment.NewLine}{Environment.NewLine}"); - } - - sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); - if (markdownInfo.Aliases.Any()) - { - sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); - } - foreach (var alias in markdownInfo.Aliases) - { - sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); - } - - if (AddComplexInterfaceInfo) - { - if (markdownInfo.ComplexInterfaceInfos.Any()) - { - sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); - } - foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) - { - sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); - } - - } - - sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); - foreach (var relatedLink in markdownInfo.RelatedLinks) - { - sb.Append($"[{relatedLink}]({relatedLink}){Environment.NewLine}{Environment.NewLine}"); - } - - File.WriteAllText(Path.Combine(docsFolder, $"{markdownInfo.CmdletName}.md"), sb.ToString()); - } - - WriteModulePage(moduleHelpInfo, markdownInfos, docsFolder); - } - - private static void WriteModulePage(PsModuleHelpInfo moduleInfo, MarkdownHelpInfo[] markdownInfos, string docsFolder) - { - var sb = new StringBuilder(); - sb.Append(moduleInfo.ToModulePageMetadataOutput()); - sb.Append($"# {moduleInfo.Name} Module{Environment.NewLine}"); - sb.Append($"## Description{Environment.NewLine}{moduleInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); - - sb.Append($"## {moduleInfo.Name} Cmdlets{Environment.NewLine}"); - foreach (var markdownInfo in markdownInfos) - { - sb.Append(markdownInfo.ToModulePageCmdletOutput()); - } - - File.WriteAllText(Path.Combine(docsFolder, $"{moduleInfo.Name}.md"), sb.ToString()); - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs deleted file mode 100644 index b76a099e31d7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs +++ /dev/null @@ -1,138 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Xml.Serialization; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal class ViewParameters - { - public Type Type { get; } - public IEnumerable Properties { get; } - - public ViewParameters(Type type, IEnumerable properties) - { - Type = type; - Properties = properties; - } - } - - internal class PropertyFormat - { - public PropertyInfo Property { get; } - public FormatTableAttribute FormatTable { get; } - - public int? Index { get; } - public string Label { get; } - public int? Width { get; } - public PropertyOrigin? Origin { get; } - - public PropertyFormat(PropertyInfo propertyInfo) - { - Property = propertyInfo; - FormatTable = Property.GetCustomAttributes().FirstOrDefault(); - var origin = Property.GetCustomAttributes().FirstOrDefault(); - - Index = FormatTable?.HasIndex ?? false ? (int?)FormatTable.Index : null; - Label = FormatTable?.Label ?? propertyInfo.Name; - Width = FormatTable?.HasWidth ?? false ? (int?)FormatTable.Width : null; - // If we have an index, we don't want to use Origin. - Origin = FormatTable?.HasIndex ?? false ? null : origin?.Origin; - } - } - - [Serializable] - [XmlRoot(nameof(Configuration))] - public class Configuration - { - [XmlElement("ViewDefinitions")] - public ViewDefinitions ViewDefinitions { get; set; } - } - - [Serializable] - public class ViewDefinitions - { - //https://stackoverflow.com/a/10518657/294804 - [XmlElement("View")] - public List Views { get; set; } - } - - [Serializable] - public class View - { - [XmlElement(nameof(Name))] - public string Name { get; set; } - [XmlElement(nameof(ViewSelectedBy))] - public ViewSelectedBy ViewSelectedBy { get; set; } - [XmlElement(nameof(TableControl))] - public TableControl TableControl { get; set; } - } - - [Serializable] - public class ViewSelectedBy - { - [XmlElement(nameof(TypeName))] - public string TypeName { get; set; } - } - - [Serializable] - public class TableControl - { - [XmlElement(nameof(TableHeaders))] - public TableHeaders TableHeaders { get; set; } - [XmlElement(nameof(TableRowEntries))] - public TableRowEntries TableRowEntries { get; set; } - } - - [Serializable] - public class TableHeaders - { - [XmlElement("TableColumnHeader")] - public List TableColumnHeaders { get; set; } - } - - [Serializable] - public class TableColumnHeader - { - [XmlElement(nameof(Label))] - public string Label { get; set; } - [XmlElement(nameof(Width))] - public int? Width { get; set; } - - //https://stackoverflow.com/a/4095225/294804 - public bool ShouldSerializeWidth() => Width.HasValue; - } - - [Serializable] - public class TableRowEntries - { - [XmlElement(nameof(TableRowEntry))] - public TableRowEntry TableRowEntry { get; set; } - } - - [Serializable] - public class TableRowEntry - { - [XmlElement(nameof(TableColumnItems))] - public TableColumnItems TableColumnItems { get; set; } - } - - [Serializable] - public class TableColumnItems - { - [XmlElement("TableColumnItem")] - public List TableItems { get; set; } - } - - [Serializable] - public class TableColumnItem - { - [XmlElement(nameof(PropertyName))] - public string PropertyName { get; set; } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs deleted file mode 100644 index 8bb29e5d95c0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ /dev/null @@ -1,199 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Linq; -using System.Management.Automation; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpOutputExtensions; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal class HelpMetadataOutput - { - public MarkdownHelpInfo HelpInfo { get; } - - public HelpMetadataOutput(MarkdownHelpInfo helpInfo) - { - HelpInfo = helpInfo; - } - - public override string ToString() => $@"--- -external help file:{(!String.IsNullOrEmpty(HelpInfo.ExternalHelpFilename) ? $" {HelpInfo.ExternalHelpFilename}" : String.Empty)} -Module Name: {HelpInfo.ModuleName} -online version: {HelpInfo.OnlineVersion} -schema: {HelpInfo.Schema.ToString(3)} ---- - -"; - } - - internal class HelpSyntaxOutput - { - public MarkdownSyntaxHelpInfo SyntaxInfo { get; } - public bool HasMultipleParameterSets { get; } - - public HelpSyntaxOutput(MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) - { - SyntaxInfo = syntaxInfo; - HasMultipleParameterSets = hasMultipleParameterSets; - } - - public override string ToString() - { - var psnText = HasMultipleParameterSets ? $"### {SyntaxInfo.ParameterSetName}{(SyntaxInfo.IsDefault ? " (Default)" : String.Empty)}{Environment.NewLine}" : String.Empty; - return $@"{psnText}``` -{SyntaxInfo.SyntaxText} -``` - -"; - } - } - - internal class HelpExampleOutput - { - private string ExampleTemplate = - "{0}{1}" + Environment.NewLine + - "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + - "{5}" + Environment.NewLine + Environment.NewLine; - - private string ExampleTemplateWithOutput = - "{0}{1}" + Environment.NewLine + - "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + - "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine + - "{8}" + Environment.NewLine + Environment.NewLine; - - public MarkdownExampleHelpInfo ExampleInfo { get; } - - public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) - { - ExampleInfo = exampleInfo; - } - - public override string ToString() - { - if (string.IsNullOrEmpty(ExampleInfo.Output)) - { - return string.Format(ExampleTemplate, - ExampleNameHeader, ExampleInfo.Name, - ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, - ExampleInfo.Description.ToDescriptionFormat()); - } - else - { - return string.Format(ExampleTemplateWithOutput, - ExampleNameHeader, ExampleInfo.Name, - ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, - ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter, - ExampleInfo.Description.ToDescriptionFormat()); ; - } - } - } - - internal class HelpParameterOutput - { - public MarkdownParameterHelpInfo ParameterInfo { get; } - - public HelpParameterOutput(MarkdownParameterHelpInfo parameterInfo) - { - ParameterInfo = parameterInfo; - } - - public override string ToString() - { - var pipelineInputTypes = new[] - { - ParameterInfo.AcceptsPipelineByValue ? "ByValue" : String.Empty, - ParameterInfo.AcceptsPipelineByPropertyName ? "ByPropertyName" : String.Empty - }.JoinIgnoreEmpty(", "); - var pipelineInput = ParameterInfo.AcceptsPipelineByValue || ParameterInfo.AcceptsPipelineByPropertyName - ? $@"{true} ({pipelineInputTypes})" - : false.ToString(); - - return $@"### -{ParameterInfo.Name} -{ParameterInfo.Description.ToDescriptionFormat()} - -```yaml -Type: {ParameterInfo.Type.FullName} -Parameter Sets: {(ParameterInfo.HasAllParameterSets ? "(All)" : ParameterInfo.ParameterSetNames.JoinIgnoreEmpty(", "))} -Aliases:{(ParameterInfo.Aliases.Any() ? $" {ParameterInfo.Aliases.JoinIgnoreEmpty(", ")}" : String.Empty)} - -Required: {ParameterInfo.IsRequired} -Position: {ParameterInfo.Position} -Default value: {ParameterInfo.DefaultValue} -Accept pipeline input: {pipelineInput} -Accept wildcard characters: {ParameterInfo.AcceptsWildcardCharacters} -``` - -"; - } - } - - internal class ModulePageMetadataOutput - { - public PsModuleHelpInfo ModuleInfo { get; } - - private static string HelpLinkPrefix { get; } = @"https://learn.microsoft.com/powershell/module/"; - - public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) - { - ModuleInfo = moduleInfo; - } - - public override string ToString() => $@"--- -Module Name: {ModuleInfo.Name} -Module Guid: {ModuleInfo.Guid} -Download Help Link: {HelpLinkPrefix}{ModuleInfo.Name.ToLowerInvariant()} -Help Version: 1.0.0.0 -Locale: en-US ---- - -"; - } - - internal class ModulePageCmdletOutput - { - public MarkdownHelpInfo HelpInfo { get; } - - public ModulePageCmdletOutput(MarkdownHelpInfo helpInfo) - { - HelpInfo = helpInfo; - } - - public override string ToString() => $@"### [{HelpInfo.CmdletName}]({HelpInfo.CmdletName}.md) -{HelpInfo.Synopsis.ToDescriptionFormat()} - -"; - } - - internal static class PsHelpOutputExtensions - { - public static string EscapeAngleBrackets(this string text) => text?.Replace("<", @"\<").Replace(">", @"\>"); - public static string ReplaceSentenceEndWithNewline(this string text) => text?.Replace(". ", $".{Environment.NewLine}").Replace(". ", $".{Environment.NewLine}"); - public static string ReplaceBrWithNewline(this string text) => text?.Replace("
", $"{Environment.NewLine}"); - public static string ToDescriptionFormat(this string text, bool escapeAngleBrackets = true) - { - var description = text?.ReplaceBrWithNewline(); - description = escapeAngleBrackets ? description?.EscapeAngleBrackets() : description; - return description?.ReplaceSentenceEndWithNewline().Trim(); - } - - public const string ExampleNameHeader = "### "; - public const string ExampleCodeHeader = "```powershell"; - public const string ExampleCodeFooter = "```"; - public const string ExampleOutputHeader = "```output"; - public const string ExampleOutputFooter = "```"; - - public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); - - public static HelpSyntaxOutput ToHelpSyntaxOutput(this MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) => new HelpSyntaxOutput(syntaxInfo, hasMultipleParameterSets); - - public static HelpExampleOutput ToHelpExampleOutput(this MarkdownExampleHelpInfo exampleInfo) => new HelpExampleOutput(exampleInfo); - - public static HelpParameterOutput ToHelpParameterOutput(this MarkdownParameterHelpInfo parameterInfo) => new HelpParameterOutput(parameterInfo); - - public static ModulePageMetadataOutput ToModulePageMetadataOutput(this PsModuleHelpInfo moduleInfo) => new ModulePageMetadataOutput(moduleInfo); - - public static ModulePageCmdletOutput ToModulePageCmdletOutput(this MarkdownHelpInfo helpInfo) => new ModulePageCmdletOutput(helpInfo); - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs deleted file mode 100644 index e67a68524e17..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ /dev/null @@ -1,211 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal class PsHelpInfo - { - public string CmdletName { get; } - public string ModuleName { get; } - public string Synopsis { get; } - public string Description { get; } - public string AlertText { get; } - public string Category { get; } - public PsHelpLinkInfo OnlineVersion { get; } - public PsHelpLinkInfo[] RelatedLinks { get; } - public bool? HasCommonParameters { get; } - public bool? HasWorkflowCommonParameters { get; } - - public PsHelpTypeInfo[] InputTypes { get; } - public PsHelpTypeInfo[] OutputTypes { get; } - public PsHelpExampleInfo[] Examples { get; set; } - public string[] Aliases { get; } - - public PsParameterHelpInfo[] Parameters { get; } - public PsHelpSyntaxInfo[] Syntax { get; } - - public object Component { get; } - public object Functionality { get; } - public object PsSnapIn { get; } - public object Role { get; } - public string NonTerminatingErrors { get; } - - public static string CapitalizeFirstLetter(string text) - { - if (string.IsNullOrEmpty(text)) - return text; - - return char.ToUpper(text[0]) + text.Substring(1); - } - - public PsHelpInfo(PSObject helpObject = null) - { - helpObject = helpObject ?? new PSObject(); - CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); - ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); - Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? - helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); - Description = CapitalizeFirstLetter(Description); - AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); - Category = helpObject.GetProperty("Category"); - HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); - HasWorkflowCommonParameters = helpObject.GetProperty("WorkflowCommonParameters").ToNullableBool(); - - var links = helpObject.GetNestedProperty("relatedLinks", "navigationLink").EmptyIfNull().Select(nl => nl.ToLinkInfo()).ToArray(); - OnlineVersion = links.FirstOrDefault(l => l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length == 1); - RelatedLinks = links.Where(l => !l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length != 1).ToArray(); - - InputTypes = helpObject.GetNestedProperty("inputTypes", "inputType").EmptyIfNull().Select(it => it.ToTypeInfo()).ToArray(); - OutputTypes = helpObject.GetNestedProperty("returnValues", "returnValue").EmptyIfNull().Select(rv => rv.ToTypeInfo()).ToArray(); - Examples = helpObject.GetNestedProperty("examples", "example").EmptyIfNull().Select(e => e.ToExampleInfo()).ToArray(); - Aliases = helpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); - - Parameters = helpObject.GetNestedProperty("parameters", "parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); - Syntax = helpObject.GetNestedProperty("syntax", "syntaxItem").EmptyIfNull().Select(si => si.ToSyntaxInfo()).ToArray(); - - Component = helpObject.GetProperty("Component"); - Functionality = helpObject.GetProperty("Functionality"); - PsSnapIn = helpObject.GetProperty("PSSnapIn"); - Role = helpObject.GetProperty("Role"); - NonTerminatingErrors = helpObject.GetProperty("nonTerminatingErrors"); - } - } - - internal class PsHelpTypeInfo - { - public string Name { get; } - public string Description { get; } - - public PsHelpTypeInfo(PSObject typeObject) - { - Name = typeObject.GetNestedProperty("type", "name").EmptyIfNull().Trim(); - Description = typeObject.GetProperty("description").EmptyIfNull().ToDescriptionText(); - } - } - - internal class PsHelpLinkInfo - { - public string Uri { get; } - public string Text { get; } - - public PsHelpLinkInfo(PSObject linkObject) - { - Uri = linkObject.GetProperty("uri"); - Text = linkObject.GetProperty("linkText"); - } - } - - internal class PsHelpSyntaxInfo - { - public string CmdletName { get; } - public PsParameterHelpInfo[] Parameters { get; } - - public PsHelpSyntaxInfo(PSObject syntaxObject) - { - CmdletName = syntaxObject.GetProperty("name"); - Parameters = syntaxObject.GetProperty("parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); - } - } - - internal class PsHelpExampleInfo - { - public string Title { get; } - public string Code { get; } - public string Output { get; } - public string Remarks { get; } - - public PsHelpExampleInfo(PSObject exampleObject) - { - Title = exampleObject.GetProperty("title"); - Code = exampleObject.GetProperty("code"); - Output = exampleObject.GetProperty("output"); - Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); - } - public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) - { - Title = markdownExample.Name; - Code = markdownExample.Code; - Output = markdownExample.Output; - Remarks = markdownExample.Description; - } - - public static implicit operator PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) => new PsHelpExampleInfo(markdownExample); - } - - internal class PsParameterHelpInfo - { - public string DefaultValueAsString { get; } - - public string Name { get; } - public string TypeName { get; } - public string Description { get; } - public string SupportsPipelineInput { get; } - public string PositionText { get; } - public string[] ParameterSetNames { get; } - public string[] Aliases { get; } - - public bool? SupportsGlobbing { get; } - public bool? IsRequired { get; } - public bool? IsVariableLength { get; } - public bool? IsDynamic { get; } - - public PsParameterHelpInfo(PSObject parameterHelpObject = null) - { - parameterHelpObject = parameterHelpObject ?? new PSObject(); - DefaultValueAsString = parameterHelpObject.GetProperty("defaultValue"); - Name = parameterHelpObject.GetProperty("name"); - TypeName = parameterHelpObject.GetProperty("parameterValue").NullIfEmpty() ?? parameterHelpObject.GetNestedProperty("type", "name"); - Description = parameterHelpObject.GetProperty("Description").EmptyIfNull().ToDescriptionText(); - SupportsPipelineInput = parameterHelpObject.GetProperty("pipelineInput"); - PositionText = parameterHelpObject.GetProperty("position"); - ParameterSetNames = parameterHelpObject.GetProperty("parameterSetName").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); - Aliases = parameterHelpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); - - SupportsGlobbing = parameterHelpObject.GetProperty("globbing").ToNullableBool(); - IsRequired = parameterHelpObject.GetProperty("required").ToNullableBool(); - IsVariableLength = parameterHelpObject.GetProperty("variableLength").ToNullableBool(); - IsDynamic = parameterHelpObject.GetProperty("isDynamic").ToNullableBool(); - } - } - - internal class PsModuleHelpInfo - { - public string Name { get; } - public Guid Guid { get; } - public string Description { get; } - - public PsModuleHelpInfo(PSModuleInfo moduleInfo) - : this(moduleInfo?.Name ?? String.Empty, moduleInfo?.Guid ?? Guid.NewGuid(), moduleInfo?.Description ?? String.Empty) - { - } - - public PsModuleHelpInfo(string name, Guid guid, string description) - { - Name = name; - Guid = guid; - Description = description; - } - } - - internal static class HelpTypesExtensions - { - public static PsHelpInfo ToPsHelpInfo(this PSObject helpObject) => new PsHelpInfo(helpObject); - public static PsParameterHelpInfo ToPsParameterHelpInfo(this PSObject parameterHelpObject) => new PsParameterHelpInfo(parameterHelpObject); - - public static string ToDescriptionText(this IEnumerable descriptionObject) => descriptionObject != null - ? String.Join(Environment.NewLine, descriptionObject.Select(dl => dl.GetProperty("Text").EmptyIfNull())).NullIfWhiteSpace() - : null; - public static PsHelpTypeInfo ToTypeInfo(this PSObject typeObject) => new PsHelpTypeInfo(typeObject); - public static PsHelpExampleInfo ToExampleInfo(this PSObject exampleObject) => new PsHelpExampleInfo(exampleObject); - public static PsHelpLinkInfo ToLinkInfo(this PSObject linkObject) => new PsHelpLinkInfo(linkObject); - public static PsHelpSyntaxInfo ToSyntaxInfo(this PSObject syntaxObject) => new PsHelpSyntaxInfo(syntaxObject); - public static PsModuleHelpInfo ToModuleInfo(this PSModuleInfo moduleInfo) => new PsModuleHelpInfo(moduleInfo); - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs deleted file mode 100644 index 1564791a74d5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs +++ /dev/null @@ -1,329 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Management.Automation; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.MarkdownTypesExtensions; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsHelpOutputExtensions; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal class MarkdownHelpInfo - { - public string ExternalHelpFilename { get; } - public string ModuleName { get; } - public string OnlineVersion { get; } - public Version Schema { get; } - - public string CmdletName { get; } - public string[] Aliases { get; } - public string Synopsis { get; } - public string Description { get; } - - public MarkdownSyntaxHelpInfo[] SyntaxInfos { get; } - public MarkdownExampleHelpInfo[] Examples { get; } - public MarkdownParameterHelpInfo[] Parameters { get; } - - public string[] Inputs { get; } - public string[] Outputs { get; } - public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } - public MarkdownRelatedLinkInfo[] RelatedLinks { get; } - - public bool SupportsShouldProcess { get; } - public bool SupportsPaging { get; } - - public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string externalHelpFilename = "") - { - ExternalHelpFilename = externalHelpFilename; - ModuleName = variantGroup.RootModuleName != "" ? variantGroup.RootModuleName : variantGroup.ModuleName; - var helpInfo = variantGroup.HelpInfo; - var commentInfo = variantGroup.CommentInfo; - Schema = Version.Parse("2.0.0"); - - CmdletName = variantGroup.CmdletName; - Aliases = (variantGroup.Aliases.NullIfEmpty() ?? helpInfo.Aliases).Where(a => a != "None").ToArray(); - Synopsis = commentInfo.Synopsis; - Description = commentInfo.Description; - - SyntaxInfos = variantGroup.Variants - .Select(v => new MarkdownSyntaxHelpInfo(v, variantGroup.ParameterGroups, v.VariantName == variantGroup.DefaultParameterSetName)) - .OrderByDescending(v => v.IsDefault).ThenBy(v => v.ParameterSetName).ToArray(); - Examples = GetExamplesFromMarkdown(examplesFolder).NullIfEmpty() - ?? helpInfo.Examples.Select(e => e.ToExampleHelpInfo()).ToArray().NullIfEmpty() - ?? DefaultExampleHelpInfos; - - Parameters = variantGroup.ParameterGroups - .Where(pg => !pg.DontShow && !pg.Parameters.All(p => p.IsHidden())) - .Select(pg => new MarkdownParameterHelpInfo( - variantGroup.Variants.SelectMany(v => v.HelpInfo.Parameters).Where(phi => phi.Name == pg.ParameterName).ToArray(), pg)) - .OrderBy(phi => phi.Name).ToArray(); - - Inputs = commentInfo.Inputs; - Outputs = commentInfo.Outputs; - - ComplexInterfaceInfos = variantGroup.ComplexInterfaceInfos; - OnlineVersion = commentInfo.OnlineVersion; - - var relatedLinkLists = new List(); - relatedLinkLists.AddRange(commentInfo.RelatedLinks?.Select(link => new MarkdownRelatedLinkInfo(link))); - relatedLinkLists.AddRange(variantGroup.Variants.SelectMany(v => v.Attributes).OfType()?.Distinct()?.Select(link => new MarkdownRelatedLinkInfo(link.Url, link.Description))); - RelatedLinks = relatedLinkLists?.ToArray(); - - SupportsShouldProcess = variantGroup.SupportsShouldProcess; - SupportsPaging = variantGroup.SupportsPaging; - } - - private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) - { - var filePath = Path.Combine(examplesFolder, $"{CmdletName}.md"); - if (!Directory.Exists(examplesFolder) || !File.Exists(filePath)) return null; - - var lines = File.ReadAllLines(filePath); - var nameIndices = lines.Select((l, i) => l.StartsWith(ExampleNameHeader) ? i : -1).Where(i => i != -1).ToArray(); - //https://codereview.stackexchange.com/a/187148/68772 - var indexCountGroups = nameIndices.Skip(1).Append(lines.Length).Zip(nameIndices, (next, current) => (NameIndex: current, LineCount: next - current)); - var exampleGroups = indexCountGroups.Select(icg => lines.Skip(icg.NameIndex).Take(icg.LineCount).ToArray()); - return exampleGroups.Select(eg => - { - var name = eg.First().Replace(ExampleNameHeader, String.Empty); - var codeStartIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); - var codeEndIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i != codeStartIndex); - var code = codeStartIndex.HasValue && codeEndIndex.HasValue - ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) - : String.Empty; - var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); - var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex); - var output = outputStartIndex.HasValue && outputEndIndex.HasValue - ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1))) - : String.Empty; - var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1; - descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; - var descriptionEndIndex = eg.Length - 1; - descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; - var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); - return new MarkdownExampleHelpInfo(name, code, output, description); - }).ToArray(); - } - } - - internal class MarkdownSyntaxHelpInfo - { - public Variant Variant { get; } - public bool IsDefault { get; } - public string ParameterSetName { get; } - public Parameter[] Parameters { get; } - public string SyntaxText { get; } - - public MarkdownSyntaxHelpInfo(Variant variant, ParameterGroup[] parameterGroups, bool isDefault) - { - Variant = variant; - IsDefault = isDefault; - ParameterSetName = Variant.VariantName; - Parameters = Variant.Parameters - .Where(p => !p.DontShow && !p.IsHidden()).OrderByDescending(p => p.IsMandatory) - //https://stackoverflow.com/a/6461526/294804 - .ThenByDescending(p => p.Position.HasValue).ThenBy(p => p.Position) - // Use the OrderCategory of the parameter group because the final order category is the highest of the group, and not the order category of the individual parameters from the variants. - .ThenBy(p => parameterGroups.First(pg => pg.ParameterName == p.ParameterName).OrderCategory).ThenBy(p => p.ParameterName).ToArray(); - SyntaxText = CreateSyntaxFormat(); - } - - //https://github.com/PowerShell/platyPS/blob/a607a926bfffe1e1a1e53c19e0057eddd0c07611/src/Markdown.MAML/Renderer/Markdownv2Renderer.cs#L29-L32 - private const int SyntaxLineWidth = 110; - private string CreateSyntaxFormat() - { - var parameterStrings = Parameters.Select(p => p.ToPropertySyntaxOutput().ToString()); - if (Variant.SupportsShouldProcess) - { - parameterStrings = parameterStrings.Append(" [-Confirm]").Append(" [-WhatIf]"); - } - parameterStrings = parameterStrings.Append(" []"); - - var lines = new List(20); - return parameterStrings.Aggregate(Variant.CmdletName, (current, ps) => - { - var combined = current + ps; - if (combined.Length <= SyntaxLineWidth) return combined; - - lines.Add(current); - return ps; - }, last => - { - lines.Add(last); - return String.Join(Environment.NewLine, lines); - }); - } - } - - internal class MarkdownExampleHelpInfo - { - public string Name { get; } - public string Code { get; } - public string Output { get; } - public string Description { get; } - - public MarkdownExampleHelpInfo(string name, string code, string output, string description) - { - Name = name; - Code = code; - Output = output; - Description = description; - } - } - - internal class MarkdownParameterHelpInfo - { - public string Name { get; set; } - public string Description { get; set; } - public Type Type { get; set; } - public string Position { get; set; } - public string DefaultValue { get; set; } - - public bool HasAllParameterSets { get; set; } - public string[] ParameterSetNames { get; set; } - public string[] Aliases { get; set; } - - public bool IsRequired { get; set; } - public bool IsDynamic { get; set; } - public bool AcceptsPipelineByValue { get; set; } - public bool AcceptsPipelineByPropertyName { get; set; } - public bool AcceptsWildcardCharacters { get; set; } - - // For use by common parameters that have no backing data in the objects themselves. - public MarkdownParameterHelpInfo() { } - - public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, ParameterGroup parameterGroup) - { - Name = parameterGroup.ParameterName; - Description = parameterGroup.Description.NullIfEmpty() - ?? parameterHelpInfos.Select(phi => phi.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); - Type = parameterGroup.ParameterType; - Position = parameterGroup.FirstPosition?.ToString() - ?? parameterHelpInfos.Select(phi => phi.PositionText).FirstOrDefault(d => !String.IsNullOrEmpty(d)).ToUpperFirstCharacter().NullIfEmpty() - ?? "Named"; - // This no longer uses firstHelpInfo.DefaultValueAsString since it seems to be broken. For example, it has a value of 0 for Int32, but no default value was declared. - DefaultValue = parameterGroup.DefaultInfo?.Script ?? "None"; - - HasAllParameterSets = parameterGroup.HasAllVariants; - ParameterSetNames = (parameterGroup.Parameters.Select(p => p.VariantName).ToArray().NullIfEmpty() - ?? parameterHelpInfos.SelectMany(phi => phi.ParameterSetNames).Distinct()) - .OrderBy(psn => psn).ToArray(); - Aliases = parameterGroup.Aliases.NullIfEmpty() ?? parameterHelpInfos.SelectMany(phi => phi.Aliases).ToArray(); - - IsRequired = parameterHelpInfos.Select(phi => phi.IsRequired).FirstOrDefault(r => r == true) ?? parameterGroup.Parameters.Any(p => p.IsMandatory); - IsDynamic = parameterHelpInfos.Select(phi => phi.IsDynamic).FirstOrDefault(d => d == true) ?? false; - AcceptsPipelineByValue = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByValue")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipeline; - AcceptsPipelineByPropertyName = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByPropertyName")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipelineByPropertyName; - AcceptsWildcardCharacters = parameterGroup.SupportsWildcards; - } - } - - internal class MarkdownRelatedLinkInfo - { - public string Url { get; } - public string Description { get; } - - public MarkdownRelatedLinkInfo(string url) - { - Url = url; - } - - public MarkdownRelatedLinkInfo(string url, string description) - { - Url = url; - Description = description; - } - - public override string ToString() - { - if (string.IsNullOrEmpty(Description)) - { - return Url; - } - else - { - return $@"[{Description}]({Url})"; - - } - - } - } - - internal static class MarkdownTypesExtensions - { - public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); - - public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = - { - new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here (remove the output block if the example doesn't have an output) }}}}", @"{{ Add description here }}"), - new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here (remove the output block if the example doesn't have an output) }}}}", @"{{ Add description here }}"), - }; - - public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = - { - new MarkdownParameterHelpInfo - { - Name = "Confirm", - Description ="Prompts you for confirmation before running the cmdlet.", - Type = typeof(SwitchParameter), - Position = "Named", - DefaultValue = "None", - HasAllParameterSets = true, - ParameterSetNames = new [] { "(All)" }, - Aliases = new [] { "cf" } - }, - new MarkdownParameterHelpInfo - { - Name = "WhatIf", - Description ="Shows what would happen if the cmdlet runs. The cmdlet is not run.", - Type = typeof(SwitchParameter), - Position = "Named", - DefaultValue = "None", - HasAllParameterSets = true, - ParameterSetNames = new [] { "(All)" }, - Aliases = new [] { "wi" } - } - }; - - public static MarkdownParameterHelpInfo[] SupportsPagingParameters = - { - new MarkdownParameterHelpInfo - { - Name = "First", - Description ="Gets only the first 'n' objects.", - Type = typeof(ulong), - Position = "Named", - DefaultValue = "None", - HasAllParameterSets = true, - ParameterSetNames = new [] { "(All)" }, - Aliases = new string[0] - }, - new MarkdownParameterHelpInfo - { - Name = "IncludeTotalCount", - Description ="Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns \"Unknown total count\".", - Type = typeof(SwitchParameter), - Position = "Named", - DefaultValue = "None", - HasAllParameterSets = true, - ParameterSetNames = new [] { "(All)" }, - Aliases = new string[0] - }, - new MarkdownParameterHelpInfo - { - Name = "Skip", - Description ="Ignores the first 'n' objects and then gets the remaining objects.", - Type = typeof(ulong), - Position = "Named", - DefaultValue = "None", - HasAllParameterSets = true, - ParameterSetNames = new [] { "(All)" }, - Aliases = new string[0] - } - }; - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs deleted file mode 100644 index ce29fcfc887a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ /dev/null @@ -1,681 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Text; -using System.Text.RegularExpressions; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyOutputExtensions; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyTypeExtensions; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal class OutputTypeOutput - { - public PSTypeName[] OutputTypes { get; } - - public OutputTypeOutput(IEnumerable outputTypes) - { - OutputTypes = outputTypes.ToArray(); - } - - public override string ToString() => OutputTypes != null && OutputTypes.Any() ? $"[OutputType({OutputTypes.Select(ot => $"[{ot}]").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; - } - - internal class CmdletBindingOutput - { - public VariantGroup VariantGroup { get; } - - public CmdletBindingOutput(VariantGroup variantGroup) - { - VariantGroup = variantGroup; - } - - public override string ToString() - { - var dpsText = VariantGroup.DefaultParameterSetName.IsValidDefaultParameterSetName() ? $"DefaultParameterSetName='{VariantGroup.DefaultParameterSetName}'" : String.Empty; - var sspText = VariantGroup.SupportsShouldProcess ? $"SupportsShouldProcess{ItemSeparator}ConfirmImpact='Medium'" : String.Empty; - var pbText = $"PositionalBinding={false.ToPsBool()}"; - var propertyText = new[] { dpsText, pbText, sspText }.JoinIgnoreEmpty(ItemSeparator); - return $"[CmdletBinding({propertyText})]{Environment.NewLine}"; - } - } - - internal class ParameterOutput - { - public Parameter Parameter { get; } - public bool HasMultipleVariantsInVariantGroup { get; } - public bool HasAllVariantsInParameterGroup { get; } - - public ParameterOutput(Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) - { - Parameter = parameter; - HasMultipleVariantsInVariantGroup = hasMultipleVariantsInVariantGroup; - HasAllVariantsInParameterGroup = hasAllVariantsInParameterGroup; - } - - public override string ToString() - { - var psnText = HasMultipleVariantsInVariantGroup && !HasAllVariantsInParameterGroup ? $"ParameterSetName='{Parameter.VariantName}'" : String.Empty; - var positionText = Parameter.Position != null ? $"Position={Parameter.Position}" : String.Empty; - var mandatoryText = Parameter.IsMandatory ? "Mandatory" : String.Empty; - var dontShowText = Parameter.DontShow ? "DontShow" : String.Empty; - var vfpText = Parameter.ValueFromPipeline ? "ValueFromPipeline" : String.Empty; - var vfpbpnText = Parameter.ValueFromPipelineByPropertyName ? "ValueFromPipelineByPropertyName" : String.Empty; - var propertyText = new[] { psnText, positionText, mandatoryText, dontShowText, vfpText, vfpbpnText }.JoinIgnoreEmpty(ItemSeparator); - return $"{Indent}[Parameter({propertyText})]{Environment.NewLine}"; - } - } - - internal class AliasOutput - { - public string[] Aliases { get; } - public bool IncludeIndent { get; } - - public AliasOutput(string[] aliases, bool includeIndent = false) - { - Aliases = aliases; - IncludeIndent = includeIndent; - } - - public override string ToString() => Aliases?.Any() ?? false ? $"{(IncludeIndent ? Indent : String.Empty)}[Alias({Aliases.Select(an => $"'{an}'").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; - } - - internal class ValidateNotNullOutput - { - public bool HasValidateNotNull { get; } - - public ValidateNotNullOutput(bool hasValidateNotNull) - { - HasValidateNotNull = hasValidateNotNull; - } - - public override string ToString() => HasValidateNotNull ? $"{Indent}[ValidateNotNull()]{Environment.NewLine}" : String.Empty; - } - - internal class AllowEmptyArrayOutput - { - public bool HasAllowEmptyArray { get; } - - public AllowEmptyArrayOutput(bool hasAllowEmptyArray) - { - HasAllowEmptyArray = hasAllowEmptyArray; - } - - public override string ToString() => HasAllowEmptyArray ? $"{Indent}[AllowEmptyCollection()]{Environment.NewLine}" : String.Empty; - } - internal class ArgumentCompleterOutput - { - public CompleterInfo CompleterInfo { get; } - - public ArgumentCompleterOutput(CompleterInfo completerInfo) - { - CompleterInfo = completerInfo; - } - - public override string ToString() => CompleterInfo != null - ? $"{Indent}[ArgumentCompleter({(CompleterInfo.IsTypeCompleter ? $"[{CompleterInfo.Type.Unwrap().ToPsType()}]" : $"{{{CompleterInfo.Script.ToPsSingleLine("; ")}}}")})]{Environment.NewLine}" - : String.Empty; - } - - internal class PSArgumentCompleterOutput : ArgumentCompleterOutput - { - public PSArgumentCompleterInfo PSArgumentCompleterInfo { get; } - - public PSArgumentCompleterOutput(PSArgumentCompleterInfo completerInfo) : base(completerInfo) - { - PSArgumentCompleterInfo = completerInfo; - } - - - public override string ToString() => PSArgumentCompleterInfo != null - ? $"{Indent}[{typeof(PSArgumentCompleterAttribute)}({(PSArgumentCompleterInfo.IsTypeCompleter ? $"[{PSArgumentCompleterInfo.Type.Unwrap().ToPsType()}]" : $"{PSArgumentCompleterInfo.ResourceTypes?.Select(r => $"\"{r}\"")?.JoinIgnoreEmpty(", ")}")})]{Environment.NewLine}" - : String.Empty; - } - - internal class DefaultInfoOutput - { - public bool HasDefaultInfo { get; } - public DefaultInfo DefaultInfo { get; } - - public DefaultInfoOutput(ParameterGroup parameterGroup) - { - HasDefaultInfo = parameterGroup.HasDefaultInfo; - DefaultInfo = parameterGroup.DefaultInfo; - } - - public override string ToString() - { - var nameText = !String.IsNullOrEmpty(DefaultInfo?.Name) ? $"Name='{DefaultInfo?.Name}'" : String.Empty; - var descriptionText = !String.IsNullOrEmpty(DefaultInfo?.Description) ? $"Description='{DefaultInfo?.Description.ToPsStringLiteral()}'" : String.Empty; - var scriptText = !String.IsNullOrEmpty(DefaultInfo?.Script) ? $"Script='{DefaultInfo?.Script.ToPsSingleLine("; ")}'" : String.Empty; - var propertyText = new[] { nameText, descriptionText, scriptText }.JoinIgnoreEmpty(ItemSeparator); - return HasDefaultInfo ? $"{Indent}[{typeof(DefaultInfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; - } - } - - internal class ParameterTypeOutput - { - public Type ParameterType { get; } - - public ParameterTypeOutput(Type parameterType) - { - ParameterType = parameterType; - } - - public override string ToString() => $"{Indent}[{ParameterType.ToPsType()}]{Environment.NewLine}"; - } - - internal class ParameterNameOutput - { - public string ParameterName { get; } - public bool IsLast { get; } - - public ParameterNameOutput(string parameterName, bool isLast) - { - ParameterName = parameterName; - IsLast = isLast; - } - - public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; - } - - internal class BaseOutput - { - public VariantGroup VariantGroup { get; } - - protected static readonly bool IsAzure = Convert.ToBoolean(@"true"); - - public BaseOutput(VariantGroup variantGroup) - { - VariantGroup = variantGroup; - } - public string ClearTelemetryContext() - { - return (!VariantGroup.IsInternal && IsAzure) ? $@"{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()" : ""; - } - } - - internal class BeginOutput : BaseOutput - { - public BeginOutput(VariantGroup variantGroup) : base(variantGroup) - { - } - - public string GetProcessCustomAttributesAtRuntime() - { - return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet] -{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) -{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ -{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) -{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) -{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; - } - - private string GetLoginVerification() - { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) - { - return $@" -{Indent}{Indent}$context = Get-AzContext -{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit -{Indent}{Indent}}} -"; - } - return ""; - } - - private string GetTelemetry() - { - if (!VariantGroup.IsInternal && IsAzure) - { - return $@" -{Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() -{Indent}{Indent}}} -{Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId -{Indent}{Indent}if ($preTelemetryId -eq '') {{ -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() -{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) -{Indent}{Indent}}} else {{ -{Indent}{Indent}{Indent}$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets -{Indent}{Indent}{Indent}if ($internalCalledCmdlets -eq '') {{ -{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name -{Indent}{Indent}{Indent}}} else {{ -{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name -{Indent}{Indent}{Indent}}} -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' -{Indent}{Indent}}} -"; - } - return ""; - } - public override string ToString() => $@"begin {{ -{Indent}try {{ -{Indent}{Indent}$outBuffer = $null -{Indent}{Indent}if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {{ -{Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 -{Indent}{Indent}}} -{Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{Indent}{Indent} -{Indent}{Indent}$testPlayback = $false -{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} -{GetLoginVerification()}{GetTelemetry()} -{GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} -{GetProcessCustomAttributesAtRuntime()} -{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) -{Indent}{Indent}if ($wrappedCmd -eq $null) {{ -{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) -{Indent}{Indent}}} -{Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} -{Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) -{Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) -{Indent}}} catch {{ -{ClearTelemetryContext()} -{Indent}{Indent}throw -{Indent}}} -}} - -"; - - private string GetParameterSetToCmdletMapping() - { - var sb = new StringBuilder(); - sb.AppendLine($"{Indent}{Indent}$mapping = @{{"); - foreach (var variant in VariantGroup.Variants) - { - sb.AppendLine($@"{Indent}{Indent}{Indent}{variant.VariantName} = '{variant.PrivateModuleName}\{variant.PrivateCmdletName}';"); - } - sb.Append($"{Indent}{Indent}}}"); - return sb.ToString(); - } - - private string GetDefaultValuesStatements() - { - var defaultInfos = VariantGroup.ParameterGroups.Where(pg => pg.HasDefaultInfo).Select(pg => pg.DefaultInfo).ToArray(); - var sb = new StringBuilder(); - - foreach (var defaultInfo in defaultInfos) - { - var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); - var parameterName = defaultInfo.ParameterGroup.ParameterName; - sb.AppendLine(); - var setCondition = " "; - if (!String.IsNullOrEmpty(defaultInfo.SetCondition)) - { - setCondition = $" -and {defaultInfo.SetCondition}"; - } - //Yabo: this is bad to hard code the subscription id, but autorest load input README.md reversely (entry readme -> required readme), there are no other way to - //override default value set in required readme - if ("SubscriptionId".Equals(parameterName)) - { - sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); - sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); - sb.AppendLine($"{Indent}{Indent}{Indent}}}"); - sb.Append($"{Indent}{Indent}}}"); - } - else - { - sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); - sb.Append($"{Indent}{Indent}}}"); - } - - } - return sb.ToString(); - } - - } - - internal class ProcessOutput : BaseOutput - { - public ProcessOutput(VariantGroup variantGroup) : base(variantGroup) - { - } - - private string GetFinally() - { - if (IsAzure && !VariantGroup.IsInternal) - { - return $@" -{Indent}finally {{ -{Indent}{Indent}$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId -{Indent}{Indent}$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets -{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() -{Indent}}} -"; - } - return ""; - } - public override string ToString() => $@"process {{ -{Indent}try {{ -{Indent}{Indent}$steppablePipeline.Process($_) -{Indent}}} catch {{ -{ClearTelemetryContext()} -{Indent}{Indent}throw -{Indent}}} -{GetFinally()} -}} -"; - } - - internal class EndOutput : BaseOutput - { - public EndOutput(VariantGroup variantGroup) : base(variantGroup) - { - } - - private string GetTelemetry() - { - if (!VariantGroup.IsInternal && IsAzure) - { - return $@" -{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId -{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets -{Indent}{Indent}if ($preTelemetryId -eq '') {{ -{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() -{Indent}{Indent}}} -{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId -"; - } - return ""; - } - public override string ToString() => $@"end {{ -{Indent}try {{ -{Indent}{Indent}$steppablePipeline.End() -{GetTelemetry()} -{Indent}}} catch {{ -{ClearTelemetryContext()} -{Indent}{Indent}throw -{Indent}}} -}} -"; - } - - internal class HelpCommentOutput - { - public VariantGroup VariantGroup { get; } - public CommentInfo CommentInfo { get; } - - public HelpCommentOutput(VariantGroup variantGroup) - { - VariantGroup = variantGroup; - CommentInfo = variantGroup.CommentInfo; - } - - public override string ToString() - { - var inputs = String.Join(Environment.NewLine, CommentInfo.Inputs.Select(i => $".Inputs{Environment.NewLine}{i}")); - var inputsText = !String.IsNullOrEmpty(inputs) ? $"{Environment.NewLine}{inputs}" : String.Empty; - var outputs = String.Join(Environment.NewLine, CommentInfo.Outputs.Select(o => $".Outputs{Environment.NewLine}{o}")); - var outputsText = !String.IsNullOrEmpty(outputs) ? $"{Environment.NewLine}{outputs}" : String.Empty; - var notes = String.Join($"{Environment.NewLine}{Environment.NewLine}", VariantGroup.ComplexInterfaceInfos.Select(cii => cii.ToNoteOutput())); - var notesText = !String.IsNullOrEmpty(notes) ? $"{Environment.NewLine}.Notes{Environment.NewLine}{ComplexParameterHeader}{notes}" : String.Empty; - var relatedLinks = String.Join(Environment.NewLine, CommentInfo.RelatedLinks.Select(l => $".Link{Environment.NewLine}{l}")); - var relatedLinksText = !String.IsNullOrEmpty(relatedLinks) ? $"{Environment.NewLine}{relatedLinks}" : String.Empty; - var externalUrls = String.Join(Environment.NewLine, CommentInfo.ExternalUrls.Select(l => $".Link{Environment.NewLine}{l}")); - var externalUrlsText = !String.IsNullOrEmpty(externalUrls) ? $"{Environment.NewLine}{externalUrls}" : String.Empty; - var examples = ""; - foreach (var example in VariantGroup.HelpInfo.Examples) - { - examples = examples + ".Example" + "\r\n" + example.Code + "\r\n"; - } - return $@"<# -.Synopsis -{CommentInfo.Synopsis.ToDescriptionFormat(false)} -.Description -{CommentInfo.Description.ToDescriptionFormat(false)} -{examples}{inputsText}{outputsText}{notesText} -.Link -{CommentInfo.OnlineVersion}{relatedLinksText}{externalUrlsText} -#> -"; - } - } - - internal class ParameterDescriptionOutput - { - public string Description { get; } - - public ParameterDescriptionOutput(string description) - { - Description = description; - } - - public override string ToString() => !String.IsNullOrEmpty(Description) - ? Description.ToDescriptionFormat(false).NormalizeNewLines() - .Split(new[] { Environment.NewLine }, StringSplitOptions.None) - .Aggregate(String.Empty, (c, n) => c + $"{Indent}# {n}{Environment.NewLine}") - : String.Empty; - } - - internal class ProfileOutput - { - public string ProfileName { get; } - - public ProfileOutput(string profileName) - { - ProfileName = profileName; - } - - public override string ToString() => ProfileName != NoProfiles ? $"[{typeof(ProfileAttribute).ToPsAttributeType()}('{ProfileName}')]{Environment.NewLine}" : String.Empty; - } - - internal class DescriptionOutput - { - public string Description { get; } - - public DescriptionOutput(string description) - { - Description = description; - } - - public override string ToString() => !String.IsNullOrEmpty(Description) ? $"[{typeof(DescriptionAttribute).ToPsAttributeType()}('{Description.ToPsStringLiteral()}')]{Environment.NewLine}" : String.Empty; - } - - internal class ParameterCategoryOutput - { - public ParameterCategory Category { get; } - - public ParameterCategoryOutput(ParameterCategory category) - { - Category = category; - } - - public override string ToString() => $"{Indent}[{typeof(CategoryAttribute).ToPsAttributeType()}('{Category}')]{Environment.NewLine}"; - } - - internal class InfoOutput - { - public InfoAttribute Info { get; } - public Type ParameterType { get; } - - public InfoOutput(InfoAttribute info, Type parameterType) - { - Info = info; - ParameterType = parameterType; - } - - public override string ToString() - { - // Rendering of InfoAttribute members that are not used currently - /*var serializedNameText = Info.SerializedName != null ? $"SerializedName='{Info.SerializedName}'" : String.Empty; - var readOnlyText = Info.ReadOnly ? "ReadOnly" : String.Empty; - var descriptionText = !String.IsNullOrEmpty(Info.Description) ? $"Description='{Info.Description.ToPsStringLiteral()}'" : String.Empty;*/ - - var requiredText = Info.Required ? "Required" : String.Empty; - var unwrappedType = ParameterType.Unwrap(); - var hasValidPossibleTypes = Info.PossibleTypes.Any(pt => pt != unwrappedType); - var possibleTypesText = hasValidPossibleTypes - ? $"PossibleTypes=({Info.PossibleTypes.Select(pt => $"[{pt.ToPsType()}]").JoinIgnoreEmpty(ItemSeparator)})" - : String.Empty; - var propertyText = new[] { /*serializedNameText, */requiredText,/* readOnlyText,*/ possibleTypesText/*, descriptionText*/ }.JoinIgnoreEmpty(ItemSeparator); - return hasValidPossibleTypes ? $"{Indent}[{typeof(InfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; - } - } - - internal class PropertySyntaxOutput - { - public string ParameterName { get; } - public Type ParameterType { get; } - public bool IsMandatory { get; } - public int? Position { get; } - - public bool IncludeSpace { get; } - public bool IncludeDash { get; } - - public PropertySyntaxOutput(Parameter parameter) - { - ParameterName = parameter.ParameterName; - ParameterType = parameter.ParameterType; - IsMandatory = parameter.IsMandatory; - Position = parameter.Position; - IncludeSpace = true; - IncludeDash = true; - } - - public PropertySyntaxOutput(ComplexInterfaceInfo complexInterfaceInfo) - { - ParameterName = complexInterfaceInfo.Name; - ParameterType = complexInterfaceInfo.Type; - IsMandatory = complexInterfaceInfo.Required; - Position = null; - IncludeSpace = false; - IncludeDash = false; - } - - public override string ToString() - { - var leftOptional = !IsMandatory ? "[" : String.Empty; - var leftPositional = Position != null ? "[" : String.Empty; - var rightPositional = Position != null ? "]" : String.Empty; - var type = ParameterType != typeof(SwitchParameter) ? $" <{ParameterType.ToSyntaxTypeName()}>" : String.Empty; - var rightOptional = !IsMandatory ? "]" : String.Empty; - var space = IncludeSpace ? " " : String.Empty; - var dash = IncludeDash ? "-" : String.Empty; - return $"{space}{leftOptional}{leftPositional}{dash}{ParameterName}{rightPositional}{type}{rightOptional}"; - } - } - - internal static class PsProxyOutputExtensions - { - public const string NoParameters = "__NoParameters"; - - public const string AllParameterSets = "__AllParameterSets"; - - public const string HalfIndent = " "; - - public const string Indent = HalfIndent + HalfIndent; - - public const string ItemSeparator = ", "; - - public static readonly string ComplexParameterHeader = $"COMPLEX PARAMETER PROPERTIES{Environment.NewLine}{Environment.NewLine}To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.{Environment.NewLine}{Environment.NewLine}"; - - public static string ToPsBool(this bool value) => $"${value.ToString().ToLowerInvariant()}"; - - public static string ToPsType(this Type type) - { - var regex = new Regex(@"^(.*)`{1}\d+(.*)$"); - var typeText = type.ToString(); - var match = regex.Match(typeText); - return match.Success ? $"{match.Groups[1]}{match.Groups[2]}" : typeText; - } - - public static string ToPsAttributeType(this Type type) => type.ToPsType().RemoveEnd("Attribute"); - - // https://stackoverflow.com/a/5284606/294804 - private static string RemoveEnd(this string text, string suffix) => text.EndsWith(suffix) ? text.Substring(0, text.Length - suffix.Length) : text; - - public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new[] { "
", "\r\n", "\n" }); - - public static string ToPsStringLiteral(this string value) => value?.Replace("'", "''").Replace("‘", "''").Replace("’", "''").ToPsSingleLine().Trim() ?? String.Empty; - - public static string JoinIgnoreEmpty(this IEnumerable values, string separator) => String.Join(separator, values?.Where(v => !String.IsNullOrEmpty(v))); - - // https://stackoverflow.com/a/41961738/294804 - public static string ToSyntaxTypeName(this Type type) - { - if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) - { - return $"{type.GetGenericArguments().First().ToSyntaxTypeName()}?"; - } - - if (type.IsGenericType) - { - var genericTypes = String.Join(ItemSeparator, type.GetGenericArguments().Select(ToSyntaxTypeName)); - return $"{type.Name.Split('`').First()}<{genericTypes}>"; - } - - return type.Name; - } - - public static OutputTypeOutput ToOutputTypeOutput(this IEnumerable outputTypes) => new OutputTypeOutput(outputTypes); - - public static CmdletBindingOutput ToCmdletBindingOutput(this VariantGroup variantGroup) => new CmdletBindingOutput(variantGroup); - - public static ParameterOutput ToParameterOutput(this Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) => new ParameterOutput(parameter, hasMultipleVariantsInVariantGroup, hasAllVariantsInParameterGroup); - - public static AliasOutput ToAliasOutput(this string[] aliases, bool includeIndent = false) => new AliasOutput(aliases, includeIndent); - - public static ValidateNotNullOutput ToValidateNotNullOutput(this bool hasValidateNotNull) => new ValidateNotNullOutput(hasValidateNotNull); - - public static AllowEmptyArrayOutput ToAllowEmptyArray(this bool hasAllowEmptyArray) => new AllowEmptyArrayOutput(hasAllowEmptyArray); - - public static ArgumentCompleterOutput ToArgumentCompleterOutput(this CompleterInfo completerInfo) => (completerInfo is PSArgumentCompleterInfo psArgumentCompleterInfo) ? psArgumentCompleterInfo.ToArgumentCompleterOutput() : new ArgumentCompleterOutput(completerInfo); - - public static PSArgumentCompleterOutput ToArgumentCompleterOutput(this PSArgumentCompleterInfo completerInfo) => new PSArgumentCompleterOutput(completerInfo); - - public static DefaultInfoOutput ToDefaultInfoOutput(this ParameterGroup parameterGroup) => new DefaultInfoOutput(parameterGroup); - - public static ParameterTypeOutput ToParameterTypeOutput(this Type parameterType) => new ParameterTypeOutput(parameterType); - - public static ParameterNameOutput ToParameterNameOutput(this string parameterName, bool isLast) => new ParameterNameOutput(parameterName, isLast); - - public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); - - public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup); - - public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(variantGroup); - - public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); - - public static ParameterDescriptionOutput ToParameterDescriptionOutput(this string description) => new ParameterDescriptionOutput(description); - - public static ProfileOutput ToProfileOutput(this string profileName) => new ProfileOutput(profileName); - - public static DescriptionOutput ToDescriptionOutput(this string description) => new DescriptionOutput(description); - - public static ParameterCategoryOutput ToParameterCategoryOutput(this ParameterCategory category) => new ParameterCategoryOutput(category); - - public static PropertySyntaxOutput ToPropertySyntaxOutput(this Parameter parameter) => new PropertySyntaxOutput(parameter); - - public static PropertySyntaxOutput ToPropertySyntaxOutput(this ComplexInterfaceInfo complexInterfaceInfo) => new PropertySyntaxOutput(complexInterfaceInfo); - - public static InfoOutput ToInfoOutput(this InfoAttribute info, Type parameterType) => new InfoOutput(info, parameterType); - - public static string ToNoteOutput(this ComplexInterfaceInfo complexInterfaceInfo, string currentIndent = "", bool includeDashes = false, bool includeBackticks = false, bool isFirst = true) - { - string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool backtick) => - $"{indent}{(dash ? "- " : String.Empty)}{(backtick ? "`" : String.Empty)}{info.ToPropertySyntaxOutput()}{(backtick ? "`" : String.Empty)}: {info.Description}"; - - var nested = complexInterfaceInfo.NestedInfos.Select(ni => - { - var nestedIndent = $"{currentIndent}{HalfIndent}"; - return ni.IsComplexInterface - ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) - : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); - }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, includeBackticks)); - return String.Join(Environment.NewLine, nested); - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs deleted file mode 100644 index 08c1c70f68df..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ /dev/null @@ -1,549 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Management.Automation; -using System.Reflection; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyOutputExtensions; -using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell.PsProxyTypeExtensions; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal class ProfileGroup - { - public string ProfileName { get; } - public Variant[] Variants { get; } - public string ProfileFolder { get; } - - public ProfileGroup(Variant[] variants, string profileName = NoProfiles) - { - ProfileName = profileName; - Variants = variants; - ProfileFolder = ProfileName != NoProfiles ? ProfileName : String.Empty; - } - } - - internal class VariantGroup - { - public string ModuleName { get; } - - public string RootModuleName { get => @""; } - public string CmdletName { get; } - public string CmdletVerb { get; } - public string CmdletNoun { get; } - public string ProfileName { get; } - public Variant[] Variants { get; } - public ParameterGroup[] ParameterGroups { get; } - public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } - - public string[] Aliases { get; } - public PSTypeName[] OutputTypes { get; } - public bool SupportsShouldProcess { get; } - public bool SupportsPaging { get; } - public string DefaultParameterSetName { get; } - public bool HasMultipleVariants { get; } - public PsHelpInfo HelpInfo { get; } - public bool IsGenerated { get; } - public bool IsInternal { get; } - public bool IsModelCmdlet { get; } - public string OutputFolder { get; } - public string FileName { get; } - public string FilePath { get; } - - public CommentInfo CommentInfo { get; } - - public VariantGroup(string moduleName, string cmdletName, Variant[] variants, string outputFolder, string profileName = NoProfiles, bool isTest = false, bool isInternal = false) - { - ModuleName = moduleName; - CmdletName = cmdletName; - var cmdletNameParts = CmdletName.Split('-'); - CmdletVerb = cmdletNameParts.First(); - CmdletNoun = cmdletNameParts.Last(); - ProfileName = profileName; - Variants = variants; - ParameterGroups = Variants.ToParameterGroups().OrderBy(pg => pg.OrderCategory).ThenByDescending(pg => pg.IsMandatory).ToArray(); - var aliasDuplicates = ParameterGroups.SelectMany(pg => pg.Aliases) - //https://stackoverflow.com/a/18547390/294804 - .GroupBy(a => a).Where(g => g.Count() > 1).Select(g => g.Key).ToArray(); - if (aliasDuplicates.Any()) - { - throw new ParsingMetadataException($"The alias(es) [{String.Join(", ", aliasDuplicates)}] are defined on multiple parameters for cmdlet '{CmdletName}', which is not supported."); - } - ComplexInterfaceInfos = ParameterGroups.Where(pg => !pg.DontShow && pg.IsComplexInterface).OrderBy(pg => pg.ParameterName).Select(pg => pg.ComplexInterfaceInfo).ToArray(); - - Aliases = Variants.SelectMany(v => v.Attributes).ToAliasNames().ToArray(); - OutputTypes = Variants.SelectMany(v => v.Info.OutputType).Where(ot => ot.Type != null).GroupBy(ot => ot.Type).Select(otg => otg.First()).ToArray(); - SupportsShouldProcess = Variants.Any(v => v.SupportsShouldProcess); - SupportsPaging = Variants.Any(v => v.SupportsPaging); - DefaultParameterSetName = DetermineDefaultParameterSetName(); - HasMultipleVariants = Variants.Length > 1; - HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); - IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); - IsInternal = isInternal; - IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); - OutputFolder = outputFolder; - FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; - FilePath = Path.Combine(OutputFolder, FileName); - - CommentInfo = new CommentInfo(this); - } - - private string DetermineDefaultParameterSetName() - { - var defaultParameterSet = Variants - .Select(v => v.Metadata.DefaultParameterSetName) - .LastOrDefault(dpsn => dpsn.IsValidDefaultParameterSetName()); - - if (String.IsNullOrEmpty(defaultParameterSet)) - { - var variantParamCountGroups = Variants - .Where(v => !v.IsNotSuggestDefaultParameterSet) - .Select(v => ( - variant: v.VariantName, - paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), - isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) - .GroupBy(vpc => vpc.isSimple) - .ToArray(); - if (variantParamCountGroups.Length == 0) - { - variantParamCountGroups = Variants - .Select(v => ( - variant: v.VariantName, - paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), - isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) - .GroupBy(vpc => vpc.isSimple) - .ToArray(); - } - var variantParameterCounts = (variantParamCountGroups.Any(g => g.Key) ? variantParamCountGroups.Where(g => g.Key) : variantParamCountGroups).SelectMany(g => g).ToArray(); - var smallestParameterCount = variantParameterCounts.Min(vpc => vpc.paramCount); - defaultParameterSet = variantParameterCounts.First(vpc => vpc.paramCount == smallestParameterCount).variant; - } - - return defaultParameterSet; - } - } - - internal class Variant - { - public string CmdletName { get; } - public string VariantName { get; } - public CommandInfo Info { get; } - public CommandMetadata Metadata { get; } - public PsHelpInfo HelpInfo { get; } - public bool HasParameterSets { get; } - public bool IsFunction { get; } - public string PrivateModuleName { get; } - public string PrivateCmdletName { get; } - public bool SupportsShouldProcess { get; } - public bool SupportsPaging { get; } - - public Attribute[] Attributes { get; } - public Parameter[] Parameters { get; } - public Parameter[] CmdletOnlyParameters { get; } - public bool IsInternal { get; } - public bool IsModelCmdlet { get; } - public bool IsDoNotExport { get; } - public bool IsNotSuggestDefaultParameterSet { get; } - public string[] Profiles { get; } - - public Variant(string cmdletName, string variantName, CommandInfo info, CommandMetadata metadata, bool hasParameterSets = false, PsHelpInfo helpInfo = null) - { - CmdletName = cmdletName; - VariantName = variantName; - Info = info; - HelpInfo = helpInfo ?? new PsHelpInfo(); - Metadata = metadata; - HasParameterSets = hasParameterSets; - IsFunction = Info.CommandType == CommandTypes.Function; - PrivateModuleName = Info.Source; - PrivateCmdletName = Metadata.Name; - SupportsShouldProcess = Metadata.SupportsShouldProcess; - SupportsPaging = Metadata.SupportsPaging; - - Attributes = this.ToAttributes(); - Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); - IsInternal = Attributes.OfType().Any(); - IsDoNotExport = Attributes.OfType().Any(); - IsModelCmdlet = Attributes.OfType().Any(); - IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); - CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); - Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); - } - } - - internal class ParameterGroup - { - public string ParameterName { get; } - public Parameter[] Parameters { get; } - - public string[] VariantNames { get; } - public string[] AllVariantNames { get; } - public bool HasAllVariants { get; } - public Type ParameterType { get; } - public string Description { get; } - - public string[] Aliases { get; } - public bool HasValidateNotNull { get; } - public bool HasAllowEmptyArray { get; } - public CompleterInfo CompleterInfo { get; } - public DefaultInfo DefaultInfo { get; } - public bool HasDefaultInfo { get; } - public ParameterCategory OrderCategory { get; } - public bool DontShow { get; } - public bool IsMandatory { get; } - public bool SupportsWildcards { get; } - public bool IsComplexInterface { get; } - public ComplexInterfaceInfo ComplexInterfaceInfo { get; } - public InfoAttribute InfoAttribute { get; } - - public int? FirstPosition { get; } - public bool ValueFromPipeline { get; } - public bool ValueFromPipelineByPropertyName { get; } - public bool IsInputType { get; } - - public ParameterGroup(string parameterName, Parameter[] parameters, string[] allVariantNames) - { - ParameterName = parameterName; - Parameters = parameters; - - VariantNames = Parameters.Select(p => p.VariantName).ToArray(); - AllVariantNames = allVariantNames; - HasAllVariants = VariantNames.Any(vn => vn == AllParameterSets) || !AllVariantNames.Except(VariantNames).Any(); - var types = Parameters.Select(p => p.ParameterType).Distinct().ToArray(); - if (types.Length > 1) - { - throw new ParsingMetadataException($"The parameter '{ParameterName}' has multiple parameter types [{String.Join(", ", types.Select(t => t.Name))}] defined, which is not supported."); - } - ParameterType = types.First(); - Description = Parameters.Select(p => p.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); - - Aliases = Parameters.SelectMany(p => p.Attributes).ToAliasNames().ToArray(); - HasValidateNotNull = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); - HasAllowEmptyArray = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); - CompleterInfo = Parameters.Select(p => p.CompleterInfoAttribute).FirstOrDefault()?.ToCompleterInfo() - ?? Parameters.Select(p => p.PSArgumentCompleterAttribute).FirstOrDefault()?.ToPSArgumentCompleterInfo() - ?? Parameters.Select(p => p.ArgumentCompleterAttribute).FirstOrDefault()?.ToCompleterInfo(); - DefaultInfo = Parameters.Select(p => p.DefaultInfoAttribute).FirstOrDefault()?.ToDefaultInfo(this) - ?? Parameters.Select(p => p.DefaultValueAttribute).FirstOrDefault(dv => dv != null)?.ToDefaultInfo(this); - HasDefaultInfo = DefaultInfo != null && !String.IsNullOrEmpty(DefaultInfo.Script); - // When DefaultInfo is present, force all parameters from this group to be optional. - if (HasDefaultInfo) - { - foreach (var parameter in Parameters) - { - parameter.IsMandatory = false; - } - } - OrderCategory = Parameters.Select(p => p.OrderCategory).Distinct().DefaultIfEmpty(ParameterCategory.Body).Min(); - DontShow = Parameters.All(p => p.DontShow); - IsMandatory = HasAllVariants && Parameters.Any(p => p.IsMandatory); - SupportsWildcards = Parameters.Any(p => p.SupportsWildcards); - IsComplexInterface = Parameters.Any(p => p.IsComplexInterface); - ComplexInterfaceInfo = Parameters.Where(p => p.IsComplexInterface).Select(p => p.ComplexInterfaceInfo).FirstOrDefault(); - InfoAttribute = Parameters.Select(p => p.InfoAttribute).First(); - - FirstPosition = Parameters.Select(p => p.Position).FirstOrDefault(p => p != null); - ValueFromPipeline = Parameters.Any(p => p.ValueFromPipeline); - ValueFromPipelineByPropertyName = Parameters.Any(p => p.ValueFromPipelineByPropertyName); - IsInputType = ValueFromPipeline || ValueFromPipelineByPropertyName; - } - } - - internal class Parameter - { - public string VariantName { get; } - public string ParameterName { get; } - public ParameterMetadata Metadata { get; } - public PsParameterHelpInfo HelpInfo { get; } - public Type ParameterType { get; } - public Attribute[] Attributes { get; } - public ParameterCategory[] Categories { get; } - public ParameterCategory OrderCategory { get; } - public PSDefaultValueAttribute DefaultValueAttribute { get; } - public DefaultInfoAttribute DefaultInfoAttribute { get; } - public ParameterAttribute ParameterAttribute { get; } - public bool SupportsWildcards { get; } - public CompleterInfoAttribute CompleterInfoAttribute { get; } - public ArgumentCompleterAttribute ArgumentCompleterAttribute { get; } - public PSArgumentCompleterAttribute PSArgumentCompleterAttribute { get; } - - public bool ValueFromPipeline { get; } - public bool ValueFromPipelineByPropertyName { get; } - public int? Position { get; } - public bool DontShow { get; } - public bool IsMandatory { get; set; } - - public InfoAttribute InfoAttribute { get; } - public ComplexInterfaceInfo ComplexInterfaceInfo { get; } - public bool IsComplexInterface { get; } - public string Description { get; } - - public Parameter(string variantName, string parameterName, ParameterMetadata metadata, PsParameterHelpInfo helpInfo = null) - { - VariantName = variantName; - ParameterName = parameterName; - Metadata = metadata; - HelpInfo = helpInfo ?? new PsParameterHelpInfo(); - - Attributes = Metadata.Attributes.ToArray(); - ParameterType = Attributes.OfType().FirstOrDefault()?.Type ?? Metadata.ParameterType; - Categories = Attributes.OfType().SelectMany(ca => ca.Categories).Distinct().ToArray(); - OrderCategory = Categories.DefaultIfEmpty(ParameterCategory.Body).Min(); - DefaultValueAttribute = Attributes.OfType().FirstOrDefault(); - DefaultInfoAttribute = Attributes.OfType().FirstOrDefault(); - ParameterAttribute = Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == VariantName || pa.ParameterSetName == AllParameterSets); - if (ParameterAttribute == null) - { - throw new ParsingMetadataException($"The variant '{VariantName}' has multiple parameter sets defined, which is not supported."); - } - SupportsWildcards = Attributes.OfType().Any(); - CompleterInfoAttribute = Attributes.OfType().FirstOrDefault(); - PSArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(); - ArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(attr => !attr.GetType().Equals(typeof(PSArgumentCompleterAttribute))); - - ValueFromPipeline = ParameterAttribute.ValueFromPipeline; - ValueFromPipelineByPropertyName = ParameterAttribute.ValueFromPipelineByPropertyName; - Position = ParameterAttribute.Position == Int32.MinValue ? (int?)null : ParameterAttribute.Position; - DontShow = ParameterAttribute.DontShow; - IsMandatory = ParameterAttribute.Mandatory; - - var complexParameterName = ParameterName.ToUpperInvariant(); - var complexMessage = $"{Environment.NewLine}"; - var description = ParameterAttribute.HelpMessage.NullIfEmpty() ?? HelpInfo.Description.NullIfEmpty() ?? InfoAttribute?.Description.NullIfEmpty() ?? String.Empty; - // Remove the complex type message as it will be reinserted if this is a complex type - description = description.NormalizeNewLines(); - // Make an InfoAttribute for processing only if one isn't provided - InfoAttribute = Attributes.OfType().FirstOrDefault() ?? new InfoAttribute { PossibleTypes = new[] { ParameterType.Unwrap() }, Required = IsMandatory }; - // Set the description if the InfoAttribute does not have one since they are exported without a description - InfoAttribute.Description = String.IsNullOrEmpty(InfoAttribute.Description) ? description : InfoAttribute.Description; - ComplexInterfaceInfo = InfoAttribute.ToComplexInterfaceInfo(complexParameterName, ParameterType, true); - IsComplexInterface = ComplexInterfaceInfo.IsComplexInterface; - Description = $"{description}{(IsComplexInterface ? complexMessage : String.Empty)}"; - } - } - - internal class ComplexInterfaceInfo - { - public InfoAttribute InfoAttribute { get; } - - public string Name { get; } - public Type Type { get; } - public bool Required { get; } - public bool ReadOnly { get; } - public string Description { get; } - - public ComplexInterfaceInfo[] NestedInfos { get; } - public bool IsComplexInterface { get; } - - public ComplexInterfaceInfo(string name, Type type, InfoAttribute infoAttribute, bool? required, List seenTypes) - { - Name = name; - Type = type; - InfoAttribute = infoAttribute; - - Required = required ?? InfoAttribute.Required; - ReadOnly = InfoAttribute.ReadOnly; - Description = InfoAttribute.Description.ToPsSingleLine(); - - var unwrappedType = Type.Unwrap(); - var hasBeenSeen = seenTypes?.Contains(unwrappedType) ?? false; - (seenTypes ?? (seenTypes = new List())).Add(unwrappedType); - NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[] { } : - unwrappedType.GetInterfaces() - .Concat(InfoAttribute.PossibleTypes) - .SelectMany(pt => pt.GetProperties() - .SelectMany(pi => pi.GetCustomAttributes(true).OfType() - .Select(ia => ia.ToComplexInterfaceInfo(pi.Name, pi.PropertyType, seenTypes: seenTypes)))) - .Where(cii => !cii.ReadOnly).OrderByDescending(cii => cii.Required).ToArray(); - // https://stackoverflow.com/a/503359/294804 - var associativeArrayInnerType = Type.GetInterfaces() - .FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>)) - ?.GetTypeInfo().GetGenericArguments().First(); - if (!hasBeenSeen && associativeArrayInnerType != null) - { - var anyInfo = new InfoAttribute { Description = "This indicates any property can be added to this object." }; - NestedInfos = NestedInfos.Prepend(anyInfo.ToComplexInterfaceInfo("(Any)", associativeArrayInnerType)).ToArray(); - } - IsComplexInterface = NestedInfos.Any(); - } - } - - internal class CommentInfo - { - public string Description { get; } - public string Synopsis { get; } - - public string[] Examples { get; } - public string[] Inputs { get; } - public string[] Outputs { get; } - - public string OnlineVersion { get; } - public string[] RelatedLinks { get; } - public string[] ExternalUrls { get; } - - private const string HelpLinkPrefix = @"https://learn.microsoft.com/powershell/module/"; - - public CommentInfo(VariantGroup variantGroup) - { - var helpInfo = variantGroup.HelpInfo; - Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() - ?? helpInfo.Description.EmptyIfNull(); - Description = PsHelpInfo.CapitalizeFirstLetter(Description); - // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. - var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; - Synopsis = synopsis.NullIfEmpty() ?? Description; - - Examples = helpInfo.Examples.Select(rl => rl.Code).ToArray(); - - Inputs = (variantGroup.ParameterGroups.Where(pg => pg.IsInputType).Select(pg => pg.ParameterType.FullName).ToArray().NullIfEmpty() ?? - helpInfo.InputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(it => it.Name).ToArray()) - .Where(i => i != "None").Distinct().OrderBy(i => i).ToArray(); - Outputs = (variantGroup.OutputTypes.Select(ot => ot.Type.FullName).ToArray().NullIfEmpty() ?? - helpInfo.OutputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(ot => ot.Name).ToArray()) - .Where(o => o != "None").Distinct().OrderBy(o => o).ToArray(); - - // Use root module name in the help link - var moduleName = variantGroup.RootModuleName == "" ? variantGroup.ModuleName.ToLowerInvariant() : variantGroup.RootModuleName.ToLowerInvariant(); - OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{moduleName}/{variantGroup.CmdletName.ToLowerInvariant()}"; - RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray(); - - // Get external urls from attribute - ExternalUrls = variantGroup.Variants.SelectMany(v => v.Attributes).OfType()?.Select(e => e.Url)?.Distinct()?.ToArray(); - } - } - - internal class CompleterInfo - { - public string Name { get; } - public string Description { get; } - public string Script { get; } - public Type Type { get; } - public bool IsTypeCompleter { get; } - - public CompleterInfo(CompleterInfoAttribute infoAttribute) - { - Name = infoAttribute.Name; - Description = infoAttribute.Description; - Script = infoAttribute.Script; - } - - public CompleterInfo(ArgumentCompleterAttribute completerAttribute) - { - Script = completerAttribute.ScriptBlock?.ToString(); - if (completerAttribute.Type != null) - { - Type = completerAttribute.Type; - IsTypeCompleter = true; - } - } - } - - internal class PSArgumentCompleterInfo : CompleterInfo - { - public string[] ResourceTypes { get; } - - public PSArgumentCompleterInfo(PSArgumentCompleterAttribute completerAttribute) : base(completerAttribute) - { - ResourceTypes = completerAttribute.ResourceTypes; - } - } - - internal class DefaultInfo - { - public string Name { get; } - public string Description { get; } - public string Script { get; } - public string SetCondition { get; } - public ParameterGroup ParameterGroup { get; } - - public DefaultInfo(DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) - { - Name = infoAttribute.Name; - Description = infoAttribute.Description; - Script = infoAttribute.Script; - SetCondition = infoAttribute.SetCondition; - ParameterGroup = parameterGroup; - } - - public DefaultInfo(PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) - { - Description = defaultValueAttribute.Help; - ParameterGroup = parameterGroup; - if (defaultValueAttribute.Value != null) - { - Script = defaultValueAttribute.Value.ToString(); - } - } - } - - internal static class PsProxyTypeExtensions - { - public const string NoProfiles = "__NoProfiles"; - - public static bool IsValidDefaultParameterSetName(this string parameterSetName) => - !String.IsNullOrEmpty(parameterSetName) && parameterSetName != AllParameterSets; - - public static Variant[] ToVariants(this CommandInfo info, PsHelpInfo helpInfo) - { - var metadata = new CommandMetadata(info); - var privateCmdletName = metadata.Name.Split('!').First(); - var parts = privateCmdletName.Split('_'); - return parts.Length > 1 - ? new[] { new Variant(parts[0], parts[1], info, metadata, helpInfo: helpInfo) } - // Process multiple parameter sets, so we declare a variant per parameter set. - : info.ParameterSets.Select(ps => new Variant(privateCmdletName, ps.Name, info, metadata, true, helpInfo)).ToArray(); - } - - public static Variant[] ToVariants(this CmdletAndHelpInfo info) => info.CommandInfo.ToVariants(info.HelpInfo); - - public static Variant[] ToVariants(this CommandInfo info, PSObject helpInfo = null) => info.ToVariants(helpInfo?.ToPsHelpInfo()); - - public static Parameter[] ToParameters(this Variant variant) - { - var parameters = variant.Metadata.Parameters.AsEnumerable(); - var parameterHelp = variant.HelpInfo.Parameters.AsEnumerable(); - - if (variant.HasParameterSets) - { - parameters = parameters.Where(p => p.Value.ParameterSets.Keys.Any(k => k == variant.VariantName || k == AllParameterSets)); - parameterHelp = parameterHelp.Where(ph => (!ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)) && ph.Name != "IncludeTotalCount"); - } - var result = parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))); - if (variant.SupportsPaging) - { - // If supportsPaging is set, we will need to add First and Skip parameters since they are treated as common parameters which as not contained on Metadata>parameters - variant.Info.Parameters["First"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Gets only the first 'n' objects."; - variant.Info.Parameters["Skip"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Ignores the first 'n' objects and then gets the remaining objects."; - result = result.Append(new Parameter(variant.VariantName, "First", variant.Info.Parameters["First"], parameterHelp.FirstOrDefault(ph => ph.Name == "First"))); - result = result.Append(new Parameter(variant.VariantName, "Skip", variant.Info.Parameters["Skip"], parameterHelp.FirstOrDefault(ph => ph.Name == "Skip"))); - } - return result.ToArray(); - } - - public static Attribute[] ToAttributes(this Variant variant) => variant.IsFunction - ? ((FunctionInfo)variant.Info).ScriptBlock.Attributes.ToArray() - : variant.Metadata.CommandType.GetCustomAttributes(false).Cast().ToArray(); - - public static IEnumerable ToParameterGroups(this Variant[] variants) - { - var allVariantNames = variants.Select(vg => vg.VariantName).ToArray(); - return variants - .SelectMany(v => v.Parameters) - .GroupBy(p => p.ParameterName, StringComparer.InvariantCultureIgnoreCase) - .Select(pg => new ParameterGroup(pg.Key, pg.Select(p => p).ToArray(), allVariantNames)); - } - - public static ComplexInterfaceInfo ToComplexInterfaceInfo(this InfoAttribute infoAttribute, string name, Type type, bool? required = null, List seenTypes = null) - => new ComplexInterfaceInfo(name, type, infoAttribute, required, seenTypes); - - public static CompleterInfo ToCompleterInfo(this CompleterInfoAttribute infoAttribute) => new CompleterInfo(infoAttribute); - public static CompleterInfo ToCompleterInfo(this ArgumentCompleterAttribute completerAttribute) => new CompleterInfo(completerAttribute); - public static PSArgumentCompleterInfo ToPSArgumentCompleterInfo(this PSArgumentCompleterAttribute completerAttribute) => new PSArgumentCompleterInfo(completerAttribute); - public static DefaultInfo ToDefaultInfo(this DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) => new DefaultInfo(infoAttribute, parameterGroup); - public static DefaultInfo ToDefaultInfo(this PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) => new DefaultInfo(defaultValueAttribute, parameterGroup); - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsAttributes.cs deleted file mode 100644 index 28c934111463..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ /dev/null @@ -1,136 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor -{ - [AttributeUsage(AttributeTargets.Class)] - public class DescriptionAttribute : Attribute - { - public string Description { get; } - - public DescriptionAttribute(string description) - { - Description = description; - } - } - - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] - public class DoNotExportAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] - public class ModelCmdletAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Class)] - public class InternalExportAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Class)] - public class GeneratedAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] - public class DoNotFormatAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Class)] - public class ProfileAttribute : Attribute - { - public string[] Profiles { get; } - - public ProfileAttribute(params string[] profiles) - { - Profiles = profiles; - } - } - - [AttributeUsage(AttributeTargets.Class)] - public class HttpPathAttribute : Attribute - { - public string Path { get; set; } - public string ApiVersion { get; set; } - } - - [AttributeUsage(AttributeTargets.Class)] - public class NotSuggestDefaultParameterSetAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public class CategoryAttribute : Attribute - { - public ParameterCategory[] Categories { get; } - - public CategoryAttribute(params ParameterCategory[] categories) - { - Categories = categories; - } - } - - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public class ExportAsAttribute : Attribute - { - public Type Type { get; set; } - - public ExportAsAttribute(Type type) - { - Type = type; - } - } - - public enum ParameterCategory - { - // Note: Order is significant - Uri = 0, - Path, - Query, - Header, - Cookie, - Body, - Azure, - Runtime - } - - [AttributeUsage(AttributeTargets.Property)] - public class OriginAttribute : Attribute - { - public PropertyOrigin Origin { get; } - - public OriginAttribute(PropertyOrigin origin) - { - Origin = origin; - } - } - - public enum PropertyOrigin - { - // Note: Order is significant - Inherited = 0, - Owned, - Inlined - } - - [AttributeUsage(AttributeTargets.Property)] - public class ConstantAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Property)] - public class FormatTableAttribute : Attribute - { - public int Index { get; set; } = -1; - public bool HasIndex => Index != -1; - public string Label { get; set; } - public int Width { get; set; } = -1; - public bool HasWidth => Width != -1; - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsExtensions.cs deleted file mode 100644 index 1fb77b6d8d1d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsExtensions.cs +++ /dev/null @@ -1,176 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Reflection; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal static class PsExtensions - { - public static PSObject AddMultipleTypeNameIntoPSObject(this object obj, string multipleTag = "#Multiple") - { - var psObj = new PSObject(obj); - psObj.TypeNames.Insert(0, $"{psObj.TypeNames[0]}{multipleTag}"); - return psObj; - } - - // https://stackoverflow.com/a/863944/294804 - // https://stackoverflow.com/a/4452598/294804 - // https://stackoverflow.com/a/28701974/294804 - // Note: This will unwrap nested collections, but we don't generate nested collections. - public static Type Unwrap(this Type type) - { - if (type.IsArray) - { - return type.GetElementType().Unwrap(); - } - - var typeInfo = type.GetTypeInfo(); - if (typeInfo.IsGenericType - && (typeInfo.GetGenericTypeDefinition() == typeof(Nullable<>) || typeof(IEnumerable<>).IsAssignableFrom(type))) - { - return typeInfo.GetGenericArguments().First().Unwrap(); - } - - return type; - } - - // https://stackoverflow.com/a/863944/294804 - private static bool IsSimple(this Type type) - { - var typeInfo = type.GetTypeInfo(); - return typeInfo.IsPrimitive - || typeInfo.IsEnum - || type == typeof(string) - || type == typeof(decimal); - } - - // https://stackoverflow.com/a/32025393/294804 - private static bool HasImplicitConversion(this Type baseType, Type targetType) => - baseType.GetMethods(BindingFlags.Public | BindingFlags.Static) - .Where(mi => mi.Name == "op_Implicit" && mi.ReturnType == targetType) - .Any(mi => mi.GetParameters().FirstOrDefault()?.ParameterType == baseType); - - public static bool IsPsSimple(this Type type) - { - var unwrappedType = type.Unwrap(); - return unwrappedType.IsSimple() - || unwrappedType == typeof(SwitchParameter) - || unwrappedType == typeof(Hashtable) - || unwrappedType == typeof(PSCredential) - || unwrappedType == typeof(ScriptBlock) - || unwrappedType == typeof(DateTime) - || unwrappedType == typeof(Uri) - || unwrappedType.HasImplicitConversion(typeof(string)); - } - - public static string ToPsList(this IEnumerable items) => String.Join(", ", items.Select(i => $"'{i}'")); - - public static IEnumerable ToAliasNames(this IEnumerable attributes) => attributes.OfType().SelectMany(aa => aa.AliasNames).Distinct(); - - public static bool IsArrayAndElementTypeIsT(this object item) - { - var itemType = item.GetType(); - var tType = typeof(T); - return itemType.IsArray && !tType.IsArray && tType.IsAssignableFrom(itemType.GetElementType()); - } - - public static bool IsTArrayAndElementTypeIsItem(this object item) - { - var itemType = item.GetType(); - var tType = typeof(T); - return !itemType.IsArray && tType.IsArray && (tType.GetElementType()?.IsAssignableFrom(itemType) ?? false); - } - - public static bool IsTypeOrArrayOfType(this object item) => item is T || item.IsArrayAndElementTypeIsT() || item.IsTArrayAndElementTypeIsItem(); - - public static T NormalizeArrayType(this object item) - { - if (item is T result) - { - return result; - } - - if (item.IsArrayAndElementTypeIsT()) - { - var array = (T[])Convert.ChangeType(item, typeof(T[])); - return array.FirstOrDefault(); - } - - if (item.IsTArrayAndElementTypeIsItem()) - { - var tType = typeof(T); - var array = Array.CreateInstance(tType.GetElementType(), 1); - array.SetValue(item, 0); - return (T)Convert.ChangeType(array, tType); - } - - return default(T); - } - - public static T GetNestedProperty(this PSObject psObject, params string[] names) => psObject.Properties.GetNestedProperty(names); - - public static T GetNestedProperty(this PSMemberInfoCollection properties, params string[] names) - { - var lastName = names.Last(); - var nestedProperties = names.Take(names.Length - 1).Aggregate(properties, (p, n) => p?.GetProperty(n)?.Properties); - return nestedProperties != null ? nestedProperties.GetProperty(lastName) : default(T); - } - - public static T GetProperty(this PSObject psObject, string name) => psObject.Properties.GetProperty(name); - - public static T GetProperty(this PSMemberInfoCollection properties, string name) - { - switch (properties[name]?.Value) - { - case PSObject psObject when psObject.BaseObject is PSCustomObject && psObject.ImmediateBaseObject.IsTypeOrArrayOfType(): - return psObject.ImmediateBaseObject.NormalizeArrayType(); - case PSObject psObject when psObject.BaseObject.IsTypeOrArrayOfType(): - return psObject.BaseObject.NormalizeArrayType(); - case object value when value.IsTypeOrArrayOfType(): - return value.NormalizeArrayType(); - default: - return default(T); - } - } - - public static IEnumerable RunScript(this PSCmdlet cmdlet, string script) - => PsHelpers.RunScript(cmdlet.InvokeCommand, script); - - public static void RunScript(this PSCmdlet cmdlet, string script) - => cmdlet.RunScript(script); - - public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, string script) - => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, script); - - public static void RunScript(this EngineIntrinsics engineIntrinsics, string script) - => engineIntrinsics.RunScript(script); - - public static IEnumerable RunScript(this PSCmdlet cmdlet, ScriptBlock block) - => PsHelpers.RunScript(cmdlet.InvokeCommand, block.ToString()); - - public static void RunScript(this PSCmdlet cmdlet, ScriptBlock block) - => cmdlet.RunScript(block.ToString()); - - public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) - => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, block.ToString()); - - public static void RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) - => engineIntrinsics.RunScript(block.ToString()); - - /// - /// Returns if a parameter should be hidden by checking for . - /// - /// A PowerShell parameter. - public static bool IsHidden(this Parameter parameter) - { - return parameter.Attributes.Any(attr => attr is DoNotExportAttribute); - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsHelpers.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsHelpers.cs deleted file mode 100644 index a29a4c20f50b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/PsHelpers.cs +++ /dev/null @@ -1,105 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Management.Automation; -using Pwsh = System.Management.Automation.PowerShell; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal static class PsHelpers - { - public static IEnumerable RunScript(string script) - => Pwsh.Create().AddScript(script).Invoke(); - - public static void RunScript(string script) - => RunScript(script); - - public static IEnumerable RunScript(CommandInvocationIntrinsics cii, string script) - => cii.InvokeScript(script).Select(o => o?.BaseObject).Where(o => o != null).OfType(); - - public static void RunScript(CommandInvocationIntrinsics cii, string script) - => RunScript(cii, script); - - public static IEnumerable GetModuleCmdlets(PSCmdlet cmdlet, params string[] modulePaths) - { - var getCmdletsCommand = String.Join(" + ", modulePaths.Select(mp => $"(Get-Command -Module (Import-Module '{mp}' -PassThru))")); - return (cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand)) - .Where(ci => ci.CommandType != CommandTypes.Alias); - } - - public static IEnumerable GetModuleCmdlets(params string[] modulePaths) - => GetModuleCmdlets(null, modulePaths); - - public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) - { - // https://stackoverflow.com/a/40969712/294804 - var wrappedFolder = scriptFolder.Contains("'") ? $@"""{scriptFolder}""" : $@"'{scriptFolder}'"; - var getCmdletsCommand = $@" -$currentFunctions = Get-ChildItem function: -Get-ChildItem -Path {wrappedFolder} -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} -Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} -"; - return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); - } - - public static IEnumerable GetScriptCmdlets(string scriptFolder) - => GetScriptCmdlets(null, scriptFolder); - - public static IEnumerable GetScriptHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) - { - var importModules = String.Join(Environment.NewLine, modulePaths.Select(mp => $"Import-Module '{mp}'")); - var getHelpCommand = $@" -$currentFunctions = Get-ChildItem function: -{importModules} -Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} | ForEach-Object {{ Get-Help -Name $_.Name -Full }} -"; - return cmdlet?.RunScript(getHelpCommand) ?? RunScript(getHelpCommand); - } - - public static IEnumerable GetScriptHelpInfo(params string[] modulePaths) - => GetScriptHelpInfo(null, modulePaths); - - public static IEnumerable GetModuleCmdletsAndHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) - { - var getCmdletAndHelp = String.Join(" + ", modulePaths.Select(mp => - $@"(Get-Command -Module (Import-Module '{mp}' -PassThru) | Where-Object {{ $_.CommandType -ne 'Alias' }} | ForEach-Object {{ @{{ CommandInfo = $_; HelpInfo = ( invoke-command {{ try {{ Get-Help -Name $_.Name -Full }} catch{{ '' }} }} ) }} }})" - )); - return (cmdlet?.RunScript(getCmdletAndHelp) ?? RunScript(getCmdletAndHelp)) - .Select(h => new CmdletAndHelpInfo { CommandInfo = (h["CommandInfo"] as PSObject)?.BaseObject as CommandInfo, HelpInfo = h["HelpInfo"] as PSObject }); - } - - public static IEnumerable GetModuleCmdletsAndHelpInfo(params string[] modulePaths) - => GetModuleCmdletsAndHelpInfo(null, modulePaths); - - public static CmdletAndHelpInfo ToCmdletAndHelpInfo(this CommandInfo commandInfo, PSObject helpInfo) => new CmdletAndHelpInfo { CommandInfo = commandInfo, HelpInfo = helpInfo }; - - public const string Psd1Indent = " "; - public const string GuidStart = Psd1Indent + "GUID"; - - public static Guid ReadGuidFromPsd1(string psd1Path) - { - var guid = Guid.NewGuid(); - if (File.Exists(psd1Path)) - { - var currentGuid = File.ReadAllLines(psd1Path) - .FirstOrDefault(l => l.TrimStart().StartsWith(GuidStart.TrimStart()))?.Split(new[] { " = " }, StringSplitOptions.RemoveEmptyEntries) - .LastOrDefault()?.Replace("'", String.Empty); - guid = currentGuid != null ? Guid.Parse(currentGuid) : guid; - } - - return guid; - } - } - - internal class CmdletAndHelpInfo - { - public CommandInfo CommandInfo { get; set; } - public PSObject HelpInfo { get; set; } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/StringExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/StringExtensions.cs deleted file mode 100644 index c00c4e23f594..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/StringExtensions.cs +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Linq; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal static class StringExtensions - { - public static string NullIfEmpty(this string text) => String.IsNullOrEmpty(text) ? null : text; - public static string NullIfWhiteSpace(this string text) => String.IsNullOrWhiteSpace(text) ? null : text; - public static string EmptyIfNull(this string text) => text ?? String.Empty; - - public static bool? ToNullableBool(this string text) => String.IsNullOrEmpty(text) ? (bool?)null : Convert.ToBoolean(text.ToLowerInvariant()); - - public static string ToUpperFirstCharacter(this string text) => String.IsNullOrEmpty(text) ? text : $"{text[0].ToString().ToUpperInvariant()}{text.Remove(0, 1)}"; - - public static string ReplaceNewLines(this string value, string replacer = " ", string[] newLineSymbols = null) - => (newLineSymbols ?? new []{ "\r\n", "\n" }).Aggregate(value.EmptyIfNull(), (current, symbol) => current.Replace(symbol, replacer)); - public static string NormalizeNewLines(this string value) => value.ReplaceNewLines("\u00A0").Replace("\u00A0", Environment.NewLine); - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/XmlExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/XmlExtensions.cs deleted file mode 100644 index f194a8393a44..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/XmlExtensions.cs +++ /dev/null @@ -1,28 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System.IO; -using System.Xml; -using System.Xml.Serialization; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal static class XmlExtensions - { - public static string ToXmlString(this T inputObject, bool excludeDeclaration = false) - { - var serializer = new XmlSerializer(typeof(T)); - //https://stackoverflow.com/a/760290/294804 - //https://stackoverflow.com/a/3732234/294804 - var namespaces = new XmlSerializerNamespaces(new[] { XmlQualifiedName.Empty }); - var xmlSettings = new XmlWriterSettings { OmitXmlDeclaration = excludeDeclaration, Indent = true }; - using (var stringWriter = new StringWriter()) - using (var xmlWriter = XmlWriter.Create(stringWriter, xmlSettings)) - { - serializer.Serialize(xmlWriter, inputObject, namespaces); - return stringWriter.ToString(); - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/CmdInfoHandler.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/CmdInfoHandler.cs deleted file mode 100644 index 03a92596cc89..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/CmdInfoHandler.cs +++ /dev/null @@ -1,40 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Management.Automation; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using NextDelegate = Func, Task>, Task>; - using SignalDelegate = Func, Task>; - - public class CmdInfoHandler - { - private readonly string processRecordId; - private readonly string parameterSetName; - private readonly InvocationInfo invocationInfo; - - public CmdInfoHandler(string processRecordId, InvocationInfo invocationInfo, string parameterSetName) - { - this.processRecordId = processRecordId; - this.parameterSetName = parameterSetName; - this.invocationInfo = invocationInfo; - } - - public Task SendAsync(HttpRequestMessage request, CancellationToken token, Action cancel, SignalDelegate signal, NextDelegate next) - { - request.Headers.Add("x-ms-client-request-id", processRecordId); - request.Headers.Add("CommandName", invocationInfo?.InvocationName); - request.Headers.Add("FullCommandName", invocationInfo?.MyCommand?.Name); - request.Headers.Add("ParameterSetName", parameterSetName); - - // continue with pipeline. - return next(request, token, cancel, signal); - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Context.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Context.cs deleted file mode 100644 index 953b1a99da39..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Context.cs +++ /dev/null @@ -1,33 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - - using System; - using System.Linq; - using System.Collections; - using System.Collections.Generic; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - using GetEventData = System.Func; - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - /// - /// The IContext Interface defines the communication mechanism for input customization. - /// - /// - /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. - /// - public interface IContext - { - System.Management.Automation.InvocationInfo InvocationInformation { get; set; } - System.Threading.CancellationTokenSource CancellationTokenSource { get; set; } - System.Collections.Generic.IDictionary ExtensibleParameters { get; } - HttpPipeline Pipeline { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.FrontDoor Client { get; } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/ConversionException.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/ConversionException.cs deleted file mode 100644 index ceb47406980c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/ConversionException.cs +++ /dev/null @@ -1,17 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal class ConversionException : Exception - { - internal ConversionException(string message) - : base(message) { } - - internal ConversionException(JsonNode node, Type targetType) - : base($"Cannot convert '{node.Type}' to a {targetType.Name}") { } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/IJsonConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/IJsonConverter.cs deleted file mode 100644 index ccdd02367b26..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/IJsonConverter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal interface IJsonConverter - { - JsonNode ToJson(object value); - - object FromJson(JsonNode node); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs deleted file mode 100644 index 0c60db40c2df..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class BinaryConverter : JsonConverter - { - internal override JsonNode ToJson(byte[] value) => new XBinary(value); - - internal override byte[] FromJson(JsonNode node) - { - switch (node.Type) - { - case JsonType.String : return Convert.FromBase64String(node.ToString()); // Base64 Encoded - case JsonType.Binary : return ((XBinary)node).Value; - } - - throw new ConversionException(node, typeof(byte[])); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs deleted file mode 100644 index 6bde22db4372..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class BooleanConverter : JsonConverter - { - internal override JsonNode ToJson(bool value) => new JsonBoolean(value); - - internal override bool FromJson(JsonNode node) => (bool)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs deleted file mode 100644 index df4f69f59a61..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs +++ /dev/null @@ -1,18 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class DateTimeConverter : JsonConverter - { - internal override JsonNode ToJson(DateTime value) - { - return new JsonDate(value); - } - - internal override DateTime FromJson(JsonNode node) => (DateTime)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs deleted file mode 100644 index ee26d1a4ea9a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs +++ /dev/null @@ -1,15 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class DateTimeOffsetConverter : JsonConverter - { - internal override JsonNode ToJson(DateTimeOffset value) => new JsonDate(value); - - internal override DateTimeOffset FromJson(JsonNode node) => (DateTimeOffset)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs deleted file mode 100644 index 578f7b7ceb15..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs +++ /dev/null @@ -1,16 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class DecimalConverter : JsonConverter - { - internal override JsonNode ToJson(decimal value) => new JsonNumber(value.ToString()); - - internal override decimal FromJson(JsonNode node) - { - return (decimal)node; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs deleted file mode 100644 index 60c32d5d53e8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class DoubleConverter : JsonConverter - { - internal override JsonNode ToJson(double value) => new JsonNumber(value); - - internal override double FromJson(JsonNode node) => (double)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs deleted file mode 100644 index 3e82ec68d9bc..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class EnumConverter : IJsonConverter - { - private readonly Type type; - - internal EnumConverter(Type type) - { - this.type = type ?? throw new ArgumentNullException(nameof(type)); - } - - public JsonNode ToJson(object value) => new JsonString(value.ToString()); - - public object FromJson(JsonNode node) - { - if (node.Type == JsonType.Number) - { - return Enum.ToObject(type, (int)node); - } - - return Enum.Parse(type, node.ToString(), ignoreCase: true); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs deleted file mode 100644 index 4cc7ab5c9418..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs +++ /dev/null @@ -1,15 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class GuidConverter : JsonConverter - { - internal override JsonNode ToJson(Guid value) => new JsonString(value.ToString()); - - internal override Guid FromJson(JsonNode node) => (Guid)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs deleted file mode 100644 index d9fb49177dda..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class HashSetConverter : JsonConverter> - { - internal override JsonNode ToJson(HashSet value) - { - return new XSet(value); - } - - internal override HashSet FromJson(JsonNode node) - { - var collection = node as ICollection; - - if (collection.Count == 0) return null; - - // TODO: Remove Linq depedency - return new HashSet(collection.Cast()); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs deleted file mode 100644 index b0809d056767..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class Int16Converter : JsonConverter - { - internal override JsonNode ToJson(short value) => new JsonNumber(value); - - internal override short FromJson(JsonNode node) => (short)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs deleted file mode 100644 index a3b2ea06e6f9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class Int32Converter : JsonConverter - { - internal override JsonNode ToJson(int value) => new JsonNumber(value); - - internal override int FromJson(JsonNode node) => (int)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs deleted file mode 100644 index e2626b94d579..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class Int64Converter : JsonConverter - { - internal override JsonNode ToJson(long value) => new JsonNumber(value); - - internal override long FromJson(JsonNode node) => (long)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs deleted file mode 100644 index 2ba4ffe0e245..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class JsonArrayConverter : JsonConverter - { - internal override JsonNode ToJson(JsonArray value) => value; - - internal override JsonArray FromJson(JsonNode node) => (JsonArray)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs deleted file mode 100644 index a561c4175ee7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class JsonObjectConverter : JsonConverter - { - internal override JsonNode ToJson(JsonObject value) => value; - - internal override JsonObject FromJson(JsonNode node) => (JsonObject)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs deleted file mode 100644 index dfc305bc3872..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class SingleConverter : JsonConverter - { - internal override JsonNode ToJson(float value) => new JsonNumber(value.ToString()); - - internal override float FromJson(JsonNode node) => (float)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs deleted file mode 100644 index 06f490e301b6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class StringConverter : JsonConverter - { - internal override JsonNode ToJson(string value) => new JsonString(value); - - internal override string FromJson(JsonNode node) => node.ToString(); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs deleted file mode 100644 index 1ca9f5f13925..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs +++ /dev/null @@ -1,15 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class TimeSpanConverter : JsonConverter - { - internal override JsonNode ToJson(TimeSpan value) => new JsonString(value.ToString()); - - internal override TimeSpan FromJson(JsonNode node) => (TimeSpan)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs deleted file mode 100644 index ec2599bb3124..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class UInt16Converter : JsonConverter - { - internal override JsonNode ToJson(ushort value) => new JsonNumber(value); - - internal override ushort FromJson(JsonNode node) => (ushort)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs deleted file mode 100644 index 767039b47cda..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class UInt32Converter : JsonConverter - { - internal override JsonNode ToJson(uint value) => new JsonNumber(value); - - internal override uint FromJson(JsonNode node) => (uint)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs deleted file mode 100644 index 445d6dfd9469..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class UInt64Converter : JsonConverter - { - internal override JsonNode ToJson(ulong value) => new JsonNumber(value.ToString()); - - internal override ulong FromJson(JsonNode node) => (ulong)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs deleted file mode 100644 index 51a4c58fd1fa..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs +++ /dev/null @@ -1,15 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class UriConverter : JsonConverter - { - internal override JsonNode ToJson(Uri value) => new JsonString(value.AbsoluteUri); - - internal override Uri FromJson(JsonNode node) => (Uri)node; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverter.cs deleted file mode 100644 index d40c053e4f26..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverter.cs +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public abstract class JsonConverter : IJsonConverter - { - internal abstract T FromJson(JsonNode node); - - internal abstract JsonNode ToJson(T value); - - #region IConverter - - object IJsonConverter.FromJson(JsonNode node) => FromJson(node); - - JsonNode IJsonConverter.ToJson(object value) => ToJson((T)value); - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs deleted file mode 100644 index 4fcb3f1dc5b5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class JsonConverterAttribute : Attribute - { - internal JsonConverterAttribute(Type type) - { - Converter = (IJsonConverter)Activator.CreateInstance(type); - } - - internal IJsonConverter Converter { get; } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs deleted file mode 100644 index 7a2ae749cabb..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs +++ /dev/null @@ -1,91 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class JsonConverterFactory - { - private static readonly Dictionary converters = new Dictionary(); - - static JsonConverterFactory() - { - AddInternal(new BooleanConverter()); - AddInternal(new DateTimeConverter()); - AddInternal(new DateTimeOffsetConverter()); - AddInternal(new BinaryConverter()); - AddInternal(new DecimalConverter()); - AddInternal(new DoubleConverter()); - AddInternal(new GuidConverter()); - AddInternal(new Int16Converter()); - AddInternal(new Int32Converter()); - AddInternal(new Int64Converter()); - AddInternal(new SingleConverter()); - AddInternal(new StringConverter()); - AddInternal(new TimeSpanConverter()); - AddInternal(new UInt16Converter()); - AddInternal(new UInt32Converter()); - AddInternal(new UInt64Converter()); - AddInternal(new UriConverter()); - - // Hash sets - AddInternal(new HashSetConverter()); - AddInternal(new HashSetConverter()); - AddInternal(new HashSetConverter()); - AddInternal(new HashSetConverter()); - AddInternal(new HashSetConverter()); - AddInternal(new HashSetConverter()); - - // JSON - - AddInternal(new JsonObjectConverter()); - AddInternal(new JsonArrayConverter()); - } - - internal static Dictionary Instances => converters; - - internal static IJsonConverter Get(Type type) - { - var details = TypeDetails.Get(type); - - if (details.JsonConverter == null) - { - throw new ConversionException($"No converter found for '{type.Name}'."); - } - - return details.JsonConverter; - } - - internal static bool TryGet(Type type, out IJsonConverter converter) - { - var typeDetails = TypeDetails.Get(type); - - converter = typeDetails.JsonConverter; - - return converter != null; - } - - private static void AddInternal(JsonConverter converter) - => converters.Add(typeof(T), converter); - - private static void AddInternal(IJsonConverter converter) - => converters.Add(typeof(T), converter); - - internal static void Add(JsonConverter converter) - { - if (converter == null) - { - throw new ArgumentNullException(nameof(converter)); - } - - AddInternal(converter); - - var type = TypeDetails.Get(); - - type.JsonConverter = converter; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/StringLikeConverter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/StringLikeConverter.cs deleted file mode 100644 index 38613b4f1d11..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Conversions/StringLikeConverter.cs +++ /dev/null @@ -1,45 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Reflection; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class StringLikeConverter : IJsonConverter - { - private readonly Type type; - private readonly MethodInfo parseMethod; - - internal StringLikeConverter(Type type) - { - this.type = type ?? throw new ArgumentNullException(nameof(type)); - this.parseMethod = StringLikeHelper.GetParseMethod(type); - } - - public object FromJson(JsonNode node) => - parseMethod.Invoke(null, new[] { node.ToString() }); - - public JsonNode ToJson(object value) => new JsonString(value.ToString()); - } - - internal static class StringLikeHelper - { - private static readonly Type[] parseMethodParamaterTypes = new[] { typeof(string) }; - - internal static bool IsStringLike(Type type) - { - return GetParseMethod(type) != null; - } - - internal static MethodInfo GetParseMethod(Type type) - { - MethodInfo method = type.GetMethod("Parse", parseMethodParamaterTypes); - - if (method?.IsPublic != true) return null; - - return method; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/IJsonSerializable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/IJsonSerializable.cs deleted file mode 100644 index 653035f0aab7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/IJsonSerializable.cs +++ /dev/null @@ -1,263 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json; -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - public interface IJsonSerializable - { - JsonNode ToJson(JsonObject container = null, SerializationMode serializationMode = SerializationMode.None); - } - internal static class JsonSerializable - { - /// - /// Serializes an enumerable and returns a JsonNode. - /// - /// an IEnumerable collection of items - /// A JsonNode that contains the collection of items serialized. - private static JsonNode ToJsonValue(System.Collections.IEnumerable enumerable) - { - if (enumerable != null) - { - // is it a byte array of some kind? - if (enumerable is System.Collections.Generic.IEnumerable byteEnumerable) - { - return new XBinary(System.Linq.Enumerable.ToArray(byteEnumerable)); - } - - var hasValues = false; - // just create an array of value nodes. - var result = new XNodeArray(); - foreach (var each in enumerable) - { - // we had at least one value. - hasValues = true; - - // try to serialize it. - var node = ToJsonValue(each); - if (null != node) - { - result.Add(node); - } - } - - // if we were able to add values, (or it was just empty), return it. - if (result.Count > 0 || !hasValues) - { - return result; - } - } - - // we couldn't serialize the values. Sorry. - return null; - } - - /// - /// Serializes a valuetype to a JsonNode. - /// - /// a ValueType (ie, a primitive, enum or struct) to be serialized - /// a JsonNode with the serialized value - private static JsonNode ToJsonValue(ValueType vValue) - { - // numeric type - if (vValue is SByte || vValue is Int16 || vValue is Int32 || vValue is Int64 || vValue is Byte || vValue is UInt16 || vValue is UInt32 || vValue is UInt64 || vValue is decimal || vValue is float || vValue is double) - { - return new JsonNumber(vValue.ToString()); - } - - // boolean type - if (vValue is bool bValue) - { - return new JsonBoolean(bValue); - } - - // dates - if (vValue is DateTime dtValue) - { - return new JsonDate(dtValue); - } - - // DictionaryEntity struct type - if (vValue is System.Collections.DictionaryEntry deValue) - { - return new JsonObject { { deValue.Key.ToString(), ToJsonValue(deValue.Value) } }; - } - - // sorry, no idea. - return null; - } - /// - /// Attempts to serialize an object by using ToJson() or ToJsonString() if they exist. - /// - /// the object to be serialized. - /// the serialized JsonNode (if successful), otherwise, null - private static JsonNode TryToJsonValue(dynamic oValue) - { - object jsonValue = null; - dynamic v = oValue; - try - { - jsonValue = v.ToJson().ToString(); - } - catch - { - // no harm... - try - { - jsonValue = v.ToJsonString().ToString(); - } - catch - { - // no worries here either. - } - } - - // if we got something out, let's use it. - if (null != jsonValue) - { - // JsonNumber is really a literal json value. Just don't try to cast that back to an actual number, ok? - return new JsonNumber(jsonValue.ToString()); - } - - return null; - } - - /// - /// Serialize an object by using a variety of methods. - /// - /// the object to be serialized. - /// the serialized JsonNode (if successful), otherwise, null - internal static JsonNode ToJsonValue(object value) - { - // things that implement our interface are preferred. - if (value is Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IJsonSerializable jsonSerializable) - { - return jsonSerializable.ToJson(); - } - - // strings are easy. - if (value is string || value is char) - { - return new JsonString(value.ToString()); - } - - // value types are fairly straightforward (fallback to ToJson()/ToJsonString() or literal JsonString ) - if (value is System.ValueType vValue) - { - return ToJsonValue(vValue) ?? TryToJsonValue(vValue) ?? new JsonString(vValue.ToString()); - } - - // dictionaries are objects that should be able to serialize - if (value is System.Collections.Generic.IDictionary dictionary) - { - return Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson(dictionary, null); - } - - // hashtables are converted to dictionaries for serialization - if (value is System.Collections.Hashtable hashtable) - { - var dict = new System.Collections.Generic.Dictionary(); - DictionaryExtensions.HashTableToDictionary(hashtable, dict); - return Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.ToJson(dict, null); - } - - // enumerable collections are handled like arrays (again, fallback to ToJson()/ToJsonString() or literal JsonString) - if (value is System.Collections.IEnumerable enumerableValue) - { - // some kind of enumerable value - return ToJsonValue(enumerableValue) ?? TryToJsonValue(value) ?? new JsonString(value.ToString()); - } - - // at this point, we're going to fallback to a string literal here, since we really have no idea what it is. - return new JsonString(value.ToString()); - } - - internal static JsonObject ToJson(System.Collections.Generic.Dictionary dictionary, JsonObject container) => ToJson((System.Collections.Generic.IDictionary)dictionary, container); - - /// - /// Serializes a dictionary into a JsonObject container. - /// - /// The dictionary to serailize - /// the container to serialize the dictionary into - /// the container - internal static JsonObject ToJson(System.Collections.Generic.IDictionary dictionary, JsonObject container) - { - container = container ?? new JsonObject(); - if (dictionary != null && dictionary.Count > 0) - { - foreach (var key in dictionary) - { - // currently, we don't serialize null values. - if (null != key.Value) - { - container.Add(key.Key, ToJsonValue(key.Value)); - continue; - } - } - } - return container; - } - - internal static Func> DeserializeDictionary(Func> dictionaryFactory) - { - return (node) => FromJson(node, dictionaryFactory(), (object)(DeserializeDictionary(dictionaryFactory)) as Func); - } - - internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.Dictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) => FromJson(json, (System.Collections.Generic.IDictionary)container, objectFactory, excludes); - - - internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.IDictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) - { - if (null == json) - { - return container; - } - - foreach (var key in json.Keys) - { - if (true == excludes?.Contains(key)) - { - continue; - } - - var value = json[key]; - try - { - switch (value.Type) - { - case JsonType.Null: - // skip null values. - continue; - - case JsonType.Array: - case JsonType.Boolean: - case JsonType.Date: - case JsonType.Binary: - case JsonType.Number: - case JsonType.String: - container.Add(key, (V)value.ToValue()); - break; - case JsonType.Object: - if (objectFactory != null) - { - var v = objectFactory(value as JsonObject); - if (null != v) - { - container.Add(key, v); - } - } - break; - } - } - catch - { - } - } - return container; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonArray.cs deleted file mode 100644 index 08440bc0232e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonArray.cs +++ /dev/null @@ -1,13 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public partial class JsonArray - { - internal override object ToValue() => Count == 0 ? new object[0] : System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Select(this, each => each.ToValue())); - } - - -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonBoolean.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonBoolean.cs deleted file mode 100644 index cb633ee5d017..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonBoolean.cs +++ /dev/null @@ -1,16 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal partial class JsonBoolean - { - internal static JsonBoolean Create(bool? value) => value is bool b ? new JsonBoolean(b) : null; - internal bool ToBoolean() => Value; - - internal override object ToValue() => Value; - } - - -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNode.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNode.cs deleted file mode 100644 index 36c9b2086b66..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNode.cs +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - using System; - using System.Collections.Generic; - - public partial class JsonNode - { - /// - /// Returns the content of this node as the underlying value. - /// Will default to the string representation if not overridden in child classes. - /// - /// an object with the underlying value of the node. - internal virtual object ToValue() { - return this.ToString(); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNumber.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNumber.cs deleted file mode 100644 index 3546e3277114..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonNumber.cs +++ /dev/null @@ -1,78 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - using System; - - public partial class JsonNumber - { - internal static readonly DateTime EpochDate = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); - private static long ToUnixTime(DateTime dateTime) - { - return (long)dateTime.Subtract(EpochDate).TotalSeconds; - } - private static DateTime FromUnixTime(long totalSeconds) - { - return EpochDate.AddSeconds(totalSeconds); - } - internal byte ToByte() => this; - internal int ToInt() => this; - internal long ToLong() => this; - internal short ToShort() => this; - internal UInt16 ToUInt16() => this; - internal UInt32 ToUInt32() => this; - internal UInt64 ToUInt64() => this; - internal decimal ToDecimal() => this; - internal double ToDouble() => this; - internal float ToFloat() => this; - - internal static JsonNumber Create(int? value) => value is int n ? new JsonNumber(n) : null; - internal static JsonNumber Create(long? value) => value is long n ? new JsonNumber(n) : null; - internal static JsonNumber Create(float? value) => value is float n ? new JsonNumber(n) : null; - internal static JsonNumber Create(double? value) => value is double n ? new JsonNumber(n) : null; - internal static JsonNumber Create(decimal? value) => value is decimal n ? new JsonNumber(n) : null; - internal static JsonNumber Create(DateTime? value) => value is DateTime date ? new JsonNumber(ToUnixTime(date)) : null; - - public static implicit operator DateTime(JsonNumber number) => FromUnixTime(number); - internal DateTime ToDateTime() => this; - - internal JsonNumber(decimal value) - { - this.value = value.ToString(); - } - internal override object ToValue() - { - if (IsInteger) - { - if (int.TryParse(this.value, out int iValue)) - { - return iValue; - } - if (long.TryParse(this.value, out long lValue)) - { - return lValue; - } - } - else - { - if (float.TryParse(this.value, out float fValue)) - { - return fValue; - } - if (double.TryParse(this.value, out double dValue)) - { - return dValue; - } - if (decimal.TryParse(this.value, out decimal dcValue)) - { - return dcValue; - } - } - return null; - } - } - - -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonObject.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonObject.cs deleted file mode 100644 index 1c4c4d232aa4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonObject.cs +++ /dev/null @@ -1,183 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - using System; - using System.Collections.Generic; - - public partial class JsonObject - { - internal override object ToValue() => Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.JsonSerializable.FromJson(this, new System.Collections.Generic.Dictionary(), (obj) => obj.ToValue()); - - internal void SafeAdd(string name, Func valueFn) - { - if (valueFn != null) - { - var value = valueFn(); - if (null != value) - { - items.Add(name, value); - } - } - } - - internal void SafeAdd(string name, JsonNode value) - { - if (null != value) - { - items.Add(name, value); - } - } - - internal T NullableProperty(string propertyName) where T : JsonNode - { - if (this.TryGetValue(propertyName, out JsonNode value)) - { - if (value.IsNull) - { - return null; - } - if (value is T tval) - { - return tval; - } - /* it's present, but not the correct type... */ - //throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); - } - return null; - } - - internal JsonObject Property(string propertyName) - { - return PropertyT(propertyName); - } - - internal T PropertyT(string propertyName) where T : JsonNode - { - if (this.TryGetValue(propertyName, out JsonNode value)) - { - if (value.IsNull) - { - return null; // we're going to assume that the consumer knows what to do if null is explicity returned? - } - - if (value is T tval) - { - return tval; - } - /* it's present, but not the correct type... */ - // throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); - } - return null; - } - - internal int NumberProperty(string propertyName, ref int output) => output = this.PropertyT(propertyName)?.ToInt() ?? output; - internal float NumberProperty(string propertyName, ref float output) => output = this.PropertyT(propertyName)?.ToFloat() ?? output; - internal byte NumberProperty(string propertyName, ref byte output) => output = this.PropertyT(propertyName)?.ToByte() ?? output; - internal long NumberProperty(string propertyName, ref long output) => output = this.PropertyT(propertyName)?.ToLong() ?? output; - internal double NumberProperty(string propertyName, ref double output) => output = this.PropertyT(propertyName)?.ToDouble() ?? output; - internal decimal NumberProperty(string propertyName, ref decimal output) => output = this.PropertyT(propertyName)?.ToDecimal() ?? output; - internal short NumberProperty(string propertyName, ref short output) => output = this.PropertyT(propertyName)?.ToShort() ?? output; - internal DateTime NumberProperty(string propertyName, ref DateTime output) => output = this.PropertyT(propertyName)?.ToDateTime() ?? output; - - internal int? NumberProperty(string propertyName, ref int? output) => output = this.NullableProperty(propertyName)?.ToInt() ?? null; - internal float? NumberProperty(string propertyName, ref float? output) => output = this.NullableProperty(propertyName)?.ToFloat() ?? null; - internal byte? NumberProperty(string propertyName, ref byte? output) => output = this.NullableProperty(propertyName)?.ToByte() ?? null; - internal long? NumberProperty(string propertyName, ref long? output) => output = this.NullableProperty(propertyName)?.ToLong() ?? null; - internal double? NumberProperty(string propertyName, ref double? output) => output = this.NullableProperty(propertyName)?.ToDouble() ?? null; - internal decimal? NumberProperty(string propertyName, ref decimal? output) => output = this.NullableProperty(propertyName)?.ToDecimal() ?? null; - internal short? NumberProperty(string propertyName, ref short? output) => output = this.NullableProperty(propertyName)?.ToShort() ?? null; - - internal DateTime? NumberProperty(string propertyName, ref DateTime? output) => output = this.NullableProperty(propertyName)?.ToDateTime() ?? null; - - - internal string StringProperty(string propertyName) => this.PropertyT(propertyName)?.ToString(); - internal string StringProperty(string propertyName, ref string output) => output = this.PropertyT(propertyName)?.ToString() ?? output; - internal char StringProperty(string propertyName, ref char output) => output = this.PropertyT(propertyName)?.ToChar() ?? output; - internal char? StringProperty(string propertyName, ref char? output) => output = this.PropertyT(propertyName)?.ToChar() ?? null; - - internal DateTime StringProperty(string propertyName, ref DateTime output) => DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out output) ? output : output; - internal DateTime? StringProperty(string propertyName, ref DateTime? output) => output = DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out var o) ? o : output; - - - internal bool BooleanProperty(string propertyName, ref bool output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? output; - internal bool? BooleanProperty(string propertyName, ref bool? output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? null; - - internal T[] ArrayProperty(string propertyName, ref T[] output, Func deserializer) - { - var array = this.PropertyT(propertyName); - if (array != null) - { - output = new T[array.Count]; - for (var i = 0; i < output.Length; i++) - { - output[i] = deserializer(array[i]); - } - } - return output; - } - internal T[] ArrayProperty(string propertyName, Func deserializer) - { - var array = this.PropertyT(propertyName); - if (array != null) - { - var output = new T[array.Count]; - for (var i = 0; i < output.Length; i++) - { - output[i] = deserializer(array[i]); - } - return output; - } - return new T[0]; - } - internal void IterateArrayProperty(string propertyName, Action deserializer) - { - var array = this.PropertyT(propertyName); - if (array != null) - { - for (var i = 0; i < array.Count; i++) - { - deserializer(array[i]); - } - } - } - - internal Dictionary DictionaryProperty(string propertyName, ref Dictionary output, Func deserializer) - { - var dictionary = this.PropertyT(propertyName); - if (output == null) - { - output = new Dictionary(); - } - else - { - output.Clear(); - } - if (dictionary != null) - { - foreach (var key in dictionary.Keys) - { - output[key] = deserializer(dictionary[key]); - } - } - return output; - } - - internal static JsonObject Create(IDictionary source, Func selector) - { - if (source == null || selector == null) - { - return null; - } - var result = new JsonObject(); - - foreach (var key in source.Keys) - { - result.SafeAdd(key, selector(source[key])); - } - return result; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonString.cs deleted file mode 100644 index 0290ff82a404..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/JsonString.cs +++ /dev/null @@ -1,34 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - using System; - using System.Globalization; - using System.Linq; - - public partial class JsonString - { - internal static string DateFormat = "yyyy-MM-dd"; - internal static string DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK"; - internal static string DateTimeRfc1123Format = "R"; - - internal static JsonString Create(string value) => value == null ? null : new JsonString(value); - internal static JsonString Create(char? value) => value is char c ? new JsonString(c.ToString()) : null; - - internal static JsonString CreateDate(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateFormat, CultureInfo.CurrentCulture)) : null; - internal static JsonString CreateDateTime(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeFormat, CultureInfo.CurrentCulture)) : null; - internal static JsonString CreateDateTimeRfc1123(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeRfc1123Format, CultureInfo.CurrentCulture)) : null; - - internal char ToChar() => this.Value?.ToString()?.FirstOrDefault() ?? default(char); - public static implicit operator char(JsonString value) => value?.ToString()?.FirstOrDefault() ?? default(char); - public static implicit operator char? (JsonString value) => value?.ToString()?.FirstOrDefault(); - - public static implicit operator DateTime(JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime); - public static implicit operator DateTime? (JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime?); - - } - - -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/XNodeArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/XNodeArray.cs deleted file mode 100644 index 005cbc1c7b52..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Customizations/XNodeArray.cs +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - using System; - using System.Linq; - - public partial class XNodeArray - { - internal static XNodeArray Create(T[] source, Func selector) - { - if (source == null || selector == null) - { - return null; - } - var result = new XNodeArray(); - foreach (var item in source.Select(selector)) - { - result.SafeAdd(item); - } - return result; - } - internal void SafeAdd(JsonNode item) - { - if (item != null) - { - items.Add(item); - } - } - internal void SafeAdd(Func itemFn) - { - if (itemFn != null) - { - var item = itemFn(); - if (item != null) - { - items.Add(item); - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Debugging.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Debugging.cs deleted file mode 100644 index 154e38e38b08..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Debugging.cs +++ /dev/null @@ -1,28 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - internal static class AttachDebugger - { - internal static void Break() - { - while (!System.Diagnostics.Debugger.IsAttached) - { - System.Console.Error.WriteLine($"Waiting for debugger to attach to process {System.Diagnostics.Process.GetCurrentProcess().Id}"); - for (int i = 0; i < 50; i++) - { - if (System.Diagnostics.Debugger.IsAttached) - { - break; - } - System.Threading.Thread.Sleep(100); - System.Console.Error.Write("."); - } - System.Console.Error.WriteLine(); - } - System.Diagnostics.Debugger.Break(); - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/DictionaryExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/DictionaryExtensions.cs deleted file mode 100644 index 902edb238812..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/DictionaryExtensions.cs +++ /dev/null @@ -1,33 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - internal static class DictionaryExtensions - { - internal static void HashTableToDictionary(System.Collections.Hashtable hashtable, System.Collections.Generic.IDictionary dictionary) - { - if (null == hashtable) - { - return; - } - foreach (var each in hashtable.Keys) - { - var key = each.ToString(); - var value = hashtable[key]; - if (null != value) - { - try - { - dictionary[key] = (V)value; - } - catch - { - // Values getting dropped; not compatible with target dictionary. Not sure what to do here. - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventData.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventData.cs deleted file mode 100644 index ac2756b8d07a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventData.cs +++ /dev/null @@ -1,78 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - - using System; - using System.Threading; - - ///Represents the data in signaled event. - public partial class EventData - { - /// - /// The type of the event being signaled - /// - public string Id; - - /// - /// The user-ready message from the event. - /// - public string Message; - - /// - /// When the event is about a parameter, this is the parameter name. - /// Used in Validation Events - /// - public string Parameter; - - /// - /// This represents a numeric value associated with the event. - /// Use for progress-style events - /// - public double Value; - - /// - /// Any extended data for an event should be serialized and stored here. - /// - public string ExtendedData; - - /// - /// If the event triggers after the request message has been created, this will contain the Request Message (which in HTTP calls would be HttpRequestMessage) - /// - /// Typically you'd cast this to the expected type to use it: - /// - /// if(eventData.RequestMessgae is HttpRequestMessage httpRequest) - /// { - /// httpRequest.Headers.Add("x-request-flavor", "vanilla"); - /// } - /// - /// - public object RequestMessage; - - /// - /// If the event triggers after the response is back, this will contain the Response Message (which in HTTP calls would be HttpResponseMessage) - /// - /// Typically you'd cast this to the expected type to use it: - /// - /// if(eventData.ResponseMessage is HttpResponseMessage httpResponse){ - /// var flavor = httpResponse.Headers.GetValue("x-request-flavor"); - /// } - /// - /// - public object ResponseMessage; - - /// - /// Cancellation method for this event. - /// - /// If the event consumer wishes to cancel the request that initiated this event, call Cancel() - /// - /// - /// The original initiator of the request must provide the implementation of this. - /// - public System.Action Cancel; - } - -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventDataExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventDataExtensions.cs deleted file mode 100644 index 368be982b25d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventDataExtensions.cs +++ /dev/null @@ -1,94 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System; - - /// - /// PowerShell-specific data on top of the llc# EventData - /// - /// - /// In PowerShell, we add on the EventDataConverter to support sending events between modules. - /// Obviously, this code would need to be duplcated on both modules. - /// This is preferable to sharing a common library, as versioning makes that problematic. - /// - [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] - public partial class EventData : EventArgs - { - } - - /// - /// A PowerShell PSTypeConverter to adapt an EventData object that has been passed. - /// Usually used between modules. - /// - public class EventDataConverter : System.Management.Automation.PSTypeConverter - { - public override bool CanConvertTo(object sourceValue, Type destinationType) => false; - public override object ConvertTo(object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => null; - public override bool CanConvertFrom(dynamic sourceValue, Type destinationType) => destinationType == typeof(EventData) && CanConvertFrom(sourceValue); - public override object ConvertFrom(dynamic sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Verifies that a given object has the required members to convert it to the target type (EventData) - /// - /// Uses a dynamic type so that it is able to use the simplest code without excessive checking. - /// - /// The instance to verify - /// True, if the object has all the required parameters. - public static bool CanConvertFrom(dynamic sourceValue) - { - try - { - // check if this has *required* parameters... - sourceValue?.Id?.GetType(); - sourceValue?.Message?.GetType(); - sourceValue?.Cancel?.GetType(); - - // remaining parameters are not *required*, - // and if they have values, it will copy them at conversion time. - } - catch - { - // if anything throws an exception (because it's null, or doesn't have that member) - return false; - } - return true; - } - - /// - /// Returns result of the delegate as the expected type, or default(T) - /// - /// This isolates any exceptions from the consumer. - /// - /// A delegate that returns a value - /// The desired output type - /// The value from the function if the type is correct - private static T To(Func srcValue) - { - try { return srcValue(); } - catch { return default(T); } - } - - /// - /// Converts an incoming object to the expected type by treating the incoming object as a dynamic, and coping the expected values. - /// - /// the incoming object - /// EventData - public static EventData ConvertFrom(dynamic sourceValue) - { - return new EventData - { - Id = To(() => sourceValue.Id), - Message = To(() => sourceValue.Message), - Parameter = To(() => sourceValue.Parameter), - Value = To(() => sourceValue.Value), - RequestMessage = To(() => sourceValue.RequestMessage), - ResponseMessage = To(() => sourceValue.ResponseMessage), - Cancel = To(() => sourceValue.Cancel) - }; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventListener.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventListener.cs deleted file mode 100644 index 62c310b865af..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventListener.cs +++ /dev/null @@ -1,247 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - - using System; - using System.Linq; - using System.Collections; - using System.Collections.Generic; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - using GetEventData = System.Func; - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public interface IValidates - { - Task Validate(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IEventListener listener); - } - - /// - /// The IEventListener Interface defines the communication mechanism for Signaling events during a remote call. - /// - /// - /// The interface is designed to be as minimal as possible, allow for quick peeking of the event type (id) - /// and the cancellation status and provides a delegate for retrieving the event details themselves. - /// - public interface IEventListener - { - Task Signal(string id, CancellationToken token, GetEventData createMessage); - CancellationToken Token { get; } - System.Action Cancel { get; } - } - - internal static partial class Extensions - { - public static Task Signal(this IEventListener instance, string id, CancellationToken token, Func createMessage) => instance.Signal(id, token, createMessage); - public static Task Signal(this IEventListener instance, string id, CancellationToken token) => instance.Signal(id, token, () => new EventData { Id = id, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, CancellationToken token, EventData message) => instance.Signal(id, token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); - - public static Task Signal(this IEventListener instance, string id, Func createMessage) => instance.Signal(id, instance.Token, createMessage); - public static Task Signal(this IEventListener instance, string id) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, string messageText) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, string messageText, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, string messageText, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); - public static Task Signal(this IEventListener instance, string id, EventData message) => instance.Signal(id, instance.Token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); - - public static Task Signal(this IEventListener instance, string id, System.Uri uri) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = uri.ToString(), Cancel = instance.Cancel }); - - public static async Task AssertNotNull(this IEventListener instance, string parameterName, object value) - { - if (value == null) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' should not be null", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertMinimumLength(this IEventListener instance, string parameterName, string value, int length) - { - if (value != null && value.Length < length) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is less than {length}", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertMaximumLength(this IEventListener instance, string parameterName, string value, int length) - { - if (value != null && value.Length > length) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is greater than {length}", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - - public static async Task AssertRegEx(this IEventListener instance, string parameterName, string value, string regularExpression) - { - if (value != null && !System.Text.RegularExpressions.Regex.Match(value, regularExpression).Success) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' does not validate against pattern /{regularExpression}/", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertEnum(this IEventListener instance, string parameterName, string value, params string[] values) - { - if (!values.Any(each => each.Equals(value))) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' is not one of ({values.Aggregate((c, e) => $"'{e}',{c}")}", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertObjectIsValid(this IEventListener instance, string parameterName, object inst) - { - await (inst as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IValidates)?.Validate(instance); - } - - public static async Task AssertIsLessThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable - { - if (null != value && ((T)value).CompareTo(max) >= 0) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertIsGreaterThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable - { - if (null != value && ((T)value).CompareTo(max) <= 0) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertIsLessThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable - { - if (null != value && ((T)value).CompareTo(max) > 0) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertIsGreaterThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable - { - if (null != value && ((T)value).CompareTo(max) < 0) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, Int64? value, Int64 multiple) - { - if (null != value && value % multiple != 0) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, double? value, double multiple) - { - if (null != value) - { - var i = (Int64)(value / multiple); - if (i != value / multiple) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - } - public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, decimal? value, decimal multiple) - { - if (null != value) - { - var i = (Int64)(value / multiple); - if (i != value / multiple) - { - await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); - } - } - } - } - - /// - /// An Implementation of the IEventListener that supports subscribing to events and dispatching them - /// (used for manually using the lowlevel interface) - /// - public class EventListener : CancellationTokenSource, IEnumerable>, IEventListener - { - private Dictionary calls = new Dictionary(); - public IEnumerator> GetEnumerator() => calls.GetEnumerator(); - IEnumerator IEnumerable.GetEnumerator() => calls.GetEnumerator(); - public EventListener() - { - } - - public new Action Cancel => base.Cancel; - private Event tracer; - - public EventListener(params (string name, Event callback)[] initializer) - { - foreach (var each in initializer) - { - Add(each.name, each.callback); - } - } - - public void Add(string name, SynchEvent callback) - { - Add(name, (message) => { callback(message); return Task.CompletedTask; }); - } - - public void Add(string name, Event callback) - { - if (callback != null) - { - if (string.IsNullOrEmpty(name)) - { - if (calls.ContainsKey(name)) - { - tracer += callback; - } - else - { - tracer = callback; - } - } - else - { - if (calls.ContainsKey(name)) - { - calls[name ?? System.String.Empty] += callback; - } - else - { - calls[name ?? System.String.Empty] = callback; - } - } - } - } - - - public async Task Signal(string id, CancellationToken token, GetEventData createMessage) - { - using (NoSynchronizationContext) - { - if (!string.IsNullOrEmpty(id) && (calls.TryGetValue(id, out Event listener) || tracer != null)) - { - var message = createMessage(); - message.Id = id; - - await listener?.Invoke(message); - await tracer?.Invoke(message); - - if (token.IsCancellationRequested) - { - throw new OperationCanceledException($"Canceled by event {id} ", this.Token); - } - } - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Events.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Events.cs deleted file mode 100644 index f0eb75ba1be9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Events.cs +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - public static partial class Events - { - public const string Log = nameof(Log); - public const string Validation = nameof(Validation); - public const string ValidationWarning = nameof(ValidationWarning); - public const string AfterValidation = nameof(AfterValidation); - public const string RequestCreated = nameof(RequestCreated); - public const string ResponseCreated = nameof(ResponseCreated); - public const string URLCreated = nameof(URLCreated); - public const string Finally = nameof(Finally); - public const string HeaderParametersAdded = nameof(HeaderParametersAdded); - public const string BodyContentSet = nameof(BodyContentSet); - public const string BeforeCall = nameof(BeforeCall); - public const string BeforeResponseDispatch = nameof(BeforeResponseDispatch); - public const string FollowingNextLink = nameof(FollowingNextLink); - public const string DelayBeforePolling = nameof(DelayBeforePolling); - public const string Polling = nameof(Polling); - public const string Progress = nameof(Progress); - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventsExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventsExtensions.cs deleted file mode 100644 index 27fdb74858f9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/EventsExtensions.cs +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - public static partial class Events - { - public const string CmdletProcessRecordStart = nameof(CmdletProcessRecordStart); - public const string CmdletProcessRecordAsyncStart = nameof(CmdletProcessRecordAsyncStart); - public const string CmdletException = nameof(CmdletException); - public const string CmdletGetPipeline = nameof(CmdletGetPipeline); - public const string CmdletBeforeAPICall = nameof(CmdletBeforeAPICall); - public const string CmdletBeginProcessing = nameof(CmdletBeginProcessing); - public const string CmdletEndProcessing = nameof(CmdletEndProcessing); - public const string CmdletProcessRecordEnd = nameof(CmdletProcessRecordEnd); - public const string CmdletProcessRecordAsyncEnd = nameof(CmdletProcessRecordAsyncEnd); - public const string CmdletAfterAPICall = nameof(CmdletAfterAPICall); - - public const string Verbose = nameof(Verbose); - public const string Debug = nameof(Debug); - public const string Information = nameof(Information); - public const string Error = nameof(Error); - public const string Warning = nameof(Warning); - } - -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Extensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Extensions.cs deleted file mode 100644 index a7c1377a2ca0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Extensions.cs +++ /dev/null @@ -1,117 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System.Linq; - using System; - - internal static partial class Extensions - { - public static T[] SubArray(this T[] array, int offset, int length) - { - return new ArraySegment(array, offset, length) - .ToArray(); - } - - public static T ReadHeaders(this T instance, global::System.Net.Http.Headers.HttpResponseHeaders headers) where T : class - { - (instance as IHeaderSerializable)?.ReadHeaders(headers); - return instance; - } - - internal static bool If(T input, out T output) - { - if (null == input) - { - output = default(T); - return false; - } - output = input; - return true; - } - - internal static void AddIf(T value, System.Action addMethod) - { - // if value is present (and it's not just an empty JSON Object) - if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject)?.Keys.Count != 0) - { - addMethod(value); - } - } - - internal static void AddIf(T value, string serializedName, System.Action addMethod) - { - // if value is present (and it's not just an empty JSON Object) - if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject)?.Keys.Count != 0) - { - addMethod(serializedName, value); - } - } - - /// - /// Returns the first header value as a string from an HttpReponseMessage. - /// - /// the HttpResponseMessage to fetch a header from - /// the header name - /// the first header value as a string from an HttpReponseMessage. string.empty if there is no header value matching - internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => string.Equals(headerName, each.Key, System.StringComparison.OrdinalIgnoreCase)).Value?.FirstOrDefault() ?? string.Empty; - - /// - /// Sets the Synchronization Context to null, and returns an IDisposable that when disposed, - /// will restore the synchonization context to the original value. - /// - /// This is used a less-invasive means to ensure that code in the library that doesn't - /// need to be continued in the original context doesn't have to have ConfigureAwait(false) - /// on every single await - /// - /// If the SynchronizationContext is null when this is used, the resulting IDisposable - /// will not do anything (this prevents excessive re-setting of the SynchronizationContext) - /// - /// Usage: - /// - /// using(NoSynchronizationContext) { - /// await SomeAsyncOperation(); - /// await SomeOtherOperation(); - /// } - /// - /// - /// - /// An IDisposable that will return the SynchronizationContext to original state - internal static System.IDisposable NoSynchronizationContext => System.Threading.SynchronizationContext.Current == null ? Dummy : new NoSyncContext(); - - /// - /// An instance of the Dummy IDispoable. - /// - /// - internal static System.IDisposable Dummy = new DummyDisposable(); - - /// - /// An IDisposable that does absolutely nothing. - /// - internal class DummyDisposable : System.IDisposable - { - public void Dispose() - { - } - } - /// - /// An IDisposable that saves the SynchronizationContext,sets it to null and - /// restores it to the original upon Dispose(). - /// - /// NOTE: This is designed to be less invasive than using .ConfigureAwait(false) - /// on every single await in library code (ie, places where we know we don't need - /// to continue in the same context as we went async) - /// - internal class NoSyncContext : System.IDisposable - { - private System.Threading.SynchronizationContext original = System.Threading.SynchronizationContext.Current; - internal NoSyncContext() - { - System.Threading.SynchronizationContext.SetSynchronizationContext(null); - } - public void Dispose() => System.Threading.SynchronizationContext.SetSynchronizationContext(original); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs deleted file mode 100644 index ef27aa136902..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System.Text; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal static class StringBuilderExtensions - { - /// - /// Extracts the buffered value and resets the buffer - /// - internal static string Extract(this StringBuilder builder) - { - var text = builder.ToString(); - - builder.Clear(); - - return text; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs deleted file mode 100644 index 5de414c82f08..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs +++ /dev/null @@ -1,61 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal static class TypeExtensions - { - internal static bool IsNullable(this Type type) => - type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>)); - - internal static Type GetOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) - { - - if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition() == openGenericInterfaceType) - { - return candidateType; - } - - // Check if it references it's own converter.... - - foreach (Type interfaceType in candidateType.GetInterfaces()) - { - if (interfaceType.IsGenericType - && interfaceType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) - { - return interfaceType; - } - } - - return null; - } - - // Author: Sebastian Good - // http://stackoverflow.com/questions/503263/how-to-determine-if-a-type-implements-a-specific-generic-interface-type - internal static bool ImplementsOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) - { - if (candidateType.Equals(openGenericInterfaceType)) - { - return true; - } - - if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) - { - return true; - } - - foreach (Type i in candidateType.GetInterfaces()) - { - if (i.IsGenericType && i.ImplementsOpenGenericInterface(openGenericInterfaceType)) - { - return true; - } - } - - return false; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Seperator.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Seperator.cs deleted file mode 100644 index f67f1176ab50..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/Seperator.cs +++ /dev/null @@ -1,11 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal static class Seperator - { - internal static readonly char[] Dash = { '-' }; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/TypeDetails.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/TypeDetails.cs deleted file mode 100644 index 424b4e800f2a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/TypeDetails.cs +++ /dev/null @@ -1,116 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Reflection; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - - - - internal class TypeDetails - { - private readonly Type info; - - internal TypeDetails(Type info) - { - this.info = info ?? throw new ArgumentNullException(nameof(info)); - } - - internal Type NonNullType { get; set; } - - internal object DefaultValue { get; set; } - - internal bool IsNullable { get; set; } - - internal bool IsList { get; set; } - - internal bool IsStringLike { get; set; } - - internal bool IsEnum => info.IsEnum; - - internal bool IsArray => info.IsArray; - - internal bool IsValueType => info.IsValueType; - - internal Type ElementType { get; set; } - - internal IJsonConverter JsonConverter { get; set; } - - #region Creation - - private static readonly ConcurrentDictionary cache = new ConcurrentDictionary(); - - internal static TypeDetails Get() => Get(typeof(T)); - - internal static TypeDetails Get(Type type) => cache.GetOrAdd(type, Create); - - private static TypeDetails Create(Type type) - { - var isGenericList = !type.IsPrimitive && type.ImplementsOpenGenericInterface(typeof(IList<>)); - var isList = !type.IsPrimitive && (isGenericList || typeof(IList).IsAssignableFrom(type)); - - var isNullable = type.IsNullable(); - - Type elementType; - - if (type.IsArray) - { - elementType = type.GetElementType(); - } - else if (isGenericList) - { - var iList = type.GetOpenGenericInterface(typeof(IList<>)); - - elementType = iList.GetGenericArguments()[0]; - } - else - { - elementType = null; - } - - var nonNullType = isNullable ? type.GetGenericArguments()[0] : type; - - var isStringLike = false; - - IJsonConverter converter; - - var jsonConverterAttribute = type.GetCustomAttribute(); - - if (jsonConverterAttribute != null) - { - converter = jsonConverterAttribute.Converter; - } - else if (nonNullType.IsEnum) - { - converter = new EnumConverter(nonNullType); - } - else if (JsonConverterFactory.Instances.TryGetValue(nonNullType, out converter)) - { - } - else if (StringLikeHelper.IsStringLike(nonNullType)) - { - isStringLike = true; - - converter = new StringLikeConverter(nonNullType); - } - - return new TypeDetails(nonNullType) { - NonNullType = nonNullType, - DefaultValue = type.IsValueType ? Activator.CreateInstance(type) : null, - IsNullable = isNullable, - IsList = isList, - IsStringLike = isStringLike, - ElementType = elementType, - JsonConverter = converter - }; - } - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/XHelper.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/XHelper.cs deleted file mode 100644 index 804931d55af0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Helpers/XHelper.cs +++ /dev/null @@ -1,75 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal static class XHelper - { - internal static JsonNode Create(JsonType type, TypeCode code, object value) - { - switch (type) - { - case JsonType.Binary : return new XBinary((byte[])value); - case JsonType.Boolean : return new JsonBoolean((bool)value); - case JsonType.Number : return new JsonNumber(value.ToString()); - case JsonType.String : return new JsonString((string)value); - } - - throw new Exception($"JsonType '{type}' does not have a fast conversion"); - } - - internal static bool TryGetElementType(TypeCode code, out JsonType type) - { - switch (code) - { - case TypeCode.Boolean : type = JsonType.Boolean; return true; - case TypeCode.Byte : type = JsonType.Number; return true; - case TypeCode.DateTime : type = JsonType.Date; return true; - case TypeCode.Decimal : type = JsonType.Number; return true; - case TypeCode.Double : type = JsonType.Number; return true; - case TypeCode.Empty : type = JsonType.Null; return true; - case TypeCode.Int16 : type = JsonType.Number; return true; - case TypeCode.Int32 : type = JsonType.Number; return true; - case TypeCode.Int64 : type = JsonType.Number; return true; - case TypeCode.SByte : type = JsonType.Number; return true; - case TypeCode.Single : type = JsonType.Number; return true; - case TypeCode.String : type = JsonType.String; return true; - case TypeCode.UInt16 : type = JsonType.Number; return true; - case TypeCode.UInt32 : type = JsonType.Number; return true; - case TypeCode.UInt64 : type = JsonType.Number; return true; - } - - type = default; - - return false; - } - - internal static JsonType GetElementType(TypeCode code) - { - switch (code) - { - case TypeCode.Boolean : return JsonType.Boolean; - case TypeCode.Byte : return JsonType.Number; - case TypeCode.DateTime : return JsonType.Date; - case TypeCode.Decimal : return JsonType.Number; - case TypeCode.Double : return JsonType.Number; - case TypeCode.Empty : return JsonType.Null; - case TypeCode.Int16 : return JsonType.Number; - case TypeCode.Int32 : return JsonType.Number; - case TypeCode.Int64 : return JsonType.Number; - case TypeCode.SByte : return JsonType.Number; - case TypeCode.Single : return JsonType.Number; - case TypeCode.String : return JsonType.String; - case TypeCode.UInt16 : return JsonType.Number; - case TypeCode.UInt32 : return JsonType.Number; - case TypeCode.UInt64 : return JsonType.Number; - default : return JsonType.Object; - } - - throw new Exception($"TypeCode '{code}' does not have a fast converter"); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipeline.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipeline.cs deleted file mode 100644 index 12479b518f00..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipeline.cs +++ /dev/null @@ -1,88 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System.Net.Http; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - using System.Collections; - using System.Linq; - - using GetEventData = System.Func; - using NextDelegate = System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; - - using SignalDelegate = System.Func, System.Threading.Tasks.Task>; - using GetParameterDelegate = System.Func, string, object>; - using SendAsyncStepDelegate = System.Func, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; - using PipelineChangeDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>; - using ModuleLoadPipelineDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; - using NewRequestPipelineDelegate = System.Action, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; - -/* - public class DelegateBasedEventListener : IEventListener - { - private EventListenerDelegate _listener; - public DelegateBasedEventListener(EventListenerDelegate listener) - { - _listener = listener; - } - public CancellationToken Token => CancellationToken.None; - public System.Action Cancel => () => { }; - - - public Task Signal(string id, CancellationToken token, GetEventData createMessage) - { - return _listener(id, token, () => createMessage()); - } - } -*/ - /// - /// This is a necessary extension to the SendAsyncFactory to support the 'generic' delegate format. - /// - public partial class SendAsyncFactory - { - /// - /// This translates a generic-defined delegate for a listener into one that fits our ISendAsync pattern. - /// (Provided to support out-of-module delegation for Azure Cmdlets) - /// - /// The Pipeline Step as a delegate - public SendAsyncFactory(SendAsyncStepDelegate step) => this.implementation = (request, listener, next) => - step( - request, - listener.Token, - listener.Cancel, - (id, token, getEventData) => listener.Signal(id, token, () => { - var data = EventDataConverter.ConvertFrom( getEventData() ) as EventData; - data.Id = id; - data.Cancel = listener.Cancel; - data.RequestMessage = request; - return data; - }), - (req, token, cancel, listenerDelegate) => next.SendAsync(req, listener)); - } - - public partial class HttpPipeline : ISendAsync - { - public HttpPipeline Append(SendAsyncStepDelegate item) - { - if (item != null) - { - Append(new SendAsyncFactory(item)); - } - return this; - } - - public HttpPipeline Prepend(SendAsyncStepDelegate item) - { - if (item != null) - { - Prepend(new SendAsyncFactory(item)); - } - return this; - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipelineMocking.ps1 b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipelineMocking.ps1 deleted file mode 100644 index 4004315cd073..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/HttpPipelineMocking.ps1 +++ /dev/null @@ -1,110 +0,0 @@ -$ErrorActionPreference = "Stop" - -# get the recording path -if (-not $TestRecordingFile) { - $TestRecordingFile = Join-Path $PSScriptRoot 'recording.json' -} - -# create the Http Pipeline Recorder -$Mock = New-Object -Type Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock $TestRecordingFile - -# set the recorder to the appropriate mode (default to 'live') -Write-Host -ForegroundColor Green "Running '$TestMode' mode..." -switch ($TestMode) { - 'record' { - Write-Host -ForegroundColor Green "Recording to $TestRecordingFile" - $Mock.SetRecord() - $null = erase -ea 0 $TestRecordingFile - } - 'playback' { - if (-not (Test-Path $TestRecordingFile)) { - Write-Host -fore:yellow "Recording file '$TestRecordingFile' is not present. Tests expecting recorded responses will fail" - } else { - Write-Host -ForegroundColor Green "Using recording $TestRecordingFile" - } - $Mock.SetPlayback() - $Mock.ForceResponseHeaders["Retry-After"] = "0"; - } - default: { - $Mock.SetLive() - } -} - -# overrides for Pester Describe/Context/It - -function Describe( - [Parameter(Mandatory = $true, Position = 0)] - [string] $Name, - - [Alias('Tags')] - [string[]] $Tag = @(), - - [Parameter(Position = 1)] - [ValidateNotNull()] - [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") -) { - $Mock.PushDescription($Name) - try { - return pester\Describe -Name $Name -Tag $Tag -Fixture $fixture - } - finally { - $Mock.PopDescription() - } -} - -function Context( - [Parameter(Mandatory = $true, Position = 0)] - [string] $Name, - - [Alias('Tags')] - [string[]] $Tag = @(), - - [Parameter(Position = 1)] - [ValidateNotNull()] - [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") -) { - $Mock.PushContext($Name) - try { - return pester\Context -Name $Name -Tag $Tag -Fixture $fixture - } - finally { - $Mock.PopContext() - } -} - -function It { - [CmdletBinding(DefaultParameterSetName = 'Normal')] - param( - [Parameter(Mandatory = $true, Position = 0)] - [string]$Name, - - [Parameter(Position = 1)] - [ScriptBlock] $Test = { }, - - [System.Collections.IDictionary[]] $TestCases, - - [Parameter(ParameterSetName = 'Pending')] - [Switch] $Pending, - - [Parameter(ParameterSetName = 'Skip')] - [Alias('Ignore')] - [Switch] $Skip - ) - $Mock.PushScenario($Name) - - try { - if ($skip) { - return pester\It -Name $Name -Test $Test -TestCases $TestCases -Skip - } - if ($pending) { - return pester\It -Name $Name -Test $Test -TestCases $TestCases -Pending - } - return pester\It -Name $Name -Test $Test -TestCases $TestCases - } - finally { - $null = $Mock.PopScenario() - } -} - -# set the HttpPipelineAppend for all the cmdlets -$PSDefaultParameterValues["*:HttpPipelinePrepend"] = $Mock diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IAssociativeArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IAssociativeArray.cs deleted file mode 100644 index 2da68c20350c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IAssociativeArray.cs +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -#define DICT_PROPERTIES -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - /// A subset of IDictionary that doesn't implement IEnumerable or IDictionary to work around PowerShell's aggressive formatter - public interface IAssociativeArray - { -#if DICT_PROPERTIES - System.Collections.Generic.IEnumerable Keys { get; } - System.Collections.Generic.IEnumerable Values { get; } - int Count { get; } -#endif - System.Collections.Generic.IDictionary AdditionalProperties { get; } - T this[string index] { get; set; } - void Add(string key, T value); - bool ContainsKey(string key); - bool Remove(string key); - bool TryGetValue(string key, out T value); - void Clear(); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IHeaderSerializable.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IHeaderSerializable.cs deleted file mode 100644 index d124937f5115..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/IHeaderSerializable.cs +++ /dev/null @@ -1,14 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - public interface IHeaderSerializable - { - void ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/ISendAsync.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/ISendAsync.cs deleted file mode 100644 index c341ce1aee70..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/ISendAsync.cs +++ /dev/null @@ -1,413 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System.Net.Http; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - using System.Collections; - using System.Linq; - using System; - - - /// - /// The interface for sending an HTTP request across the wire. - /// - public interface ISendAsync - { - Task SendAsync(HttpRequestMessage request, IEventListener callback); - } - - public class SendAsyncTerminalFactory : ISendAsyncTerminalFactory, ISendAsync - { - SendAsync implementation; - - public SendAsyncTerminalFactory(SendAsync implementation) => this.implementation = implementation; - public SendAsyncTerminalFactory(ISendAsync implementation) => this.implementation = implementation.SendAsync; - public ISendAsync Create() => this; - public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback); - } - - public partial class SendAsyncFactory : ISendAsyncFactory - { - public class Sender : ISendAsync - { - internal ISendAsync next; - internal SendAsyncStep implementation; - - public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback, next); - } - SendAsyncStep implementation; - - public SendAsyncFactory(SendAsyncStep implementation) => this.implementation = implementation; - public ISendAsync Create(ISendAsync next) => new Sender { next = next, implementation = implementation }; - - } - - public class HttpClientFactory : ISendAsyncTerminalFactory, ISendAsync - { - HttpClient client; - public HttpClientFactory() : this(new HttpClient()) - { - } - public HttpClientFactory(HttpClient client) => this.client = client; - public ISendAsync Create() => this; - - public Task SendAsync(HttpRequestMessage request, IEventListener callback) => client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, callback.Token); - } - - public interface ISendAsyncFactory - { - ISendAsync Create(ISendAsync next); - } - - public interface ISendAsyncTerminalFactory - { - ISendAsync Create(); - } - - public partial class HttpPipeline : ISendAsync - { - private const int DefaultMaxRetry = 3; - private ISendAsync pipeline; - private ISendAsyncTerminalFactory terminal; - private List steps = new List(); - - public HttpPipeline() : this(new HttpClientFactory()) - { - } - - public HttpPipeline(ISendAsyncTerminalFactory terminalStep) - { - if (terminalStep == null) - { - throw new System.ArgumentNullException(nameof(terminalStep), "Terminal Step Factory in HttpPipeline may not be null"); - } - TerminalFactory = terminalStep; - } - - /// - /// Returns an HttpPipeline with the current state of this pipeline. - /// - public HttpPipeline Clone() => new HttpPipeline(terminal) { steps = this.steps.ToList(), pipeline = this.pipeline }; - - private bool shouldRetry429(HttpResponseMessage response) - { - if (response.StatusCode == (System.Net.HttpStatusCode)429) - { - var retryAfter = response.Headers.RetryAfter; - if (retryAfter != null && retryAfter.Delta.HasValue) - { - return true; - } - } - return false; - } - /// - /// The step to handle 429 response with retry-after header. - /// - public async Task Retry429(HttpRequestMessage request, IEventListener callback, ISendAsync next) - { - int retryCount = int.MaxValue; - - try - { - try - { - retryCount = int.Parse(System.Environment.GetEnvironmentVariable("PS_HTTP_MAX_RETRIES_FOR_429")); - } - finally - { - retryCount = int.Parse(System.Environment.GetEnvironmentVariable("AZURE_PS_HTTP_MAX_RETRIES_FOR_429")); - } - } - catch (System.Exception) - { - //no action - } - var cloneRequest = await request.CloneWithContent(); - var response = await next.SendAsync(request, callback); - int count = 0; - while (shouldRetry429(response) && count++ < retryCount) - { - request = await cloneRequest.CloneWithContent(); - var retryAfter = response.Headers.RetryAfter; - await Task.Delay(retryAfter.Delta.Value, callback.Token); - await callback.Signal("Debug", $"Start to retry {count} time(s) on status code 429 after waiting {retryAfter.Delta.Value.TotalSeconds} seconds."); - response = await next.SendAsync(request, callback); - } - return response; - } - - private bool shouldRetryError(HttpResponseMessage response) - { - if (response.StatusCode >= System.Net.HttpStatusCode.InternalServerError) - { - if (response.StatusCode != System.Net.HttpStatusCode.NotImplemented && - response.StatusCode != System.Net.HttpStatusCode.HttpVersionNotSupported) - { - return true; - } - } - else if (response.StatusCode == System.Net.HttpStatusCode.RequestTimeout) - { - return true; - } - else if (response.StatusCode == (System.Net.HttpStatusCode)429 && response.Headers.RetryAfter == null) - { - return true; - } - return false; - } - - /// - /// Returns true if status code in HttpRequestExceptionWithStatus exception is greater - /// than or equal to 500 and not NotImplemented (501) or HttpVersionNotSupported (505). - /// Or it's 429 (TOO MANY REQUESTS) without Retry-After header. - /// - public async Task RetryError(HttpRequestMessage request, IEventListener callback, ISendAsync next) - { - int retryCount = DefaultMaxRetry; - - try - { - try - { - retryCount = int.Parse(System.Environment.GetEnvironmentVariable("PS_HTTP_MAX_RETRIES")); - } - finally - { - retryCount = int.Parse(System.Environment.GetEnvironmentVariable("AZURE_PS_HTTP_MAX_RETRIES")); - } - } - catch (System.Exception) - { - //no action - } - var cloneRequest = await request.CloneWithContent(); - var response = await next.SendAsync(request, callback); - int count = 0; - while (shouldRetryError(response) && count++ < retryCount) - { - await callback.Signal("Debug", $"Start to retry {count} time(s) on status code {response.StatusCode}"); - request = await cloneRequest.CloneWithContent(); - response = await next.SendAsync(request, callback); - } - return response; - } - - public ISendAsyncTerminalFactory TerminalFactory - { - get => terminal; - set - { - if (value == null) - { - throw new System.ArgumentNullException("TerminalFactory in HttpPipeline may not be null"); - } - terminal = value; - } - } - - public ISendAsync Pipeline - { - get - { - // if the pipeline has been created and not invalidated, return it. - if (this.pipeline != null) - { - return this.pipeline; - } - - // create the pipeline from scratch. - var next = terminal.Create(); - if (Convert.ToBoolean(@"true")) - { - next = (new SendAsyncFactory(Retry429)).Create(next) ?? next; - next = (new SendAsyncFactory(RetryError)).Create(next) ?? next; - } - foreach (var factory in steps) - { - // skip factories that return null. - next = factory.Create(next) ?? next; - } - return this.pipeline = next; - } - } - - public int Count => steps.Count; - - public HttpPipeline Prepend(ISendAsyncFactory item) - { - if (item != null) - { - steps.Add(item); - pipeline = null; - } - return this; - } - - public HttpPipeline Append(SendAsyncStep item) - { - if (item != null) - { - Append(new SendAsyncFactory(item)); - } - return this; - } - - public HttpPipeline Prepend(SendAsyncStep item) - { - if (item != null) - { - Prepend(new SendAsyncFactory(item)); - } - return this; - } - public HttpPipeline Append(IEnumerable items) - { - if (items != null) - { - foreach (var item in items) - { - Append(new SendAsyncFactory(item)); - } - } - return this; - } - - public HttpPipeline Prepend(IEnumerable items) - { - if (items != null) - { - foreach (var item in items) - { - Prepend(new SendAsyncFactory(item)); - } - } - return this; - } - - public HttpPipeline Append(ISendAsyncFactory item) - { - if (item != null) - { - steps.Insert(0, item); - pipeline = null; - } - return this; - } - public HttpPipeline Prepend(IEnumerable items) - { - if (items != null) - { - foreach (var item in items) - { - Prepend(item); - } - } - return this; - } - - public HttpPipeline Append(IEnumerable items) - { - if (items != null) - { - foreach (var item in items) - { - Append(item); - } - } - return this; - } - - // you can use this as the ISendAsync Implementation - public Task SendAsync(HttpRequestMessage request, IEventListener callback) => Pipeline.SendAsync(request, callback); - } - - internal static partial class Extensions - { - internal static HttpRequestMessage CloneAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) - { - using (original) - { - return original.Clone(requestUri, method); - } - } - - internal static Task CloneWithContentAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) - { - using (original) - { - return original.CloneWithContent(requestUri, method); - } - } - - /// - /// Clones an HttpRequestMessage (without the content) - /// - /// Original HttpRequestMessage (Will be diposed before returning) - /// - /// - /// A clone of the HttpRequestMessage - internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) - { - var clone = new HttpRequestMessage - { - Method = method ?? original.Method, - RequestUri = requestUri ?? original.RequestUri, - Version = original.Version, - }; - - foreach (KeyValuePair prop in original.Properties) - { - clone.Properties.Add(prop); - } - - foreach (KeyValuePair> header in original.Headers) - { - /* - **temporarily skip cloning telemetry related headers** - clone.Headers.TryAddWithoutValidation(header.Key, header.Value); - */ - if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) - { - clone.Headers.TryAddWithoutValidation(header.Key, header.Value); - } - } - - return clone; - } - - /// - /// Clones an HttpRequestMessage (including the content stream and content headers) - /// - /// Original HttpRequestMessage (Will be diposed before returning) - /// - /// - /// A clone of the HttpRequestMessage - internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) - { - var clone = original.Clone(requestUri, method); - var stream = new System.IO.MemoryStream(); - if (original.Content != null) - { - await original.Content.CopyToAsync(stream).ConfigureAwait(false); - stream.Position = 0; - clone.Content = new StreamContent(stream); - if (original.Content.Headers != null) - { - foreach (var h in original.Content.Headers) - { - clone.Content.Headers.Add(h.Key, h.Value); - } - } - } - return clone; - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InfoAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InfoAttribute.cs deleted file mode 100644 index 5f9c28342502..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InfoAttribute.cs +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System; - - [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class)] - public class InfoAttribute : Attribute - { - public bool Required { get; set; } = false; - public bool ReadOnly { get; set; } = false; - public bool Read { get; set; } = true; - public bool Create { get; set; } = true; - public bool Update { get; set; } = true; - public Type[] PossibleTypes { get; set; } = new Type[0]; - public string Description { get; set; } = ""; - public string SerializedName { get; set; } = ""; - } - - [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] - public class CompleterInfoAttribute : Attribute - { - public string Script { get; set; } = ""; - public string Name { get; set; } = ""; - public string Description { get; set; } = ""; - } - - [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] - public class DefaultInfoAttribute : Attribute - { - public string Script { get; set; } = ""; - public string Name { get; set; } = ""; - public string Description { get; set; } = ""; - public string SetCondition { get; set; } = ""; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InputHandler.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InputHandler.cs deleted file mode 100644 index df7ffda0ccc2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/InputHandler.cs +++ /dev/null @@ -1,22 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -using System; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Cmdlets -{ - public abstract class InputHandler - { - protected InputHandler NextHandler = null; - - public void SetNextHandler(InputHandler nextHandler) - { - this.NextHandler = nextHandler; - } - - public abstract void Process(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.IContext context); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Iso/IsoDate.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Iso/IsoDate.cs deleted file mode 100644 index f665648c2f62..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Iso/IsoDate.cs +++ /dev/null @@ -1,214 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Text; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal struct IsoDate - { - internal int Year { get; set; } // 0-3000 - - internal int Month { get; set; } // 1-12 - - internal int Day { get; set; } // 1-31 - - internal int Hour { get; set; } // 0-24 - - internal int Minute { get; set; } // 0-60 (60 is a special case) - - internal int Second { get; set; } // 0-60 (60 is used for leap seconds) - - internal double Millisecond { get; set; } // 0-999.9... - - internal TimeSpan Offset { get; set; } - - internal DateTimeKind Kind { get; set; } - - internal TimeSpan TimeOfDay => new TimeSpan(Hour, Minute, Second); - - internal DateTime ToDateTime() - { - if (Kind == DateTimeKind.Utc || Offset == TimeSpan.Zero) - { - return new DateTime(Year, Month, Day, Hour, Minute, Second, (int)Millisecond, DateTimeKind.Utc); - } - - return ToDateTimeOffset().DateTime; - } - - internal DateTimeOffset ToDateTimeOffset() - { - return new DateTimeOffset( - Year, - Month, - Day, - Hour, - Minute, - Second, - (int)Millisecond, - Offset - ); - } - - internal DateTime ToUtcDateTime() - { - return ToDateTimeOffset().UtcDateTime; - } - - public override string ToString() - { - var sb = new StringBuilder(); - - // yyyy-MM-dd - sb.Append($"{Year}-{Month:00}-{Day:00}"); - - if (TimeOfDay > new TimeSpan(0)) - { - sb.Append($"T{Hour:00}:{Minute:00}"); - - if (TimeOfDay.Seconds > 0) - { - sb.Append($":{Second:00}"); - } - } - - if (Offset.Ticks == 0) - { - sb.Append('Z'); // UTC - } - else - { - if (Offset.Ticks >= 0) - { - sb.Append('+'); - } - - sb.Append($"{Offset.Hours:00}:{Offset.Minutes:00}"); - } - - return sb.ToString(); - } - - internal static IsoDate FromDateTimeOffset(DateTimeOffset date) - { - return new IsoDate { - Year = date.Year, - Month = date.Month, - Day = date.Day, - Hour = date.Hour, - Minute = date.Minute, - Second = date.Second, - Offset = date.Offset, - Kind = date.Offset == TimeSpan.Zero ? DateTimeKind.Utc : DateTimeKind.Unspecified - }; - } - - private static readonly char[] timeSeperators = { ':', '.' }; - - internal static IsoDate Parse(string text) - { - var tzIndex = -1; - var timeIndex = text.IndexOf('T'); - - var builder = new IsoDate { Day = 1, Month = 1 }; - - // TODO: strip the time zone offset off the end - string dateTime = text; - string timeZone = null; - - if (dateTime.IndexOf('Z') > -1) - { - tzIndex = dateTime.LastIndexOf('Z'); - - builder.Kind = DateTimeKind.Utc; - } - else if (dateTime.LastIndexOf('+') > 10) - { - tzIndex = dateTime.LastIndexOf('+'); - } - else if (dateTime.LastIndexOf('-') > 10) - { - tzIndex = dateTime.LastIndexOf('-'); - } - - if (tzIndex > -1) - { - timeZone = dateTime.Substring(tzIndex); - dateTime = dateTime.Substring(0, tzIndex); - } - - string date = (timeIndex == -1) ? dateTime : dateTime.Substring(0, timeIndex); - - var dateParts = date.Split(Seperator.Dash); // '-' - - for (int i = 0; i < dateParts.Length; i++) - { - var part = dateParts[i]; - - switch (i) - { - case 0: builder.Year = int.Parse(part); break; - case 1: builder.Month = int.Parse(part); break; - case 2: builder.Day = int.Parse(part); break; - } - } - - if (timeIndex > -1) - { - string[] timeParts = dateTime.Substring(timeIndex + 1).Split(timeSeperators); - - for (int i = 0; i < timeParts.Length; i++) - { - var part = timeParts[i]; - - switch (i) - { - case 0: builder.Hour = int.Parse(part); break; - case 1: builder.Minute = int.Parse(part); break; - case 2: builder.Second = int.Parse(part); break; - case 3: builder.Millisecond = double.Parse("0." + part) * 1000; break; - } - } - } - - if (timeZone != null && timeZone != "Z") - { - var hours = int.Parse(timeZone.Substring(1, 2)); - var minutes = int.Parse(timeZone.Substring(4, 2)); - - if (timeZone[0] == '-') - { - hours = -hours; - minutes = -minutes; - } - - builder.Offset = new TimeSpan(hours, minutes, 0); - } - - return builder; - } - } - - /* - YYYY # eg 1997 - YYYY-MM # eg 1997-07 - YYYY-MM-DD # eg 1997-07-16 - YYYY-MM-DDThh:mmTZD # eg 1997-07-16T19:20+01:00 - YYYY-MM-DDThh:mm:ssTZD # eg 1997-07-16T19:20:30+01:00 - YYYY-MM-DDThh:mm:ss.sTZD # eg 1997-07-16T19:20:30.45+01:00 - - where: - - YYYY = four-digit year - MM = two-digit month (01=January, etc.) - DD = two-digit day of month (01 through 31) - hh = two digits of hour (00 through 23) (am/pm NOT allowed) - mm = two digits of minute (00 through 59) - ss = two digits of second (00 through 59) - s = one or more digits representing a decimal fraction of a second - TZD = time zone designator (Z or +hh:mm or -hh:mm) - */ -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/JsonType.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/JsonType.cs deleted file mode 100644 index 4de627d92e62..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/JsonType.cs +++ /dev/null @@ -1,18 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal enum JsonType - { - Null = 0, - Object = 1, - Array = 2, - Binary = 3, - Boolean = 4, - Date = 5, - Number = 6, - String = 7 - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttribute.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttribute.cs deleted file mode 100644 index 684145ea2294..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttribute.cs +++ /dev/null @@ -1,353 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.generated.runtime.Properties; - using System; - using System.Collections.Generic; - using System.Globalization; - using System.Linq; - using System.Management.Automation; - using System.Text; - - [AttributeUsage(AttributeTargets.All)] - public class GenericBreakingChangeAttribute : Attribute - { - private string _message; - //A description of what the change is about, non mandatory - public string ChangeDescription { get; set; } = null; - - //Name of the module that is being deprecated - public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.FrontDoor" : @""; - - //The version the change is effective from, non mandatory - public string DeprecateByVersion { get; } - public string DeprecateByAzVersion { get; } - - //The date on which the change comes in effect - public DateTime ChangeInEfectByDate { get; } - public bool ChangeInEfectByDateSet { get; } = false; - - //Old way of calling the cmdlet - public string OldWay { get; set; } - //New way fo calling the cmdlet - public string NewWay { get; set; } - - public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion) - { - _message = message; - this.DeprecateByAzVersion = deprecateByAzVersion; - this.DeprecateByVersion = deprecateByVersion; - } - - public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) - { - _message = message; - this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByAzVersion = deprecateByAzVersion; - - if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) - { - this.ChangeInEfectByDate = result; - this.ChangeInEfectByDateSet = true; - } - } - - public DateTime getInEffectByDate() - { - return this.ChangeInEfectByDate.Date; - } - - - /** - * This function prints out the breaking change message for the attribute on the cmdline - * */ - public void PrintCustomAttributeInfo(Action writeOutput) - { - - if (!GetAttributeSpecificMessage().StartsWith(Environment.NewLine)) - { - writeOutput(Environment.NewLine); - } - writeOutput(string.Format(Resources.BreakingChangesAttributesDeclarationMessage, GetAttributeSpecificMessage())); - - - if (!string.IsNullOrWhiteSpace(ChangeDescription)) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesChangeDescriptionMessage, this.ChangeDescription)); - } - - if (ChangeInEfectByDateSet) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); - } - - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); - - if (OldWay != null && NewWay != null) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesUsageChangeMessageConsole, OldWay, NewWay)); - } - } - - public virtual bool IsApplicableToInvocation(InvocationInfo invocation) - { - return true; - } - - protected virtual string GetAttributeSpecificMessage() - { - return _message; - } - } - - [AttributeUsage(AttributeTargets.All)] - public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute - { - - public string ReplacementCmdletName { get; set; } - - public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) : - base(string.Empty, deprecateByAzVersion, deprecateByVersion) - { - } - - public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) - { - } - - protected override string GetAttributeSpecificMessage() - { - if (string.IsNullOrWhiteSpace(ReplacementCmdletName)) - { - return Resources.BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement; - } - else - { - return string.Format(Resources.BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement, ReplacementCmdletName); - } - } - } - - [AttributeUsage(AttributeTargets.All)] - public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute - { - public string[] ChangedParameterSet { set; get; } - - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) : - base(string.Empty, deprecateByAzVersion, deprecateByVersion) - { - ChangedParameterSet = changedParameterSet; - } - - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) - { - ChangedParameterSet = changedParameterSet; - } - - protected override string GetAttributeSpecificMessage() - { - - return Resources.BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement; - - } - - public bool IsApplicableToInvocation(InvocationInfo invocation, string parameterSetName) - { - if (ChangedParameterSet != null) - return ChangedParameterSet.Contains(parameterSetName); - return false; - } - - } - - [AttributeUsage(AttributeTargets.All)] - public class PreviewMessageAttribute : Attribute - { - public string _message; - - public DateTime EstimatedGaDate { get; } - - public bool IsEstimatedGaDateSet { get; } = false; - - - public PreviewMessageAttribute() - { - this._message = Resources.PreviewCmdletMessage; - } - - public PreviewMessageAttribute(string message) - { - this._message = string.IsNullOrEmpty(message) ? Resources.PreviewCmdletMessage : message; - } - - public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this(message) - { - if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) - { - this.EstimatedGaDate = result; - this.IsEstimatedGaDateSet = true; - } - } - - public void PrintCustomAttributeInfo(Action writeOutput) - { - writeOutput(this._message); - - if (IsEstimatedGaDateSet) - { - writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); - } - } - - public virtual bool IsApplicableToInvocation(InvocationInfo invocation) - { - return true; - } - } - - [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] - public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute - { - public string NameOfParameterChanging { get; } - - public string ReplaceMentCmdletParameterName { get; set; } = null; - - public bool IsBecomingMandatory { get; set; } = false; - - public String OldParamaterType { get; set; } - - public String NewParameterType { get; set; } - - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) : - base(string.Empty, deprecateByAzVersion, deprecateByVersion) - { - this.NameOfParameterChanging = nameOfParameterChanging; - } - - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) - { - this.NameOfParameterChanging = nameOfParameterChanging; - } - - protected override string GetAttributeSpecificMessage() - { - StringBuilder message = new StringBuilder(); - if (!string.IsNullOrWhiteSpace(ReplaceMentCmdletParameterName)) - { - if (IsBecomingMandatory) - { - message.Append(string.Format(Resources.BreakingChangeAttributeParameterReplacedMandatory, NameOfParameterChanging, ReplaceMentCmdletParameterName)); - } - else - { - message.Append(string.Format(Resources.BreakingChangeAttributeParameterReplaced, NameOfParameterChanging, ReplaceMentCmdletParameterName)); - } - } - else - { - if (IsBecomingMandatory) - { - message.Append(string.Format(Resources.BreakingChangeAttributeParameterMandatoryNow, NameOfParameterChanging)); - } - else - { - message.Append(string.Format(Resources.BreakingChangeAttributeParameterChanging, NameOfParameterChanging)); - } - } - - //See if the type of the param is changing - if (OldParamaterType != null && !string.IsNullOrWhiteSpace(NewParameterType)) - { - message.Append(string.Format(Resources.BreakingChangeAttributeParameterTypeChange, OldParamaterType, NewParameterType)); - } - return message.ToString(); - } - - /// - /// See if the bound parameters contain the current parameter, if they do - /// then the attribbute is applicable - /// If the invocationInfo is null we return true - /// - /// - /// bool - public override bool IsApplicableToInvocation(InvocationInfo invocationInfo) - { - bool? applicable = invocationInfo == null ? true : invocationInfo.BoundParameters?.Keys?.Contains(this.NameOfParameterChanging); - return applicable.HasValue ? applicable.Value : false; - } - } - - [AttributeUsage(AttributeTargets.All)] - public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute - { - public string DeprecatedCmdLetOutputType { get; } - - //This is still a String instead of a Type as this - //might be undefined at the time of adding the attribute - public string ReplacementCmdletOutputType { get; set; } - - public string[] DeprecatedOutputProperties { get; set; } - - public string[] NewOutputProperties { get; set; } - - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) : - base(string.Empty, deprecateByAzVersion, deprecateByVersion) - { - this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; - } - - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) - { - this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; - } - - protected override string GetAttributeSpecificMessage() - { - StringBuilder message = new StringBuilder(); - - //check for the deprecation scenario - if (string.IsNullOrWhiteSpace(ReplacementCmdletOutputType) && NewOutputProperties == null && DeprecatedOutputProperties == null && string.IsNullOrWhiteSpace(ChangeDescription)) - { - message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputTypeDeprecated, DeprecatedCmdLetOutputType)); - } - else - { - if (!string.IsNullOrWhiteSpace(ReplacementCmdletOutputType)) - { - message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputChange1, DeprecatedCmdLetOutputType, ReplacementCmdletOutputType)); - } - else - { - message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputChange2, DeprecatedCmdLetOutputType)); - } - - if (DeprecatedOutputProperties != null && DeprecatedOutputProperties.Length > 0) - { - message.Append(Resources.BreakingChangesAttributesCmdLetOutputPropertiesRemoved); - foreach (string property in DeprecatedOutputProperties) - { - message.Append(" '" + property + "'"); - } - } - - if (NewOutputProperties != null && NewOutputProperties.Length > 0) - { - message.Append(Resources.BreakingChangesAttributesCmdLetOutputPropertiesAdded); - foreach (string property in NewOutputProperties) - { - message.Append(" '" + property + "'"); - } - } - } - return message.ToString(); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttributeHelper.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttributeHelper.cs deleted file mode 100644 index 177cedff61ee..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/MessageAttributeHelper.cs +++ /dev/null @@ -1,184 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.generated.runtime.Properties; - using System; - using System.Collections.Generic; - using System.Linq; - using System.Management.Automation; - using System.Reflection; - using System.Text; - using System.Threading.Tasks; - public class MessageAttributeHelper - { - private static readonly bool IsAzure = Convert.ToBoolean(@"true"); - public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings"; - public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings"; - - /** - * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) - * And reads all the deprecation attributes attached to it - * Prints a message on the cmdline For each of the attribute found - * - * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, - * We only process the Parameter beaking change attributes attached only params listed in this list (if present) - * */ - public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet, bool showPreviewMessage = true) - { - bool supressWarningOrError = false; - - try - { - supressWarningOrError = bool.Parse(System.Environment.GetEnvironmentVariable(SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME)); - } - catch (Exception) - { - //no action - } - - if (supressWarningOrError) - { - //Do not process the attributes at runtime... The env variable to override the warning messages is set - return; - } - if (IsAzure && invocationInfo.BoundParameters.ContainsKey("DefaultProfile")) - { - psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); - } - - ProcessBreakingChangeAttributesAtRuntime(commandInfo, invocationInfo, parameterSet, psCmdlet); - - } - - private static void ProcessBreakingChangeAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) - { - List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); - StringBuilder sb = new StringBuilder(); - Action appendAttributeMessage = (string s) => sb.Append(s); - - if (attributes != null && attributes.Count > 0) - { - appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); - - foreach (GenericBreakingChangeAttribute attribute in attributes) - { - attribute.PrintCustomAttributeInfo(appendAttributeMessage); - } - - appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); - - psCmdlet.WriteWarning(sb.ToString()); - } - } - - - public static void ProcessPreviewMessageAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) - { - List previewAttributes = new List(GetAllPreviewAttributesInType(commandInfo, invocationInfo)); - StringBuilder sb = new StringBuilder(); - Action appendAttributeMessage = (string s) => sb.Append(s); - - if (previewAttributes != null && previewAttributes.Count > 0) - { - foreach (PreviewMessageAttribute attribute in previewAttributes) - { - attribute.PrintCustomAttributeInfo(appendAttributeMessage); - } - psCmdlet.WriteWarning(sb.ToString()); - } - } - - /** - * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) - * And returns all the deprecation attributes attached to it - * - * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, - * We only process the Parameter beaking change attributes attached only params listed in this list (if present) - **/ - private static IEnumerable GetAllBreakingChangeAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet) - { - List attributeList = new List(); - - if (commandInfo.GetType() == typeof(CmdletInfo)) - { - var type = ((CmdletInfo)commandInfo).ImplementingType; - attributeList.AddRange(type.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); - - foreach (MethodInfo m in type.GetRuntimeMethods()) - { - attributeList.AddRange((m.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast())); - } - - foreach (FieldInfo f in type.GetRuntimeFields()) - { - attributeList.AddRange(f.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); - } - - foreach (PropertyInfo p in type.GetRuntimeProperties()) - { - attributeList.AddRange(p.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); - } - } - else if (commandInfo.GetType() == typeof(FunctionInfo)) - { - attributeList.AddRange(((FunctionInfo)commandInfo).ScriptBlock.Attributes.Where(e => typeof(GenericBreakingChangeAttribute).IsAssignableFrom(e.GetType())).Cast()); - foreach (var parameter in ((FunctionInfo)commandInfo).Parameters) - { - attributeList.AddRange(parameter.Value.Attributes.Where(e => typeof(GenericBreakingChangeAttribute).IsAssignableFrom(e.GetType())).Cast()); - } - } - return invocationInfo == null ? attributeList : attributeList.Where(e => e.GetType() == typeof(ParameterSetBreakingChangeAttribute) ? ((ParameterSetBreakingChangeAttribute)e).IsApplicableToInvocation(invocationInfo, parameterSet) : e.IsApplicableToInvocation(invocationInfo)); - } - - public static bool ContainsPreviewAttribute(CommandInfo commandInfo, InvocationInfo invocationInfo) - { - return GetAllPreviewAttributesInType(commandInfo, invocationInfo)?.Count() > 0; - } - - private static IEnumerable GetAllPreviewAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo) - { - List attributeList = new List(); - if (commandInfo.GetType() == typeof(CmdletInfo)) - { - var type = ((CmdletInfo)commandInfo).ImplementingType; - attributeList.AddRange(type.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); - - foreach (MethodInfo m in type.GetRuntimeMethods()) - { - attributeList.AddRange((m.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast())); - } - - foreach (FieldInfo f in type.GetRuntimeFields()) - { - attributeList.AddRange(f.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); - } - - foreach (PropertyInfo p in type.GetRuntimeProperties()) - { - attributeList.AddRange(p.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); - } - } - else if (commandInfo.GetType() == typeof(FunctionInfo)) - { - attributeList.AddRange(((FunctionInfo)commandInfo).ScriptBlock.Attributes.Where(e => typeof(PreviewMessageAttribute).IsAssignableFrom(e.GetType())).Cast()); - foreach (var parameter in ((FunctionInfo)commandInfo).Parameters) - { - attributeList.AddRange(parameter.Value.Attributes.Where(e => typeof(PreviewMessageAttribute).IsAssignableFrom(e.GetType())).Cast()); - } - } - return invocationInfo == null ? attributeList : attributeList.Where(e => e.IsApplicableToInvocation(invocationInfo)); - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Method.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Method.cs deleted file mode 100644 index 34cdd7d492f9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Method.cs +++ /dev/null @@ -1,19 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - internal static class Method - { - internal static System.Net.Http.HttpMethod Get = System.Net.Http.HttpMethod.Get; - internal static System.Net.Http.HttpMethod Put = System.Net.Http.HttpMethod.Put; - internal static System.Net.Http.HttpMethod Head = System.Net.Http.HttpMethod.Head; - internal static System.Net.Http.HttpMethod Post = System.Net.Http.HttpMethod.Post; - internal static System.Net.Http.HttpMethod Delete = System.Net.Http.HttpMethod.Delete; - internal static System.Net.Http.HttpMethod Options = System.Net.Http.HttpMethod.Options; - internal static System.Net.Http.HttpMethod Trace = System.Net.Http.HttpMethod.Trace; - internal static System.Net.Http.HttpMethod Patch = new System.Net.Http.HttpMethod("PATCH"); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonMember.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonMember.cs deleted file mode 100644 index 007029d0e795..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonMember.cs +++ /dev/null @@ -1,83 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Reflection; -using System.Runtime.Serialization; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - - - internal sealed class JsonMember - { - private readonly TypeDetails type; - - private readonly Func getter; - private readonly Action setter; - - internal JsonMember(PropertyInfo property, int defaultOrder) - { - getter = property.GetValue; - setter = property.SetValue; - - var dataMember = property.GetCustomAttribute(); - - Name = dataMember?.Name ?? property.Name; - Order = dataMember?.Order ?? defaultOrder; - EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; - - this.type = TypeDetails.Get(property.PropertyType); - - CanRead = property.CanRead; - } - - internal JsonMember(FieldInfo field, int defaultOrder) - { - getter = field.GetValue; - setter = field.SetValue; - - var dataMember = field.GetCustomAttribute(); - - Name = dataMember?.Name ?? field.Name; - Order = dataMember?.Order ?? defaultOrder; - EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; - - this.type = TypeDetails.Get(field.FieldType); - - CanRead = true; - } - - internal string Name { get; } - - internal int Order { get; } - - internal TypeDetails TypeDetails => type; - - internal Type Type => type.NonNullType; - - internal bool IsList => type.IsList; - - // Arrays, Sets, ... - internal Type ElementType => type.ElementType; - - internal IJsonConverter Converter => type.JsonConverter; - - internal bool EmitDefaultValue { get; } - - internal bool IsStringLike => type.IsStringLike; - - internal object DefaultValue => type.DefaultValue; - - internal bool CanRead { get; } - - #region Helpers - - internal object GetValue(object instance) => getter(instance); - - internal void SetValue(object instance, object value) => setter(instance, value); - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModel.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModel.cs deleted file mode 100644 index fe19b0bd6099..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModel.cs +++ /dev/null @@ -1,89 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Reflection; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal class JsonModel - { - private Dictionary map; - private readonly object _sync = new object(); - - private JsonModel(Type type, List members) - { - Type = type ?? throw new ArgumentNullException(nameof(type)); - Members = members ?? throw new ArgumentNullException(nameof(members)); - } - - internal string Name => Type.Name; - - internal Type Type { get; } - - internal List Members { get; } - - internal JsonMember this[string name] - { - get - { - if (map == null) - { - lock (_sync) - { - if (map == null) - { - map = new Dictionary(); - - foreach (JsonMember m in Members) - { - map[m.Name.ToLower()] = m; - } - } - } - } - - - map.TryGetValue(name.ToLower(), out JsonMember member); - - return member; - } - } - - internal static JsonModel FromType(Type type) - { - var members = new List(); - - int i = 0; - - // BindingFlags.Instance | BindingFlags.Public - - foreach (var member in type.GetFields()) - { - if (member.IsStatic) continue; - - if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; - - members.Add(new JsonMember(member, i)); - - i++; - } - - foreach (var member in type.GetProperties(BindingFlags.Public | BindingFlags.Instance)) - { - if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; - - members.Add(new JsonMember(member, i)); - - i++; - } - - members.Sort((a, b) => a.Order.CompareTo(b.Order)); // inline sort - - return new JsonModel(type, members); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModelCache.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModelCache.cs deleted file mode 100644 index 33f61c65f7f8..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Models/JsonModelCache.cs +++ /dev/null @@ -1,19 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal static class JsonModelCache - { - private static readonly ConditionalWeakTable cache - = new ConditionalWeakTable(); - - internal static JsonModel Get(Type type) => cache.GetValue(type, Create); - - private static JsonModel Create(Type type) => JsonModel.FromType(type); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs deleted file mode 100644 index d4fefd6c90cc..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs +++ /dev/null @@ -1,65 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public abstract partial class JsonArray : JsonNode, IEnumerable - { - internal override JsonType Type => JsonType.Array; - - internal abstract JsonType? ElementType { get; } - - public abstract int Count { get; } - - internal virtual bool IsSet => false; - - internal bool IsEmpty => Count == 0; - - #region IEnumerable - - IEnumerator IEnumerable.GetEnumerator() - { - throw new NotImplementedException(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - throw new NotImplementedException(); - } - - #endregion - - #region Static Helpers - - internal static JsonArray Create(short[] values) - => new XImmutableArray(values); - - internal static JsonArray Create(int[] values) - => new XImmutableArray(values); - - internal static JsonArray Create(long[] values) - => new XImmutableArray(values); - - internal static JsonArray Create(decimal[] values) - => new XImmutableArray(values); - - internal static JsonArray Create(float[] values) - => new XImmutableArray(values); - - internal static JsonArray Create(string[] values) - => new XImmutableArray(values); - - internal static JsonArray Create(XBinary[] values) - => new XImmutableArray(values); - - #endregion - - internal static new JsonArray Parse(string text) - => (JsonArray)JsonNode.Parse(text); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs deleted file mode 100644 index 4e4f510c222c..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs +++ /dev/null @@ -1,62 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal sealed class XImmutableArray : JsonArray, IEnumerable - { - private readonly T[] values; - private readonly JsonType elementType; - private readonly TypeCode elementCode; - - internal XImmutableArray(T[] values) - { - this.values = values ?? throw new ArgumentNullException(nameof(values)); - this.elementCode = System.Type.GetTypeCode(typeof(T)); - this.elementType = XHelper.GetElementType(this.elementCode); - } - - public override JsonNode this[int index] => - XHelper.Create(elementType, elementCode, values[index]); - - internal override JsonType? ElementType => elementType; - - public override int Count => values.Length; - - public bool IsReadOnly => true; - - #region IEnumerable Members - - IEnumerator IEnumerable.GetEnumerator() - { - foreach (T value in values) - { - yield return XHelper.Create(elementType, elementCode, value); - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - foreach (T value in values) - { - yield return XHelper.Create(elementType, elementCode, value); - } - } - - #endregion - - #region Static Constructor - - internal XImmutableArray Create(T[] items) - { - return new XImmutableArray(items); - } - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XList.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XList.cs deleted file mode 100644 index 3d8fc4893b61..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XList.cs +++ /dev/null @@ -1,64 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal sealed class XList : JsonArray, IEnumerable - { - private readonly IList values; - private readonly JsonType elementType; - private readonly TypeCode elementCode; - - internal XList(IList values) - { - this.values = values ?? throw new ArgumentNullException(nameof(values)); - this.elementCode = System.Type.GetTypeCode(typeof(T)); - this.elementType = XHelper.GetElementType(this.elementCode); - } - - public override JsonNode this[int index] => - XHelper.Create(elementType, elementCode, values[index]); - - internal override JsonType? ElementType => elementType; - - public override int Count => values.Count; - - public bool IsReadOnly => values.IsReadOnly; - - #region IList - - public void Add(T value) - { - values.Add(value); - } - - public bool Contains(T value) => values.Contains(value); - - #endregion - - #region IEnumerable Members - - IEnumerator IEnumerable.GetEnumerator() - { - foreach (var value in values) - { - yield return XHelper.Create(elementType, elementCode, value); - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - foreach (var value in values) - { - yield return XHelper.Create(elementType, elementCode, value); - } - } - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs deleted file mode 100644 index a7189e3a0f10..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs +++ /dev/null @@ -1,73 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System.Collections; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed partial class XNodeArray : JsonArray, ICollection - { - private readonly List items; - - internal XNodeArray() - { - items = new List(); - } - - internal XNodeArray(params JsonNode[] values) - { - items = new List(values); - } - - internal XNodeArray(System.Collections.Generic.List values) - { - items = new List(values); - } - - public override JsonNode this[int index] => items[index]; - - internal override JsonType? ElementType => null; - - public bool IsReadOnly => false; - - public override int Count => items.Count; - - #region ICollection Members - - public void Add(JsonNode item) - { - items.Add(item); - } - - void ICollection.Clear() - { - items.Clear(); - } - - public bool Contains(JsonNode item) => items.Contains(item); - - void ICollection.CopyTo(JsonNode[] array, int arrayIndex) - { - items.CopyTo(array, arrayIndex); - } - - public bool Remove(JsonNode item) - { - return items.Remove(item); - } - - #endregion - - #region IEnumerable Members - - IEnumerator IEnumerable.GetEnumerator() - => items.GetEnumerator(); - - IEnumerator IEnumerable.GetEnumerator() - => items.GetEnumerator(); - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XSet.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XSet.cs deleted file mode 100644 index 2d56e397737e..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/Collections/XSet.cs +++ /dev/null @@ -1,60 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal sealed class XSet : JsonArray, IEnumerable - { - private readonly HashSet values; - private readonly JsonType elementType; - private readonly TypeCode elementCode; - - internal XSet(IEnumerable values) - : this(new HashSet(values)) - { } - - internal XSet(HashSet values) - { - this.values = values ?? throw new ArgumentNullException(nameof(values)); - this.elementCode = System.Type.GetTypeCode(typeof(T)); - this.elementType = XHelper.GetElementType(this.elementCode); - } - - internal override JsonType Type => JsonType.Array; - - internal override JsonType? ElementType => elementType; - - public bool IsReadOnly => true; - - public override int Count => values.Count; - - internal override bool IsSet => true; - - #region IEnumerable Members - - IEnumerator IEnumerable.GetEnumerator() - { - foreach (var value in values) - { - yield return XHelper.Create(elementType, elementCode, value); - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - foreach (var value in values) - { - yield return XHelper.Create(elementType, elementCode, value); - } - } - - #endregion - - internal HashSet AsHashSet() => values; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonBoolean.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonBoolean.cs deleted file mode 100644 index 62dad47439bf..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonBoolean.cs +++ /dev/null @@ -1,42 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal sealed partial class JsonBoolean : JsonNode - { - internal static readonly JsonBoolean True = new JsonBoolean(true); - internal static readonly JsonBoolean False = new JsonBoolean(false); - - internal JsonBoolean(bool value) - { - Value = value; - } - - internal bool Value { get; } - - internal override JsonType Type => JsonType.Boolean; - - internal static new JsonBoolean Parse(string text) - { - switch (text) - { - case "false": return False; - case "true": return True; - - default: throw new ArgumentException($"Expected true or false. Was {text}."); - } - } - - #region Implicit Casts - - public static implicit operator bool(JsonBoolean data) => data.Value; - - public static implicit operator JsonBoolean(bool data) => new JsonBoolean(data); - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonDate.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonDate.cs deleted file mode 100644 index 26a5cd0a12f1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonDate.cs +++ /dev/null @@ -1,173 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - - - internal sealed partial class JsonDate : JsonNode, IEquatable, IComparable - { - internal static bool AssumeUtcWhenKindIsUnspecified = true; - - private readonly DateTimeOffset value; - - internal JsonDate(DateTime value) - { - if (value.Kind == DateTimeKind.Unspecified && AssumeUtcWhenKindIsUnspecified) - { - value = DateTime.SpecifyKind(value, DateTimeKind.Utc); - } - - this.value = value; - } - - internal JsonDate(DateTimeOffset value) - { - this.value = value; - } - - internal override JsonType Type => JsonType.Date; - - #region Helpers - - internal DateTimeOffset ToDateTimeOffset() - { - return value; - } - - internal DateTime ToDateTime() - { - if (value.Offset == TimeSpan.Zero) - { - return value.UtcDateTime; - } - - return value.DateTime; - } - - internal DateTime ToUtcDateTime() => value.UtcDateTime; - - internal int ToUnixTimeSeconds() - { - return (int)value.ToUnixTimeSeconds(); - } - - internal long ToUnixTimeMilliseconds() - { - return (int)value.ToUnixTimeMilliseconds(); - } - - internal string ToIsoString() - { - return IsoDate.FromDateTimeOffset(value).ToString(); - } - - #endregion - - public override string ToString() - { - return ToIsoString(); - } - - internal static new JsonDate Parse(string text) - { - if (text == null) throw new ArgumentNullException(nameof(text)); - - // TODO support: unixtimeseconds.partialseconds - - if (text.Length > 4 && _IsNumber(text)) // UnixTime - { - var date = DateTimeOffset.FromUnixTimeSeconds(long.Parse(text)); - - return new JsonDate(date); - } - else if (text.Length <= 4 || text[4] == '-') // ISO: 2012- - { - return new JsonDate(IsoDate.Parse(text).ToDateTimeOffset()); - } - else - { - // NOT ISO ENCODED - // "Thu, 5 Apr 2012 16:59:01 +0200", - return new JsonDate(DateTimeOffset.Parse(text)); - } - } - - private static bool _IsNumber(string text) - { - foreach (var c in text) - { - if (!char.IsDigit(c)) return false; - } - - return true; - } - - internal static JsonDate FromUnixTime(int seconds) - { - return new JsonDate(DateTimeOffset.FromUnixTimeSeconds(seconds)); - } - - internal static JsonDate FromUnixTime(double seconds) - { - var milliseconds = (long)(seconds * 1000d); - - return new JsonDate(DateTimeOffset.FromUnixTimeMilliseconds(milliseconds)); - } - - #region Implicit Casts - - public static implicit operator DateTimeOffset(JsonDate value) - => value.ToDateTimeOffset(); - - public static implicit operator DateTime(JsonDate value) - => value.ToDateTime(); - - // From Date - public static implicit operator JsonDate(DateTimeOffset value) - { - return new JsonDate(value); - } - - public static implicit operator JsonDate(DateTime value) - { - return new JsonDate(value); - } - - // From String - public static implicit operator JsonDate(string value) - { - return Parse(value); - } - - #endregion - - #region Equality - - public override bool Equals(object obj) - { - return obj is JsonDate date && date.value == this.value; - } - - public bool Equals(JsonDate other) - { - return this.value == other.value; - } - - public override int GetHashCode() => value.GetHashCode(); - - #endregion - - #region IComparable Members - - int IComparable.CompareTo(JsonDate other) - { - return value.CompareTo(other.value); - } - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNode.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNode.cs deleted file mode 100644 index e6b4348dfaf6..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNode.cs +++ /dev/null @@ -1,250 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.IO; -using System.Text; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - - - public abstract partial class JsonNode - { - internal abstract JsonType Type { get; } - - public virtual JsonNode this[int index] => throw new NotImplementedException(); - - public virtual JsonNode this[string name] - { - get => throw new NotImplementedException(); - set => throw new NotImplementedException(); - } - - #region Type Helpers - - internal bool IsArray => Type == JsonType.Array; - - internal bool IsDate => Type == JsonType.Date; - - internal bool IsObject => Type == JsonType.Object; - - internal bool IsNumber => Type == JsonType.Number; - - internal bool IsNull => Type == JsonType.Null; - - #endregion - - internal void WriteTo(TextWriter textWriter, bool pretty = true) - { - var writer = new JsonWriter(textWriter, pretty); - - writer.WriteNode(this); - } - - internal T As() - where T : new() - => new JsonSerializer().Deseralize((JsonObject)this); - - internal T[] ToArrayOf() - { - return (T[])new JsonSerializer().DeserializeArray(typeof(T[]), (JsonArray)this); - } - - #region ToString Overrides - - public override string ToString() => ToString(pretty: true); - - internal string ToString(bool pretty) - { - var sb = new StringBuilder(); - - using (var writer = new StringWriter(sb)) - { - WriteTo(writer, pretty); - - return sb.ToString(); - } - } - - #endregion - - #region Static Constructors - - internal static JsonNode Parse(string text) - { - return Parse(new SourceReader(new StringReader(text))); - } - - internal static JsonNode Parse(TextReader textReader) - => Parse(new SourceReader(textReader)); - - private static JsonNode Parse(SourceReader sourceReader) - { - using (var parser = new JsonParser(sourceReader)) - { - return parser.ReadNode(); - } - } - - internal static JsonNode FromObject(object instance) - => new JsonSerializer().Serialize(instance); - - #endregion - - #region Implict Casts - - public static implicit operator string(JsonNode node) => node.ToString(); - - #endregion - - #region Explict Casts - - public static explicit operator DateTime(JsonNode node) - { - switch (node.Type) - { - case JsonType.Date: - return ((JsonDate)node).ToDateTime(); - - case JsonType.String: - return JsonDate.Parse(node.ToString()).ToDateTime(); - - case JsonType.Number: - var num = (JsonNumber)node; - - if (num.IsInteger) - { - return DateTimeOffset.FromUnixTimeSeconds(num).UtcDateTime; - } - else - { - return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)).UtcDateTime; - } - } - - throw new ConversionException(node, typeof(DateTime)); - } - - public static explicit operator DateTimeOffset(JsonNode node) - { - switch (node.Type) - { - case JsonType.Date : return ((JsonDate)node).ToDateTimeOffset(); - case JsonType.String : return JsonDate.Parse(node.ToString()).ToDateTimeOffset(); - - case JsonType.Number: - var num = (JsonNumber)node; - - if (num.IsInteger) - { - return DateTimeOffset.FromUnixTimeSeconds(num); - } - else - { - return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)); - } - - } - - throw new ConversionException(node, typeof(DateTimeOffset)); - } - - public static explicit operator float(JsonNode node) - { - switch (node.Type) - { - case JsonType.Number : return (JsonNumber)node; - case JsonType.String : return float.Parse(node.ToString()); - } - - throw new ConversionException(node, typeof(float)); - } - - public static explicit operator double(JsonNode node) - { - switch (node.Type) - { - case JsonType.Number : return (JsonNumber)node; - case JsonType.String : return double.Parse(node.ToString()); - } - - throw new ConversionException(node, typeof(double)); - } - - public static explicit operator decimal(JsonNode node) - { - switch (node.Type) - { - case JsonType.Number: return (JsonNumber)node; - case JsonType.String: return decimal.Parse(node.ToString()); - } - - throw new ConversionException(node, typeof(decimal)); - } - - public static explicit operator Guid(JsonNode node) - => new Guid(node.ToString()); - - public static explicit operator short(JsonNode node) - { - switch (node.Type) - { - case JsonType.Number : return (JsonNumber)node; - case JsonType.String : return short.Parse(node.ToString()); - } - - throw new ConversionException(node, typeof(short)); - } - - public static explicit operator int(JsonNode node) - { - switch (node.Type) - { - case JsonType.Number : return (JsonNumber)node; - case JsonType.String : return int.Parse(node.ToString()); - } - - throw new ConversionException(node, typeof(int)); - } - - public static explicit operator long(JsonNode node) - { - switch (node.Type) - { - case JsonType.Number: return (JsonNumber)node; - case JsonType.String: return long.Parse(node.ToString()); - } - - throw new ConversionException(node, typeof(long)); - } - - public static explicit operator bool(JsonNode node) - => ((JsonBoolean)node).Value; - - public static explicit operator ushort(JsonNode node) - => (JsonNumber)node; - - public static explicit operator uint(JsonNode node) - => (JsonNumber)node; - - public static explicit operator ulong(JsonNode node) - => (JsonNumber)node; - - public static explicit operator TimeSpan(JsonNode node) - => TimeSpan.Parse(node.ToString()); - - public static explicit operator Uri(JsonNode node) - { - if (node.Type == JsonType.String) - { - return new Uri(node.ToString()); - } - - throw new ConversionException(node, typeof(Uri)); - } - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNumber.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNumber.cs deleted file mode 100644 index 4eeaadeebe8f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonNumber.cs +++ /dev/null @@ -1,109 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed partial class JsonNumber : JsonNode - { - private readonly string value; - private readonly bool overflows = false; - - internal JsonNumber(string value) - { - this.value = value ?? throw new ArgumentNullException(nameof(value)); - } - - internal JsonNumber(int value) - { - this.value = value.ToString(); - } - - internal JsonNumber(long value) - { - this.value = value.ToString(); - - if (value > 9007199254740991) - { - overflows = true; - } - } - - internal JsonNumber(float value) - { - this.value = value.ToString(System.Globalization.CultureInfo.InvariantCulture); - } - - internal JsonNumber(double value) - { - this.value = value.ToString(System.Globalization.CultureInfo.InvariantCulture); - } - - internal override JsonType Type => JsonType.Number; - - internal string Value => value; - - #region Helpers - - internal bool Overflows => overflows; - - internal bool IsInteger => !value.Contains("."); - - internal bool IsFloat => value.Contains("."); - - #endregion - - #region Casting - - public static implicit operator byte(JsonNumber number) - => byte.Parse(number.Value); - - public static implicit operator short(JsonNumber number) - => short.Parse(number.Value); - - public static implicit operator int(JsonNumber number) - => int.Parse(number.Value); - - public static implicit operator long(JsonNumber number) - => long.Parse(number.value); - - public static implicit operator UInt16(JsonNumber number) - => ushort.Parse(number.Value); - - public static implicit operator UInt32(JsonNumber number) - => uint.Parse(number.Value); - - public static implicit operator UInt64(JsonNumber number) - => ulong.Parse(number.Value); - - public static implicit operator decimal(JsonNumber number) - => decimal.Parse(number.Value, System.Globalization.CultureInfo.InvariantCulture); - - public static implicit operator Double(JsonNumber number) - => double.Parse(number.value, System.Globalization.CultureInfo.InvariantCulture); - - public static implicit operator float(JsonNumber number) - => float.Parse(number.value, System.Globalization.CultureInfo.InvariantCulture); - - public static implicit operator JsonNumber(short data) - => new JsonNumber(data.ToString()); - - public static implicit operator JsonNumber(int data) - => new JsonNumber(data); - - public static implicit operator JsonNumber(long data) - => new JsonNumber(data); - - public static implicit operator JsonNumber(Single data) - => new JsonNumber(data.ToString()); - - public static implicit operator JsonNumber(double data) - => new JsonNumber(data.ToString()); - - #endregion - - public override string ToString() => value; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonObject.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonObject.cs deleted file mode 100644 index 9fd26dc36ffd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonObject.cs +++ /dev/null @@ -1,172 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public partial class JsonObject : JsonNode, IDictionary - { - private readonly Dictionary items; - - internal JsonObject() - { - items = new Dictionary(); - } - - internal JsonObject(IEnumerable> properties) - { - if (properties == null) throw new ArgumentNullException(nameof(properties)); - - items = new Dictionary(); - - foreach (var field in properties) - { - items.Add(field.Key, field.Value); - } - } - - #region IDictionary Constructors - - internal JsonObject(IDictionary dic) - { - items = new Dictionary(dic.Count); - - foreach (var pair in dic) - { - Add(pair.Key, pair.Value); - } - } - - #endregion - - internal override JsonType Type => JsonType.Object; - - #region Add Overloads - - public void Add(string name, JsonNode value) => - items.Add(name, value); - - public void Add(string name, byte[] value) => - items.Add(name, new XBinary(value)); - - public void Add(string name, DateTime value) => - items.Add(name, new JsonDate(value)); - - public void Add(string name, int value) => - items.Add(name, new JsonNumber(value.ToString())); - - public void Add(string name, long value) => - items.Add(name, new JsonNumber(value.ToString())); - - public void Add(string name, float value) => - items.Add(name, new JsonNumber(value.ToString())); - - public void Add(string name, double value) => - items.Add(name, new JsonNumber(value.ToString())); - - public void Add(string name, string value) => - items.Add(name, new JsonString(value)); - - public void Add(string name, bool value) => - items.Add(name, new JsonBoolean(value)); - - public void Add(string name, Uri url) => - items.Add(name, new JsonString(url.AbsoluteUri)); - - public void Add(string name, string[] values) => - items.Add(name, new XImmutableArray(values)); - - public void Add(string name, int[] values) => - items.Add(name, new XImmutableArray(values)); - - #endregion - - #region ICollection> Members - - void ICollection>.Add(KeyValuePair item) - { - items.Add(item.Key, item.Value); - } - - void ICollection>.Clear() - { - items.Clear(); - } - - bool ICollection>.Contains(KeyValuePair item) => - throw new NotImplementedException(); - - void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) => - throw new NotImplementedException(); - - - int ICollection>.Count => items.Count; - - bool ICollection>.IsReadOnly => false; - - bool ICollection>.Remove(KeyValuePair item) => - throw new NotImplementedException(); - - #endregion - - #region IDictionary Members - - public bool ContainsKey(string key) => items.ContainsKey(key); - - public ICollection Keys => items.Keys; - - public bool Remove(string key) => items.Remove(key); - - public bool TryGetValue(string key, out JsonNode value) => - items.TryGetValue(key, out value); - - public ICollection Values => items.Values; - - public override JsonNode this[string key] - { - get => items[key]; - set => items[key] = value; - } - - #endregion - - #region IEnumerable - - IEnumerator> IEnumerable>.GetEnumerator() - => items.GetEnumerator(); - - IEnumerator IEnumerable.GetEnumerator() - => items.GetEnumerator(); - - #endregion - - #region Helpers - - internal static new JsonObject FromObject(object instance) => - (JsonObject)new JsonSerializer().Serialize(instance); - - #endregion - - #region Static Constructors - - internal static JsonObject FromStream(Stream stream) - { - using (var tr = new StreamReader(stream)) - { - return (JsonObject)Parse(tr); - } - } - - internal static new JsonObject Parse(string text) - { - return (JsonObject)JsonNode.Parse(text); - } - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonString.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonString.cs deleted file mode 100644 index 9f3d17f7747a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/JsonString.cs +++ /dev/null @@ -1,42 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed partial class JsonString : JsonNode, IEquatable - { - private readonly string value; - - internal JsonString(string value) - { - this.value = value ?? throw new ArgumentNullException(nameof(value)); - } - - internal override JsonType Type => JsonType.String; - - internal string Value => value; - - internal int Length => value.Length; - - #region #region Implicit Casts - - public static implicit operator string(JsonString data) => data.Value; - - public static implicit operator JsonString(string value) => new JsonString(value); - - #endregion - - public override int GetHashCode() => value.GetHashCode(); - - public override string ToString() => value; - - #region IEquatable - - bool IEquatable.Equals(JsonString other) => this.Value == other.Value; - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XBinary.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XBinary.cs deleted file mode 100644 index d1302ad1399f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XBinary.cs +++ /dev/null @@ -1,40 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal sealed class XBinary : JsonNode - { - private readonly byte[] _value; - private readonly string _base64; - - internal XBinary(byte[] value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - internal XBinary(string base64EncodedString) - { - _base64 = base64EncodedString ?? throw new ArgumentNullException(nameof(base64EncodedString)); - } - - internal override JsonType Type => JsonType.Binary; - - internal byte[] Value => _value ?? Convert.FromBase64String(_base64); - - #region #region Implicit Casts - - public static implicit operator byte[] (XBinary data) => data.Value; - - public static implicit operator XBinary(byte[] data) => new XBinary(data); - - #endregion - - public override int GetHashCode() => Value.GetHashCode(); - - public override string ToString() => _base64 ?? Convert.ToBase64String(_value); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XNull.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XNull.cs deleted file mode 100644 index b98624861d80..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Nodes/XNull.cs +++ /dev/null @@ -1,15 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal sealed class XNull : JsonNode - { - internal static readonly XNull Instance = new XNull(); - - private XNull() { } - - internal override JsonType Type => JsonType.Null; - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs deleted file mode 100644 index 8a2d2b2121c5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal class ParserException : Exception - { - internal ParserException(string message) - : base(message) - { } - - internal ParserException(string message, SourceLocation location) - : base(message) - { - - Location = location; - } - - internal SourceLocation Location { get; } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonParser.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonParser.cs deleted file mode 100644 index d4284aac52d4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonParser.cs +++ /dev/null @@ -1,180 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public class JsonParser : IDisposable - { - private readonly TokenReader reader; - - internal JsonParser(TextReader reader) - : this(new SourceReader(reader)) { } - - internal JsonParser(SourceReader sourceReader) - { - if (sourceReader == null) - throw new ArgumentNullException(nameof(sourceReader)); - - this.reader = new TokenReader(new JsonTokenizer(sourceReader)); - - this.reader.Next(); // Start with the first token - } - - internal IEnumerable ReadNodes() - { - JsonNode node; - - while ((node = ReadNode()) != null) yield return node; - } - - internal JsonNode ReadNode() - { - if (reader.Current.Kind == TokenKind.Eof || reader.Current.IsTerminator) - { - return null; - } - - switch (reader.Current.Kind) - { - case TokenKind.LeftBrace : return ReadObject(); // { - case TokenKind.LeftBracket : return ReadArray(); // [ - - default: throw new ParserException($"Expected '{{' or '['. Was {reader.Current}."); - } - } - - private JsonNode ReadFieldValue() - { - // Boolean, Date, Null, Number, String, Uri - if (reader.Current.IsLiteral) - { - return ReadLiteral(); - } - else - { - switch (reader.Current.Kind) - { - case TokenKind.LeftBracket: return ReadArray(); - case TokenKind.LeftBrace : return ReadObject(); - - default: throw new ParserException($"Unexpected token reading field value. Was {reader.Current}."); - } - } - } - - private JsonNode ReadLiteral() - { - var literal = reader.Current; - - reader.Next(); // Read the literal token - - switch (literal.Kind) - { - case TokenKind.Boolean : return JsonBoolean.Parse(literal.Value); - case TokenKind.Null : return XNull.Instance; - case TokenKind.Number : return new JsonNumber(literal.Value); - case TokenKind.String : return new JsonString(literal.Value); - - default: throw new ParserException($"Unexpected token reading literal. Was {literal}."); - } - } - - internal JsonObject ReadObject() - { - reader.Ensure(TokenKind.LeftBrace, "object"); - - reader.Next(); // Read '{' (Object start) - - var jsonObject = new JsonObject(); - - // Read the object's fields until we reach the end of the object ('}') - while (reader.Current.Kind != TokenKind.RightBrace) - { - if (reader.Current.Kind == TokenKind.Comma) - { - reader.Next(); // Read ',' (Seperator) - } - - // Ensure we have a field name - reader.Ensure(TokenKind.String, "Expected field name"); - - var field = ReadField(); - - jsonObject.Add(field.Key, field.Value); - } - - reader.Next(); // Read '}' (Object end) - - return jsonObject; - } - - - // TODO: Use ValueTuple in C#7 - private KeyValuePair ReadField() - { - var fieldName = reader.Current.Value; - - reader.Next(); // Read the field name - - reader.Ensure(TokenKind.Colon, "field"); - - reader.Next(); // Read ':' (Field value indicator) - - return new KeyValuePair(fieldName, ReadFieldValue()); - } - - - internal JsonArray ReadArray() - { - reader.Ensure(TokenKind.LeftBracket, "array"); - - var array = new XNodeArray(); - - reader.Next(); // Read the '[' (Array start) - - // Read the array's items - while (reader.Current.Kind != TokenKind.RightBracket) - { - if (reader.Current.Kind == TokenKind.Comma) - { - reader.Next(); // Read the ',' (Seperator) - } - - if (reader.Current.IsLiteral) - { - array.Add(ReadLiteral()); // Boolean, Date, Number, Null, String, Uri - } - else if (reader.Current.Kind == TokenKind.LeftBracket) - { - array.Add(ReadArray()); // Array - } - else if (reader.Current.Kind == TokenKind.LeftBrace) - { - array.Add(ReadObject()); // Object - } - else - { - throw new ParserException($"Expected comma, literal, or object. Was {reader.Current}."); - } - } - - reader.Next(); // Read the ']' (Array end) - - return array; - } - - #region IDisposable - - public void Dispose() - { - reader.Dispose(); - } - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonToken.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonToken.cs deleted file mode 100644 index ebad216e6f6f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonToken.cs +++ /dev/null @@ -1,66 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal enum TokenKind - { - LeftBrace, // { Object start - RightBrace, // } Object end - - LeftBracket, // [ Array start - RightBracket, // ] Array end - - Comma, // , Comma - Colon, // : Value indicator - Dot, // . Access field indicator - Terminator, // \0 Stream terminator - - Boolean = 31, // true or false - Null = 33, // null - Number = 34, // i.e. -1.93, -1, 0, 1, 1.1 - String = 35, // i.e. "text" - - Eof = 50 - } - - internal /* readonly */ struct JsonToken - { - internal static readonly JsonToken BraceOpen = new JsonToken(TokenKind.LeftBrace, "{"); - internal static readonly JsonToken BraceClose = new JsonToken(TokenKind.RightBrace, "}"); - - internal static readonly JsonToken BracketOpen = new JsonToken(TokenKind.LeftBracket, "["); - internal static readonly JsonToken BracketClose = new JsonToken(TokenKind.RightBracket, "]"); - - internal static readonly JsonToken Colon = new JsonToken(TokenKind.Colon, ":"); - internal static readonly JsonToken Comma = new JsonToken(TokenKind.Comma, ","); - internal static readonly JsonToken Terminator = new JsonToken(TokenKind.Terminator, "\0"); - - internal static readonly JsonToken True = new JsonToken(TokenKind.Boolean, "true"); - internal static readonly JsonToken False = new JsonToken(TokenKind.Boolean, "false"); - internal static readonly JsonToken Null = new JsonToken(TokenKind.Null, "null"); - - internal static readonly JsonToken Eof = new JsonToken(TokenKind.Eof, null); - - internal JsonToken(TokenKind kind, string value) - { - Kind = kind; - Value = value; - } - - internal readonly TokenKind Kind; - - internal readonly string Value; - - public override string ToString() => Kind + ": " + Value; - - #region Helpers - - internal bool IsLiteral => (byte)Kind > 30 && (byte)Kind < 40; - - internal bool IsTerminator => Kind == TokenKind.Terminator; - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonTokenizer.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonTokenizer.cs deleted file mode 100644 index 602c33ff331a..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/JsonTokenizer.cs +++ /dev/null @@ -1,177 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Text; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - using System.IO; - - - public class JsonTokenizer : IDisposable - { - private readonly StringBuilder sb = new StringBuilder(); - - private readonly SourceReader reader; - - internal JsonTokenizer(TextReader reader) - : this(new SourceReader(reader)) { } - - internal JsonTokenizer(SourceReader reader) - { - this.reader = reader; - - reader.Next(); // Start with the first char - } - - internal JsonToken ReadNext() - { - reader.SkipWhitespace(); - - if (reader.IsEof) return JsonToken.Eof; - - switch (reader.Current) - { - case '"': return ReadQuotedString(); - - // Symbols - case '[' : reader.Next(); return JsonToken.BracketOpen; // Array start - case ']' : reader.Next(); return JsonToken.BracketClose; // Array end - case ',' : reader.Next(); return JsonToken.Comma; // Value seperator - case ':' : reader.Next(); return JsonToken.Colon; // Field value indicator - case '{' : reader.Next(); return JsonToken.BraceOpen; // Object start - case '}' : reader.Next(); return JsonToken.BraceClose; // Object end - case '\0' : reader.Next(); return JsonToken.Terminator; // Stream terminiator - - default: return ReadLiteral(); - } - } - - private JsonToken ReadQuotedString() - { - Expect('"', "quoted string indicator"); - - reader.Next(); // Read '"' (Starting quote) - - // Read until we reach an unescaped quote char - while (reader.Current != '"') - { - EnsureNotEof("quoted string"); - - if (reader.Current == '\\') - { - char escapedCharacter = reader.ReadEscapeCode(); - - sb.Append(escapedCharacter); - - continue; - } - - StoreCurrentCharacterAndReadNext(); - } - - reader.Next(); // Read '"' (Ending quote) - - return new JsonToken(TokenKind.String, value: sb.Extract()); - } - - private JsonToken ReadLiteral() - { - if (char.IsDigit(reader.Current) || - reader.Current == '-' || - reader.Current == '+') - { - return ReadNumber(); - } - - return ReadIdentifer(); - } - - private JsonToken ReadNumber() - { - // Read until we hit a non-numeric character - // -6.247737e-06 - // E - - while (char.IsDigit(reader.Current) - || reader.Current == '.' - || reader.Current == 'e' - || reader.Current == 'E' - || reader.Current == '-' - || reader.Current == '+') - { - StoreCurrentCharacterAndReadNext(); - } - - return new JsonToken(TokenKind.Number, value: sb.Extract()); - } - - int count = 0; - - private JsonToken ReadIdentifer() - { - count++; - - if (!char.IsLetter(reader.Current)) - { - throw new ParserException( - message : $"Expected literal (number, boolean, or null). Was '{reader.Current}'.", - location : reader.Location - ); - } - - // Read letters, numbers, and underscores '_' - while (char.IsLetterOrDigit(reader.Current) || reader.Current == '_') - { - StoreCurrentCharacterAndReadNext(); - } - - string text = sb.Extract(); - - switch (text) - { - case "true": return JsonToken.True; - case "false": return JsonToken.False; - case "null": return JsonToken.Null; - - default: return new JsonToken(TokenKind.String, text); - } - } - - private void Expect(char character, string description) - { - if (reader.Current != character) - { - throw new ParserException( - message: $"Expected {description} ('{character}'). Was '{reader.Current}'.", - location: reader.Location - ); - } - } - - private void EnsureNotEof(string tokenType) - { - if (reader.IsEof) - { - throw new ParserException( - message: $"Unexpected EOF while reading {tokenType}.", - location: reader.Location - ); - } - } - - private void StoreCurrentCharacterAndReadNext() - { - sb.Append(reader.Current); - - reader.Next(); - } - - public void Dispose() - { - reader.Dispose(); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Location.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Location.cs deleted file mode 100644 index 88f85ce158ea..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Location.cs +++ /dev/null @@ -1,43 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal struct SourceLocation - { - private int line; - private int column; - private int position; - - internal SourceLocation(int line = 0, int column = 0, int position = 0) - { - this.line = line; - this.column = column; - this.position = position; - } - - internal int Line => line; - - internal int Column => column; - - internal int Position => position; - - internal void Advance() - { - this.column++; - this.position++; - } - - internal void MarkNewLine() - { - this.line++; - this.column = 0; - } - - internal SourceLocation Clone() - { - return new SourceLocation(line, column, position); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Readers/SourceReader.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Readers/SourceReader.cs deleted file mode 100644 index f6049c300b57..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/Readers/SourceReader.cs +++ /dev/null @@ -1,130 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Globalization; -using System.IO; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public sealed class SourceReader : IDisposable - { - private readonly TextReader source; - - private char current; - - private readonly SourceLocation location = new SourceLocation(); - - private bool isEof = false; - - internal SourceReader(TextReader textReader) - { - this.source = textReader ?? throw new ArgumentNullException(nameof(textReader)); - } - - /// - /// Advances to the next character - /// - internal void Next() - { - // Advance to the new line when we see a new line '\n'. - // A new line may be prefixed by a carriage return '\r'. - - if (current == '\n') - { - location.MarkNewLine(); - } - - int charCode = source.Read(); // -1 for end - - if (charCode >= 0) - { - current = (char)charCode; - } - else - { - // If we've already marked this as the EOF, throw an exception - if (isEof) - { - throw new EndOfStreamException("Cannot advance past end of stream."); - } - - isEof = true; - - current = '\0'; - } - - location.Advance(); - } - - internal void SkipWhitespace() - { - while (char.IsWhiteSpace(current)) - { - Next(); - } - } - - internal char ReadEscapeCode() - { - Next(); - - char escapedChar = current; - - Next(); // Consume escaped character - - switch (escapedChar) - { - // Special escape codes - case '"': return '"'; // " (Quotation mark) U+0022 - case '/': return '/'; // / (Solidus) U+002F - case '\\': return '\\'; // \ (Reverse solidus) U+005C - - // Control Characters - case '0': return '\0'; // Nul (0) U+0000 - case 'a': return '\a'; // Alert (7) - case 'b': return '\b'; // Backspace (8) U+0008 - case 'f': return '\f'; // Form feed (12) U+000C - case 'n': return '\n'; // Line feed (10) U+000A - case 'r': return '\r'; // Carriage return (13) U+000D - case 't': return '\t'; // Horizontal tab (9) U+0009 - case 'v': return '\v'; // Vertical tab - - // Unicode escape sequence - case 'u': return ReadUnicodeEscapeSequence(); // U+XXXX - - default: throw new Exception($"Unrecognized escape sequence '\\{escapedChar}'"); - } - } - - private readonly char[] hexCode = new char[4]; - - private char ReadUnicodeEscapeSequence() - { - hexCode[0] = current; Next(); - hexCode[1] = current; Next(); - hexCode[2] = current; Next(); - hexCode[3] = current; Next(); - - return Convert.ToChar(int.Parse( - s : new string(hexCode), - style : NumberStyles.HexNumber, - provider: NumberFormatInfo.InvariantInfo - )); - } - - internal char Current => current; - - internal bool IsEof => isEof; - - internal char Peek() => (char)source.Peek(); - - internal SourceLocation Location => location; - - public void Dispose() - { - source.Dispose(); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/TokenReader.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/TokenReader.cs deleted file mode 100644 index 8b4e124274a2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Parser/TokenReader.cs +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - public class TokenReader : IDisposable - { - private readonly JsonTokenizer tokenizer; - private JsonToken current; - - internal TokenReader(JsonTokenizer tokenizer) - { - this.tokenizer = tokenizer ?? throw new ArgumentNullException(nameof(tokenizer)); - } - - internal void Next() - { - current = tokenizer.ReadNext(); - } - - internal JsonToken Current => current; - - internal void Ensure(TokenKind kind, string readerName) - { - if (current.Kind != kind) - { - throw new ParserException($"Expected {kind} while reading {readerName}). Was {current}."); - } - } - - public void Dispose() - { - tokenizer.Dispose(); - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/PipelineMocking.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/PipelineMocking.cs deleted file mode 100644 index 7fcffb0bb196..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/PipelineMocking.cs +++ /dev/null @@ -1,262 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System.Threading.Tasks; - using System.Collections.Generic; - using System.Net.Http; - using System.Linq; - using System.Net; - using Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json; - - public enum MockMode - { - Live, - Record, - Playback, - - } - - public class PipelineMock - { - - private System.Collections.Generic.Stack scenario = new System.Collections.Generic.Stack(); - private System.Collections.Generic.Stack context = new System.Collections.Generic.Stack(); - private System.Collections.Generic.Stack description = new System.Collections.Generic.Stack(); - - private readonly string recordingPath; - private int counter = 0; - - public static implicit operator Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep(PipelineMock instance) => instance.SendAsync; - - public MockMode Mode { get; set; } = MockMode.Live; - public PipelineMock(string recordingPath) - { - this.recordingPath = recordingPath; - } - - public void PushContext(string text) => context.Push(text); - - public void PushDescription(string text) => description.Push(text); - - - public void PushScenario(string it) - { - // reset counter too - counter = 0; - - scenario.Push(it); - } - - public void PopContext() => context.Pop(); - - public void PopDescription() => description.Pop(); - - public void PopScenario() => scenario.Pop(); - - public void SetRecord() => Mode = MockMode.Record; - - public void SetPlayback() => Mode = MockMode.Playback; - - public void SetLive() => Mode = MockMode.Live; - - public string Scenario => (scenario.Count > 0 ? scenario.Peek() : "[NoScenario]"); - public string Description => (description.Count > 0 ? description.Peek() : "[NoDescription]"); - public string Context => (context.Count > 0 ? context.Peek() : "[NoContext]"); - - /// - /// Headers that we substitute out blank values for in the recordings - /// Add additional headers as necessary - /// - public static HashSet Blacklist = new HashSet(System.StringComparer.CurrentCultureIgnoreCase) { - "Authorization", - }; - - public Dictionary ForceResponseHeaders = new Dictionary(); - - internal static XImmutableArray Removed = new XImmutableArray(new string[] { "[Filtered]" }); - - internal static IEnumerable> FilterHeaders(IEnumerable>> headers) => headers.Select(header => new KeyValuePair(header.Key, Blacklist.Contains(header.Key) ? Removed : new XImmutableArray(header.Value.ToArray()))); - - internal static JsonNode SerializeContent(HttpContent content, ref bool isBase64) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result, ref isBase64); - - internal static JsonNode SerializeContent(byte[] content, ref bool isBase64) - { - if (null == content || content.Length == 0) - { - return XNull.Instance; - } - var first = content[0]; - var last = content[content.Length - 1]; - - // plaintext for JSON/SGML/XML/HTML/STRINGS/ARRAYS - if ((first == '{' && last == '}') || (first == '<' && last == '>') || (first == '[' && last == ']') || (first == '"' && last == '"')) - { - return new JsonString(System.Text.Encoding.UTF8.GetString(content)); - } - - // base64 for everyone else - return new JsonString(System.Convert.ToBase64String(content)); - } - - internal static byte[] DeserializeContent(string content, bool isBase64) - { - if (string.IsNullOrWhiteSpace(content)) - { - return new byte[0]; - } - - if (isBase64) - { - try - { - return System.Convert.FromBase64String(content); - } - catch - { - // hmm. didn't work, return it as a string I guess. - } - } - return System.Text.Encoding.UTF8.GetBytes(content); - } - - public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMessage response) - { - var messages = System.IO.File.Exists(this.recordingPath) ? Load() : new JsonObject() ?? new JsonObject(); - bool isBase64Request = false; - bool isBase64Response = false; - messages[rqKey] = new JsonObject { - { "Request",new JsonObject { - { "Method", request.Method.Method }, - { "RequestUri", request.RequestUri }, - { "Content", SerializeContent( request.Content, ref isBase64Request) }, - { "isContentBase64", isBase64Request }, - { "Headers", new JsonObject(FilterHeaders(request.Headers)) }, - { "ContentHeaders", request.Content == null ? new JsonObject() : new JsonObject(FilterHeaders(request.Content.Headers))} - } }, - {"Response", new JsonObject { - { "StatusCode", (int)response.StatusCode}, - { "Headers", new JsonObject(FilterHeaders(response.Headers))}, - { "ContentHeaders", new JsonObject(FilterHeaders(response.Content.Headers))}, - { "Content", SerializeContent(response.Content, ref isBase64Response) }, - { "isContentBase64", isBase64Response }, - }} - }; - System.IO.File.WriteAllText(this.recordingPath, messages.ToString()); - } - - private JsonObject Load() - { - if (System.IO.File.Exists(this.recordingPath)) - { - try - { - return JsonObject.FromStream(System.IO.File.OpenRead(this.recordingPath)); - } - catch - { - throw new System.Exception($"Invalid recording file: '{recordingPath}'"); - } - } - - throw new System.ArgumentException($"Missing recording file: '{recordingPath}'", nameof(recordingPath)); - } - - public HttpResponseMessage LoadMessage(string rqKey) - { - var responses = Load(); - var message = responses.Property(rqKey); - - if (null == message) - { - throw new System.ArgumentException($"Missing Request '{rqKey}' in recording file", nameof(rqKey)); - } - - var sc = 0; - var reqMessage = message.Property("Request"); - var respMessage = message.Property("Response"); - - // --------------------------- deserialize response ---------------------------------------------------------------- - bool isBase64Response = false; - respMessage.BooleanProperty("isContentBase64", ref isBase64Response); - var response = new HttpResponseMessage - { - StatusCode = (HttpStatusCode)respMessage.NumberProperty("StatusCode", ref sc), - Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"), isBase64Response)) - }; - - foreach (var each in respMessage.Property("Headers")) - { - response.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); - } - - foreach (var frh in ForceResponseHeaders) - { - response.Headers.Remove(frh.Key); - response.Headers.TryAddWithoutValidation(frh.Key, frh.Value); - } - - foreach (var each in respMessage.Property("ContentHeaders")) - { - response.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); - } - - // --------------------------- deserialize request ---------------------------------------------------------------- - bool isBase64Request = false; - reqMessage.BooleanProperty("isContentBase64", ref isBase64Request); - response.RequestMessage = new HttpRequestMessage - { - Method = new HttpMethod(reqMessage.StringProperty("Method")), - RequestUri = new System.Uri(reqMessage.StringProperty("RequestUri")), - Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"), isBase64Request)) - }; - - foreach (var each in reqMessage.Property("Headers")) - { - response.RequestMessage.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); - } - foreach (var each in reqMessage.Property("ContentHeaders")) - { - response.RequestMessage.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); - } - - return response; - } - - public async Task SendAsync(HttpRequestMessage request, IEventListener callback, ISendAsync next) - { - counter++; - var rqkey = $"{Description}+{Context}+{Scenario}+${request.Method.Method}+{request.RequestUri}+{counter}"; - - switch (Mode) - { - case MockMode.Record: - //Add following code since the request.Content will be released after sendAsync - var requestClone = request; - if (requestClone.Content != null) - { - requestClone = await request.CloneWithContent(request.RequestUri, request.Method); - } - // make the call - var response = await next.SendAsync(request, callback); - - // save the message to the recording file - SaveMessage(rqkey, requestClone, response); - - // return the response. - return response; - - case MockMode.Playback: - // load and return the response. - return LoadMessage(rqkey); - - default: - // pass-thru, do nothing - return await next.SendAsync(request, callback); - } - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.Designer.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.Designer.cs deleted file mode 100644 index 0783d914152d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.Designer.cs +++ /dev/null @@ -1,5655 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.generated.runtime.Properties -{ - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class Resources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager - { - get - { - if (object.ReferenceEquals(resourceMan, null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.generated.runtime.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The remote server returned an error: (401) Unauthorized.. - /// - public static string AccessDeniedExceptionMessage - { - get - { - return ResourceManager.GetString("AccessDeniedExceptionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Account id doesn't match one in subscription.. - /// - public static string AccountIdDoesntMatchSubscription - { - get - { - return ResourceManager.GetString("AccountIdDoesntMatchSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Account needs to be specified. - /// - public static string AccountNeedsToBeSpecified - { - get - { - return ResourceManager.GetString("AccountNeedsToBeSpecified", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Account "{0}" has been added.. - /// - public static string AddAccountAdded - { - get - { - return ResourceManager.GetString("AddAccountAdded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to To switch to a different subscription, please use Select-AzureSubscription.. - /// - public static string AddAccountChangeSubscription - { - get - { - return ResourceManager.GetString("AddAccountChangeSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Skipping external tenant {0}, because you are using a guest or a foreign principal object identity. In order to access this tenant, please run Add-AzureAccount without "-Credential".. - /// - public static string AddAccountNonInteractiveGuestOrFpo - { - get - { - return ResourceManager.GetString("AddAccountNonInteractiveGuestOrFpo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Subscription "{0}" is selected as the default subscription.. - /// - public static string AddAccountShowDefaultSubscription - { - get - { - return ResourceManager.GetString("AddAccountShowDefaultSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to To view all the subscriptions, please use Get-AzureSubscription.. - /// - public static string AddAccountViewSubscriptions - { - get - { - return ResourceManager.GetString("AddAccountViewSubscriptions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add-On {0} is created successfully.. - /// - public static string AddOnCreatedMessage - { - get - { - return ResourceManager.GetString("AddOnCreatedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add-on name {0} is already used.. - /// - public static string AddOnNameAlreadyUsed - { - get - { - return ResourceManager.GetString("AddOnNameAlreadyUsed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add-On {0} not found.. - /// - public static string AddOnNotFound - { - get - { - return ResourceManager.GetString("AddOnNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add-on {0} is removed successfully.. - /// - public static string AddOnRemovedMessage - { - get - { - return ResourceManager.GetString("AddOnRemovedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add-On {0} is updated successfully.. - /// - public static string AddOnUpdatedMessage - { - get - { - return ResourceManager.GetString("AddOnUpdatedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Role has been created at {0}\{1}.. - /// - public static string AddRoleMessageCreate - { - get - { - return ResourceManager.GetString("AddRoleMessageCreate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for Node.js by running ‘npm install azure’.. - /// - public static string AddRoleMessageCreateNode - { - get - { - return ResourceManager.GetString("AddRoleMessageCreateNode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for PHP by running "pear WindowsAzure/WindowsAzure".. - /// - public static string AddRoleMessageCreatePHP - { - get - { - return ResourceManager.GetString("AddRoleMessageCreatePHP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to set role permissions. Please give the 'Network Service' user 'Read & execute' and 'Modify' permissions to the role folder, or run PowerShell as an Administrator. - /// - public static string AddRoleMessageInsufficientPermissions - { - get - { - return ResourceManager.GetString("AddRoleMessageInsufficientPermissions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A role name '{0}' already exists. - /// - public static string AddRoleMessageRoleExists - { - get - { - return ResourceManager.GetString("AddRoleMessageRoleExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Profile {0} already has an endpoint with name {1}. - /// - public static string AddTrafficManagerEndpointFailed - { - get - { - return ResourceManager.GetString("AddTrafficManagerEndpointFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Azure PowerShell collects usage data in order to improve your experience. - ///The data is anonymous and does not include commandline argument values. - ///The data is collected by Microsoft. - /// - ///Use the Disable-AzDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Az.Accounts module. To disable data collection: PS > Disable-AzDataCollection. - ///Use the Enable-AzDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Az.Accounts module. To enable [rest of string was truncated]";. - /// - public static string ARMDataCollectionMessage - { - get - { - return ResourceManager.GetString("ARMDataCollectionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [Common.Authentication]: Authenticating for account {0} with single tenant {1}.. - /// - public static string AuthenticatingForSingleTenant - { - get - { - return ResourceManager.GetString("AuthenticatingForSingleTenant", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Windows Azure Powershell\. - /// - public static string AzureDirectory - { - get - { - return ResourceManager.GetString("AzureDirectory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to https://manage.windowsazure.com. - /// - public static string AzurePortalUrl - { - get - { - return ResourceManager.GetString("AzurePortalUrl", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to AZURE_PORTAL_URL. - /// - public static string AzurePortalUrlEnv - { - get - { - return ResourceManager.GetString("AzurePortalUrlEnv", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Selected profile must not be null.. - /// - public static string AzureProfileMustNotBeNull - { - get - { - return ResourceManager.GetString("AzureProfileMustNotBeNull", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Azure SDK\{0}\. - /// - public static string AzureSdkDirectory - { - get - { - return ResourceManager.GetString("AzureSdkDirectory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to File '{0}' already exists. Use the -Force parameter to overwrite it.. - /// - public static string AzureVMDscArchiveAlreadyExists - { - get - { - return ResourceManager.GetString("AzureVMDscArchiveAlreadyExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot find configuration data file: {0}. - /// - public static string AzureVMDscCannotFindConfigurationDataFile - { - get - { - return ResourceManager.GetString("AzureVMDscCannotFindConfigurationDataFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Create Archive. - /// - public static string AzureVMDscCreateArchiveAction - { - get - { - return ResourceManager.GetString("AzureVMDscCreateArchiveAction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The configuration data must be a .psd1 file. - /// - public static string AzureVMDscInvalidConfigurationDataFile - { - get - { - return ResourceManager.GetString("AzureVMDscInvalidConfigurationDataFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Parsing configuration script: {0}. - /// - public static string AzureVMDscParsingConfiguration - { - get - { - return ResourceManager.GetString("AzureVMDscParsingConfiguration", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Storage Blob '{0}' already exists. Use the -Force parameter to overwrite it.. - /// - public static string AzureVMDscStorageBlobAlreadyExists - { - get - { - return ResourceManager.GetString("AzureVMDscStorageBlobAlreadyExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Upload '{0}'. - /// - public static string AzureVMDscUploadToBlobStorageAction - { - get - { - return ResourceManager.GetString("AzureVMDscUploadToBlobStorageAction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Execution failed because a background thread could not prompt the user.. - /// - public static string BaseShouldMethodFailureReason - { - get - { - return ResourceManager.GetString("BaseShouldMethodFailureReason", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Base Uri was empty.. - /// - public static string BaseUriEmpty - { - get - { - return ResourceManager.GetString("BaseUriEmpty", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} begin processing without ParameterSet.. - /// - public static string BeginProcessingWithoutParameterSetLog - { - get - { - return ResourceManager.GetString("BeginProcessingWithoutParameterSetLog", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} begin processing with ParameterSet '{1}'.. - /// - public static string BeginProcessingWithParameterSetLog - { - get - { - return ResourceManager.GetString("BeginProcessingWithParameterSetLog", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Blob with the name {0} already exists in the account.. - /// - public static string BlobAlreadyExistsInTheAccount - { - get - { - return ResourceManager.GetString("BlobAlreadyExistsInTheAccount", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to https://{0}.blob.core.windows.net/. - /// - public static string BlobEndpointUri - { - get - { - return ResourceManager.GetString("BlobEndpointUri", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to AZURE_BLOBSTORAGE_TEMPLATE. - /// - public static string BlobEndpointUriEnv - { - get - { - return ResourceManager.GetString("BlobEndpointUriEnv", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The parameter : '{0}' is changing.. - /// - public static string BreakingChangeAttributeParameterChanging - { - get - { - return ResourceManager.GetString("BreakingChangeAttributeParameterChanging", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The parameter : '{0}' is becoming mandatory.. - /// - public static string BreakingChangeAttributeParameterMandatoryNow - { - get - { - return ResourceManager.GetString("BreakingChangeAttributeParameterMandatoryNow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The parameter : '{0}' is being replaced by parameter : '{1}'.. - /// - public static string BreakingChangeAttributeParameterReplaced - { - get - { - return ResourceManager.GetString("BreakingChangeAttributeParameterReplaced", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The parameter : '{0}' is being replaced by mandatory parameter : '{1}'.. - /// - public static string BreakingChangeAttributeParameterReplacedMandatory - { - get - { - return ResourceManager.GetString("BreakingChangeAttributeParameterReplacedMandatory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The type of the parameter is changing from '{0}' to '{1}'.. - /// - public static string BreakingChangeAttributeParameterTypeChange - { - get - { - return ResourceManager.GetString("BreakingChangeAttributeParameterTypeChange", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Change description : {0} - ///. - /// - public static string BreakingChangesAttributesChangeDescriptionMessage - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesChangeDescriptionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The cmdlet is being deprecated. There will be no replacement for it.. - /// - public static string BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The cmdlet is being deprecated. There will be no replacement for it.. - /// - public static string BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The cmdlet '{0}' is replacing this cmdlet.. - /// - public static string BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The output type is changing from the existing type :'{0}' to the new type :'{1}'. - /// - public static string BreakingChangesAttributesCmdLetOutputChange1 - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputChange1", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to "The output type '{0}' is changing". - /// - public static string BreakingChangesAttributesCmdLetOutputChange2 - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputChange2", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ///- The following properties are being added to the output type : - ///. - /// - public static string BreakingChangesAttributesCmdLetOutputPropertiesAdded - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputPropertiesAdded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - /// - The following properties in the output type are being deprecated : - ///. - /// - public static string BreakingChangesAttributesCmdLetOutputPropertiesRemoved - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputPropertiesRemoved", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The output type '{0}' is being deprecated without a replacement.. - /// - public static string BreakingChangesAttributesCmdLetOutputTypeDeprecated - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputTypeDeprecated", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - {0} - /// - ///. - /// - public static string BreakingChangesAttributesDeclarationMessage - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesDeclarationMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - Cmdlet : '{0}' - /// - {1} - ///. - /// - public static string BreakingChangesAttributesDeclarationMessageWithCmdletName - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesDeclarationMessageWithCmdletName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to NOTE : Go to {0} for steps to suppress (and other related information on) the breaking change messages.. - /// - public static string BreakingChangesAttributesFooterMessage - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesFooterMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Breaking changes in the cmdlet '{0}' :. - /// - public static string BreakingChangesAttributesHeaderMessage - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesHeaderMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Note : This change will take effect on '{0}' - ///. - /// - public static string BreakingChangesAttributesInEffectByDateMessage - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesInEffectByDateMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}' - /// - ///. - /// - public static string BreakingChangesAttributesInEffectByVersion - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesInEffectByVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}' - /// - ///. - /// - public static string BreakingChangesAttributesInEffectByAzVersion - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ```powershell - ///# Old - ///{0} - /// - ///# New - ///{1} - ///``` - /// - ///. - /// - public static string BreakingChangesAttributesUsageChangeMessage - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesUsageChangeMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cmdlet invocation changes : - /// Old Way : {0} - /// New Way : {1}. - /// - public static string BreakingChangesAttributesUsageChangeMessageConsole - { - get - { - return ResourceManager.GetString("BreakingChangesAttributesUsageChangeMessageConsole", resourceCulture); - } - } - - /// - /// The cmdlet is in experimental stage. The function may not be enabled in current subscription. - /// - public static string ExperimentalCmdletMessage - { - get - { - return ResourceManager.GetString("ExperimentalCmdletMessage", resourceCulture); - } - } - - - - /// - /// Looks up a localized string similar to CACHERUNTIMEURL. - /// - public static string CacheRuntimeUrl - { - get - { - return ResourceManager.GetString("CacheRuntimeUrl", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to cache. - /// - public static string CacheRuntimeValue - { - get - { - return ResourceManager.GetString("CacheRuntimeValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to CacheRuntimeVersion. - /// - public static string CacheRuntimeVersionKey - { - get - { - return ResourceManager.GetString("CacheRuntimeVersionKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Installing caching version {0} for Role '{1}' (the caching version locally installed is: {2}). - /// - public static string CacheVersionWarningText - { - get - { - return ResourceManager.GetString("CacheVersionWarningText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot change built-in environment {0}.. - /// - public static string CannotChangeBuiltinEnvironment - { - get - { - return ResourceManager.GetString("CannotChangeBuiltinEnvironment", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot find {0} with name {1}.. - /// - public static string CannotFind - { - get - { - return ResourceManager.GetString("CannotFind", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Deployment for service {0} with {1} slot doesn't exist. - /// - public static string CannotFindDeployment - { - get - { - return ResourceManager.GetString("CannotFindDeployment", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Can't find valid Microsoft Azure role in current directory {0}. - /// - public static string CannotFindRole - { - get - { - return ResourceManager.GetString("CannotFindRole", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to service {0} configuration file (ServiceConfiguration.Cloud.cscfg) is either null or doesn't exist. - /// - public static string CannotFindServiceConfigurationFile - { - get - { - return ResourceManager.GetString("CannotFindServiceConfigurationFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid service path! Cannot locate ServiceDefinition.csdef in current folder or parent folders.. - /// - public static string CannotFindServiceRoot - { - get - { - return ResourceManager.GetString("CannotFindServiceRoot", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The subscription named {0} with id {1} is not currently imported. You must import this subscription before it can be updated.. - /// - public static string CannotUpdateUnknownSubscription - { - get - { - return ResourceManager.GetString("CannotUpdateUnknownSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ManagementCertificate. - /// - public static string CertificateElementName - { - get - { - return ResourceManager.GetString("CertificateElementName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to certificate.pfx. - /// - public static string CertificateFileName - { - get - { - return ResourceManager.GetString("CertificateFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Certificate imported into CurrentUser\My\{0}. - /// - public static string CertificateImportedMessage - { - get - { - return ResourceManager.GetString("CertificateImportedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No certificate was found in the certificate store with thumbprint {0}. - /// - public static string CertificateNotFoundInStore - { - get - { - return ResourceManager.GetString("CertificateNotFoundInStore", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Your account does not have access to the private key for certificate {0}. - /// - public static string CertificatePrivateKeyAccessError - { - get - { - return ResourceManager.GetString("CertificatePrivateKeyAccessError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} {1} deployment for {2} service. - /// - public static string ChangeDeploymentStateWaitMessage - { - get - { - return ResourceManager.GetString("ChangeDeploymentStateWaitMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cloud service {0} is in {1} state.. - /// - public static string ChangeDeploymentStatusCompleteMessage - { - get - { - return ResourceManager.GetString("ChangeDeploymentStatusCompleteMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Changing/Removing public environment '{0}' is not allowed.. - /// - public static string ChangePublicEnvironmentMessage - { - get - { - return ResourceManager.GetString("ChangePublicEnvironmentMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Service {0} is set to value {1}. - /// - public static string ChangeSettingsElementMessage - { - get - { - return ResourceManager.GetString("ChangeSettingsElementMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Changing public environment is not supported.. - /// - public static string ChangingDefaultEnvironmentNotSupported - { - get - { - return ResourceManager.GetString("ChangingDefaultEnvironmentNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Choose which publish settings file to use:. - /// - public static string ChoosePublishSettingsFile - { - get - { - return ResourceManager.GetString("ChoosePublishSettingsFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel. - /// - public static string ClientDiagnosticLevelName - { - get - { - return ResourceManager.GetString("ClientDiagnosticLevelName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 1. - /// - public static string ClientDiagnosticLevelValue - { - get - { - return ResourceManager.GetString("ClientDiagnosticLevelValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to cloud_package.cspkg. - /// - public static string CloudPackageFileName - { - get - { - return ResourceManager.GetString("CloudPackageFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ServiceConfiguration.Cloud.cscfg. - /// - public static string CloudServiceConfigurationFileName - { - get - { - return ResourceManager.GetString("CloudServiceConfigurationFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add-ons for {0}. - /// - public static string CloudServiceDescription - { - get - { - return ResourceManager.GetString("CloudServiceDescription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Communication could not be established. This could be due to an invalid subscription ID. Note that subscription IDs are case sensitive.. - /// - public static string CommunicationCouldNotBeEstablished - { - get - { - return ResourceManager.GetString("CommunicationCouldNotBeEstablished", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Complete. - /// - public static string CompleteMessage - { - get - { - return ResourceManager.GetString("CompleteMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to OperationID : '{0}'. - /// - public static string ComputeCloudExceptionOperationIdMessage - { - get - { - return ResourceManager.GetString("ComputeCloudExceptionOperationIdMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to config.json. - /// - public static string ConfigurationFileName - { - get - { - return ResourceManager.GetString("ConfigurationFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VirtualMachine creation failed.. - /// - public static string CreateFailedErrorMessage - { - get - { - return ResourceManager.GetString("CreateFailedErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Creating the website failed. If this is the first website for this subscription, please create it using the management portal instead.. - /// - public static string CreateWebsiteFailed - { - get - { - return ResourceManager.GetString("CreateWebsiteFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core. - /// - public static string DataCacheClientsType - { - get - { - return ResourceManager.GetString("DataCacheClientsType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to //blobcontainer[@datacenter='{0}']. - /// - public static string DatacenterBlobQuery - { - get - { - return ResourceManager.GetString("DatacenterBlobQuery", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft Azure PowerShell Data Collection Confirmation. - /// - public static string DataCollectionActivity - { - get - { - return ResourceManager.GetString("DataCollectionActivity", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You choose not to participate in Microsoft Azure PowerShell data collection.. - /// - public static string DataCollectionConfirmNo - { - get - { - return ResourceManager.GetString("DataCollectionConfirmNo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This confirmation message will be dismissed in '{0}' second(s).... - /// - public static string DataCollectionConfirmTime - { - get - { - return ResourceManager.GetString("DataCollectionConfirmTime", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You choose to participate in Microsoft Azure PowerShell data collection.. - /// - public static string DataCollectionConfirmYes - { - get - { - return ResourceManager.GetString("DataCollectionConfirmYes", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The setting profile has been saved to the following path '{0}'.. - /// - public static string DataCollectionSaveFileInformation - { - get - { - return ResourceManager.GetString("DataCollectionSaveFileInformation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Setting: {0} as the default and current subscription. To view other subscriptions use Get-AzureSubscription. - /// - public static string DefaultAndCurrentSubscription - { - get - { - return ResourceManager.GetString("DefaultAndCurrentSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to none. - /// - public static string DefaultFileVersion - { - get - { - return ResourceManager.GetString("DefaultFileVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There are no hostnames which could be used for validation.. - /// - public static string DefaultHostnamesValidation - { - get - { - return ResourceManager.GetString("DefaultHostnamesValidation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 8080. - /// - public static string DefaultPort - { - get - { - return ResourceManager.GetString("DefaultPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 1000. - /// - public static string DefaultRoleCachingInMB - { - get - { - return ResourceManager.GetString("DefaultRoleCachingInMB", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Auto. - /// - public static string DefaultUpgradeMode - { - get - { - return ResourceManager.GetString("DefaultUpgradeMode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 80. - /// - public static string DefaultWebPort - { - get - { - return ResourceManager.GetString("DefaultWebPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete. - /// - public static string Delete - { - get - { - return ResourceManager.GetString("Delete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} slot for service {1} is already in {2} state. - /// - public static string DeploymentAlreadyInState - { - get - { - return ResourceManager.GetString("DeploymentAlreadyInState", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The deployment in {0} slot for service {1} is removed. - /// - public static string DeploymentRemovedMessage - { - get - { - return ResourceManager.GetString("DeploymentRemovedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel. - /// - public static string DiagnosticLevelName - { - get - { - return ResourceManager.GetString("DiagnosticLevelName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 1. - /// - public static string DiagnosticLevelValue - { - get - { - return ResourceManager.GetString("DiagnosticLevelValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The key to add already exists in the dictionary.. - /// - public static string DictionaryAddAlreadyContainsKey - { - get - { - return ResourceManager.GetString("DictionaryAddAlreadyContainsKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The array index cannot be less than zero.. - /// - public static string DictionaryCopyToArrayIndexLessThanZero - { - get - { - return ResourceManager.GetString("DictionaryCopyToArrayIndexLessThanZero", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The supplied array does not have enough room to contain the copied elements.. - /// - public static string DictionaryCopyToArrayTooShort - { - get - { - return ResourceManager.GetString("DictionaryCopyToArrayTooShort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided dns {0} doesn't exist. - /// - public static string DnsDoesNotExist - { - get - { - return ResourceManager.GetString("DnsDoesNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft Azure Certificate. - /// - public static string EnableRemoteDesktop_FriendlyCertificateName - { - get - { - return ResourceManager.GetString("EnableRemoteDesktop_FriendlyCertificateName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Endpoint can't be retrieved for storage account. - /// - public static string EndPointNotFoundForBlobStorage - { - get - { - return ResourceManager.GetString("EndPointNotFoundForBlobStorage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} end processing.. - /// - public static string EndProcessingLog - { - get - { - return ResourceManager.GetString("EndProcessingLog", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to To use Active Directory authentication, you must configure the ActiveDirectoryEndpoint, ActiveDirectoryTenantId, and ActiveDirectorServiceEndpointResourceId for environment of '{0}'. You can configure these properties for this environment using the Set-AzureEnvironment cmdlet.. - /// - public static string EnvironmentDoesNotSupportActiveDirectory - { - get - { - return ResourceManager.GetString("EnvironmentDoesNotSupportActiveDirectory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The environment '{0}' already exists.. - /// - public static string EnvironmentExists - { - get - { - return ResourceManager.GetString("EnvironmentExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Environment name doesn't match one in subscription.. - /// - public static string EnvironmentNameDoesntMatchSubscription - { - get - { - return ResourceManager.GetString("EnvironmentNameDoesntMatchSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Environment name needs to be specified.. - /// - public static string EnvironmentNameNeedsToBeSpecified - { - get - { - return ResourceManager.GetString("EnvironmentNameNeedsToBeSpecified", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Environment needs to be specified.. - /// - public static string EnvironmentNeedsToBeSpecified - { - get - { - return ResourceManager.GetString("EnvironmentNeedsToBeSpecified", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The environment name '{0}' is not found.. - /// - public static string EnvironmentNotFound - { - get - { - return ResourceManager.GetString("EnvironmentNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to environments.xml. - /// - public static string EnvironmentsFileName - { - get - { - return ResourceManager.GetString("EnvironmentsFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error creating VirtualMachine. - /// - public static string ErrorCreatingVirtualMachine - { - get - { - return ResourceManager.GetString("ErrorCreatingVirtualMachine", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to download available runtimes for location '{0}'. - /// - public static string ErrorRetrievingRuntimesForLocation - { - get - { - return ResourceManager.GetString("ErrorRetrievingRuntimesForLocation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error updating VirtualMachine. - /// - public static string ErrorUpdatingVirtualMachine - { - get - { - return ResourceManager.GetString("ErrorUpdatingVirtualMachine", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Job Id {0} failed. Error: {1}, ExceptionDetails: {2}. - /// - public static string FailedJobErrorMessage - { - get - { - return ResourceManager.GetString("FailedJobErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to File path is not valid.. - /// - public static string FilePathIsNotValid - { - get - { - return ResourceManager.GetString("FilePathIsNotValid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The HTTP request was forbidden with client authentication scheme 'Anonymous'.. - /// - public static string FirstPurchaseErrorMessage - { - get - { - return ResourceManager.GetString("FirstPurchaseErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This add-on requires you to purchase the first instance through the Microsoft Azure Portal. Subsequent purchases can be performed through PowerShell.. - /// - public static string FirstPurchaseMessage - { - get - { - return ResourceManager.GetString("FirstPurchaseMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Operation Status:. - /// - public static string GatewayOperationStatus - { - get - { - return ResourceManager.GetString("GatewayOperationStatus", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Resources\Scaffolding\General. - /// - public static string GeneralScaffolding - { - get - { - return ResourceManager.GetString("GeneralScaffolding", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Getting all available Microsoft Azure Add-Ons, this may take few minutes.... - /// - public static string GetAllAddOnsWaitMessage - { - get - { - return ResourceManager.GetString("GetAllAddOnsWaitMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Name{0}Primary Key{0}Seconday Key. - /// - public static string GetStorageKeysHeader - { - get - { - return ResourceManager.GetString("GetStorageKeysHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Git not found. Please install git and place it in your command line path.. - /// - public static string GitNotFound - { - get - { - return ResourceManager.GetString("GitNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Could not find publish settings. Please run Import-AzurePublishSettingsFile.. - /// - public static string GlobalSettingsManager_Load_PublishSettingsNotFound - { - get - { - return ResourceManager.GetString("GlobalSettingsManager_Load_PublishSettingsNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot find the WadCfg end element in the config.. - /// - public static string IaasDiagnosticsBadConfigNoEndWadCfg - { - get - { - return ResourceManager.GetString("IaasDiagnosticsBadConfigNoEndWadCfg", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WadCfg start element in the config is not matching the end element.. - /// - public static string IaasDiagnosticsBadConfigNoMatchingWadCfg - { - get - { - return ResourceManager.GetString("IaasDiagnosticsBadConfigNoMatchingWadCfg", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot find the WadCfg element in the config.. - /// - public static string IaasDiagnosticsBadConfigNoWadCfg - { - get - { - return ResourceManager.GetString("IaasDiagnosticsBadConfigNoWadCfg", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to iisnode.dll. - /// - public static string IISNodeDll - { - get - { - return ResourceManager.GetString("IISNodeDll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to iisnode. - /// - public static string IISNodeEngineKey - { - get - { - return ResourceManager.GetString("IISNodeEngineKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to iisnode-dev\\release\\x64. - /// - public static string IISNodePath - { - get - { - return ResourceManager.GetString("IISNodePath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to iisnode. - /// - public static string IISNodeRuntimeValue - { - get - { - return ResourceManager.GetString("IISNodeRuntimeValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Installing IISNode version {0} in Azure for WebRole '{1}' (the version locally installed is: {2}). - /// - public static string IISNodeVersionWarningText - { - get - { - return ResourceManager.GetString("IISNodeVersionWarningText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Illegal characters in path.. - /// - public static string IllegalPath - { - get - { - return ResourceManager.GetString("IllegalPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Server Error. - /// - public static string InternalServerErrorMessage - { - get - { - return ResourceManager.GetString("InternalServerErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot enable memcach protocol on a cache worker role {0}.. - /// - public static string InvalidCacheRoleName - { - get - { - return ResourceManager.GetString("InvalidCacheRoleName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid certificate format. Publish settings may be corrupted. Use Get-AzurePublishSettingsFile to download updated settings. - /// - public static string InvalidCertificate - { - get - { - return ResourceManager.GetString("InvalidCertificate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid certificate format.. - /// - public static string InvalidCertificateSingle - { - get - { - return ResourceManager.GetString("InvalidCertificateSingle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided configuration path is invalid or doesn't exist. - /// - public static string InvalidConfigPath - { - get - { - return ResourceManager.GetString("InvalidConfigPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The country name is invalid, please use a valid two character country code, as described in ISO 3166-1 alpha-2.. - /// - public static string InvalidCountryNameMessage - { - get - { - return ResourceManager.GetString("InvalidCountryNameMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription.. - /// - public static string InvalidDefaultSubscription - { - get - { - return ResourceManager.GetString("InvalidDefaultSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Deployment with {0} does not exist. - /// - public static string InvalidDeployment - { - get - { - return ResourceManager.GetString("InvalidDeployment", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The deployment slot name {0} is invalid. Slot name must be either "Staging" or "Production".. - /// - public static string InvalidDeploymentSlot - { - get - { - return ResourceManager.GetString("InvalidDeploymentSlot", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to "{0}" is an invalid DNS name for {1}. - /// - public static string InvalidDnsName - { - get - { - return ResourceManager.GetString("InvalidDnsName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid service endpoint.. - /// - public static string InvalidEndpoint - { - get - { - return ResourceManager.GetString("InvalidEndpoint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided file in {0} must be have {1} extension. - /// - public static string InvalidFileExtension - { - get - { - return ResourceManager.GetString("InvalidFileExtension", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to File {0} has invalid characters. - /// - public static string InvalidFileName - { - get - { - return ResourceManager.GetString("InvalidFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You must create your git publishing credentials using the Microsoft Azure portal. - ///Please follow these steps in the portal: - ///1. On the left side open "Web Sites" - ///2. Click on any website - ///3. Choose "Setup Git Publishing" or "Reset deployment credentials" - ///4. Back in the PowerShell window, rerun this command by typing "New-AzureWebSite {site name} -Git -PublishingUsername {username}. - /// - public static string InvalidGitCredentials - { - get - { - return ResourceManager.GetString("InvalidGitCredentials", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The value {0} provided is not a valid GUID. Please provide a valid GUID.. - /// - public static string InvalidGuid - { - get - { - return ResourceManager.GetString("InvalidGuid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified hostname does not exist. Please specify a valid hostname for the site.. - /// - public static string InvalidHostnameValidation - { - get - { - return ResourceManager.GetString("InvalidHostnameValidation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Role {0} instances must be greater than or equal 0 and less than or equal 20. - /// - public static string InvalidInstancesCount - { - get - { - return ResourceManager.GetString("InvalidInstancesCount", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There was an error creating your webjob. Please make sure that the script is in the root folder of the zip file.. - /// - public static string InvalidJobFile - { - get - { - return ResourceManager.GetString("InvalidJobFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Could not download a valid runtime manifest, Please check your internet connection and try again.. - /// - public static string InvalidManifestError - { - get - { - return ResourceManager.GetString("InvalidManifestError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The account {0} was not found. Please specify a valid account name.. - /// - public static string InvalidMediaServicesAccount - { - get - { - return ResourceManager.GetString("InvalidMediaServicesAccount", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided name "{0}" does not match the service bus namespace naming rules.. - /// - public static string InvalidNamespaceName - { - get - { - return ResourceManager.GetString("InvalidNamespaceName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Path must specify a valid path to an Azure profile.. - /// - public static string InvalidNewProfilePath - { - get - { - return ResourceManager.GetString("InvalidNewProfilePath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Value cannot be null. Parameter name: '{0}'. - /// - public static string InvalidNullArgument - { - get - { - return ResourceManager.GetString("InvalidNullArgument", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} is invalid or empty. - /// - public static string InvalidOrEmptyArgumentMessage - { - get - { - return ResourceManager.GetString("InvalidOrEmptyArgumentMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided package path is invalid or doesn't exist. - /// - public static string InvalidPackagePath - { - get - { - return ResourceManager.GetString("InvalidPackagePath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to '{0}' is an invalid parameter set name.. - /// - public static string InvalidParameterSetName - { - get - { - return ResourceManager.GetString("InvalidParameterSetName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} doesn't exist in {1} or you've not passed valid value for it. - /// - public static string InvalidPath - { - get - { - return ResourceManager.GetString("InvalidPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Path {0} has invalid characters. - /// - public static string InvalidPathName - { - get - { - return ResourceManager.GetString("InvalidPathName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Property bag Hashtable must contain one of the following sets of properties: {SubscriptionId, Certificate}, {SubscriptionId, Username, Password}, {SubscriptionId, ServicePrincipal, Password, Tenant}, {SubscriptionId, AccountId, Token}. - /// - public static string InvalidProfileProperties - { - get - { - return ResourceManager.GetString("InvalidProfileProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided publish settings file {0} has invalid content. Please get valid by running cmdlet Get-AzurePublishSettingsFile. - /// - public static string InvalidPublishSettingsSchema - { - get - { - return ResourceManager.GetString("InvalidPublishSettingsSchema", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided role name "{0}" has invalid characters. - /// - public static string InvalidRoleNameMessage - { - get - { - return ResourceManager.GetString("InvalidRoleNameMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A valid name for the service root folder is required. - /// - public static string InvalidRootNameMessage - { - get - { - return ResourceManager.GetString("InvalidRootNameMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} is not a recognized runtime type. - /// - public static string InvalidRuntimeError - { - get - { - return ResourceManager.GetString("InvalidRuntimeError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A valid language is required. - /// - public static string InvalidScaffoldingLanguageArg - { - get - { - return ResourceManager.GetString("InvalidScaffoldingLanguageArg", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No subscription is currently selected. Use Select-Subscription to activate a subscription.. - /// - public static string InvalidSelectedSubscription - { - get - { - return ResourceManager.GetString("InvalidSelectedSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided location "{0}" does not exist in the available locations use Get-AzureSBLocation for listing available locations.. - /// - public static string InvalidServiceBusLocation - { - get - { - return ResourceManager.GetString("InvalidServiceBusLocation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please provide a service name or run this command from inside a service project directory.. - /// - public static string InvalidServiceName - { - get - { - return ResourceManager.GetString("InvalidServiceName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You must provide valid value for {0}. - /// - public static string InvalidServiceSettingElement - { - get - { - return ResourceManager.GetString("InvalidServiceSettingElement", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to settings.json is invalid or doesn't exist. - /// - public static string InvalidServiceSettingMessage - { - get - { - return ResourceManager.GetString("InvalidServiceSettingMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The subscription named '{0}' cannot be found. Use Set-AzureSubscription to initialize the subscription data.. - /// - public static string InvalidSubscription - { - get - { - return ResourceManager.GetString("InvalidSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided subscription id {0} is not valid. - /// - public static string InvalidSubscriptionId - { - get - { - return ResourceManager.GetString("InvalidSubscriptionId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Must specify a non-null subscription name.. - /// - public static string InvalidSubscriptionName - { - get - { - return ResourceManager.GetString("InvalidSubscriptionName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A valid subscription name is required. This can be provided using the -Subscription parameter or by setting the subscription via the Set-AzureSubscription cmdlet. - /// - public static string InvalidSubscriptionNameMessage - { - get - { - return ResourceManager.GetString("InvalidSubscriptionNameMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided subscriptions file {0} has invalid content.. - /// - public static string InvalidSubscriptionsDataSchema - { - get - { - return ResourceManager.GetString("InvalidSubscriptionsDataSchema", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Role {0} VM size should be ExtraSmall, Small, Medium, Large or ExtraLarge.. - /// - public static string InvalidVMSize - { - get - { - return ResourceManager.GetString("InvalidVMSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The web job file must have *.zip extension. - /// - public static string InvalidWebJobFile - { - get - { - return ResourceManager.GetString("InvalidWebJobFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Singleton option works for continuous jobs only.. - /// - public static string InvalidWebJobSingleton - { - get - { - return ResourceManager.GetString("InvalidWebJobSingleton", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The website {0} was not found. Please specify a valid website name.. - /// - public static string InvalidWebsite - { - get - { - return ResourceManager.GetString("InvalidWebsite", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No job for id: {0} was found.. - /// - public static string JobNotFound - { - get - { - return ResourceManager.GetString("JobNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to engines. - /// - public static string JsonEnginesSectionName - { - get - { - return ResourceManager.GetString("JsonEnginesSectionName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Scaffolding for this language is not yet supported. - /// - public static string LanguageScaffoldingIsNotSupported - { - get - { - return ResourceManager.GetString("LanguageScaffoldingIsNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Link already established. - /// - public static string LinkAlreadyEstablished - { - get - { - return ResourceManager.GetString("LinkAlreadyEstablished", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to local_package.csx. - /// - public static string LocalPackageFileName - { - get - { - return ResourceManager.GetString("LocalPackageFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ServiceConfiguration.Local.cscfg. - /// - public static string LocalServiceConfigurationFileName - { - get - { - return ResourceManager.GetString("LocalServiceConfigurationFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Looking for {0} deployment for {1} cloud service.... - /// - public static string LookingForDeploymentMessage - { - get - { - return ResourceManager.GetString("LookingForDeploymentMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Looking for cloud service {0}.... - /// - public static string LookingForServiceMessage - { - get - { - return ResourceManager.GetString("LookingForServiceMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Azure Long-Running Job. - /// - public static string LROJobName - { - get - { - return ResourceManager.GetString("LROJobName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The cmdlet failed in background execution. The returned error was '{0}'. Please execute the cmdlet again. You may need to execute this cmdlet synchronously, by omitting the '-AsJob' parameter.. - /// - public static string LROTaskExceptionMessage - { - get - { - return ResourceManager.GetString("LROTaskExceptionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to managementCertificate.pem. - /// - public static string ManagementCertificateFileName - { - get - { - return ResourceManager.GetString("ManagementCertificateFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ?whr={0}. - /// - public static string ManagementPortalRealmFormat - { - get - { - return ResourceManager.GetString("ManagementPortalRealmFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to //baseuri. - /// - public static string ManifestBaseUriQuery - { - get - { - return ResourceManager.GetString("ManifestBaseUriQuery", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to uri. - /// - public static string ManifestBlobUriKey - { - get - { - return ResourceManager.GetString("ManifestBlobUriKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to http://az413943.vo.msecnd.net/node/runtimemanifest_0.7.5.2.xml. - /// - public static string ManifestUri - { - get - { - return ResourceManager.GetString("ManifestUri", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Property bag Hashtable must contain a 'Certificate' of type 'X509Certificate2'.. - /// - public static string MissingCertificateInProfileProperties - { - get - { - return ResourceManager.GetString("MissingCertificateInProfileProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Property bag Hashtable must contain a 'Password' with an associated 'Username' or 'ServicePrincipal'.. - /// - public static string MissingPasswordInProfileProperties - { - get - { - return ResourceManager.GetString("MissingPasswordInProfileProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Property bag Hashtable must contain a 'SubscriptionId'.. - /// - public static string MissingSubscriptionInProfileProperties - { - get - { - return ResourceManager.GetString("MissingSubscriptionInProfileProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Multiple Add-Ons found holding name {0}. - /// - public static string MultipleAddOnsFoundMessage - { - get - { - return ResourceManager.GetString("MultipleAddOnsFoundMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Multiple possible publishing users. Please go to the Portal and use the listed deployment user, or click 'set/reset deployment credentials' to set up a new user account, then reurn this cmdlet and specify PublishingUsername.. - /// - public static string MultiplePublishingUsernames - { - get - { - return ResourceManager.GetString("MultiplePublishingUsernames", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The first publish settings file "{0}" is used. If you want to use another file specify the file name.. - /// - public static string MultiplePublishSettingsFilesFoundMessage - { - get - { - return ResourceManager.GetString("MultiplePublishSettingsFilesFoundMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.NamedCaches. - /// - public static string NamedCacheSettingName - { - get - { - return ResourceManager.GetString("NamedCacheSettingName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {"caches":[{"name":"default","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":1},"serverNotification":{"isEnabled":false}},"secondaries":0}]}. - /// - public static string NamedCacheSettingValue - { - get - { - return ResourceManager.GetString("NamedCacheSettingValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A publishing username is required. Please specify one using the argument PublishingUsername.. - /// - public static string NeedPublishingUsernames - { - get - { - return ResourceManager.GetString("NeedPublishingUsernames", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Add-On Confirmation. - /// - public static string NewAddOnConformation - { - get - { - return ResourceManager.GetString("NewAddOnConformation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis - ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) - ///agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my - ///contact information with {2}.. - /// - public static string NewMicrosoftAddOnMessage - { - get - { - return ResourceManager.GetString("NewMicrosoftAddOnMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Server Error. This could happen because the namespace name is already used or due to an incorrect location name. Use Get-AzureSBLocation cmdlet to list valid names.. - /// - public static string NewNamespaceErrorMessage - { - get - { - return ResourceManager.GetString("NewNamespaceErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis - ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) - ///acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of - ///use and privacy statement at {0} and (c) agree to sharing my contact information with {2}.. - /// - public static string NewNonMicrosoftAddOnMessage - { - get - { - return ResourceManager.GetString("NewNonMicrosoftAddOnMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Service has been created at {0}. - /// - public static string NewServiceCreatedMessage - { - get - { - return ResourceManager.GetString("NewServiceCreatedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No. - /// - public static string No - { - get - { - return ResourceManager.GetString("No", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There is no access token cached for subscription {0}, user id {1}. Use the Add-AzureAccount cmdlet to log in again and get a token for this subscription.. - /// - public static string NoCachedToken - { - get - { - return ResourceManager.GetString("NoCachedToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The service does not have any cache worker roles, add one first by running cmdlet Add-AzureCacheWorkerRole.. - /// - public static string NoCacheWorkerRoles - { - get - { - return ResourceManager.GetString("NoCacheWorkerRoles", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No clouds available. - /// - public static string NoCloudsAvailable - { - get - { - return ResourceManager.GetString("NoCloudsAvailable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to "There is no current context, please log in using Connect-AzAccount.". - /// - public static string NoCurrentContextForDataCmdlet - { - get - { - return ResourceManager.GetString("NoCurrentContextForDataCmdlet", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to nodejs. - /// - public static string NodeDirectory - { - get - { - return ResourceManager.GetString("NodeDirectory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to node. - /// - public static string NodeEngineKey - { - get - { - return ResourceManager.GetString("NodeEngineKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to node.exe. - /// - public static string NodeExe - { - get - { - return ResourceManager.GetString("NodeExe", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There is no default subscription set, please set a default subscription by running Set-AzureSubscription -Default <subscription name>. - /// - public static string NoDefaultSubscriptionMessage - { - get - { - return ResourceManager.GetString("NoDefaultSubscriptionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft SDKs\Azure\Nodejs\Nov2011. - /// - public static string NodeModulesPath - { - get - { - return ResourceManager.GetString("NodeModulesPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to nodejs. - /// - public static string NodeProgramFilesFolderName - { - get - { - return ResourceManager.GetString("NodeProgramFilesFolderName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to node. - /// - public static string NodeRuntimeValue - { - get - { - return ResourceManager.GetString("NodeRuntimeValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Resources\Scaffolding\Node. - /// - public static string NodeScaffolding - { - get - { - return ResourceManager.GetString("NodeScaffolding", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.Node. - /// - public static string NodeScaffoldingResources - { - get - { - return ResourceManager.GetString("NodeScaffoldingResources", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Installing Node version {0} in Azure for Role '{1}' (the Node version locally installed is: {2}). - /// - public static string NodeVersionWarningText - { - get - { - return ResourceManager.GetString("NodeVersionWarningText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No, I do not agree. - /// - public static string NoHint - { - get - { - return ResourceManager.GetString("NoHint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please connect to internet before executing this cmdlet. - /// - public static string NoInternetConnection - { - get - { - return ResourceManager.GetString("NoInternetConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to <NONE>. - /// - public static string None - { - get - { - return ResourceManager.GetString("None", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No publish settings files with extension *.publishsettings are found in the directory "{0}".. - /// - public static string NoPublishSettingsFilesFoundMessage - { - get - { - return ResourceManager.GetString("NoPublishSettingsFilesFoundMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There is no subscription associated with account {0}.. - /// - public static string NoSubscriptionAddedMessage - { - get - { - return ResourceManager.GetString("NoSubscriptionAddedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or co-administrator for any account.\r\nDid you mean to execute Connect-AzAccount?. - /// - public static string NoSubscriptionFoundForTenant - { - get - { - return ResourceManager.GetString("NoSubscriptionFoundForTenant", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to '{0}' must be a cache worker role. Verify that it has proper cache worker role configuration.. - /// - public static string NotCacheWorkerRole - { - get - { - return ResourceManager.GetString("NotCacheWorkerRole", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Certificate can't be null.. - /// - public static string NullCertificateMessage - { - get - { - return ResourceManager.GetString("NullCertificateMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} could not be null or empty. - /// - public static string NullObjectMessage - { - get - { - return ResourceManager.GetString("NullObjectMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to add a null RoleSettings to {0}. - /// - public static string NullRoleSettingsMessage - { - get - { - return ResourceManager.GetString("NullRoleSettingsMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to add new role to null service definition. - /// - public static string NullServiceDefinitionMessage - { - get - { - return ResourceManager.GetString("NullServiceDefinitionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The request offer '{0}' is not found.. - /// - public static string OfferNotFoundMessage - { - get - { - return ResourceManager.GetString("OfferNotFoundMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Operation "{0}" failed on VM with ID: {1}. - /// - public static string OperationFailedErrorMessage - { - get - { - return ResourceManager.GetString("OperationFailedErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The REST operation failed with message '{0}' and error code '{1}'. - /// - public static string OperationFailedMessage - { - get - { - return ResourceManager.GetString("OperationFailedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Job Id {0} did not complete within expected time or it is in Failed/Canceled/Invalid state.. - /// - public static string OperationTimedOutOrError - { - get - { - return ResourceManager.GetString("OperationTimedOutOrError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to package. - /// - public static string Package - { - get - { - return ResourceManager.GetString("Package", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Package is created at service root path {0}.. - /// - public static string PackageCreated - { - get - { - return ResourceManager.GetString("PackageCreated", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {{ - /// "author": "", - /// - /// "name": "{0}", - /// "version": "0.0.0", - /// "dependencies":{{}}, - /// "devDependencies":{{}}, - /// "optionalDependencies": {{}}, - /// "engines": {{ - /// "node": "*", - /// "iisnode": "*" - /// }} - /// - ///}} - ///. - /// - public static string PackageJsonDefaultFile - { - get - { - return ResourceManager.GetString("PackageJsonDefaultFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to package.json. - /// - public static string PackageJsonFileName - { - get - { - return ResourceManager.GetString("PackageJsonFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Path {0} doesn't exist.. - /// - public static string PathDoesNotExist - { - get - { - return ResourceManager.GetString("PathDoesNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Path for {0} doesn't exist in {1}.. - /// - public static string PathDoesNotExistForElement - { - get - { - return ResourceManager.GetString("PathDoesNotExistForElement", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A value for the Peer Asn has to be provided.. - /// - public static string PeerAsnRequired - { - get - { - return ResourceManager.GetString("PeerAsnRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 5.4.0. - /// - public static string PHPDefaultRuntimeVersion - { - get - { - return ResourceManager.GetString("PHPDefaultRuntimeVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to php. - /// - public static string PhpRuntimeValue - { - get - { - return ResourceManager.GetString("PhpRuntimeValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Resources\Scaffolding\PHP. - /// - public static string PHPScaffolding - { - get - { - return ResourceManager.GetString("PHPScaffolding", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.PHP. - /// - public static string PHPScaffoldingResources - { - get - { - return ResourceManager.GetString("PHPScaffoldingResources", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Installing PHP version {0} for Role '{1}' (the PHP version locally installed is: {2}). - /// - public static string PHPVersionWarningText - { - get - { - return ResourceManager.GetString("PHPVersionWarningText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You must create your first web site using the Microsoft Azure portal. - ///Please follow these steps in the portal: - ///1. At the bottom of the page, click on New > Web Site > Quick Create - ///2. Type {0} in the URL field - ///3. Click on "Create Web Site" - ///4. Once the site has been created, click on the site name - ///5. Click on "Set up Git publishing" or "Reset deployment credentials" and setup a publishing username and password. Use those credentials for all new websites you create.. - /// - public static string PortalInstructions - { - get - { - return ResourceManager.GetString("PortalInstructions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 6. Back in the console window, rerun this command by typing "New-AzureWebsite <site name> -Git". - /// - public static string PortalInstructionsGit - { - get - { - return ResourceManager.GetString("PortalInstructionsGit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The estimated generally available date is '{0}'.. - /// - public static string PreviewCmdletETAMessage { - get { - return ResourceManager.GetString("PreviewCmdletETAMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This cmdlet is in preview. Its behavior is subject to change based on customer feedback.. - /// - public static string PreviewCmdletMessage - { - get - { - return ResourceManager.GetString("PreviewCmdletMessage", resourceCulture); - } - } - - - /// - /// Looks up a localized string similar to A value for the Primary Peer Subnet has to be provided.. - /// - public static string PrimaryPeerSubnetRequired - { - get - { - return ResourceManager.GetString("PrimaryPeerSubnetRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Promotion code can be used only when updating to a new plan.. - /// - public static string PromotionCodeWithCurrentPlanMessage - { - get - { - return ResourceManager.GetString("PromotionCodeWithCurrentPlanMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Service not published at user request.. - /// - public static string PublishAbortedAtUserRequest - { - get - { - return ResourceManager.GetString("PublishAbortedAtUserRequest", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Complete.. - /// - public static string PublishCompleteMessage - { - get - { - return ResourceManager.GetString("PublishCompleteMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connecting.... - /// - public static string PublishConnectingMessage - { - get - { - return ResourceManager.GetString("PublishConnectingMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Created Deployment ID: {0}.. - /// - public static string PublishCreatedDeploymentMessage - { - get - { - return ResourceManager.GetString("PublishCreatedDeploymentMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Created hosted service '{0}'.. - /// - public static string PublishCreatedServiceMessage - { - get - { - return ResourceManager.GetString("PublishCreatedServiceMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Created Website URL: {0}.. - /// - public static string PublishCreatedWebsiteMessage - { - get - { - return ResourceManager.GetString("PublishCreatedWebsiteMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Creating.... - /// - public static string PublishCreatingServiceMessage - { - get - { - return ResourceManager.GetString("PublishCreatingServiceMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Initializing.... - /// - public static string PublishInitializingMessage - { - get - { - return ResourceManager.GetString("PublishInitializingMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to busy. - /// - public static string PublishInstanceStatusBusy - { - get - { - return ResourceManager.GetString("PublishInstanceStatusBusy", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to creating the virtual machine. - /// - public static string PublishInstanceStatusCreating - { - get - { - return ResourceManager.GetString("PublishInstanceStatusCreating", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Instance {0} of role {1} is {2}.. - /// - public static string PublishInstanceStatusMessage - { - get - { - return ResourceManager.GetString("PublishInstanceStatusMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ready. - /// - public static string PublishInstanceStatusReady - { - get - { - return ResourceManager.GetString("PublishInstanceStatusReady", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Preparing deployment for {0} with Subscription ID: {1}.... - /// - public static string PublishPreparingDeploymentMessage - { - get - { - return ResourceManager.GetString("PublishPreparingDeploymentMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Publishing {0} to Microsoft Azure. This may take several minutes.... - /// - public static string PublishServiceStartMessage - { - get - { - return ResourceManager.GetString("PublishServiceStartMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to publish settings. - /// - public static string PublishSettings - { - get - { - return ResourceManager.GetString("PublishSettings", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Azure. - /// - public static string PublishSettingsElementName - { - get - { - return ResourceManager.GetString("PublishSettingsElementName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to .PublishSettings. - /// - public static string PublishSettingsFileExtention - { - get - { - return ResourceManager.GetString("PublishSettingsFileExtention", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to publishSettings.xml. - /// - public static string PublishSettingsFileName - { - get - { - return ResourceManager.GetString("PublishSettingsFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &whr={0}. - /// - public static string PublishSettingsFileRealmFormat - { - get - { - return ResourceManager.GetString("PublishSettingsFileRealmFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Publish settings imported. - /// - public static string PublishSettingsSetSuccessfully - { - get - { - return ResourceManager.GetString("PublishSettingsSetSuccessfully", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to AZURE_PUBLISHINGPROFILE_URL. - /// - public static string PublishSettingsUrlEnv - { - get - { - return ResourceManager.GetString("PublishSettingsUrlEnv", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Starting.... - /// - public static string PublishStartingMessage - { - get - { - return ResourceManager.GetString("PublishStartingMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Upgrading.... - /// - public static string PublishUpgradingMessage - { - get - { - return ResourceManager.GetString("PublishUpgradingMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Uploading Package to storage service {0}.... - /// - public static string PublishUploadingPackageMessage - { - get - { - return ResourceManager.GetString("PublishUploadingPackageMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Verifying storage account '{0}'.... - /// - public static string PublishVerifyingStorageMessage - { - get - { - return ResourceManager.GetString("PublishVerifyingStorageMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Path '{0}' not found.. - /// - public static string PublishVMDscExtensionAdditionalContentPathNotExist - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionAdditionalContentPathNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Configuration published to {0}. - /// - public static string PublishVMDscExtensionArchiveUploadedMessage - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionArchiveUploadedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy '{0}' to '{1}'.. - /// - public static string PublishVMDscExtensionCopyFileVerbose - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionCopyFileVerbose", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy the module '{0}' to '{1}'.. - /// - public static string PublishVMDscExtensionCopyModuleVerbose - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionCopyModuleVerbose", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid configuration file: {0}. - ///The file needs to be a PowerShell script (.ps1 or .psm1).. - /// - public static string PublishVMDscExtensionCreateArchiveConfigFileInvalidExtension - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionCreateArchiveConfigFileInvalidExtension", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Deleted '{0}'. - /// - public static string PublishVMDscExtensionDeletedFileMessage - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionDeletedFileMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot delete '{0}': {1}. - /// - public static string PublishVMDscExtensionDeleteErrorMessage - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionDeleteErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Path '{0}' not found.. - /// - public static string PublishVMDscExtensionDirectoryNotExist - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionDirectoryNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot get module for DscResource '{0}'. Possible solutions: - ///1) Specify -ModuleName for Import-DscResource in your configuration. - ///2) Unblock module that contains resource. - ///3) Move Import-DscResource inside Node block. - ///. - /// - public static string PublishVMDscExtensionGetDscResourceFailed - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionGetDscResourceFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to List of required modules: [{0}].. - /// - public static string PublishVMDscExtensionRequiredModulesVerbose - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionRequiredModulesVerbose", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Your current PowerShell version {1} is less then required by this cmdlet {0}. Consider download and install latest PowerShell version.. - /// - public static string PublishVMDscExtensionRequiredPsVersion - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionRequiredPsVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Configuration script '{0}' contained parse errors: - ///{1}. - /// - public static string PublishVMDscExtensionStorageParserErrors - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionStorageParserErrors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Temp folder '{0}' created.. - /// - public static string PublishVMDscExtensionTempFolderVerbose - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionTempFolderVerbose", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid configuration file: {0}. - ///The file needs to be a PowerShell script (.ps1 or .psm1) or a ZIP archive (.zip).. - /// - public static string PublishVMDscExtensionUploadArchiveConfigFileInvalidExtension - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionUploadArchiveConfigFileInvalidExtension", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Configuration file '{0}' not found.. - /// - public static string PublishVMDscExtensionUploadArchiveConfigFileNotExist - { - get - { - return ResourceManager.GetString("PublishVMDscExtensionUploadArchiveConfigFileNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Azure PowerShell collects usage data in order to improve your experience. - ///The data is anonymous and does not include commandline argument values. - ///The data is collected by Microsoft. - /// - ///Use the Disable-AzureDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Azure module. To disable data collection: PS > Disable-AzureDataCollection. - ///Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Azure module. To enable data collection: PS > Enab [rest of string was truncated]";. - /// - public static string RDFEDataCollectionMessage - { - get - { - return ResourceManager.GetString("RDFEDataCollectionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Replace current deployment with '{0}' Id ?. - /// - public static string RedeployCommit - { - get - { - return ResourceManager.GetString("RedeployCommit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to regenerate key?. - /// - public static string RegenerateKeyWarning - { - get - { - return ResourceManager.GetString("RegenerateKeyWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Generate new key.. - /// - public static string RegenerateKeyWhatIfMessage - { - get - { - return ResourceManager.GetString("RegenerateKeyWhatIfMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove account '{0}'?. - /// - public static string RemoveAccountConfirmation - { - get - { - return ResourceManager.GetString("RemoveAccountConfirmation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing account. - /// - public static string RemoveAccountMessage - { - get - { - return ResourceManager.GetString("RemoveAccountMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remove Add-On Confirmation. - /// - public static string RemoveAddOnConformation - { - get - { - return ResourceManager.GetString("RemoveAddOnConformation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to If you delete this add-on, your data may be deleted and the operation may not be undone. You may have to purchase it again from the Microsoft Azure Store to use it. The price of the add-on may not be refunded. Are you sure you want to delete this add-on? Enter “Yes” to confirm.. - /// - public static string RemoveAddOnMessage - { - get - { - return ResourceManager.GetString("RemoveAddOnMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remove-AzureBGPPeering Operation failed.. - /// - public static string RemoveAzureBGPPeeringFailed - { - get - { - return ResourceManager.GetString("RemoveAzureBGPPeeringFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing Bgp Peering. - /// - public static string RemoveAzureBGPPeeringMessage - { - get - { - return ResourceManager.GetString("RemoveAzureBGPPeeringMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Successfully removed Azure Bgp Peering with Service Key {0}.. - /// - public static string RemoveAzureBGPPeeringSucceeded - { - get - { - return ResourceManager.GetString("RemoveAzureBGPPeeringSucceeded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove the Bgp Peering with service key '{0}'?. - /// - public static string RemoveAzureBGPPeeringWarning - { - get - { - return ResourceManager.GetString("RemoveAzureBGPPeeringWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove the Dedicated Circuit with service key '{0}'?. - /// - public static string RemoveAzureDedicatdCircuitWarning - { - get - { - return ResourceManager.GetString("RemoveAzureDedicatdCircuitWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remove-AzureDedicatedCircuit Operation failed.. - /// - public static string RemoveAzureDedicatedCircuitFailed - { - get - { - return ResourceManager.GetString("RemoveAzureDedicatedCircuitFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remove-AzureDedicatedCircuitLink Operation failed.. - /// - public static string RemoveAzureDedicatedCircuitLinkFailed - { - get - { - return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing Dedicated Circui Link. - /// - public static string RemoveAzureDedicatedCircuitLinkMessage - { - get - { - return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Successfully removed Azure Dedicated Circuit Link with Service Key {0} and Vnet Name {1}. - /// - public static string RemoveAzureDedicatedCircuitLinkSucceeded - { - get - { - return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkSucceeded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove the Dedicated Circuit Link with service key '{0}' and virtual network name '{1}'?. - /// - public static string RemoveAzureDedicatedCircuitLinkWarning - { - get - { - return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing Dedicated Circuit. - /// - public static string RemoveAzureDedicatedCircuitMessage - { - get - { - return ResourceManager.GetString("RemoveAzureDedicatedCircuitMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Successfully removed Azure Dedicated Circuit with Service Key {0}.. - /// - public static string RemoveAzureDedicatedCircuitSucceeded - { - get - { - return ResourceManager.GetString("RemoveAzureDedicatedCircuitSucceeded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing cloud service {0}.... - /// - public static string RemoveAzureServiceWaitMessage - { - get - { - return ResourceManager.GetString("RemoveAzureServiceWaitMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a new default subscription.. - /// - public static string RemoveDefaultSubscription - { - get - { - return ResourceManager.GetString("RemoveDefaultSubscription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing {0} deployment for {1} service. - /// - public static string RemoveDeploymentWaitMessage - { - get - { - return ResourceManager.GetString("RemoveDeploymentWaitMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing an environment will remove all associated subscriptions and accounts. Are you sure you want to remove an environment '{0}'?. - /// - public static string RemoveEnvironmentConfirmation - { - get - { - return ResourceManager.GetString("RemoveEnvironmentConfirmation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing environment. - /// - public static string RemoveEnvironmentMessage - { - get - { - return ResourceManager.GetString("RemoveEnvironmentMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing job collection. - /// - public static string RemoveJobCollectionMessage - { - get - { - return ResourceManager.GetString("RemoveJobCollectionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove the job collection "{0}". - /// - public static string RemoveJobCollectionWarning - { - get - { - return ResourceManager.GetString("RemoveJobCollectionWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing job. - /// - public static string RemoveJobMessage - { - get - { - return ResourceManager.GetString("RemoveJobMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove the job "{0}". - /// - public static string RemoveJobWarning - { - get - { - return ResourceManager.GetString("RemoveJobWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove the account?. - /// - public static string RemoveMediaAccountWarning - { - get - { - return ResourceManager.GetString("RemoveMediaAccountWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Account removed.. - /// - public static string RemoveMediaAccountWhatIfMessage - { - get - { - return ResourceManager.GetString("RemoveMediaAccountWhatIfMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Server Error. This could happen because the namespace does not exist or it does not exist under your subscription.. - /// - public static string RemoveNamespaceErrorMessage - { - get - { - return ResourceManager.GetString("RemoveNamespaceErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing old package {0}.... - /// - public static string RemovePackage - { - get - { - return ResourceManager.GetString("RemovePackage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing the Azure profile will remove all associated environments, subscriptions, and accounts. Are you sure you want to remove the Azure profile?. - /// - public static string RemoveProfileConfirmation - { - get - { - return ResourceManager.GetString("RemoveProfileConfirmation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing the Azure profile. - /// - public static string RemoveProfileMessage - { - get - { - return ResourceManager.GetString("RemoveProfileMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to delete the namespace '{0}'?. - /// - public static string RemoveServiceBusNamespaceConfirmation - { - get - { - return ResourceManager.GetString("RemoveServiceBusNamespaceConfirmation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove cloud service?. - /// - public static string RemoveServiceWarning - { - get - { - return ResourceManager.GetString("RemoveServiceWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remove cloud service and all it's deployments. - /// - public static string RemoveServiceWhatIfMessage - { - get - { - return ResourceManager.GetString("RemoveServiceWhatIfMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove subscription '{0}'?. - /// - public static string RemoveSubscriptionConfirmation - { - get - { - return ResourceManager.GetString("RemoveSubscriptionConfirmation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing subscription. - /// - public static string RemoveSubscriptionMessage - { - get - { - return ResourceManager.GetString("RemoveSubscriptionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The endpoint {0} cannot be removed from profile {1} because it's not in the profile.. - /// - public static string RemoveTrafficManagerEndpointMissing - { - get - { - return ResourceManager.GetString("RemoveTrafficManagerEndpointMissing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remove-AzureTrafficManagerProfile Operation failed.. - /// - public static string RemoveTrafficManagerProfileFailed - { - get - { - return ResourceManager.GetString("RemoveTrafficManagerProfileFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Successfully removed Traffic Manager profile with name {0}.. - /// - public static string RemoveTrafficManagerProfileSucceeded - { - get - { - return ResourceManager.GetString("RemoveTrafficManagerProfileSucceeded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove the Traffic Manager profile "{0}"?. - /// - public static string RemoveTrafficManagerProfileWarning - { - get - { - return ResourceManager.GetString("RemoveTrafficManagerProfileWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to delete the VM '{0}'?. - /// - public static string RemoveVMConfirmationMessage - { - get - { - return ResourceManager.GetString("RemoveVMConfirmationMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Deleting VM.. - /// - public static string RemoveVMMessage - { - get - { - return ResourceManager.GetString("RemoveVMMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing WebJob.... - /// - public static string RemoveWebJobMessage - { - get - { - return ResourceManager.GetString("RemoveWebJobMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove job '{0}'?. - /// - public static string RemoveWebJobWarning - { - get - { - return ResourceManager.GetString("RemoveWebJobWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing website. - /// - public static string RemoveWebsiteMessage - { - get - { - return ResourceManager.GetString("RemoveWebsiteMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to remove the website "{0}". - /// - public static string RemoveWebsiteWarning - { - get - { - return ResourceManager.GetString("RemoveWebsiteWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing public environment is not supported.. - /// - public static string RemovingDefaultEnvironmentsNotSupported - { - get - { - return ResourceManager.GetString("RemovingDefaultEnvironmentsNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Deleting namespace. - /// - public static string RemovingNamespaceMessage - { - get - { - return ResourceManager.GetString("RemovingNamespaceMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Repository is not setup. You need to pass a valid site name.. - /// - public static string RepositoryNotSetup - { - get - { - return ResourceManager.GetString("RepositoryNotSetup", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reserved IP with the Name:'{0}' will no longer be in use after the deployment is deleted, and it is still reserved for later use.. - /// - public static string ReservedIPNameNoLongerInUseButStillBeingReserved - { - get - { - return ResourceManager.GetString("ReservedIPNameNoLongerInUseButStillBeingReserved", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Resource with ID : {0} does not exist.. - /// - public static string ResourceNotFound - { - get - { - return ResourceManager.GetString("ResourceNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Restart. - /// - public static string Restart - { - get - { - return ResourceManager.GetString("Restart", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Resume. - /// - public static string Resume - { - get - { - return ResourceManager.GetString("Resume", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /role:{0};"{1}/{0}" . - /// - public static string RoleArgTemplate - { - get - { - return ResourceManager.GetString("RoleArgTemplate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to bin. - /// - public static string RoleBinFolderName - { - get - { - return ResourceManager.GetString("RoleBinFolderName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Role {0} is {1}. - /// - public static string RoleInstanceWaitMsg - { - get - { - return ResourceManager.GetString("RoleInstanceWaitMsg", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 20. - /// - public static string RoleMaxInstances - { - get - { - return ResourceManager.GetString("RoleMaxInstances", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to role name. - /// - public static string RoleName - { - get - { - return ResourceManager.GetString("RoleName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided role name {0} doesn't exist. - /// - public static string RoleNotFoundMessage - { - get - { - return ResourceManager.GetString("RoleNotFoundMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RoleSettings.xml. - /// - public static string RoleSettingsTemplateFileName - { - get - { - return ResourceManager.GetString("RoleSettingsTemplateFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Role type {0} doesn't exist. - /// - public static string RoleTypeDoesNotExist - { - get - { - return ResourceManager.GetString("RoleTypeDoesNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to public static Dictionary<string, Location> ReverseLocations { get; private set; }. - /// - public static string RuntimeDeploymentLocationError - { - get - { - return ResourceManager.GetString("RuntimeDeploymentLocationError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Preparing runtime deployment for service '{0}'. - /// - public static string RuntimeDeploymentStart - { - get - { - return ResourceManager.GetString("RuntimeDeploymentStart", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WARNING Runtime Mismatch: Are you sure that you want to publish service '{0}' using an Azure runtime version that does not match your local runtime version?. - /// - public static string RuntimeMismatchWarning - { - get - { - return ResourceManager.GetString("RuntimeMismatchWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RUNTIMEOVERRIDEURL. - /// - public static string RuntimeOverrideKey - { - get - { - return ResourceManager.GetString("RuntimeOverrideKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /runtimemanifest/runtimes/runtime. - /// - public static string RuntimeQuery - { - get - { - return ResourceManager.GetString("RuntimeQuery", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RUNTIMEID. - /// - public static string RuntimeTypeKey - { - get - { - return ResourceManager.GetString("RuntimeTypeKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RUNTIMEURL. - /// - public static string RuntimeUrlKey - { - get - { - return ResourceManager.GetString("RuntimeUrlKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RUNTIMEVERSIONPRIMARYKEY. - /// - public static string RuntimeVersionPrimaryKey - { - get - { - return ResourceManager.GetString("RuntimeVersionPrimaryKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to scaffold.xml. - /// - public static string ScaffoldXml - { - get - { - return ResourceManager.GetString("ScaffoldXml", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid location entered. Pick one of the locations from Get-AzureSchedulerLocation. - /// - public static string SchedulerInvalidLocation - { - get - { - return ResourceManager.GetString("SchedulerInvalidLocation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A value for the Secondary Peer Subnet has to be provided.. - /// - public static string SecondaryPeerSubnetRequired - { - get - { - return ResourceManager.GetString("SecondaryPeerSubnetRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Service {0} already exists on disk in location {1}. - /// - public static string ServiceAlreadyExistsOnDisk - { - get - { - return ResourceManager.GetString("ServiceAlreadyExistsOnDisk", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No ServiceBus authorization rule with the given characteristics was found. - /// - public static string ServiceBusAuthorizationRuleNotFound - { - get - { - return ResourceManager.GetString("ServiceBusAuthorizationRuleNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The service bus entity '{0}' is not found.. - /// - public static string ServiceBusEntityTypeNotFound - { - get - { - return ResourceManager.GetString("ServiceBusEntityTypeNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Server Error. This could happen due to an incorrect/missing namespace. - /// - public static string ServiceBusNamespaceMissingMessage - { - get - { - return ResourceManager.GetString("ServiceBusNamespaceMissingMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to service configuration. - /// - public static string ServiceConfiguration - { - get - { - return ResourceManager.GetString("ServiceConfiguration", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to service definition. - /// - public static string ServiceDefinition - { - get - { - return ResourceManager.GetString("ServiceDefinition", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ServiceDefinition.csdef. - /// - public static string ServiceDefinitionFileName - { - get - { - return ResourceManager.GetString("ServiceDefinitionFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0}Deploy. - /// - public static string ServiceDeploymentName - { - get - { - return ResourceManager.GetString("ServiceDeploymentName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified cloud service "{0}" does not exist.. - /// - public static string ServiceDoesNotExist - { - get - { - return ResourceManager.GetString("ServiceDoesNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} slot for service {1} is in {2} state, please wait until it finish and update it's status. - /// - public static string ServiceIsInTransitionState - { - get - { - return ResourceManager.GetString("ServiceIsInTransitionState", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to "An exception occurred when calling the ServiceManagement API. HTTP Status Code: {0}. Service Management Error Code: {1}. Message: {2}. Operation Tracking ID: {3}.". - /// - public static string ServiceManagementClientExceptionStringFormat - { - get - { - return ResourceManager.GetString("ServiceManagementClientExceptionStringFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Begin Operation: {0}. - /// - public static string ServiceManagementExecuteClientActionBeginOperation - { - get - { - return ResourceManager.GetString("ServiceManagementExecuteClientActionBeginOperation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Completed Operation: {0}. - /// - public static string ServiceManagementExecuteClientActionCompletedOperation - { - get - { - return ResourceManager.GetString("ServiceManagementExecuteClientActionCompletedOperation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Begin Operation: {0}. - /// - public static string ServiceManagementExecuteClientActionInOCSBeginOperation - { - get - { - return ResourceManager.GetString("ServiceManagementExecuteClientActionInOCSBeginOperation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Completed Operation: {0}. - /// - public static string ServiceManagementExecuteClientActionInOCSCompletedOperation - { - get - { - return ResourceManager.GetString("ServiceManagementExecuteClientActionInOCSCompletedOperation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to service name. - /// - public static string ServiceName - { - get - { - return ResourceManager.GetString("ServiceName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provided service name {0} already exists, please pick another name. - /// - public static string ServiceNameExists - { - get - { - return ResourceManager.GetString("ServiceNameExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please provide name for the hosted service. - /// - public static string ServiceNameMissingMessage - { - get - { - return ResourceManager.GetString("ServiceNameMissingMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to service parent directory. - /// - public static string ServiceParentDirectory - { - get - { - return ResourceManager.GetString("ServiceParentDirectory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Service {0} removed successfully. - /// - public static string ServiceRemovedMessage - { - get - { - return ResourceManager.GetString("ServiceRemovedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to service directory. - /// - public static string ServiceRoot - { - get - { - return ResourceManager.GetString("ServiceRoot", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to service settings. - /// - public static string ServiceSettings - { - get - { - return ResourceManager.GetString("ServiceSettings", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The storage account name '{0}' is invalid. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.. - /// - public static string ServiceSettings_ValidateStorageAccountName_InvalidName - { - get - { - return ResourceManager.GetString("ServiceSettings_ValidateStorageAccountName_InvalidName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} slot for cloud service {1} doesn't exist.. - /// - public static string ServiceSlotDoesNotExist - { - get - { - return ResourceManager.GetString("ServiceSlotDoesNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} slot for service {1} is {2}. - /// - public static string ServiceStatusChanged - { - get - { - return ResourceManager.GetString("ServiceStatusChanged", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Set Add-On Confirmation. - /// - public static string SetAddOnConformation - { - get - { - return ResourceManager.GetString("SetAddOnConformation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Profile {0} does not contain endpoint {1}. Adding it.. - /// - public static string SetInexistentTrafficManagerEndpointMessage - { - get - { - return ResourceManager.GetString("SetInexistentTrafficManagerEndpointMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Note - You will be charged the amount for the new plan, without being refunded for time remaining - ///in the existing plan. - ///By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis - ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) - ///agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my - ///contact information with {2}.. - /// - public static string SetMicrosoftAddOnMessage - { - get - { - return ResourceManager.GetString("SetMicrosoftAddOnMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Note - You will be charged the amount for the new plan, without being refunded for time remaining - ///in the existing plan. - ///By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis - ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) - ///acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of - ///use and privacy statement at <url> and (c) agree to sharing my contact information with {2}.. - /// - public static string SetNonMicrosoftAddOnMessage - { - get - { - return ResourceManager.GetString("SetNonMicrosoftAddOnMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Role {0} instances are set to {1}. - /// - public static string SetRoleInstancesMessage - { - get - { - return ResourceManager.GetString("SetRoleInstancesMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {"Slot":"","Location":"","Subscription":"","StorageAccountName":""}. - /// - public static string SettingsFileEmptyContent - { - get - { - return ResourceManager.GetString("SettingsFileEmptyContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to deploymentSettings.json. - /// - public static string SettingsFileName - { - get - { - return ResourceManager.GetString("SettingsFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Insufficient parameters passed to create a new endpoint.. - /// - public static string SetTrafficManagerEndpointNeedsParameters - { - get - { - return ResourceManager.GetString("SetTrafficManagerEndpointNeedsParameters", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ambiguous operation: the profile name specified doesn't match the name of the profile object.. - /// - public static string SetTrafficManagerProfileAmbiguous - { - get - { - return ResourceManager.GetString("SetTrafficManagerProfileAmbiguous", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please execute the cmdlet again and include the 'Force' parameter, if available, to avoid unnecessary prompts.. - /// - public static string ShouldContinueFail - { - get - { - return ResourceManager.GetString("ShouldContinueFail", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Confirm. - /// - public static string ShouldProcessCaption - { - get - { - return ResourceManager.GetString("ShouldProcessCaption", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please execute the cmdlet again and omit the 'Confirm' parameter when using the 'AsJob' parameter.. - /// - public static string ShouldProcessFailConfirm - { - get - { - return ResourceManager.GetString("ShouldProcessFailConfirm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please increase the user $ConfirmPreference setting, or include turn off confirmation using '-Confirm:$false' when using the 'AsJob' parameter and execute the cmdet again.. - /// - public static string ShouldProcessFailImpact - { - get - { - return ResourceManager.GetString("ShouldProcessFailImpact", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please execute the cmdlet again and omit the 'WhatIf' parameter when using the 'AsJob' parameter.. - /// - public static string ShouldProcessFailWhatIf - { - get - { - return ResourceManager.GetString("ShouldProcessFailWhatIf", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Shutdown. - /// - public static string Shutdown - { - get - { - return ResourceManager.GetString("Shutdown", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /sites:{0};{1};"{2}/{0}" . - /// - public static string SitesArgTemplate - { - get - { - return ResourceManager.GetString("SitesArgTemplate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 1000. - /// - public static string StandardRetryDelayInMs - { - get - { - return ResourceManager.GetString("StandardRetryDelayInMs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Start. - /// - public static string Start - { - get - { - return ResourceManager.GetString("Start", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Started. - /// - public static string StartedEmulator - { - get - { - return ResourceManager.GetString("StartedEmulator", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Starting Emulator.... - /// - public static string StartingEmulator - { - get - { - return ResourceManager.GetString("StartingEmulator", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to start. - /// - public static string StartStorageEmulatorCommandArgument - { - get - { - return ResourceManager.GetString("StartStorageEmulatorCommandArgument", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Stop. - /// - public static string Stop - { - get - { - return ResourceManager.GetString("Stop", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Stopping emulator.... - /// - public static string StopEmulatorMessage - { - get - { - return ResourceManager.GetString("StopEmulatorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Stopped. - /// - public static string StoppedEmulatorMessage - { - get - { - return ResourceManager.GetString("StoppedEmulatorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to stop. - /// - public static string StopStorageEmulatorCommandArgument - { - get - { - return ResourceManager.GetString("StopStorageEmulatorCommandArgument", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Account Name:. - /// - public static string StorageAccountName - { - get - { - return ResourceManager.GetString("StorageAccountName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot find storage account '{0}' please type the name of an existing storage account.. - /// - public static string StorageAccountNotFound - { - get - { - return ResourceManager.GetString("StorageAccountNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to AzureStorageEmulator.exe. - /// - public static string StorageEmulatorExe - { - get - { - return ResourceManager.GetString("StorageEmulatorExe", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to InstallPath. - /// - public static string StorageEmulatorInstallPathRegistryKeyValue - { - get - { - return ResourceManager.GetString("StorageEmulatorInstallPathRegistryKeyValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SOFTWARE\Microsoft\Windows Azure Storage Emulator. - /// - public static string StorageEmulatorRegistryKey - { - get - { - return ResourceManager.GetString("StorageEmulatorRegistryKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Primary Key:. - /// - public static string StoragePrimaryKey - { - get - { - return ResourceManager.GetString("StoragePrimaryKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Secondary Key:. - /// - public static string StorageSecondaryKey - { - get - { - return ResourceManager.GetString("StorageSecondaryKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The subscription named {0} already exists.. - /// - public static string SubscriptionAlreadyExists - { - get - { - return ResourceManager.GetString("SubscriptionAlreadyExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The SubscriptionDataFile parameter is deprecated. This parameter will be removed in a future release. See https://github.com/Azure/azure-powershell/wiki/Proposed-Design-Stateless-Azure-Profile for a description of the upcoming mechanism for providing alternate sources of subscription information.. - /// - public static string SubscriptionDataFileDeprecated - { - get - { - return ResourceManager.GetString("SubscriptionDataFileDeprecated", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to DefaultSubscriptionData.xml. - /// - public static string SubscriptionDataFileName - { - get - { - return ResourceManager.GetString("SubscriptionDataFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The subscription data file {0} does not exist.. - /// - public static string SubscriptionDataFileNotFound - { - get - { - return ResourceManager.GetString("SubscriptionDataFileNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The subscription id {0} doesn't exist.. - /// - public static string SubscriptionIdNotFoundMessage - { - get - { - return ResourceManager.GetString("SubscriptionIdNotFoundMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Subscription must not be null. - /// - public static string SubscriptionMustNotBeNull - { - get - { - return ResourceManager.GetString("SubscriptionMustNotBeNull", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Subscription name needs to be specified.. - /// - public static string SubscriptionNameNeedsToBeSpecified - { - get - { - return ResourceManager.GetString("SubscriptionNameNeedsToBeSpecified", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The subscription name {0} doesn't exist.. - /// - public static string SubscriptionNameNotFoundMessage - { - get - { - return ResourceManager.GetString("SubscriptionNameNotFoundMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Subscription needs to be specified.. - /// - public static string SubscriptionNeedsToBeSpecified - { - get - { - return ResourceManager.GetString("SubscriptionNeedsToBeSpecified", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Suspend. - /// - public static string Suspend - { - get - { - return ResourceManager.GetString("Suspend", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Swapping website production slot .... - /// - public static string SwappingWebsite - { - get - { - return ResourceManager.GetString("SwappingWebsite", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to swap the website '{0}' production slot with slot '{1}'?. - /// - public static string SwapWebsiteSlotWarning - { - get - { - return ResourceManager.GetString("SwapWebsiteSlotWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Switch-AzureMode cmdlet is deprecated and will be removed in a future release.. - /// - public static string SwitchAzureModeDeprecated - { - get - { - return ResourceManager.GetString("SwitchAzureModeDeprecated", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: Starting cmdlet execution, setting for cmdlet confirmation required: '{0}'. - /// - public static string TraceBeginLROJob - { - get - { - return ResourceManager.GetString("TraceBeginLROJob", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: Blocking job for ShouldMethod '{0}'. - /// - public static string TraceBlockLROThread - { - get - { - return ResourceManager.GetString("TraceBlockLROThread", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: Completing cmdlet execution in RunJob. - /// - public static string TraceEndLROJob - { - get - { - return ResourceManager.GetString("TraceEndLROJob", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: State change from '{0}' to '{1}' because '{2}'. - /// - public static string TraceHandleLROStateChange - { - get - { - return ResourceManager.GetString("TraceHandleLROStateChange", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: Unblocking job due to stoppage or failure. - /// - public static string TraceHandlerCancelJob - { - get - { - return ResourceManager.GetString("TraceHandlerCancelJob", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: Unblocking job that was previously blocked.. - /// - public static string TraceHandlerUnblockJob - { - get - { - return ResourceManager.GetString("TraceHandlerUnblockJob", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: Error in cmdlet execution. - /// - public static string TraceLROJobException - { - get - { - return ResourceManager.GetString("TraceLROJobException", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: Removing state changed event handler, exception '{0}'. - /// - public static string TraceRemoveLROEventHandler - { - get - { - return ResourceManager.GetString("TraceRemoveLROEventHandler", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [AzureLongRunningJob]: ShouldMethod '{0}' unblocked.. - /// - public static string TraceUnblockLROThread - { - get - { - return ResourceManager.GetString("TraceUnblockLROThread", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to decode string from base 64. Please make sure the string is correctly encoded: {0}.. - /// - public static string UnableToDecodeBase64String - { - get - { - return ResourceManager.GetString("UnableToDecodeBase64String", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to update mismatching Json structured: {0} {1}.. - /// - public static string UnableToPatchJson - { - get - { - return ResourceManager.GetString("UnableToPatchJson", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provider {0} is unknown.. - /// - public static string UnknownProviderMessage - { - get - { - return ResourceManager.GetString("UnknownProviderMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Update. - /// - public static string Update - { - get - { - return ResourceManager.GetString("Update", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Updated settings for subscription '{0}'. Current subscription is '{1}'.. - /// - public static string UpdatedSettings - { - get - { - return ResourceManager.GetString("UpdatedSettings", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User name is not valid.. - /// - public static string UserNameIsNotValid - { - get - { - return ResourceManager.GetString("UserNameIsNotValid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User name needs to be specified.. - /// - public static string UserNameNeedsToBeSpecified - { - get - { - return ResourceManager.GetString("UserNameNeedsToBeSpecified", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A value for the VLan Id has to be provided.. - /// - public static string VlanIdRequired - { - get - { - return ResourceManager.GetString("VlanIdRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please wait.... - /// - public static string WaitMessage - { - get - { - return ResourceManager.GetString("WaitMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The azure storage emulator is not installed, skip launching.... - /// - public static string WarningWhenStorageEmulatorIsMissing - { - get - { - return ResourceManager.GetString("WarningWhenStorageEmulatorIsMissing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Web.cloud.config. - /// - public static string WebCloudConfig - { - get - { - return ResourceManager.GetString("WebCloudConfig", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to web.config. - /// - public static string WebConfigTemplateFileName - { - get - { - return ResourceManager.GetString("WebConfigTemplateFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to MSDeploy. - /// - public static string WebDeployKeywordInWebSitePublishProfile - { - get - { - return ResourceManager.GetString("WebDeployKeywordInWebSitePublishProfile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot build the project successfully. Please see logs in {0}.. - /// - public static string WebProjectBuildFailTemplate - { - get - { - return ResourceManager.GetString("WebProjectBuildFailTemplate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WebRole. - /// - public static string WebRole - { - get - { - return ResourceManager.GetString("WebRole", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to setup_web.cmd > log.txt. - /// - public static string WebRoleStartupTaskCommandLine - { - get - { - return ResourceManager.GetString("WebRoleStartupTaskCommandLine", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WebRole.xml. - /// - public static string WebRoleTemplateFileName - { - get - { - return ResourceManager.GetString("WebRoleTemplateFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WebSite with given name {0} already exists in the specified Subscription and Webspace.. - /// - public static string WebsiteAlreadyExists - { - get - { - return ResourceManager.GetString("WebsiteAlreadyExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WebSite with given name {0} already exists in the specified Subscription and Location.. - /// - public static string WebsiteAlreadyExistsReplacement - { - get - { - return ResourceManager.GetString("WebsiteAlreadyExistsReplacement", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Site {0} already has repository created for it.. - /// - public static string WebsiteRepositoryAlreadyExists - { - get - { - return ResourceManager.GetString("WebsiteRepositoryAlreadyExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Workspaces/WebsiteExtension/Website/{0}/dashboard/. - /// - public static string WebsiteSufixUrl - { - get - { - return ResourceManager.GetString("WebsiteSufixUrl", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to https://{0}/msdeploy.axd?site={1}. - /// - public static string WebSiteWebDeployUriTemplate - { - get - { - return ResourceManager.GetString("WebSiteWebDeployUriTemplate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WorkerRole. - /// - public static string WorkerRole - { - get - { - return ResourceManager.GetString("WorkerRole", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to setup_worker.cmd > log.txt. - /// - public static string WorkerRoleStartupTaskCommandLine - { - get - { - return ResourceManager.GetString("WorkerRoleStartupTaskCommandLine", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WorkerRole.xml. - /// - public static string WorkerRoleTemplateFileName - { - get - { - return ResourceManager.GetString("WorkerRoleTemplateFileName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to (x86). - /// - public static string x86InProgramFiles - { - get - { - return ResourceManager.GetString("x86InProgramFiles", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Yes. - /// - public static string Yes - { - get - { - return ResourceManager.GetString("Yes", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Yes, I agree. - /// - public static string YesHint - { - get - { - return ResourceManager.GetString("YesHint", resourceCulture); - } - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.resx b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.resx deleted file mode 100644 index 4ef90b70573d..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Properties/Resources.resx +++ /dev/null @@ -1,1747 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - The remote server returned an error: (401) Unauthorized. - - - Account "{0}" has been added. - - - To switch to a different subscription, please use Select-AzureSubscription. - - - Subscription "{0}" is selected as the default subscription. - - - To view all the subscriptions, please use Get-AzureSubscription. - - - Add-On {0} is created successfully. - - - Add-on name {0} is already used. - - - Add-On {0} not found. - - - Add-on {0} is removed successfully. - - - Add-On {0} is updated successfully. - - - Role has been created at {0}\{1}. - - - Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for Node.js by running ‘npm install azure’. - - - Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for PHP by running "pear WindowsAzure/WindowsAzure". - - - Unable to set role permissions. Please give the 'Network Service' user 'Read & execute' and 'Modify' permissions to the role folder, or run PowerShell as an Administrator - - - A role name '{0}' already exists - - - Windows Azure Powershell\ - - - https://manage.windowsazure.com - - - AZURE_PORTAL_URL - - - Azure SDK\{0}\ - - - Base Uri was empty. - WAPackIaaS - - - {0} begin processing without ParameterSet. - - - {0} begin processing with ParameterSet '{1}'. - - - Blob with the name {0} already exists in the account. - - - https://{0}.blob.core.windows.net/ - - - AZURE_BLOBSTORAGE_TEMPLATE - - - CACHERUNTIMEURL - - - cache - - - CacheRuntimeVersion - - - Installing caching version {0} for Role '{1}' (the caching version locally installed is: {2}) - - - Cannot find {0} with name {1}. - - - Deployment for service {0} with {1} slot doesn't exist - - - Can't find valid Microsoft Azure role in current directory {0} - - - service {0} configuration file (ServiceConfiguration.Cloud.cscfg) is either null or doesn't exist - - - Invalid service path! Cannot locate ServiceDefinition.csdef in current folder or parent folders. - - - The subscription named {0} with id {1} is not currently imported. You must import this subscription before it can be updated. - - - ManagementCertificate - - - certificate.pfx - - - Certificate imported into CurrentUser\My\{0} - - - Your account does not have access to the private key for certificate {0} - - - {0} {1} deployment for {2} service - - - Cloud service {0} is in {1} state. - - - Changing/Removing public environment '{0}' is not allowed. - - - Service {0} is set to value {1} - - - Choose which publish settings file to use: - - - Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel - - - 1 - - - cloud_package.cspkg - - - ServiceConfiguration.Cloud.cscfg - - - Add-ons for {0} - - - Communication could not be established. This could be due to an invalid subscription ID. Note that subscription IDs are case sensitive. - - - Complete - - - config.json - - - VirtualMachine creation failed. - WAPackIaaS - - - Creating the website failed. If this is the first website for this subscription, please create it using the management portal instead. - - - Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core - - - //blobcontainer[@datacenter='{0}'] - - - Setting: {0} as the default and current subscription. To view other subscriptions use Get-AzureSubscription - - - none - - - There are no hostnames which could be used for validation. - - - 8080 - - - 1000 - - - Auto - - - 80 - - - Delete - WAPackIaaS - - - The {0} slot for service {1} is already in {2} state - - - The deployment in {0} slot for service {1} is removed - - - Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel - - - 1 - - - The key to add already exists in the dictionary. - - - The array index cannot be less than zero. - - - The supplied array does not have enough room to contain the copied elements. - - - The provided dns {0} doesn't exist - - - Microsoft Azure Certificate - - - Endpoint can't be retrieved for storage account - - - {0} end processing. - - - To use Active Directory authentication, you must configure the ActiveDirectoryEndpoint, ActiveDirectoryTenantId, and ActiveDirectorServiceEndpointResourceId for environment of '{0}'. You can configure these properties for this environment using the Set-AzureEnvironment cmdlet. - - - The environment '{0}' already exists. - - - environments.xml - - - Error creating VirtualMachine - WAPackIaaS - - - Unable to download available runtimes for location '{0}' - - - Error updating VirtualMachine - WAPackIaaS - - - Job Id {0} failed. Error: {1}, ExceptionDetails: {2} - WAPackIaaS - - - The HTTP request was forbidden with client authentication scheme 'Anonymous'. - - - This add-on requires you to purchase the first instance through the Microsoft Azure Portal. Subsequent purchases can be performed through PowerShell. - - - Operation Status: - - - Resources\Scaffolding\General - - - Getting all available Microsoft Azure Add-Ons, this may take few minutes... - - - Name{0}Primary Key{0}Seconday Key - - - Git not found. Please install git and place it in your command line path. - - - Could not find publish settings. Please run Import-AzurePublishSettingsFile. - - - iisnode.dll - - - iisnode - - - iisnode-dev\\release\\x64 - - - iisnode - - - Installing IISNode version {0} in Azure for WebRole '{1}' (the version locally installed is: {2}) - - - Internal Server Error - - - Cannot enable memcach protocol on a cache worker role {0}. - - - Invalid certificate format. - - - The provided configuration path is invalid or doesn't exist - - - The country name is invalid, please use a valid two character country code, as described in ISO 3166-1 alpha-2. - - - Deployment with {0} does not exist - - - The deployment slot name {0} is invalid. Slot name must be either "Staging" or "Production". - - - Invalid service endpoint. - - - File {0} has invalid characters - - - You must create your git publishing credentials using the Microsoft Azure portal. -Please follow these steps in the portal: -1. On the left side open "Web Sites" -2. Click on any website -3. Choose "Setup Git Publishing" or "Reset deployment credentials" -4. Back in the PowerShell window, rerun this command by typing "New-AzureWebSite {site name} -Git -PublishingUsername {username} - - - The value {0} provided is not a valid GUID. Please provide a valid GUID. - - - The specified hostname does not exist. Please specify a valid hostname for the site. - - - Role {0} instances must be greater than or equal 0 and less than or equal 20 - - - There was an error creating your webjob. Please make sure that the script is in the root folder of the zip file. - - - Could not download a valid runtime manifest, Please check your internet connection and try again. - - - The account {0} was not found. Please specify a valid account name. - - - The provided name "{0}" does not match the service bus namespace naming rules. - - - Value cannot be null. Parameter name: '{0}' - - - The provided package path is invalid or doesn't exist - - - '{0}' is an invalid parameter set name. - - - {0} doesn't exist in {1} or you've not passed valid value for it - - - Path {0} has invalid characters - - - The provided publish settings file {0} has invalid content. Please get valid by running cmdlet Get-AzurePublishSettingsFile - - - The provided role name "{0}" has invalid characters - - - A valid name for the service root folder is required - - - {0} is not a recognized runtime type - - - A valid language is required - - - No subscription is currently selected. Use Select-Subscription to activate a subscription. - - - The provided location "{0}" does not exist in the available locations use Get-AzureSBLocation for listing available locations. - - - Please provide a service name or run this command from inside a service project directory. - - - You must provide valid value for {0} - - - settings.json is invalid or doesn't exist - - - The subscription named '{0}' cannot be found. Use Set-AzureSubscription to initialize the subscription data. - - - The provided subscription id {0} is not valid - - - A valid subscription name is required. This can be provided using the -Subscription parameter or by setting the subscription via the Set-AzureSubscription cmdlet - - - The provided subscriptions file {0} has invalid content. - - - Role {0} VM size should be ExtraSmall, Small, Medium, Large or ExtraLarge. - - - The web job file must have *.zip extension - - - Singleton option works for continuous jobs only. - - - The website {0} was not found. Please specify a valid website name. - - - No job for id: {0} was found. - WAPackIaaS - - - engines - - - Scaffolding for this language is not yet supported - - - Link already established - - - local_package.csx - - - ServiceConfiguration.Local.cscfg - - - Looking for {0} deployment for {1} cloud service... - - - Looking for cloud service {0}... - - - managementCertificate.pem - - - ?whr={0} - - - //baseuri - - - uri - - - http://az413943.vo.msecnd.net/node/runtimemanifest_0.7.5.2.xml - - - Multiple Add-Ons found holding name {0} - - - Multiple possible publishing users. Please go to the Portal and use the listed deployment user, or click 'set/reset deployment credentials' to set up a new user account, then reurn this cmdlet and specify PublishingUsername. - - - The first publish settings file "{0}" is used. If you want to use another file specify the file name. - - - Microsoft.WindowsAzure.Plugins.Caching.NamedCaches - - - {"caches":[{"name":"default","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":1},"serverNotification":{"isEnabled":false}},"secondaries":0}]} - - - A publishing username is required. Please specify one using the argument PublishingUsername. - - - New Add-On Confirmation - - - By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis -for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) -agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my -contact information with {2}. - - - Internal Server Error. This could happen because the namespace name is already used or due to an incorrect location name. Use Get-AzureSBLocation cmdlet to list valid names. - - - By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis -for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) -acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of -use and privacy statement at {0} and (c) agree to sharing my contact information with {2}. - - - Service has been created at {0} - - - No - - - There is no access token cached for subscription {0}, user id {1}. Use the Add-AzureAccount cmdlet to log in again and get a token for this subscription. - - - The service does not have any cache worker roles, add one first by running cmdlet Add-AzureCacheWorkerRole. - - - No clouds available - WAPackIaaS - - - nodejs - - - node - - - node.exe - - - There is no default subscription set, please set a default subscription by running Set-AzureSubscription -Default <subscription name> - - - Microsoft SDKs\Azure\Nodejs\Nov2011 - - - nodejs - - - node - - - Resources\Scaffolding\Node - - - Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.Node - - - Installing Node version {0} in Azure for Role '{1}' (the Node version locally installed is: {2}) - - - No, I do not agree - - - No publish settings files with extension *.publishsettings are found in the directory "{0}". - - - '{0}' must be a cache worker role. Verify that it has proper cache worker role configuration. - - - Certificate can't be null. - - - {0} could not be null or empty - - - Unable to add a null RoleSettings to {0} - - - Unable to add new role to null service definition - - - The request offer '{0}' is not found. - - - Operation "{0}" failed on VM with ID: {1} - WAPackIaaS - - - The REST operation failed with message '{0}' and error code '{1}' - - - Job Id {0} did not complete within expected time or it is in Failed/Canceled/Invalid state. - WAPackIaaS - - - package - - - Package is created at service root path {0}. - - - {{ - "author": "", - - "name": "{0}", - "version": "0.0.0", - "dependencies":{{}}, - "devDependencies":{{}}, - "optionalDependencies": {{}}, - "engines": {{ - "node": "*", - "iisnode": "*" - }} - -}} - - - - package.json - - - A value for the Peer Asn has to be provided. - - - 5.4.0 - - - php - - - Resources\Scaffolding\PHP - - - Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.PHP - - - Installing PHP version {0} for Role '{1}' (the PHP version locally installed is: {2}) - - - You must create your first web site using the Microsoft Azure portal. -Please follow these steps in the portal: -1. At the bottom of the page, click on New > Web Site > Quick Create -2. Type {0} in the URL field -3. Click on "Create Web Site" -4. Once the site has been created, click on the site name -5. Click on "Set up Git publishing" or "Reset deployment credentials" and setup a publishing username and password. Use those credentials for all new websites you create. - - - 6. Back in the console window, rerun this command by typing "New-AzureWebsite <site name> -Git" - - - A value for the Primary Peer Subnet has to be provided. - - - Promotion code can be used only when updating to a new plan. - - - Service not published at user request. - - - Complete. - - - Connecting... - - - Created Deployment ID: {0}. - - - Created hosted service '{0}'. - - - Created Website URL: {0}. - - - Creating... - - - Initializing... - - - busy - - - creating the virtual machine - - - Instance {0} of role {1} is {2}. - - - ready - - - Preparing deployment for {0} with Subscription ID: {1}... - - - Publishing {0} to Microsoft Azure. This may take several minutes... - - - publish settings - - - Azure - - - .PublishSettings - - - publishSettings.xml - - - Publish settings imported - - - AZURE_PUBLISHINGPROFILE_URL - - - Starting... - - - Upgrading... - - - Uploading Package to storage service {0}... - - - Verifying storage account '{0}'... - - - Replace current deployment with '{0}' Id ? - - - Are you sure you want to regenerate key? - - - Generate new key. - - - Are you sure you want to remove account '{0}'? - - - Removing account - - - Remove Add-On Confirmation - - - If you delete this add-on, your data may be deleted and the operation may not be undone. You may have to purchase it again from the Microsoft Azure Store to use it. The price of the add-on may not be refunded. Are you sure you want to delete this add-on? Enter “Yes” to confirm. - - - Remove-AzureBGPPeering Operation failed. - - - Removing Bgp Peering - - - Successfully removed Azure Bgp Peering with Service Key {0}. - - - Are you sure you want to remove the Bgp Peering with service key '{0}'? - - - Are you sure you want to remove the Dedicated Circuit with service key '{0}'? - - - Remove-AzureDedicatedCircuit Operation failed. - - - Remove-AzureDedicatedCircuitLink Operation failed. - - - Removing Dedicated Circui Link - - - Successfully removed Azure Dedicated Circuit Link with Service Key {0} and Vnet Name {1} - - - Are you sure you want to remove the Dedicated Circuit Link with service key '{0}' and virtual network name '{1}'? - - - Removing Dedicated Circuit - - - Successfully removed Azure Dedicated Circuit with Service Key {0}. - - - Removing cloud service {0}... - - - Removing {0} deployment for {1} service - - - Removing job collection - - - Are you sure you want to remove the job collection "{0}" - - - Removing job - - - Are you sure you want to remove the job "{0}" - - - Are you sure you want to remove the account? - - - Account removed. - - - Internal Server Error. This could happen because the namespace does not exist or it does not exist under your subscription. - - - Removing old package {0}... - - - Are you sure you want to delete the namespace '{0}'? - - - Are you sure you want to remove cloud service? - - - Remove cloud service and all it's deployments - - - Are you sure you want to remove subscription '{0}'? - - - Removing subscription - - - Are you sure you want to delete the VM '{0}'? - - - Deleting VM. - - - Removing WebJob... - - - Are you sure you want to remove job '{0}'? - - - Removing website - - - Are you sure you want to remove the website "{0}" - - - Deleting namespace - - - Repository is not setup. You need to pass a valid site name. - - - Reserved IP with the Name:'{0}' will no longer be in use after the deployment is deleted, and it is still reserved for later use. - - - Resource with ID : {0} does not exist. - WAPackIaaS - - - Restart - WAPackIaaS - - - Resume - WAPackIaaS - - - /role:{0};"{1}/{0}" - - - bin - - - Role {0} is {1} - - - 20 - - - role name - - - The provided role name {0} doesn't exist - - - RoleSettings.xml - - - Role type {0} doesn't exist - - - public static Dictionary<string, Location> ReverseLocations { get; private set; } - - - Preparing runtime deployment for service '{0}' - - - WARNING Runtime Mismatch: Are you sure that you want to publish service '{0}' using an Azure runtime version that does not match your local runtime version? - - - RUNTIMEOVERRIDEURL - - - /runtimemanifest/runtimes/runtime - - - RUNTIMEID - - - RUNTIMEURL - - - RUNTIMEVERSIONPRIMARYKEY - - - scaffold.xml - - - Invalid location entered. Pick one of the locations from Get-AzureSchedulerLocation - - - A value for the Secondary Peer Subnet has to be provided. - - - Service {0} already exists on disk in location {1} - - - No ServiceBus authorization rule with the given characteristics was found - - - The service bus entity '{0}' is not found. - - - Internal Server Error. This could happen due to an incorrect/missing namespace - - - service configuration - - - service definition - - - ServiceDefinition.csdef - - - {0}Deploy - - - The specified cloud service "{0}" does not exist. - - - {0} slot for service {1} is in {2} state, please wait until it finish and update it's status - - - Begin Operation: {0} - - - Completed Operation: {0} - - - Begin Operation: {0} - - - Completed Operation: {0} - - - service name - - - Please provide name for the hosted service - - - service parent directory - - - Service {0} removed successfully - - - service directory - - - service settings - - - The storage account name '{0}' is invalid. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - - - The {0} slot for cloud service {1} doesn't exist. - - - {0} slot for service {1} is {2} - - - Set Add-On Confirmation - - - Note - You will be charged the amount for the new plan, without being refunded for time remaining -in the existing plan. -By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis -for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) -agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my -contact information with {2}. - - - Note - You will be charged the amount for the new plan, without being refunded for time remaining -in the existing plan. -By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis -for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) -acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of -use and privacy statement at <url> and (c) agree to sharing my contact information with {2}. - - - Role {0} instances are set to {1} - - - {"Slot":"","Location":"","Subscription":"","StorageAccountName":""} - - - deploymentSettings.json - - - Confirm - - - Shutdown - WAPackIaaS - - - /sites:{0};{1};"{2}/{0}" - - - 1000 - - - Start - WAPackIaaS - - - Started - - - Starting Emulator... - - - start - - - Stop - WAPackIaaS - - - Stopping emulator... - - - Stopped - - - stop - - - Account Name: - - - Cannot find storage account '{0}' please type the name of an existing storage account. - - - AzureStorageEmulator.exe - - - InstallPath - - - SOFTWARE\Microsoft\Windows Azure Storage Emulator - - - Primary Key: - - - Secondary Key: - - - The subscription named {0} already exists. - - - DefaultSubscriptionData.xml - - - The subscription data file {0} does not exist. - - - Subscription must not be null - WAPackIaaS - - - Suspend - WAPackIaaS - - - Swapping website production slot ... - - - Are you sure you want to swap the website '{0}' production slot with slot '{1}'? - - - The provider {0} is unknown. - - - Update - WAPackIaaS - - - Updated settings for subscription '{0}'. Current subscription is '{1}'. - - - A value for the VLan Id has to be provided. - - - Please wait... - - - The azure storage emulator is not installed, skip launching... - - - Web.cloud.config - - - web.config - - - MSDeploy - - - Cannot build the project successfully. Please see logs in {0}. - - - WebRole - - - setup_web.cmd > log.txt - - - WebRole.xml - - - WebSite with given name {0} already exists in the specified Subscription and Webspace. - - - WebSite with given name {0} already exists in the specified Subscription and Location. - - - Site {0} already has repository created for it. - - - Workspaces/WebsiteExtension/Website/{0}/dashboard/ - - - https://{0}/msdeploy.axd?site={1} - - - WorkerRole - - - setup_worker.cmd > log.txt - - - WorkerRole.xml - - - Yes - - - Yes, I agree - - - Remove-AzureTrafficManagerProfile Operation failed. - - - Successfully removed Traffic Manager profile with name {0}. - - - Are you sure you want to remove the Traffic Manager profile "{0}"? - - - Profile {0} already has an endpoint with name {1} - - - Profile {0} does not contain endpoint {1}. Adding it. - - - The endpoint {0} cannot be removed from profile {1} because it's not in the profile. - - - Insufficient parameters passed to create a new endpoint. - - - Ambiguous operation: the profile name specified doesn't match the name of the profile object. - - - <NONE> - - - "An exception occurred when calling the ServiceManagement API. HTTP Status Code: {0}. Service Management Error Code: {1}. Message: {2}. Operation Tracking ID: {3}." - {0} is the HTTP status code. {1} is the Service Management Error Code. {2} is the Service Management Error message. {3} is the operation tracking ID. - - - Unable to decode string from base 64. Please make sure the string is correctly encoded: {0}. - {0} is the string that is not in a valid base 64 format. - - - Skipping external tenant {0}, because you are using a guest or a foreign principal object identity. In order to access this tenant, please run Add-AzureAccount without "-Credential". - - - Removing an environment will remove all associated subscriptions and accounts. Are you sure you want to remove an environment '{0}'? - - - Removing environment - - - There is no subscription associated with account {0}. - - - Account id doesn't match one in subscription. - - - Environment name doesn't match one in subscription. - - - Removing the Azure profile will remove all associated environments, subscriptions, and accounts. Are you sure you want to remove the Azure profile? - - - Removing the Azure profile - - - The SubscriptionDataFile parameter is deprecated. This parameter will be removed in a future release. See https://github.com/Azure/azure-powershell/wiki/Proposed-Design-Stateless-Azure-Profile for a description of the upcoming mechanism for providing alternate sources of subscription information. - - - Account needs to be specified - - - No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription. - - - Path must specify a valid path to an Azure profile. - - - Property bag Hashtable must contain one of the following sets of properties: {SubscriptionId, Certificate}, {SubscriptionId, Username, Password}, {SubscriptionId, ServicePrincipal, Password, Tenant}, {SubscriptionId, AccountId, Token} - - - Property bag Hashtable must contain a 'Certificate' of type 'X509Certificate2'. - - - Property bag Hashtable must contain a 'Password' with an associated 'Username' or 'ServicePrincipal'. - - - Property bag Hashtable must contain a 'SubscriptionId'. - - - Selected profile must not be null. - - - The Switch-AzureMode cmdlet is deprecated and will be removed in a future release. - - - OperationID : '{0}' - - - Cannot get module for DscResource '{0}'. Possible solutions: -1) Specify -ModuleName for Import-DscResource in your configuration. -2) Unblock module that contains resource. -3) Move Import-DscResource inside Node block. - - 0 = name of DscResource - - - Your current PowerShell version {1} is less then required by this cmdlet {0}. Consider download and install latest PowerShell version. - {0} = minimal required PS version, {1} = current PS version - - - Parsing configuration script: {0} - {0} is the path to a script file - - - Configuration script '{0}' contained parse errors: -{1} - 0 = path to the configuration script, 1 = parser errors - - - List of required modules: [{0}]. - {0} = list of modules - - - Temp folder '{0}' created. - {0} = temp folder path - - - Copy '{0}' to '{1}'. - {0} = source, {1} = destination - - - Copy the module '{0}' to '{1}'. - {0} = source, {1} = destination - - - File '{0}' already exists. Use the -Force parameter to overwrite it. - {0} is the path to a file - - - Configuration file '{0}' not found. - 0 = path to the configuration file - - - Path '{0}' not found. - 0 = path to the additional content file/directory - - - Path '{0}' not found. - 0 = path to the additional content file/directory - - - Invalid configuration file: {0}. -The file needs to be a PowerShell script (.ps1 or .psm1) or a ZIP archive (.zip). - 0 = path to the configuration file - - - Invalid configuration file: {0}. -The file needs to be a PowerShell script (.ps1 or .psm1). - 0 = path to the configuration file - - - Create Archive - - - Upload '{0}' - {0} is the name of an storage blob - - - Storage Blob '{0}' already exists. Use the -Force parameter to overwrite it. - {0} is the name of an storage blob - - - Configuration published to {0} - {0} is an URI - - - Deleted '{0}' - {0} is the path of a file - - - Cannot delete '{0}': {1} - {0} is the path of a file, {1} is an error message - - - Cannot find the WadCfg end element in the config. - - - WadCfg start element in the config is not matching the end element. - - - Cannot find the WadCfg element in the config. - - - Cannot find configuration data file: {0} - - - The configuration data must be a .psd1 file - - - Cannot change built-in environment {0}. - - - Azure PowerShell collects usage data in order to improve your experience. -The data is anonymous and does not include commandline argument values. -The data is collected by Microsoft. - -Use the Disable-AzDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Az.Accounts module. To disable data collection: PS > Disable-AzDataCollection. -Use the Enable-AzDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Az.Accounts module. To enable data collection: PS > Enable-AzDataCollection. - - - Microsoft Azure PowerShell Data Collection Confirmation - - - You choose not to participate in Microsoft Azure PowerShell data collection. - - - This confirmation message will be dismissed in '{0}' second(s)... - - - You choose to participate in Microsoft Azure PowerShell data collection. - - - The setting profile has been saved to the following path '{0}'. - - - [Common.Authentication]: Authenticating for account {0} with single tenant {1}. - - - Changing public environment is not supported. - - - Environment name needs to be specified. - - - Environment needs to be specified. - - - The environment name '{0}' is not found. - - - File path is not valid. - - - Must specify a non-null subscription name. - - - The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a new default subscription. - - - Removing public environment is not supported. - - - The subscription id {0} doesn't exist. - - - Subscription name needs to be specified. - - - The subscription name {0} doesn't exist. - - - Subscription needs to be specified. - - - User name is not valid. - - - User name needs to be specified. - - - "There is no current context, please log in using Connect-AzAccount." - - - No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or co-administrator for any account.\r\nDid you mean to execute Connect-AzAccount? - - - No certificate was found in the certificate store with thumbprint {0} - - - Illegal characters in path. - - - Invalid certificate format. Publish settings may be corrupted. Use Get-AzurePublishSettingsFile to download updated settings - - - "{0}" is an invalid DNS name for {1} - - - The provided file in {0} must be have {1} extension - - - {0} is invalid or empty - - - Please connect to internet before executing this cmdlet - - - Path {0} doesn't exist. - - - Path for {0} doesn't exist in {1}. - - - &whr={0} - - - The provided service name {0} already exists, please pick another name - - - Unable to update mismatching Json structured: {0} {1}. - - - (x86) - - - Azure PowerShell collects usage data in order to improve your experience. -The data is anonymous and does not include commandline argument values. -The data is collected by Microsoft. - -Use the Disable-AzureDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Azure module. To disable data collection: PS > Disable-AzureDataCollection. -Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Azure module. To enable data collection: PS > Enable-AzureDataCollection. - - - Execution failed because a background thread could not prompt the user. - - - Azure Long-Running Job - - - The cmdlet failed in background execution. The returned error was '{0}'. Please execute the cmdlet again. You may need to execute this cmdlet synchronously, by omitting the '-AsJob' parameter. - 0(string): exception message in background task - - - Please execute the cmdlet again and include the 'Force' parameter, if available, to avoid unnecessary prompts. - - - Please execute the cmdlet again and omit the 'Confirm' parameter when using the 'AsJob' parameter. - - - Please increase the user $ConfirmPreference setting, or include turn off confirmation using '-Confirm:$false' when using the 'AsJob' parameter and execute the cmdet again. - - - Please execute the cmdlet again and omit the 'WhatIf' parameter when using the 'AsJob' parameter. - - - [AzureLongRunningJob]: Starting cmdlet execution, setting for cmdlet confirmation required: '{0}' - 0(bool): whether cmdlet confirmation is required - - - [AzureLongRunningJob]: Blocking job for ShouldMethod '{0}' - 0(string): method type - - - [AzureLongRunningJob]: Completing cmdlet execution in RunJob - - - [AzureLongRunningJob]: State change from '{0}' to '{1}' because '{2}' - 0(string): last state, 1(string): new state, 2(string): state change reason - - - [AzureLongRunningJob]: Unblocking job due to stoppage or failure - - - [AzureLongRunningJob]: Unblocking job that was previously blocked. - - - [AzureLongRunningJob]: Error in cmdlet execution - - - [AzureLongRunningJob]: Removing state changed event handler, exception '{0}' - 0(string): exception message - - - [AzureLongRunningJob]: ShouldMethod '{0}' unblocked. - 0(string): methodType - - - -- The parameter : '{0}' is changing. - - - -- The parameter : '{0}' is becoming mandatory. - - - -- The parameter : '{0}' is being replaced by parameter : '{1}'. - - - -- The parameter : '{0}' is being replaced by mandatory parameter : '{1}'. - - - -- Change description : {0} - - - The cmdlet is being deprecated. There will be no replacement for it. - - - The cmdlet parameter set is being deprecated. There will be no replacement for it. - - - The cmdlet '{0}' is replacing this cmdlet. - - - -- The output type is changing from the existing type :'{0}' to the new type :'{1}' - - - -- The output type '{0}' is changing - - - -- The following properties are being added to the output type : - - - -- The following properties in the output type are being deprecated : - - - {0} - - - -- Cmdlet : '{0}' - - {1} - - - Upcoming breaking changes in the cmdlet '{0}' : - - - -- This change will take effect on '{0}' - - - -- The change is expected to take effect in '{0}' from version : '{1}' - - - ```powershell -# Old -{0} - -# New -{1} -``` - - - - -Cmdlet invocation changes : - Old Way : {0} - New Way : {1} - - - -The output type '{0}' is being deprecated without a replacement. - - - -The type of the parameter is changing from '{0}' to '{1}'. - - - -Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell. - - - This cmdlet is in preview. Its behavior is subject to change based on customer feedback. - - - The estimated generally available date is '{0}'. - - - - The change is expected to take effect from Az version : '{0}' - - \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Response.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Response.cs deleted file mode 100644 index 1c7ab745fa51..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Response.cs +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System; - using System.Threading.Tasks; - public class Response : EventData - { - public Response() : base() - { - } - } - - public class Response : Response - { - private Func> _resultDelegate; - private Task _resultValue; - - public Response(T value) : base() => _resultValue = Task.FromResult(value); - public Response(Func value) : base() => _resultDelegate = () => Task.FromResult(value()); - public Response(Func> value) : base() => _resultDelegate = value; - public Task Result => _resultValue ?? (_resultValue = this._resultDelegate()); - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/JsonSerializer.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/JsonSerializer.cs deleted file mode 100644 index b66cce9cf99b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/JsonSerializer.cs +++ /dev/null @@ -1,350 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections; -using System.Collections.Generic; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal class JsonSerializer - { - private int depth = 0; - - private SerializationOptions options = new SerializationOptions(); - - #region Deserialization - - internal T Deseralize(JsonObject json) - where T : new() - { - var contract = JsonModelCache.Get(typeof(T)); - - return (T)DeserializeObject(contract, json); - } - - internal object DeserializeObject(JsonModel contract, JsonObject json) - { - var instance = Activator.CreateInstance(contract.Type); - - depth++; - - // Ensure we don't recurse forever - if (depth > 5) throw new Exception("Depth greater than 5"); - - foreach (var field in json) - { - var member = contract[field.Key]; - - if (member != null) - { - var value = DeserializeValue(member, field.Value); - - member.SetValue(instance, value); - } - } - - depth--; - - return instance; - } - - private object DeserializeValue(JsonMember member, JsonNode value) - { - if (value.Type == JsonType.Null) return null; - - var type = member.Type; - - if (member.IsStringLike && value.Type != JsonType.String) - { - // Take the long path... - return DeserializeObject(JsonModelCache.Get(type), (JsonObject)value); - } - else if (member.Converter != null) - { - return member.Converter.FromJson(value); - } - else if (type.IsArray) - { - return DeserializeArray(type, (JsonArray)value); - } - else if (member.IsList) - { - return DeserializeList(type, (JsonArray)value); - } - else - { - var contract = JsonModelCache.Get(type); - - return DeserializeObject(contract, (JsonObject)value); - } - } - - private object DeserializeValue(Type type, JsonNode value) - { - if (type == null) throw new ArgumentNullException(nameof(type)); - - if (value.Type == JsonType.Null) return null; - - var typeDetails = TypeDetails.Get(type); - - if (typeDetails.JsonConverter != null) - { - return typeDetails.JsonConverter.FromJson(value); - } - else if (typeDetails.IsEnum) - { - return Enum.Parse(type, value.ToString(), ignoreCase: true); - } - else if (type.IsArray) - { - return DeserializeArray(type, (JsonArray)value); - } - else if (typeDetails.IsList) - { - return DeserializeList(type, (JsonArray)value); - } - else - { - var contract = JsonModelCache.Get(type); - - return DeserializeObject(contract, (JsonObject)value); - } - } - - internal Array DeserializeArray(Type type, JsonArray elements) - { - var elementType = type.GetElementType(); - - var elementTypeDetails = TypeDetails.Get(elementType); - - var array = Array.CreateInstance(elementType, elements.Count); - - int i = 0; - - if (elementTypeDetails.JsonConverter != null) - { - foreach (var value in elements) - { - array.SetValue(elementTypeDetails.JsonConverter.FromJson(value), i); - - i++; - } - } - else - { - foreach (var value in elements) - { - array.SetValue(DeserializeValue(elementType, value), i); - - i++; - } - } - - return array; - } - - internal IList DeserializeList(Type type, JsonArray jsonArray) - { - // TODO: Handle non-generic types - if (!type.IsGenericType) - throw new ArgumentException("Must be a generic type", nameof(type)); - - var elementType = type.GetGenericArguments()[0]; - - IList list; - - if (type.IsInterface) - { - // Create a concrete generic list - list = (IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(elementType)); - } - else - { - list = (IList)Activator.CreateInstance(type); - } - - foreach (var value in jsonArray) - { - list.Add(DeserializeValue(elementType, value)); - } - - return list; - } - - #endregion - - #region Serialization - - internal JsonNode Serialize(object instance) => - Serialize(instance, SerializationOptions.Default); - - internal JsonNode Serialize(object instance, string[] include) => - Serialize(instance, new SerializationOptions { Include = include }); - - internal JsonNode Serialize(object instance, SerializationOptions options) - { - this.options = options; - - if (instance == null) - { - return XNull.Instance; - } - - return ReadValue(instance.GetType(), instance); - } - - #region Readers - - internal JsonArray ReadArray(IEnumerable collection) - { - var array = new XNodeArray(); - - foreach (var item in collection) - { - array.Add(ReadValue(item.GetType(), item)); - } - - return array; - } - - internal IEnumerable> ReadProperties(object instance) - { - var contract = JsonModelCache.Get(instance.GetType()); - - foreach (var member in contract.Members) - { - string name = member.Name; - - if (options.PropertyNameTransformer != null) - { - name = options.PropertyNameTransformer.Invoke(name); - } - - // Skip the field if it's not included - if ((depth == 1 && !options.IsIncluded(name))) - { - continue; - } - - var value = member.GetValue(instance); - - if (!member.EmitDefaultValue && (value == null || (member.IsList && ((IList)value).Count == 0) || value.Equals(member.DefaultValue))) - { - continue; - } - else if (options.IgnoreNullValues && value == null) // Ignore null values - { - continue; - } - - // Transform the value if there is one - if (options.Transformations != null) - { - var transform = options.GetTransformation(name); - - if (transform != null) - { - value = transform.Transformer(value); - } - } - - yield return new KeyValuePair(name, ReadValue(member.TypeDetails, value)); - } - } - - private JsonObject ReadObject(object instance) - { - depth++; - - // TODO: Guard against a self referencing graph - if (depth > options.MaxDepth) - { - depth--; - - return new JsonObject(); - } - - var node = new JsonObject(ReadProperties(instance)); - - depth--; - - return node; - } - - private JsonNode ReadValue(Type type, object value) - { - if (value == null) - { - return XNull.Instance; - } - - var member = TypeDetails.Get(type); - - return ReadValue(member, value); - } - - private JsonNode ReadValue(TypeDetails type, object value) - { - if (value == null) - { - return XNull.Instance; - } - - if (type.JsonConverter != null) - { - return type.JsonConverter.ToJson(value); - } - else if (type.IsArray) - { - switch (Type.GetTypeCode(type.ElementType)) - { - case TypeCode.String: return CreateArray((string[])value); - case TypeCode.UInt16: return CreateArray((ushort[])value); - case TypeCode.UInt32: return CreateArray((uint[])value); - case TypeCode.UInt64: return CreateArray((ulong[])value); - case TypeCode.Int16: return CreateArray((short[])value); - case TypeCode.Int32: return CreateArray((int[])value); - case TypeCode.Int64: return CreateArray((long[])value); - case TypeCode.Single: return CreateArray((float[])value); - case TypeCode.Double: return CreateArray((double[])value); - default: return ReadArray((IEnumerable)value); - } - } - else if (value is IEnumerable) - { - if (type.IsList && type.ElementType != null) - { - switch (Type.GetTypeCode(type.ElementType)) - { - case TypeCode.String: return CreateList(value); - case TypeCode.UInt16: return CreateList(value); - case TypeCode.UInt32: return CreateList(value); - case TypeCode.UInt64: return CreateList(value); - case TypeCode.Int16: return CreateList(value); - case TypeCode.Int32: return CreateList(value); - case TypeCode.Int64: return CreateList(value); - case TypeCode.Single: return CreateList(value); - case TypeCode.Double: return CreateList(value); - } - } - - return ReadArray((IEnumerable)value); - } - else - { - // Complex object - return ReadObject(value); - } - } - - private XList CreateList(object value) => new XList((IList)value); - - private XImmutableArray CreateArray(T[] array) => new XImmutableArray(array); - - #endregion - - #endregion - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/PropertyTransformation.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/PropertyTransformation.cs deleted file mode 100644 index ccd81d29ce71..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/PropertyTransformation.cs +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal class PropertyTransformation - { - internal PropertyTransformation(string name, Func transformer) - { - Name = name ?? throw new ArgumentNullException(nameof(name)); - Transformer = transformer ?? throw new ArgumentNullException(nameof(transformer)); - } - - internal string Name { get; } - - internal Func Transformer { get; } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/SerializationOptions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/SerializationOptions.cs deleted file mode 100644 index 850ea40306c4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Serialization/SerializationOptions.cs +++ /dev/null @@ -1,65 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Linq; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal class SerializationOptions - { - internal static readonly SerializationOptions Default = new SerializationOptions(); - - internal SerializationOptions() { } - - internal SerializationOptions( - string[] include = null, - bool ingoreNullValues = false) - { - Include = include; - IgnoreNullValues = ingoreNullValues; - } - - internal string[] Include { get; set; } - - internal string[] Exclude { get; set; } - - internal bool IgnoreNullValues { get; set; } - - internal PropertyTransformation[] Transformations { get; set; } - - internal Func PropertyNameTransformer { get; set; } - - internal int MaxDepth { get; set; } = 5; - - internal bool IsIncluded(string name) - { - if (Exclude != null) - { - return !Exclude.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); - } - else if (Include != null) - { - return Include.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); - } - - return true; - } - - internal PropertyTransformation GetTransformation(string propertyName) - { - if (Transformations == null) return null; - - foreach (var t in Transformations) - { - if (t.Name.Equals(propertyName, StringComparison.OrdinalIgnoreCase)) - { - return t; - } - } - - return null; - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/SerializationMode.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/SerializationMode.cs deleted file mode 100644 index 27b9be3b93a7..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/SerializationMode.cs +++ /dev/null @@ -1,18 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - [System.Flags] - public enum SerializationMode - { - None = 0, - IncludeHeaders = 1 << 0, - IncludeRead = 1 << 1, - IncludeCreate = 1 << 2, - IncludeUpdate = 1 << 3, - IncludeAll = IncludeHeaders | IncludeRead | IncludeCreate | IncludeUpdate, - IncludeCreateOrUpdate = IncludeCreate | IncludeUpdate - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/TypeConverterExtensions.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/TypeConverterExtensions.cs deleted file mode 100644 index 7076c04ca8e5..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/TypeConverterExtensions.cs +++ /dev/null @@ -1,261 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System.IO; -using System.Linq; -using System.Xml; -using System.Xml.Serialization; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PowerShell -{ - internal static class TypeConverterExtensions - { - internal static T[] SelectToArray(object source, System.Func converter) - { - // null begets null - if (source == null) - { - return null; - } - - // single values and strings are just encapsulated in the array. - if (source is string || !(source is System.Collections.IEnumerable)) - { - try - { - return new T[] { (T)converter(source) }; - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - // silent conversion fail - } -#endif - return new T[0]; // empty result if couldn't convert. - } - - var result = new System.Collections.Generic.List(); - foreach (var each in (System.Collections.IEnumerable)source) - { - try - { - result.Add((T)converter(each)); - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - // silent conversion fail - } -#endif - } - return result.ToArray(); - } - - internal static System.Collections.Generic.List SelectToList(object source, System.Func converter) - { - // null begets null - if (source == null) - { - return null; - } - - // single values and strings are just encapsulated in the array. - if (source is string || !(source is System.Collections.IEnumerable)) - { - try - { - return new T[] { (T)converter(source) }.ToList(); - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - // silent conversion fail - } -#endif - return new T[0].ToList(); // empty result if couldn't convert. - } - - var result = new System.Collections.Generic.List(); - foreach (var each in (System.Collections.IEnumerable)source) - { - try - { - result.Add((T)converter(each)); - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - // silent conversion fail - } -#endif - } - return result; - } - internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.Generic.IDictionary dictionary) - { - if (null != dictionary) - { - foreach (var each in dictionary.Keys) - { - yield return each; - } - } - } - internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.IDictionary dictionary) - { - if (null != dictionary) - { - foreach (var each in dictionary.Keys) - { - yield return each; - } - } - } - internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Management.Automation.PSObject instance) - { - if (null != instance) - { - foreach (var each in instance.Properties) - { - yield return each; - } - } - } - - internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.Generic.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) - { - return (null == instance || instance.Count == 0) ? - Enumerable.Empty>() : - instance.Keys - .Where(key => - !(true == exclusions?.Contains(key?.ToString())) - && (false != inclusions?.Contains(key?.ToString()))) - .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); - } - - internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) - { - return (null == instance || instance.Count == 0) ? - Enumerable.Empty>() : - instance.Keys.OfType() - .Where(key => - !(true == exclusions?.Contains(key?.ToString())) - && (false != inclusions?.Contains(key?.ToString()))) - .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); - } - - internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Management.Automation.PSObject instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) - { - // new global::System.Collections.Generic.HashSet(System.StringComparer.InvariantCultureIgnoreCase) - return (null == instance || !instance.Properties.Any()) ? - Enumerable.Empty>() : - instance.Properties - .Where(property => - !(true == exclusions?.Contains(property.Name)) - && (false != inclusions?.Contains(property.Name))) - .Select(property => new System.Collections.Generic.KeyValuePair(property.Name, property.Value)); - } - - - internal static T GetValueForProperty(this System.Collections.Generic.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) - { - try - { - var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys, each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); - return key == null ? defaultValue : (T)converter(dictionary[key]); - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - } -#endif - return defaultValue; - } - internal static T GetValueForProperty(this System.Collections.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) - { - try - { - var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys.OfType(), each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); - return key == null ? defaultValue : (T)converter(dictionary[key]); - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - } -#endif - return defaultValue; - } - - internal static T GetValueForProperty(this System.Management.Automation.PSObject psObject, string propertyName, T defaultValue, System.Func converter) - { - try - { - var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); - return property == null ? defaultValue : (T)converter(property.Value); - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - } -#endif - return defaultValue; - } - - internal static bool Contains(this System.Management.Automation.PSObject psObject, string propertyName) - { - bool result = false; - try - { - var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); - result = property == null ? false : true; - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - } -#endif - return result; - } - } -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/UndeclaredResponseException.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/UndeclaredResponseException.cs deleted file mode 100644 index c1f06c3511b0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/UndeclaredResponseException.cs +++ /dev/null @@ -1,112 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System; - using System.Net.Http; - using System.Net.Http.Headers; - using static Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Extensions; - - public class RestException : Exception, IDisposable - { - public System.Net.HttpStatusCode StatusCode { get; set; } - public string Code { get; protected set; } - protected string message; - public HttpRequestMessage RequestMessage { get; protected set; } - public HttpResponseHeaders ResponseHeaders { get; protected set; } - - public string ResponseBody { get; protected set; } - public string ClientRequestId { get; protected set; } - public string RequestId { get; protected set; } - - public override string Message => message; - public string Action { get; protected set; } - - public RestException(System.Net.Http.HttpResponseMessage response) - { - StatusCode = response.StatusCode; - //CloneWithContent will not work here since the content is disposed after sendAsync - //Besides, it seems there is no need for the request content cloned here. - RequestMessage = response.RequestMessage.Clone(); - ResponseBody = response.Content.ReadAsStringAsync().Result; - ResponseHeaders = response.Headers; - - RequestId = response.GetFirstHeader("x-ms-request-id"); - ClientRequestId = response.GetFirstHeader("x-ms-client-request-id"); - - try - { - // try to parse the body as JSON, and see if a code and message are in there. - var json = Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonNode.Parse(ResponseBody) as Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json.JsonObject; - - // error message could be in properties.statusMessage - { message = If(json?.Property("properties"), out var p) - && If(p?.PropertyT("statusMessage"), out var sm) - ? (string)sm : (string)Message; } - - // see if there is an error block in the body - json = json?.Property("error") ?? json; - - { Code = If(json?.PropertyT("code"), out var c) ? (string)c : (string)StatusCode.ToString(); } - { message = If(json?.PropertyT("message"), out var m) ? (string)m : (string)Message; } - { Action = If(json?.PropertyT("action"), out var a) ? (string)a : (string)Action; } - } -#if DEBUG - catch (System.Exception E) - { - System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); - } -#else - catch - { - // couldn't get the code/message from the body response. - // In this case, we will assume the response is the expected error message - if(!string.IsNullOrEmpty(ResponseBody)) { - message = ResponseBody; - } - } -#endif - if (string.IsNullOrEmpty(message)) - { - if (StatusCode >= System.Net.HttpStatusCode.BadRequest && StatusCode < System.Net.HttpStatusCode.InternalServerError) - { - message = $"The server responded with a Request Error, Status: {StatusCode}"; - } - else if (StatusCode >= System.Net.HttpStatusCode.InternalServerError) - { - message = $"The server responded with a Server Error, Status: {StatusCode}"; - } - else - { - message = $"The server responded with an unrecognized response, Status: {StatusCode}"; - } - } - } - - public void Dispose() - { - ((IDisposable)RequestMessage).Dispose(); - } - } - - public class RestException : RestException - { - public T Error { get; protected set; } - public RestException(System.Net.Http.HttpResponseMessage response, T error) : base(response) - { - Error = error; - } - } - - - public class UndeclaredResponseException : RestException - { - public UndeclaredResponseException(System.Net.Http.HttpResponseMessage response) : base(response) - { - - } - } -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Writers/JsonWriter.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Writers/JsonWriter.cs deleted file mode 100644 index dc33d902f55b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/Writers/JsonWriter.cs +++ /dev/null @@ -1,223 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Web; - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Json -{ - internal class JsonWriter - { - const string indentation = " "; // 2 spaces - - private readonly bool pretty; - private readonly TextWriter writer; - - protected int currentLevel = 0; - - internal JsonWriter(TextWriter writer, bool pretty = true) - { - this.writer = writer ?? throw new ArgumentNullException(nameof(writer)); - this.pretty = pretty; - } - - internal void WriteNode(JsonNode node) - { - switch (node.Type) - { - case JsonType.Array: WriteArray((IEnumerable)node); break; - case JsonType.Object: WriteObject((JsonObject)node); break; - - // Primitives - case JsonType.Binary: WriteBinary((XBinary)node); break; - case JsonType.Boolean: WriteBoolean((bool)node); break; - case JsonType.Date: WriteDate((JsonDate)node); break; - case JsonType.Null: WriteNull(); break; - case JsonType.Number: WriteNumber((JsonNumber)node); break; - case JsonType.String: WriteString(node); break; - } - } - - internal void WriteArray(IEnumerable array) - { - currentLevel++; - - writer.Write('['); - - bool doIndentation = false; - - if (pretty) - { - foreach (var node in array) - { - if (node.Type == JsonType.Object || node.Type == JsonType.Array) - { - doIndentation = true; - - break; - } - } - } - - bool isFirst = true; - - foreach (JsonNode node in array) - { - if (!isFirst) writer.Write(','); - - if (doIndentation) - { - WriteIndent(); - } - else if (pretty) - { - writer.Write(' '); - } - - WriteNode(node); - - isFirst = false; - } - - currentLevel--; - - if (doIndentation) - { - WriteIndent(); - } - else if (pretty) - { - writer.Write(' '); - } - - writer.Write(']'); - } - - internal void WriteIndent() - { - if (pretty) - { - writer.Write(Environment.NewLine); - - for (int level = 0; level < currentLevel; level++) - { - writer.Write(indentation); - } - } - } - - internal void WriteObject(JsonObject obj) - { - currentLevel++; - - writer.Write('{'); - - bool isFirst = true; - - foreach (var field in obj) - { - if (!isFirst) writer.Write(','); - - WriteIndent(); - - WriteFieldName(field.Key); - - writer.Write(':'); - - if (pretty) - { - writer.Write(' '); - } - - // Write the field value - WriteNode(field.Value); - - isFirst = false; - } - - currentLevel--; - - WriteIndent(); - - writer.Write('}'); - } - - internal void WriteFieldName(string fieldName) - { - writer.Write('"'); - writer.Write(HttpUtility.JavaScriptStringEncode(fieldName)); - writer.Write('"'); - } - - #region Primitives - - internal void WriteBinary(XBinary value) - { - writer.Write('"'); - writer.Write(value.ToString()); - writer.Write('"'); - } - - internal void WriteBoolean(bool value) - { - writer.Write(value ? "true" : "false"); - } - - internal void WriteDate(JsonDate date) - { - if (date.ToDateTime().Year == 1) - { - WriteNull(); - } - else - { - writer.Write('"'); - writer.Write(date.ToIsoString()); - writer.Write('"'); - } - } - - internal void WriteNull() - { - writer.Write("null"); - } - - internal void WriteNumber(JsonNumber number) - { - if (number.Overflows) - { - writer.Write('"'); - writer.Write(number.Value); - writer.Write('"'); - } - else - { - writer.Write(number.Value); - } - } - - internal void WriteString(string text) - { - if (text == null) - { - WriteNull(); - } - else - { - writer.Write('"'); - - writer.Write(HttpUtility.JavaScriptStringEncode(text)); - - writer.Write('"'); - } - } - - #endregion - } -} - - -// TODO: Replace with System.Text.Json when available diff --git a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/delegates.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/delegates.cs deleted file mode 100644 index 3ac71403eda2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/delegates.cs +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -namespace Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime -{ - using System; - using System.Collections; - using System.Collections.Generic; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - using GetEventData=System.Func; - - public delegate Task SendAsync(HttpRequestMessage request, IEventListener callback); - public delegate Task SendAsyncStep(HttpRequestMessage request, IEventListener callback, ISendAsync next); - public delegate Task SignalEvent(string id, CancellationToken token, GetEventData getEventData); - public delegate Task Event(EventData message); - public delegate void SynchEvent(EventData message); - public delegate Task OnResponse(Response message); - public delegate Task OnResponse(Response message); -} \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Az.FrontDoor.internal.psm1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Az.FrontDoor.internal.psm1 deleted file mode 100644 index 00a473e839e0..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Az.FrontDoor.internal.psm1 +++ /dev/null @@ -1,38 +0,0 @@ -# region Generated - # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.FrontDoor.private.dll') - - # Get the private module's instance - $instance = [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Module]::Instance - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export proxy cmdlet scripts - $exportsPath = $PSScriptRoot - $directories = Get-ChildItem -Directory -Path $exportsPath - $profileDirectory = $null - if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." - } - } elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 - } - - if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName - } - - if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) - } -# endregion diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Enable-AzFrontDoorCustomDomainHttps.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Enable-AzFrontDoorCustomDomainHttps.ps1 deleted file mode 100644 index 110318e0cd46..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Enable-AzFrontDoorCustomDomainHttps.ps1 +++ /dev/null @@ -1,334 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Enables a frontendEndpoint for HTTPS traffic -.Description -Enables a frontendEndpoint for HTTPS traffic -.Example -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" -.Example -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" -.Example -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps -.Example -Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -.Example -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMHTTPSCONFIGURATION : Https settings for a domain - CertificateSource : Defines the source of the SSL certificate - MinimumTlsVersion : The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [FrontDoorCertificateSourceParameterCertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [KeyVaultCertificateSourceParameterSecretName ]: The name of the Key Vault secret representing the full certificate PFX - [KeyVaultCertificateSourceParameterSecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [VaultId ]: Resource ID. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps -#> -function Enable-AzFrontDoorCustomDomainHttps { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${FrontendEndpointName}, - - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Enable')] - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaJsonFilePath')] - [Parameter(ParameterSetName='EnableViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter(ParameterSetName='Enable', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration] - # Https settings for a domain - ${CustomHttpsConfiguration}, - - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the source of the SSL certificate - ${CertificateSource}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] - [System.String] - # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - ${MinimumTlsVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the type of the certificate used for secure connections to a frontendEndpoint - ${CertificateType}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Key Vault secret representing the full certificate PFX - ${SecretName}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The version of the Key Vault secret representing the full certificate PFX - ${SecretVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${VaultId}, - - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Enable operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Enable operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Enable = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_Enable'; - EnableExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableExpanded'; - EnableViaIdentity = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentity'; - EnableViaIdentityExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded'; - EnableViaIdentityFrontDoor = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor'; - EnableViaIdentityFrontDoorExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded'; - EnableViaJsonFilePath = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaJsonFilePath'; - EnableViaJsonString = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaJsonString'; - } - if (('Enable', 'EnableExpanded', 'EnableViaJsonFilePath', 'EnableViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('EnableExpanded', 'EnableViaIdentityExpanded', 'EnableViaIdentityFrontDoorExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('MinimumTlsVersion') ) { - $PSBoundParameters['MinimumTlsVersion'] = 1.2 - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Get-AzFrontDoorFrontendEndpoint.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Get-AzFrontDoorFrontendEndpoint.ps1 deleted file mode 100644 index 79547f03fa14..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Get-AzFrontDoorFrontendEndpoint.ps1 +++ /dev/null @@ -1,208 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Gets a Frontend endpoint with the specified name within the specified Front Door. -.Description -Gets a Frontend endpoint with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint -#> -function Get-AzFrontDoorFrontendEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] - [Alias('FrontendEndpointName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Get = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_Get'; - GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_GetViaIdentity'; - GetViaIdentityFrontDoor = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor'; - List = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_List'; - } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoor.ps1 deleted file mode 100644 index e179e2286588..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoor.ps1 +++ /dev/null @@ -1,321 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Create a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor -#> -function New-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='"Enabled"')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoor_CreateExpanded'; - CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoor_CreateViaJsonFilePath'; - CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoor_CreateViaJsonString'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('EnabledState') ) { - $PSBoundParameters['EnabledState'] = "Enabled" - } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoorWafPolicy.ps1 deleted file mode 100644 index b61bb18b93e4..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/New-AzFrontDoorWafPolicy.ps1 +++ /dev/null @@ -1,282 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create policy with specified rule set name within a resource group. -.Description -Create policy with specified rule set name within a resource group. -.Example -New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. - -POLICYSETTING : Describes settings for the policy. - [CaptchaExpirationInMinutes ]: 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. - [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. - [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - [JavascriptChallengeExpirationInMinutes ]: 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. - [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - [Mode ]: Describes if it is in detection mode or prevention mode at policy level. - [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. - [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy -#> -function New-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] - # Describes settings for the policy. - ${PolicySetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateExpanded'; - CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateViaJsonFilePath'; - CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateViaJsonString'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/ProxyCmdletDefinitions.ps1 deleted file mode 100644 index 24c33368ea8f..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ /dev/null @@ -1,3015 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Enables a frontendEndpoint for HTTPS traffic -.Description -Enables a frontendEndpoint for HTTPS traffic -.Example -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2" -.Example -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0" -.Example -Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps -.Example -Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId -.Example -$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId -Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -MinimumTlsVersion "1.0" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMHTTPSCONFIGURATION : Https settings for a domain - CertificateSource : Defines the source of the SSL certificate - MinimumTlsVersion : The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [FrontDoorCertificateSourceParameterCertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [KeyVaultCertificateSourceParameterSecretName ]: The name of the Key Vault secret representing the full certificate PFX - [KeyVaultCertificateSourceParameterSecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [VaultId ]: Resource ID. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps -#> -function Enable-AzFrontDoorCustomDomainHttps { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${FrontendEndpointName}, - - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Enable')] - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaJsonFilePath')] - [Parameter(ParameterSetName='EnableViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter(ParameterSetName='Enable', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomHttpsConfiguration] - # Https settings for a domain - ${CustomHttpsConfiguration}, - - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("AzureKeyVault", "FrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the source of the SSL certificate - ${CertificateSource}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] - [System.String] - # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - ${MinimumTlsVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Dedicated")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Defines the type of the certificate used for secure connections to a frontendEndpoint - ${CertificateType}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Key Vault secret representing the full certificate PFX - ${SecretName}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The version of the Key Vault secret representing the full certificate PFX - ${SecretVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${VaultId}, - - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Enable operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Enable operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Enable = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_Enable'; - EnableExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableExpanded'; - EnableViaIdentity = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentity'; - EnableViaIdentityExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityExpanded'; - EnableViaIdentityFrontDoor = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoor'; - EnableViaIdentityFrontDoorExpanded = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaIdentityFrontDoorExpanded'; - EnableViaJsonFilePath = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaJsonFilePath'; - EnableViaJsonString = 'Az.FrontDoor.private\Enable-AzFrontDoorCustomDomainHttps_EnableViaJsonString'; - } - if (('Enable', 'EnableExpanded', 'EnableViaJsonFilePath', 'EnableViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('EnableExpanded', 'EnableViaIdentityExpanded', 'EnableViaIdentityFrontDoorExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('MinimumTlsVersion') ) { - $PSBoundParameters['MinimumTlsVersion'] = 1.2 - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Gets a Frontend endpoint with the specified name within the specified Front Door. -.Description -Gets a Frontend endpoint with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FRONTDOORINPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/get-azfrontdoorfrontendendpoint -#> -function Get-AzFrontDoorFrontendEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory)] - [Alias('FrontendEndpointName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='GetViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Get = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_Get'; - GetViaIdentity = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_GetViaIdentity'; - GetViaIdentityFrontDoor = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_GetViaIdentityFrontDoor'; - List = 'Az.FrontDoor.private\Get-AzFrontDoorFrontendEndpoint_List'; - } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Create policy with specified rule set name within a resource group. -.Description -Create policy with specified rule set name within a resource group. -.Example -New-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Customrule $customRule1,$customRule2 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention -RedirectUrl "https://www.bing.com/" -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody "You are blocked!" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. - -POLICYSETTING : Describes settings for the policy. - [CaptchaExpirationInMinutes ]: 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. - [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. - [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - [JavascriptChallengeExpirationInMinutes ]: 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. - [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - [Mode ]: Describes if it is in detection mode or prevention mode at policy level. - [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. - [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorwafpolicy -#> -function New-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] - # Describes settings for the policy. - ${PolicySetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateExpanded'; - CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateViaJsonFilePath'; - CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoorWafPolicy_CreateViaJsonString'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Create a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Create a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoor -#> -function New-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='"Enabled"')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Create operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Create operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - CreateExpanded = 'Az.FrontDoor.private\New-AzFrontDoor_CreateExpanded'; - CreateViaJsonFilePath = 'Az.FrontDoor.private\New-AzFrontDoor_CreateViaJsonFilePath'; - CreateViaJsonString = 'Az.FrontDoor.private\New-AzFrontDoor_CreateViaJsonString'; - } - if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('EnabledState') ) { - $PSBoundParameters['EnabledState'] = "Enabled" - } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -RULE : A list of rules that define a particular Rules Engine Configuration. - Action : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - Name : A name to refer to this specific rule. - Priority : A priority assigned to this rule. - [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms - [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine -#> -function Set-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] - # A list of rules that define a particular Rules Engine Configuration. - ${Rule}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateExpanded'; - UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateViaJsonFilePath'; - UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateViaJsonString'; - } - if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Update policy with specified rule set name within a resource group. -.Description -Update policy with specified rule set name within a resource group. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. - -POLICYSETTING : Describes settings for the policy. - [CaptchaExpirationInMinutes ]: 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. - [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. - [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - [JavascriptChallengeExpirationInMinutes ]: 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. - [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - [Mode ]: Describes if it is in detection mode or prevention mode at policy level. - [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. - [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorwafpolicy -#> -function Set-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] - # Describes settings for the policy. - ${PolicySetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateExpanded'; - UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateViaJsonFilePath'; - UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateViaJsonString'; - } - if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor -#> -function Set-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateExpanded'; - UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateViaJsonFilePath'; - UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateViaJsonString'; - } - if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. -.Description -Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMDOMAINPROPERTY : Input of the custom domain to be validated for DNS mapping. - HostName : The host name of the custom domain. Must be a domain name. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoorcustomdomain -#> -function Test-AzFrontDoorCustomDomain { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput])] -[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Validate', Mandatory)] - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Validate', Mandatory)] - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Validate')] - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaJsonFilePath')] - [Parameter(ParameterSetName='ValidateViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput] - # Input of the custom domain to be validated for DNS mapping. - ${CustomDomainProperty}, - - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The host name of the custom domain. - # Must be a domain name. - ${HostName}, - - [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Validate operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Validate operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Validate = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_Validate'; - ValidateExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateExpanded'; - ValidateViaIdentity = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaIdentity'; - ValidateViaIdentityExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaIdentityExpanded'; - ValidateViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaJsonFilePath'; - ValidateViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaJsonString'; - } - if (('Validate', 'ValidateExpanded', 'ValidateViaJsonFilePath', 'ValidateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Check the availability of a Front Door subdomain. -.Description -Check the availability of a Front Door subdomain. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CHECKFRONTDOORNAMEAVAILABILITYINPUT : Input of CheckNameAvailability API. - Name : The resource name to validate. - Type : The type of the resource whose name is to be validated. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoornameavailabilitywithsubscription -#> -function Test-AzFrontDoorNameAvailabilityWithSubscription { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput])] -[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput] - # Input of CheckNameAvailability API. - ${CheckFrontDoorNameAvailabilityInput}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The resource name to validate. - ${Name}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The type of the resource whose name is to be validated. - ${Type}, - - [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Check operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Check operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Check = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_Check'; - CheckExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckExpanded'; - CheckViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath'; - CheckViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString'; - } - if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Check the availability of a Front Door resource name. -.Description -Check the availability of a Front Door resource name. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CHECKFRONTDOORNAMEAVAILABILITYINPUT : Input of CheckNameAvailability API. - Name : The resource name to validate. - Type : The type of the resource whose name is to be validated. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoornameavailability -#> -function Test-AzFrontDoorNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput])] -[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput] - # Input of CheckNameAvailability API. - ${CheckFrontDoorNameAvailabilityInput}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The resource name to validate. - ${Name}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The type of the resource whose name is to be validated. - ${Type}, - - [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Check operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Check operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Check = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_Check'; - CheckExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckExpanded'; - CheckViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckViaJsonFilePath'; - CheckViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckViaJsonString'; - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Update policy with specified rule set name within a resource group. -.Description -Update policy with specified rule set name within a resource group. -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled -.Example -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. - -POLICYSETTING : Describes settings for the policy. - [CaptchaExpirationInMinutes ]: 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. - [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. - [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - [JavascriptChallengeExpirationInMinutes ]: 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. - [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - [Mode ]: Describes if it is in detection mode or prevention mode at policy level. - [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. - [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy -#> -function Update-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] - # Describes settings for the policy. - ${PolicySetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Update-AzFrontDoorWafPolicy_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.FrontDoor.private\Update-AzFrontDoorWafPolicy_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - -<# -.Synopsis -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoor -#> -function Update-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Update-AzFrontDoor_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.FrontDoor.private\Update-AzFrontDoor_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/README.md b/generated/FrontDoor/FrontDoor.Autorest/internal/README.md deleted file mode 100644 index ed771c9dec04..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Internal -This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. - -## Info -- Modifiable: no -- Generated: all -- Committed: no -- Packaged: yes - -## Details -The `Az.FrontDoor.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.FrontDoor`. Instead, this sub-module is imported by the `..\custom\Az.FrontDoor.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.FrontDoor.internal\Get-Example` would call an internal cmdlet named `Get-Example`. - -## Purpose -This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.FrontDoor`. diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoor.ps1 deleted file mode 100644 index 8a6e9240dc1b..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoor.ps1 +++ /dev/null @@ -1,323 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1 -.Example -Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoor -#> -function Set-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateExpanded'; - UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateViaJsonFilePath'; - UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoor_UpdateViaJsonString'; - } - if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorRulesEngine.ps1 deleted file mode 100644 index cfa0b6c4a730..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorRulesEngine.ps1 +++ /dev/null @@ -1,222 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Description -Update a new Rules Engine Configuration with the specified name within the specified Front Door. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -RULE : A list of rules that define a particular Rules Engine Configuration. - Action : Actions to perform on the request and response if all of the match conditions are met. - [RequestHeaderAction >]: A list of header actions to apply from the request from AFD to the origin. - HeaderActionType : Which type of manipulation to apply to the header. - HeaderName : The name of the header this action will apply to. - [Value ]: The value to update the given header name with. This value is not used if the actionType is Delete. - [ResponseHeaderAction >]: A list of header actions to apply from the response from AFD to the client. - [RouteConfigurationOverride ]: Override the route configuration. - OdataType : - Name : A name to refer to this specific rule. - Priority : A priority assigned to this rule. - [MatchCondition >]: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run. - MatchValue >: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - MatchVariable : Match Variable - Operator : Describes operator to apply to the match condition. - [NegateCondition ]: Describes if this is negate condition or not - [Selector ]: Name of selector in RequestHeader or RequestBody to be matched - [Transform >]: List of transforms - [MatchProcessingBehavior ]: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorrulesengine -#> -function Set-AzFrontDoorRulesEngine { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngine])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(Mandatory)] - [Alias('RulesEngineName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Rules Engine which is unique within the Front Door. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule[]] - # A list of rules that define a particular Rules Engine Configuration. - ${Rule}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateExpanded'; - UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateViaJsonFilePath'; - UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoorRulesEngine_UpdateViaJsonString'; - } - if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorWafPolicy.ps1 deleted file mode 100644 index 74c7fc769b77..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Set-AzFrontDoorWafPolicy.ps1 +++ /dev/null @@ -1,284 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update policy with specified rule set name within a resource group. -.Description -Update policy with specified rule set name within a resource group. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. - -POLICYSETTING : Describes settings for the policy. - [CaptchaExpirationInMinutes ]: 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. - [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. - [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - [JavascriptChallengeExpirationInMinutes ]: 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. - [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - [Mode ]: Describes if it is in detection mode or prevention mode at policy level. - [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. - [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/set-azfrontdoorwafpolicy -#> -function Set-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] - # Describes settings for the policy. - ${PolicySetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateExpanded'; - UpdateViaJsonFilePath = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateViaJsonFilePath'; - UpdateViaJsonString = 'Az.FrontDoor.private\Set-AzFrontDoorWafPolicy_UpdateViaJsonString'; - } - if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorCustomDomain.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorCustomDomain.ps1 deleted file mode 100644 index ce17047e2b51..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorCustomDomain.ps1 +++ /dev/null @@ -1,226 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. -.Description -Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMDOMAINPROPERTY : Input of the custom domain to be validated for DNS mapping. - HostName : The host name of the custom domain. Must be a domain name. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoorcustomdomain -#> -function Test-AzFrontDoorCustomDomain { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainOutput])] -[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Validate', Mandatory)] - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Validate', Mandatory)] - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Validate')] - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaJsonFilePath')] - [Parameter(ParameterSetName='ValidateViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IValidateCustomDomainInput] - # Input of the custom domain to be validated for DNS mapping. - ${CustomDomainProperty}, - - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The host name of the custom domain. - # Must be a domain name. - ${HostName}, - - [Parameter(ParameterSetName='ValidateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Validate operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='ValidateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Validate operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Validate = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_Validate'; - ValidateExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateExpanded'; - ValidateViaIdentity = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaIdentity'; - ValidateViaIdentityExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaIdentityExpanded'; - ValidateViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaJsonFilePath'; - ValidateViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorCustomDomain_ValidateViaJsonString'; - } - if (('Validate', 'ValidateExpanded', 'ValidateViaJsonFilePath', 'ValidateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailability.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailability.ps1 deleted file mode 100644 index 7f27186f52b1..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailability.ps1 +++ /dev/null @@ -1,175 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Check the availability of a Front Door resource name. -.Description -Check the availability of a Front Door resource name. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CHECKFRONTDOORNAMEAVAILABILITYINPUT : Input of CheckNameAvailability API. - Name : The resource name to validate. - Type : The type of the resource whose name is to be validated. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoornameavailability -#> -function Test-AzFrontDoorNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput])] -[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput] - # Input of CheckNameAvailability API. - ${CheckFrontDoorNameAvailabilityInput}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The resource name to validate. - ${Name}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The type of the resource whose name is to be validated. - ${Type}, - - [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Check operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Check operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Check = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_Check'; - CheckExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckExpanded'; - CheckViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckViaJsonFilePath'; - CheckViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailability_CheckViaJsonString'; - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailabilityWithSubscription.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailabilityWithSubscription.ps1 deleted file mode 100644 index f38b46c500bd..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Test-AzFrontDoorNameAvailabilityWithSubscription.ps1 +++ /dev/null @@ -1,190 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Check the availability of a Front Door subdomain. -.Description -Check the availability of a Front Door subdomain. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CHECKFRONTDOORNAMEAVAILABILITYINPUT : Input of CheckNameAvailability API. - Name : The resource name to validate. - Type : The type of the resource whose name is to be validated. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/test-azfrontdoornameavailabilitywithsubscription -#> -function Test-AzFrontDoorNameAvailabilityWithSubscription { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityOutput])] -[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICheckNameAvailabilityInput] - # Input of CheckNameAvailability API. - ${CheckFrontDoorNameAvailabilityInput}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The resource name to validate. - ${Name}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The type of the resource whose name is to be validated. - ${Type}, - - [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Check operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Check operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - Check = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_Check'; - CheckExpanded = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckExpanded'; - CheckViaJsonFilePath = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonFilePath'; - CheckViaJsonString = 'Az.FrontDoor.private\Test-AzFrontDoorNameAvailabilityWithSubscription_CheckViaJsonString'; - } - if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoor.ps1 deleted file mode 100644 index daea5182dde9..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoor.ps1 +++ /dev/null @@ -1,323 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Description -Update a new Front Door with a Front Door name under the specified subscription and resource group. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -BACKENDPOOL : Backend pools available to routing rules. - [Id ]: Resource ID. - [Backend >]: The set of backends for this pool - [Address ]: Location of the backend (IP address or FQDN) - [BackendHostHeader ]: The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. - [EnabledState ]: Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' - [HttpPort ]: The HTTP TCP port number. Must be between 1 and 65535. - [HttpsPort ]: The HTTPS TCP port number. Must be between 1 and 65535. - [Priority ]: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. - [PrivateLinkAlias ]: The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [PrivateLinkApprovalMessage ]: A custom message to be included in the approval request to connect to the Private Link - [PrivateLinkLocation ]: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - [PrivateLinkResourceId ]: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - [Weight ]: Weight of this endpoint for load balancing purposes. - [HealthProbeSettingId ]: Resource ID. - [LoadBalancingSettingId ]: Resource ID. - [Name ]: Resource name. - -BACKENDPOOLSSETTING : Settings for all backendPools - [EnforceCertificateNameCheck ]: Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. - [SendRecvTimeoutInSeconds ]: Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. - -FRONTENDENDPOINT : Frontend endpoints available to routing rules. - [Id ]: Resource ID. - [CertificateSource ]: Defines the source of the SSL certificate - [CertificateType ]: Defines the type of the certificate used for secure connections to a frontendEndpoint - [HostName ]: The host name of the frontendEndpoint. Must be a domain name. - [MinimumTlsVersion ]: The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - [Name ]: Resource name. - [SecretName ]: The name of the Key Vault secret representing the full certificate PFX - [SecretVersion ]: The version of the Key Vault secret representing the full certificate PFX - [SessionAffinityEnabledState ]: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - [SessionAffinityTtlInSeconds ]: UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. - [Vault ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. - -HEALTHPROBESETTING : Health probe settings associated with this Front Door instance. - [Id ]: Resource ID. - [EnabledState ]: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. - [HealthProbeMethod ]: Configures which HTTP method to use to probe the backends defined under backendPools. - [IntervalInSeconds ]: The number of seconds between health probes. - [Name ]: Resource name. - [Path ]: The path to use for the health probe. Default is / - [Protocol ]: Protocol scheme to use for this probe - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -LOADBALANCINGSETTING : Load balancing settings associated with this Front Door instance. - [Id ]: Resource ID. - [AdditionalLatencyInMilliseconds ]: The additional latency in milliseconds for probes to fall into the lowest latency bucket - [Name ]: Resource name. - [SampleSize ]: The number of samples to consider for load balancing decisions - [SuccessfulSamplesRequired ]: The number of samples within the sample period that must succeed - -ROUTINGRULE : Routing rules associated with this Front Door. - [Id ]: Resource ID. - [AcceptedProtocol >]: Protocol schemes to match for this rule - [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - [FrontendEndpoint >]: Frontend endpoints associated with this rule - [Id ]: Resource ID. - [Name ]: Resource name. - [PatternsToMatch >]: The route patterns of the rule. - [RouteConfiguration ]: A reference to the routing configuration. - OdataType : - [RuleEngineId ]: Resource ID. - [WebApplicationFirewallPolicyLinkId ]: Resource ID. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoor -#> -function Update-AzFrontDoor { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoor])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('FrontDoorName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool[]] - # Backend pools available to routing rules. - ${BackendPool}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPoolsSettings] - # Settings for all backendPools - ${BackendPoolsSetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Operational status of the Front Door load balancer. - # Permitted values are 'Enabled' or 'Disabled' - ${EnabledState}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # A friendly name for the frontDoor - ${FriendlyName}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint[]] - # Frontend endpoints available to routing rules. - ${FrontendEndpoint}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel[]] - # Health probe settings associated with this Front Door instance. - ${HealthProbeSetting}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel[]] - # Load balancing settings associated with this Front Door instance. - ${LoadBalancingSetting}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule[]] - # Routing rules associated with this Front Door. - ${RoutingRule}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Update-AzFrontDoor_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.FrontDoor.private\Update-AzFrontDoor_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoorWafPolicy.ps1 deleted file mode 100644 index 0e66970a5515..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/internal/Update-AzFrontDoorWafPolicy.ps1 +++ /dev/null @@ -1,292 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Update policy with specified rule set name within a resource group. -.Description -Update policy with specified rule set name within a resource group. -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -CustomBlockResponseStatusCode 403 -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -.Example -Update-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName -Mode Detection -EnabledState Disabled -.Example -Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Mode Detection -EnabledState Disabled - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CUSTOMRULE : List of rules - Action : Describes what action to be applied when rule matches. - MatchCondition >: List of match conditions. - MatchValue >: List of possible match values. - MatchVariable : Request variable to compare with. - OperatorProperty : Comparison type to use for matching with the variable value. - [NegateCondition ]: Describes if the result of this condition should be negated. - [Selector ]: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - [Transform >]: List of transforms. - Priority : Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - RuleType : Describes type of rule. - [EnabledState ]: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - [GroupBy >]: Describes the list of variables to group the rate limit requests - VariableName : Describes the supported variable for group by - [Name ]: Describes the name of the rule. - [RateLimitDurationInMinutes ]: Time window for resetting the rate limit count. Default is 1 minute. - [RateLimitThreshold ]: Number of allowed requests per client within the time window. - -INPUTOBJECT : Identity Parameter - [FrontDoorName ]: Name of the Front Door which is globally unique. - [FrontendEndpointName ]: Name of the Frontend endpoint which is unique within the Front Door. - [Id ]: Resource identity path - [PolicyName ]: The name of the Web Application Firewall Policy. - [ResourceGroupName ]: Name of the Resource group within the Azure subscription. - [RulesEngineName ]: Name of the Rules Engine which is unique within the Front Door. - [SubscriptionId ]: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -MANAGEDRULESET : List of rule sets. - Type : Defines the rule set type to use. - Version : Defines the version of the rule set to use. - [Exclusion >]: Describes the exclusions that are applied to all rules in the set. - Operator : Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. - Selector : Selector value for which elements in the collection this exclusion applies to. - Variable : The variable type to be excluded. - [RuleGroupOverride >]: Defines the rule group overrides to apply to the rule set. - RuleGroupName : Describes the managed rule group to override. - [Exclusion >]: Describes the exclusions that are applied to all rules in the group. - [ManagedRuleOverride >]: List of rules that will be disabled. If none specified, all rules in the group will be disabled. - RuleId : Identifier for the managed rule. - [Action ]: Describes the override action to be applied when rule matches. - [EnabledState ]: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - [Exclusion >]: Describes the exclusions that are applied to this specific rule. - [RuleSetAction ]: Defines the rule set action. - -POLICYSETTING : Describes settings for the policy. - [CaptchaExpirationInMinutes ]: 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. - [CustomBlockResponseBody ]: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - [CustomBlockResponseStatusCode ]: If the action type is block, customer can override the response status code. - [EnabledState ]: Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - [JavascriptChallengeExpirationInMinutes ]: 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. - [LogScrubbingSetting ]: Defines rules that scrub sensitive fields in the Web Application Firewall logs. - [ScrubbingRule >]: List of log scrubbing rules applied to the Web Application Firewall logs. - MatchVariable : The variable to be scrubbed from the logs. - SelectorMatchOperator : When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. - [Selector ]: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. - [State ]: Defines the state of a log scrubbing rule. Default value is enabled. - [State ]: State of the log scrubbing config. Default value is Enabled. - [Mode ]: Describes if it is in detection mode or prevention mode at policy level. - [RedirectUrl ]: If action type is redirect, this field represents redirect URL for the client. - [RequestBodyCheck ]: Describes if policy managed rules will inspect the request body content. -.Link -https://learn.microsoft.com/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy -#> -function Update-AzFrontDoorWafPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallPolicy])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('PolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # The name of the Web Application Firewall Policy. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule[]] - # List of rules - ${CustomRule}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Gets a unique read-only string that changes whenever the resource is updated. - ${Etag}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet[]] - # List of rule sets. - ${ManagedRuleSet}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IPolicySettings] - # Describes settings for the policy. - ${PolicySetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Classic_AzureFrontDoor", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Name of the pricing tier. - ${SkuName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - - $mapping = @{ - UpdateExpanded = 'Az.FrontDoor.private\Update-AzFrontDoorWafPolicy_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.FrontDoor.private\Update-AzFrontDoorWafPolicy_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location') ) { - $PSBoundParameters['Location'] = "global" - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - if ($wrappedCmd -eq $null) { - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) - } - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/generated/FrontDoor/FrontDoor.Autorest/resources/README.md b/generated/FrontDoor/FrontDoor.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/generated/FrontDoor/FrontDoor.Autorest/test-module.ps1 b/generated/FrontDoor/FrontDoor.Autorest/test-module.ps1 deleted file mode 100644 index 4c7770804777..000000000000 --- a/generated/FrontDoor/FrontDoor.Autorest/test-module.ps1 +++ /dev/null @@ -1,98 +0,0 @@ -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- -param([switch]$NotIsolated, [switch]$Live, [switch]$Record, [switch]$Playback, [switch]$RegenerateSupportModule, [switch]$UsePreviousConfigForRecord, [string[]]$TestName) -$ErrorActionPreference = 'Stop' - -if(-not $NotIsolated) -{ - Write-Host -ForegroundColor Green 'Creating isolated process...' - if ($PSBoundParameters.ContainsKey("TestName")) { - $PSBoundParameters["TestName"] = $PSBoundParameters["TestName"] -join "," - } - $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path - & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated - return -} - -# This is a workaround, since for string array parameter, pwsh -File will only take the first element -if ($PSBoundParameters.ContainsKey("TestName") -and ($TestName.count -eq 1) -and ($TestName[0].Contains(','))) { - $TestName = $TestName[0].Split(",") -} - -$ProgressPreference = 'SilentlyContinue' -$baseName = $PSScriptRoot.BaseName -$requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent)) -. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -NotIsolated -Accounts:$false -Pester -Resources:$requireResourceModule -RegenerateSupportModule:$RegenerateSupportModule -. ("$PSScriptRoot\test\utils.ps1") - -if ($requireResourceModule) -{ - # Load the latest Az.Accounts installed - Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version - $resourceModulePSD = Get-Item -Path (Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psd1') - Import-Module -Name $resourceModulePSD.FullName -} - -$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' -if(Test-Path -Path $localModulesPath) -{ - $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" -} - -$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.FrontDoor.psd1') -$modulePath = $modulePsd1.FullName -$moduleName = $modulePsd1.BaseName - -Import-Module -Name Pester -Import-Module -Name $modulePath - -$TestMode = 'playback' -$ExcludeTag = @("LiveOnly") -if($Live) -{ - $TestMode = 'live' - $ExcludeTag = @() -} -if($Record) -{ - $TestMode = 'record' -} -try -{ - if ($TestMode -ne 'playback') - { - setupEnv - } else { - $env:AzPSAutorestTestPlaybackMode = $true - } - $testFolder = Join-Path $PSScriptRoot 'test' - if ($null -ne $TestName) - { - Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") - } else { - Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") - } -} Finally -{ - if ($TestMode -ne 'playback') - { - cleanupEnv - } - else { - $env:AzPSAutorestTestPlaybackMode = '' - } -} - -Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index bc73ff9b1e39..b8c1206c76d5 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "af8d89e1-fb51-44ae-8675-cea18238361a" + "generate_Id": "da504079-e4ce-4e68-b97e-284654fbcf44" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index 7a8cd6baf46a..d54655a12a96 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{D0759583-6D11-466C-BB42-9DE79261D349}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{2A27B2A4-3B69-47AC-BECF-FB90107AB65E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|x64.ActiveCfg = Debug|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|x64.Build.0 = Debug|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|x86.ActiveCfg = Debug|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Debug|x86.Build.0 = Debug|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Release|Any CPU.Build.0 = Release|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Release|x64.ActiveCfg = Release|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Release|x64.Build.0 = Release|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Release|x86.ActiveCfg = Release|Any CPU - {D0759583-6D11-466C-BB42-9DE79261D349}.Release|x86.Build.0 = Release|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|x64.ActiveCfg = Debug|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|x64.Build.0 = Debug|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|x86.ActiveCfg = Debug|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|x86.Build.0 = Debug|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|Any CPU.Build.0 = Release|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|x64.ActiveCfg = Release|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|x64.Build.0 = Release|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|x86.ActiveCfg = Release|Any CPU + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {D0759583-6D11-466C-BB42-9DE79261D349} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {2A27B2A4-3B69-47AC-BECF-FB90107AB65E} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 465f27c4ed31..92e480990836 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/10/28 +# Generated on: 2025/10/29 # @{ @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'FrontDoor.Autorest/bin/Az.FrontDoor.private.dll' From 579bdb10060bb045006f3d27379f1dc29c316714 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Thu, 30 Oct 2025 14:50:12 +1100 Subject: [PATCH 28/30] change BreakingChangeIssues.csv --- .../Az.FrontDoor/BreakingChangeIssues.csv | 219 ++++++++++++++++++ .../Az.FrontDoor/SignatureIssues.csv | 4 + 2 files changed, 223 insertions(+) create mode 100644 tools/StaticAnalysis/Exceptions/Az.FrontDoor/BreakingChangeIssues.csv diff --git a/tools/StaticAnalysis/Exceptions/Az.FrontDoor/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.FrontDoor/BreakingChangeIssues.csv new file mode 100644 index 000000000000..279c4b6d22f5 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.FrontDoor/BreakingChangeIssues.csv @@ -0,0 +1,219 @@ + "Module","ClassName","Target","Severity","ProblemId","Description","Remediation" + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.DisableFrontDoorCustomDomainHttps","Disable-AzFrontDoorCustomDomainHttps","0","1020","The cmdlet 'Disable-AzFrontDoorCustomDomainHttps' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'.","Make cmdlet 'Disable-AzFrontDoorCustomDomainHttps' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.DisableFrontDoorCustomDomainHttps","Disable-AzFrontDoorCustomDomainHttps","0","2000","The cmdlet 'Disable-AzFrontDoorCustomDomainHttps' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Disable-AzFrontDoorCustomDomainHttps', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.DisableFrontDoorCustomDomainHttps","Disable-AzFrontDoorCustomDomainHttps","0","2020","The cmdlet 'Disable-AzFrontDoorCustomDomainHttps' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.DisableFrontDoorCustomDomainHttps","Disable-AzFrontDoorCustomDomainHttps","0","2020","The cmdlet 'Disable-AzFrontDoorCustomDomainHttps' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.DisableFrontDoorCustomDomainHttps","Disable-AzFrontDoorCustomDomainHttps","0","2010","The cmdlet 'Disable-AzFrontDoorCustomDomainHttps' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.DisableFrontDoorCustomDomainHttps","Disable-AzFrontDoorCustomDomainHttps","0","2010","The cmdlet 'Disable-AzFrontDoorCustomDomainHttps' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.DisableFrontDoorCustomDomainHttps","Disable-AzFrontDoorCustomDomainHttps","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Disable-AzFrontDoorCustomDomainHttps' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Disable-AzFrontDoorCustomDomainHttps'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.EnableFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","0","1020","The cmdlet 'Enable-AzFrontDoorCustomDomainHttps' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'.","Make cmdlet 'Enable-AzFrontDoorCustomDomainHttps' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.EnableFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","0","2000","The cmdlet 'Enable-AzFrontDoorCustomDomainHttps' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Enable-AzFrontDoorCustomDomainHttps', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.EnableFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","0","2020","The cmdlet 'Enable-AzFrontDoorCustomDomainHttps' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.EnableFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","0","2020","The cmdlet 'Enable-AzFrontDoorCustomDomainHttps' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.EnableFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","0","2010","The cmdlet 'Enable-AzFrontDoorCustomDomainHttps' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.EnableFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","0","2010","The cmdlet 'Enable-AzFrontDoorCustomDomainHttps' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.EnableFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Enable-AzFrontDoorCustomDomainHttps' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Enable-AzFrontDoorCustomDomainHttps'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.EnableFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","0","1050","The parameter set 'ByResourceIdWithVaultParameterSet' for cmdlet 'Enable-AzFrontDoorCustomDomainHttps' has been removed.","Add parameter set 'ByResourceIdWithVaultParameterSet' back to cmdlet 'Enable-AzFrontDoorCustomDomainHttps'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoor","Get-AzFrontDoor","0","1020","The cmdlet 'Get-AzFrontDoor' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor'.","Make cmdlet 'Get-AzFrontDoor' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoor","Get-AzFrontDoor","0","2020","The cmdlet 'Get-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoor","Get-AzFrontDoor","0","2010","The cmdlet 'Get-AzFrontDoor' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoor","Get-AzFrontDoor","0","2010","The cmdlet 'Get-AzFrontDoor' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoor","Get-AzFrontDoor","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzFrontDoor' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorFrontendEndpoint","Get-AzFrontDoorFrontendEndpoint","0","1020","The cmdlet 'Get-AzFrontDoorFrontendEndpoint' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'.","Make cmdlet 'Get-AzFrontDoorFrontendEndpoint' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorFrontendEndpoint","Get-AzFrontDoorFrontendEndpoint","0","2020","The cmdlet 'Get-AzFrontDoorFrontendEndpoint' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor' for parameter 'FrontDoorObject'.","Change the type for parameter 'FrontDoorObject' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorFrontendEndpoint","Get-AzFrontDoorFrontendEndpoint","0","2000","The cmdlet 'Get-AzFrontDoorFrontendEndpoint' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Get-AzFrontDoorFrontendEndpoint', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorFrontendEndpoint","Get-AzFrontDoorFrontendEndpoint","0","2020","The cmdlet 'Get-AzFrontDoorFrontendEndpoint' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorFrontendEndpoint","Get-AzFrontDoorFrontendEndpoint","0","2010","The cmdlet 'Get-AzFrontDoorFrontendEndpoint' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorFrontendEndpoint","Get-AzFrontDoorFrontendEndpoint","0","2010","The cmdlet 'Get-AzFrontDoorFrontendEndpoint' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorFrontendEndpoint","Get-AzFrontDoorFrontendEndpoint","0","1050","The parameter set 'ByObjectParameterSet' for cmdlet 'Get-AzFrontDoorFrontendEndpoint' has been removed.","Add parameter set 'ByObjectParameterSet' back to cmdlet 'Get-AzFrontDoorFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorFrontendEndpoint","Get-AzFrontDoorFrontendEndpoint","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Get-AzFrontDoorFrontendEndpoint' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Get-AzFrontDoorFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine","Get-AzFrontDoorRulesEngine","0","1020","The cmdlet 'Get-AzFrontDoorRulesEngine' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine'.","Make cmdlet 'Get-AzFrontDoorRulesEngine' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine","Get-AzFrontDoorRulesEngine","0","2020","The cmdlet 'Get-AzFrontDoorRulesEngine' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine","Get-AzFrontDoorRulesEngine","0","2010","The cmdlet 'Get-AzFrontDoorRulesEngine' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine","Get-AzFrontDoorRulesEngine","0","2010","The cmdlet 'Get-AzFrontDoorRulesEngine' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorRulesEngine","Get-AzFrontDoorRulesEngine","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzFrontDoorRulesEngine' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzFrontDoorRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafManagedRuleSetDefinition","Get-AzFrontDoorWafManagedRuleSetDefinition","0","1020","The cmdlet 'Get-AzFrontDoorWafManagedRuleSetDefinition' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleSetDefinition'.","Make cmdlet 'Get-AzFrontDoorWafManagedRuleSetDefinition' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleSetDefinition'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafManagedRuleSetDefinition","Get-AzFrontDoorWafManagedRuleSetDefinition","0","2020","The cmdlet 'Get-AzFrontDoorWafManagedRuleSetDefinition' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafManagedRuleSetDefinition","Get-AzFrontDoorWafManagedRuleSetDefinition","0","2010","The cmdlet 'Get-AzFrontDoorWafManagedRuleSetDefinition' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafManagedRuleSetDefinition","Get-AzFrontDoorWafManagedRuleSetDefinition","0","2010","The cmdlet 'Get-AzFrontDoorWafManagedRuleSetDefinition' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafPolicy","Get-AzFrontDoorWafPolicy","0","1020","The cmdlet 'Get-AzFrontDoorWafPolicy' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy'.","Make cmdlet 'Get-AzFrontDoorWafPolicy' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafPolicy","Get-AzFrontDoorWafPolicy","0","2020","The cmdlet 'Get-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafPolicy","Get-AzFrontDoorWafPolicy","0","2010","The cmdlet 'Get-AzFrontDoorWafPolicy' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafPolicy","Get-AzFrontDoorWafPolicy","0","2010","The cmdlet 'Get-AzFrontDoorWafPolicy' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.GetFrontDoorWafPolicy","Get-AzFrontDoorWafPolicy","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzFrontDoorWafPolicy' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzFrontDoorWafPolicy'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","1020","The cmdlet 'New-AzFrontDoor' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor'.","Make cmdlet 'New-AzFrontDoor' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2110","The element type for parameter 'RoutingRule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule'.","Change the element type for parameter 'RoutingRule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2110","The element type for parameter 'BackendPool' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool'.","Change the element type for parameter 'BackendPool' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2110","The element type for parameter 'FrontendEndpoint' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint'.","Change the element type for parameter 'FrontendEndpoint' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2110","The element type for parameter 'LoadBalancingSetting' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel'.","Change the element type for parameter 'LoadBalancingSetting' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2110","The element type for parameter 'HealthProbeSetting' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel'.","Change the element type for parameter 'HealthProbeSetting' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2020","The cmdlet 'New-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'EnabledState'.","Change the type for parameter 'EnabledState' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2020","The cmdlet 'New-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting' for parameter 'BackendPoolsSetting'.","Change the type for parameter 'BackendPoolsSetting' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2020","The cmdlet 'New-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2010","The cmdlet 'New-AzFrontDoor' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoor","New-AzFrontDoor","0","2010","The cmdlet 'New-AzFrontDoor' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendObject","New-AzFrontDoorBackendObject","0","1020","The cmdlet 'New-AzFrontDoorBackendObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackend'.","Make cmdlet 'New-AzFrontDoorBackendObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackend'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendObject","New-AzFrontDoorBackendObject","0","2020","The cmdlet 'New-AzFrontDoorBackendObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'EnabledState'.","Change the type for parameter 'EnabledState' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendObject","New-AzFrontDoorBackendObject","0","2000","The cmdlet 'New-AzFrontDoorBackendObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorBackendObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendObject","New-AzFrontDoorBackendObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorBackendObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorBackendObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendPoolObject","New-AzFrontDoorBackendPoolObject","0","1020","The cmdlet 'New-AzFrontDoorBackendPoolObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool'.","Make cmdlet 'New-AzFrontDoorBackendPoolObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendPoolObject","New-AzFrontDoorBackendPoolObject","0","2110","The element type for parameter 'Backend' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackend' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackend'.","Change the element type for parameter 'Backend' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackend'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendPoolObject","New-AzFrontDoorBackendPoolObject","0","2000","The cmdlet 'New-AzFrontDoorBackendPoolObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorBackendPoolObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendPoolObject","New-AzFrontDoorBackendPoolObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorBackendPoolObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorBackendPoolObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendPoolsSettingObject","New-AzFrontDoorBackendPoolsSettingObject","0","1020","The cmdlet 'New-AzFrontDoorBackendPoolsSettingObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting'.","Make cmdlet 'New-AzFrontDoorBackendPoolsSettingObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendPoolsSettingObject","New-AzFrontDoorBackendPoolsSettingObject","0","2020","The cmdlet 'New-AzFrontDoorBackendPoolsSettingObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'EnforceCertificateNameCheck'.","Change the type for parameter 'EnforceCertificateNameCheck' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendPoolsSettingObject","New-AzFrontDoorBackendPoolsSettingObject","0","2000","The cmdlet 'New-AzFrontDoorBackendPoolsSettingObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorBackendPoolsSettingObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorBackendPoolsSettingObject","New-AzFrontDoorBackendPoolsSettingObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorBackendPoolsSettingObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorBackendPoolsSettingObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorFrontendEndpointObject","New-AzFrontDoorFrontendEndpointObject","0","1020","The cmdlet 'New-AzFrontDoorFrontendEndpointObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'.","Make cmdlet 'New-AzFrontDoorFrontendEndpointObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorFrontendEndpointObject","New-AzFrontDoorFrontendEndpointObject","0","2020","The cmdlet 'New-AzFrontDoorFrontendEndpointObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'SessionAffinityEnabledState'.","Change the type for parameter 'SessionAffinityEnabledState' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorFrontendEndpointObject","New-AzFrontDoorFrontendEndpointObject","0","2000","The cmdlet 'New-AzFrontDoorFrontendEndpointObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorFrontendEndpointObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorFrontendEndpointObject","New-AzFrontDoorFrontendEndpointObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorFrontendEndpointObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorFrontendEndpointObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHeaderActionObject","New-AzFrontDoorHeaderActionObject","0","1020","The cmdlet 'New-AzFrontDoorHeaderActionObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction'.","Make cmdlet 'New-AzFrontDoorHeaderActionObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHeaderActionObject","New-AzFrontDoorHeaderActionObject","0","2020","The cmdlet 'New-AzFrontDoorHeaderActionObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderActionType' for parameter 'HeaderActionType'.","Change the type for parameter 'HeaderActionType' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderActionType'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHeaderActionObject","New-AzFrontDoorHeaderActionObject","0","2000","The cmdlet 'New-AzFrontDoorHeaderActionObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorHeaderActionObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHeaderActionObject","New-AzFrontDoorHeaderActionObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorHeaderActionObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorHeaderActionObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHealthProbeSettingObject","New-AzFrontDoorHealthProbeSettingObject","0","1020","The cmdlet 'New-AzFrontDoorHealthProbeSettingObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting'.","Make cmdlet 'New-AzFrontDoorHealthProbeSettingObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHealthProbeSettingObject","New-AzFrontDoorHealthProbeSettingObject","0","2020","The cmdlet 'New-AzFrontDoorHealthProbeSettingObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSProtocol' for parameter 'Protocol'.","Change the type for parameter 'Protocol' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSProtocol'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHealthProbeSettingObject","New-AzFrontDoorHealthProbeSettingObject","0","2020","The cmdlet 'New-AzFrontDoorHealthProbeSettingObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'EnabledState'.","Change the type for parameter 'EnabledState' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHealthProbeSettingObject","New-AzFrontDoorHealthProbeSettingObject","0","2000","The cmdlet 'New-AzFrontDoorHealthProbeSettingObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorHealthProbeSettingObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorHealthProbeSettingObject","New-AzFrontDoorHealthProbeSettingObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorHealthProbeSettingObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorHealthProbeSettingObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorLoadBalancingSettingObject","New-AzFrontDoorLoadBalancingSettingObject","0","1020","The cmdlet 'New-AzFrontDoorLoadBalancingSettingObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting'.","Make cmdlet 'New-AzFrontDoorLoadBalancingSettingObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorLoadBalancingSettingObject","New-AzFrontDoorLoadBalancingSettingObject","0","2000","The cmdlet 'New-AzFrontDoorLoadBalancingSettingObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorLoadBalancingSettingObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorLoadBalancingSettingObject","New-AzFrontDoorLoadBalancingSettingObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorLoadBalancingSettingObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorLoadBalancingSettingObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRoutingRuleObject","New-AzFrontDoorRoutingRuleObject","0","1020","The cmdlet 'New-AzFrontDoorRoutingRuleObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule'.","Make cmdlet 'New-AzFrontDoorRoutingRuleObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRoutingRuleObject","New-AzFrontDoorRoutingRuleObject","0","2110","The element type for parameter 'AcceptedProtocol' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSProtocol' to 'System.String'.","Change the element type for parameter 'AcceptedProtocol' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSProtocol'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRoutingRuleObject","New-AzFrontDoorRoutingRuleObject","0","2020","The cmdlet 'New-AzFrontDoorRoutingRuleObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'DynamicCompression'.","Change the type for parameter 'DynamicCompression' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRoutingRuleObject","New-AzFrontDoorRoutingRuleObject","0","2020","The cmdlet 'New-AzFrontDoorRoutingRuleObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'EnabledState'.","Change the type for parameter 'EnabledState' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRoutingRuleObject","New-AzFrontDoorRoutingRuleObject","0","2000","The cmdlet 'New-AzFrontDoorRoutingRuleObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorRoutingRuleObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRoutingRuleObject","New-AzFrontDoorRoutingRuleObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorRoutingRuleObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorRoutingRuleObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRoutingRuleObject","New-AzFrontDoorRoutingRuleObject","0","1050","The parameter set 'ByFieldsWithForwardingParameterSet' for cmdlet 'New-AzFrontDoorRoutingRuleObject' has been removed.","Add parameter set 'ByFieldsWithForwardingParameterSet' back to cmdlet 'New-AzFrontDoorRoutingRuleObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRoutingRuleObject","New-AzFrontDoorRoutingRuleObject","0","1050","The parameter set 'ByFieldsWithRedirectParameterSet' for cmdlet 'New-AzFrontDoorRoutingRuleObject' has been removed.","Add parameter set 'ByFieldsWithRedirectParameterSet' back to cmdlet 'New-AzFrontDoorRoutingRuleObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngine","New-AzFrontDoorRulesEngine","0","1020","The cmdlet 'New-AzFrontDoorRulesEngine' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine'.","Make cmdlet 'New-AzFrontDoorRulesEngine' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngine","New-AzFrontDoorRulesEngine","0","2110","The element type for parameter 'Rule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule'.","Change the element type for parameter 'Rule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngine","New-AzFrontDoorRulesEngine","0","2020","The cmdlet 'New-AzFrontDoorRulesEngine' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngine","New-AzFrontDoorRulesEngine","0","2010","The cmdlet 'New-AzFrontDoorRulesEngine' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngine","New-AzFrontDoorRulesEngine","0","2010","The cmdlet 'New-AzFrontDoorRulesEngine' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","0","1020","The cmdlet 'New-AzFrontDoorRulesEngineActionObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction'.","Make cmdlet 'New-AzFrontDoorRulesEngineActionObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","0","2020","The cmdlet 'New-AzFrontDoorRulesEngineActionObject' no longer supports the type 'System.Collections.Generic.List`1[Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction]' for parameter 'RequestHeaderAction'.","Change the type for parameter 'RequestHeaderAction' back to 'System.Collections.Generic.List`1[Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction]'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","0","2020","The cmdlet 'New-AzFrontDoorRulesEngineActionObject' no longer supports the type 'System.Collections.Generic.List`1[Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction]' for parameter 'ResponseHeaderAction'.","Change the type for parameter 'ResponseHeaderAction' back to 'System.Collections.Generic.List`1[Microsoft.Azure.Commands.FrontDoor.Models.PSHeaderAction]'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","0","2020","The cmdlet 'New-AzFrontDoorRulesEngineActionObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'DynamicCompression'.","Change the type for parameter 'DynamicCompression' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","0","2000","The cmdlet 'New-AzFrontDoorRulesEngineActionObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorRulesEngineActionObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorRulesEngineActionObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorRulesEngineActionObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","0","1050","The parameter set 'ByFieldsWithForwardingParameterSet' for cmdlet 'New-AzFrontDoorRulesEngineActionObject' has been removed.","Add parameter set 'ByFieldsWithForwardingParameterSet' back to cmdlet 'New-AzFrontDoorRulesEngineActionObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","0","1050","The parameter set 'ByFieldsWithRedirectParameterSet' for cmdlet 'New-AzFrontDoorRulesEngineActionObject' has been removed.","Add parameter set 'ByFieldsWithRedirectParameterSet' back to cmdlet 'New-AzFrontDoorRulesEngineActionObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineMatchConditionObject","New-AzFrontDoorRulesEngineMatchConditionObject","0","1020","The cmdlet 'New-AzFrontDoorRulesEngineMatchConditionObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition'.","Make cmdlet 'New-AzFrontDoorRulesEngineMatchConditionObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineMatchConditionObject","New-AzFrontDoorRulesEngineMatchConditionObject","0","2020","The cmdlet 'New-AzFrontDoorRulesEngineMatchConditionObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchVariable' for parameter 'MatchVariable'.","Change the type for parameter 'MatchVariable' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchVariable'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineMatchConditionObject","New-AzFrontDoorRulesEngineMatchConditionObject","0","2020","The cmdlet 'New-AzFrontDoorRulesEngineMatchConditionObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineOperator' for parameter 'Operator'.","Change the type for parameter 'Operator' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineOperator'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineMatchConditionObject","New-AzFrontDoorRulesEngineMatchConditionObject","0","2110","The element type for parameter 'Transform' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSTransform' to 'System.String'.","Change the element type for parameter 'Transform' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSTransform'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineMatchConditionObject","New-AzFrontDoorRulesEngineMatchConditionObject","0","2000","The cmdlet 'New-AzFrontDoorRulesEngineMatchConditionObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorRulesEngineMatchConditionObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineMatchConditionObject","New-AzFrontDoorRulesEngineMatchConditionObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorRulesEngineMatchConditionObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorRulesEngineMatchConditionObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject","New-AzFrontDoorRulesEngineRuleObject","0","1020","The cmdlet 'New-AzFrontDoorRulesEngineRuleObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule'.","Make cmdlet 'New-AzFrontDoorRulesEngineRuleObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject","New-AzFrontDoorRulesEngineRuleObject","0","2020","The cmdlet 'New-AzFrontDoorRulesEngineRuleObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction' for parameter 'Action'.","Change the type for parameter 'Action' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineAction'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject","New-AzFrontDoorRulesEngineRuleObject","0","2020","The cmdlet 'New-AzFrontDoorRulesEngineRuleObject' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSMatchProcessingBehavior' for parameter 'MatchProcessingBehavior'.","Change the type for parameter 'MatchProcessingBehavior' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSMatchProcessingBehavior'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject","New-AzFrontDoorRulesEngineRuleObject","0","2110","The element type for parameter 'MatchCondition' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineMatchCondition'.","Change the element type for parameter 'MatchCondition' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineMatchCondition'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject","New-AzFrontDoorRulesEngineRuleObject","0","2000","The cmdlet 'New-AzFrontDoorRulesEngineRuleObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorRulesEngineRuleObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject","New-AzFrontDoorRulesEngineRuleObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorRulesEngineRuleObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorRulesEngineRuleObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleGroupByVariableObject","New-AzFrontDoorWafCustomRuleGroupByVariableObject","0","2000","The cmdlet 'New-AzFrontDoorWafCustomRuleGroupByVariableObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafCustomRuleGroupByVariableObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleGroupByVariableObject","New-AzFrontDoorWafCustomRuleGroupByVariableObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafCustomRuleGroupByVariableObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafCustomRuleGroupByVariableObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleObject","New-AzFrontDoorWafCustomRuleObject","0","1020","The cmdlet 'New-AzFrontDoorWafCustomRuleObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule'.","Make cmdlet 'New-AzFrontDoorWafCustomRuleObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleObject","New-AzFrontDoorWafCustomRuleObject","0","2110","The element type for parameter 'MatchCondition' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSMatchCondition' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IMatchCondition'.","Change the element type for parameter 'MatchCondition' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSMatchCondition'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleObject","New-AzFrontDoorWafCustomRuleObject","0","2020","The cmdlet 'New-AzFrontDoorWafCustomRuleObject' no longer supports the type 'System.Int32' for parameter 'RateLimitDurationInMinutes'.","Change the type for parameter 'RateLimitDurationInMinutes' back to 'System.Int32'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleObject","New-AzFrontDoorWafCustomRuleObject","0","2020","The cmdlet 'New-AzFrontDoorWafCustomRuleObject' no longer supports the type 'System.Nullable`1[System.Int32]' for parameter 'RateLimitThreshold'.","Change the type for parameter 'RateLimitThreshold' back to 'System.Nullable`1[System.Int32]'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleObject","New-AzFrontDoorWafCustomRuleObject","0","2110","The element type for parameter 'CustomRule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafCustomRuleGroupByVariable' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IGroupByVariable'.","Change the element type for parameter 'CustomRule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafCustomRuleGroupByVariable'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleObject","New-AzFrontDoorWafCustomRuleObject","0","2000","The cmdlet 'New-AzFrontDoorWafCustomRuleObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafCustomRuleObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafCustomRuleObject","New-AzFrontDoorWafCustomRuleObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafCustomRuleObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafCustomRuleObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafLogScrubbingRuleObject","New-AzFrontDoorWafLogScrubbingRuleObject","0","2000","The cmdlet 'New-AzFrontDoorWafLogScrubbingRuleObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafLogScrubbingRuleObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafLogScrubbingRuleObject","New-AzFrontDoorWafLogScrubbingRuleObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafLogScrubbingRuleObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafLogScrubbingRuleObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafLogScrubbingSettingObject","New-AzFrontDoorWafLogScrubbingSettingObject","0","1020","The cmdlet 'New-AzFrontDoorWafLogScrubbingSettingObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting'.","Make cmdlet 'New-AzFrontDoorWafLogScrubbingSettingObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafLogScrubbingSettingObject","New-AzFrontDoorWafLogScrubbingSettingObject","0","2110","The element type for parameter 'ScrubbingRule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IWebApplicationFirewallScrubbingRules'.","Change the element type for parameter 'ScrubbingRule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafLogScrubbingSettingObject","New-AzFrontDoorWafLogScrubbingSettingObject","0","2000","The cmdlet 'New-AzFrontDoorWafLogScrubbingSettingObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafLogScrubbingSettingObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafLogScrubbingSettingObject","New-AzFrontDoorWafLogScrubbingSettingObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafLogScrubbingSettingObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafLogScrubbingSettingObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleExclusionObject","New-AzFrontDoorWafManagedRuleExclusionObject","0","1020","The cmdlet 'New-AzFrontDoorWafManagedRuleExclusionObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion'.","Make cmdlet 'New-AzFrontDoorWafManagedRuleExclusionObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleExclusionObject","New-AzFrontDoorWafManagedRuleExclusionObject","0","2000","The cmdlet 'New-AzFrontDoorWafManagedRuleExclusionObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafManagedRuleExclusionObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleExclusionObject","New-AzFrontDoorWafManagedRuleExclusionObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafManagedRuleExclusionObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafManagedRuleExclusionObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleObject","New-AzFrontDoorWafManagedRuleObject","0","1020","The cmdlet 'New-AzFrontDoorWafManagedRuleObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRule'.","Make cmdlet 'New-AzFrontDoorWafManagedRuleObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleObject","New-AzFrontDoorWafManagedRuleObject","0","2110","The element type for parameter 'RuleGroupOverride' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureRuleGroupOverride' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleGroupOverride'.","Change the element type for parameter 'RuleGroupOverride' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureRuleGroupOverride'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleObject","New-AzFrontDoorWafManagedRuleObject","0","2110","The element type for parameter 'Exclusion' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion'.","Change the element type for parameter 'Exclusion' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleObject","New-AzFrontDoorWafManagedRuleObject","0","2000","The cmdlet 'New-AzFrontDoorWafManagedRuleObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafManagedRuleObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleObject","New-AzFrontDoorWafManagedRuleObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafManagedRuleObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafManagedRuleObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleOverrideObject","New-AzFrontDoorWafManagedRuleOverrideObject","0","1020","The cmdlet 'New-AzFrontDoorWafManagedRuleOverrideObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRuleOverride'.","Make cmdlet 'New-AzFrontDoorWafManagedRuleOverrideObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRuleOverride'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleOverrideObject","New-AzFrontDoorWafManagedRuleOverrideObject","0","2110","The element type for parameter 'Exclusion' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion'.","Change the element type for parameter 'Exclusion' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleOverrideObject","New-AzFrontDoorWafManagedRuleOverrideObject","0","2000","The cmdlet 'New-AzFrontDoorWafManagedRuleOverrideObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafManagedRuleOverrideObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafManagedRuleOverrideObject","New-AzFrontDoorWafManagedRuleOverrideObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafManagedRuleOverrideObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafManagedRuleOverrideObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafMatchConditionObject","New-AzFrontDoorWafMatchConditionObject","0","2000","The cmdlet 'New-AzFrontDoorWafMatchConditionObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafMatchConditionObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafMatchConditionObject","New-AzFrontDoorWafMatchConditionObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafMatchConditionObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafMatchConditionObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafPolicy","New-AzFrontDoorWafPolicy","0","1020","The cmdlet 'New-AzFrontDoorWafPolicy' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy'.","Make cmdlet 'New-AzFrontDoorWafPolicy' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafPolicy","New-AzFrontDoorWafPolicy","0","2020","The cmdlet 'New-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'EnabledState'.","Change the type for parameter 'EnabledState' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafPolicy","New-AzFrontDoorWafPolicy","0","2110","The element type for parameter 'Customrule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule'.","Change the element type for parameter 'Customrule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafPolicy","New-AzFrontDoorWafPolicy","0","2110","The element type for parameter 'ManagedRule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet'.","Change the element type for parameter 'ManagedRule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafPolicy","New-AzFrontDoorWafPolicy","0","2020","The cmdlet 'New-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting' for parameter 'LogScrubbingSetting'.","Change the type for parameter 'LogScrubbingSetting' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafPolicy","New-AzFrontDoorWafPolicy","0","2020","The cmdlet 'New-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafPolicy","New-AzFrontDoorWafPolicy","0","2010","The cmdlet 'New-AzFrontDoorWafPolicy' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafPolicy","New-AzFrontDoorWafPolicy","0","2010","The cmdlet 'New-AzFrontDoorWafPolicy' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafRuleGroupOverrideObject","New-AzFrontDoorWafRuleGroupOverrideObject","0","1020","The cmdlet 'New-AzFrontDoorWafRuleGroupOverrideObject' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureRuleGroupOverride'.","Make cmdlet 'New-AzFrontDoorWafRuleGroupOverrideObject' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureRuleGroupOverride'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafRuleGroupOverrideObject","New-AzFrontDoorWafRuleGroupOverrideObject","0","2110","The element type for parameter 'ManagedRuleOverride' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRuleOverride' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleOverride'.","Change the element type for parameter 'ManagedRuleOverride' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSAzureManagedRuleOverride'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafRuleGroupOverrideObject","New-AzFrontDoorWafRuleGroupOverrideObject","0","2110","The element type for parameter 'Exclusion' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleExclusion'.","Change the element type for parameter 'Exclusion' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRuleExclusion'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafRuleGroupOverrideObject","New-AzFrontDoorWafRuleGroupOverrideObject","0","2000","The cmdlet 'New-AzFrontDoorWafRuleGroupOverrideObject' no longer supports the parameter 'DefaultProfile' and no alias was found for the original parameter name.","Add the parameter 'DefaultProfile' back to the cmdlet 'New-AzFrontDoorWafRuleGroupOverrideObject', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorWafRuleGroupOverrideObject","New-AzFrontDoorWafRuleGroupOverrideObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzFrontDoorWafRuleGroupOverrideObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzFrontDoorWafRuleGroupOverrideObject'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoor","Remove-AzFrontDoor","0","2020","The cmdlet 'Remove-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoor","Remove-AzFrontDoor","0","2000","The cmdlet 'Remove-AzFrontDoor' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzFrontDoor', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoor","Remove-AzFrontDoor","0","2020","The cmdlet 'Remove-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoor","Remove-AzFrontDoor","0","2010","The cmdlet 'Remove-AzFrontDoor' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoor","Remove-AzFrontDoor","0","2010","The cmdlet 'Remove-AzFrontDoor' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoor","Remove-AzFrontDoor","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Remove-AzFrontDoor' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Remove-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorContent","Remove-AzFrontDoorContent","0","2020","The cmdlet 'Remove-AzFrontDoorContent' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorContent","Remove-AzFrontDoorContent","0","2010","The cmdlet 'Remove-AzFrontDoorContent' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorContent","Remove-AzFrontDoorContent","0","2010","The cmdlet 'Remove-AzFrontDoorContent' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine","Remove-AzFrontDoorRulesEngine","0","2020","The cmdlet 'Remove-AzFrontDoorRulesEngine' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine","Remove-AzFrontDoorRulesEngine","0","2000","The cmdlet 'Remove-AzFrontDoorRulesEngine' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzFrontDoorRulesEngine', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine","Remove-AzFrontDoorRulesEngine","0","2020","The cmdlet 'Remove-AzFrontDoorRulesEngine' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine","Remove-AzFrontDoorRulesEngine","0","2010","The cmdlet 'Remove-AzFrontDoorRulesEngine' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine","Remove-AzFrontDoorRulesEngine","0","2010","The cmdlet 'Remove-AzFrontDoorRulesEngine' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorRulesEngine","Remove-AzFrontDoorRulesEngine","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Remove-AzFrontDoorRulesEngine' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Remove-AzFrontDoorRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorWafPolicy","Remove-AzFrontDoorWafPolicy","0","2020","The cmdlet 'Remove-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorWafPolicy","Remove-AzFrontDoorWafPolicy","0","2000","The cmdlet 'Remove-AzFrontDoorWafPolicy' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzFrontDoorWafPolicy', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorWafPolicy","Remove-AzFrontDoorWafPolicy","0","2020","The cmdlet 'Remove-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorWafPolicy","Remove-AzFrontDoorWafPolicy","0","2010","The cmdlet 'Remove-AzFrontDoorWafPolicy' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorWafPolicy","Remove-AzFrontDoorWafPolicy","0","2010","The cmdlet 'Remove-AzFrontDoorWafPolicy' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.RemoveFrontDoorWafPolicy","Remove-AzFrontDoorWafPolicy","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Remove-AzFrontDoorWafPolicy' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Remove-AzFrontDoorWafPolicy'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","1020","The cmdlet 'Set-AzFrontDoor' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor'.","Make cmdlet 'Set-AzFrontDoor' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2000","The cmdlet 'Set-AzFrontDoor' no longer supports the parameter 'InputObject' and no alias was found for the original parameter name.","Add the parameter 'InputObject' back to the cmdlet 'Set-AzFrontDoor', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2000","The cmdlet 'Set-AzFrontDoor' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Set-AzFrontDoor', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2110","The element type for parameter 'RoutingRule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRoutingRule'.","Change the element type for parameter 'RoutingRule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRoutingRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2110","The element type for parameter 'BackendPool' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IBackendPool'.","Change the element type for parameter 'BackendPool' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPool'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2110","The element type for parameter 'FrontendEndpoint' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontendEndpoint'.","Change the element type for parameter 'FrontendEndpoint' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2110","The element type for parameter 'LoadBalancingSetting' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ILoadBalancingSettingsModel'.","Change the element type for parameter 'LoadBalancingSetting' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSLoadBalancingSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2110","The element type for parameter 'HealthProbeSetting' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IHealthProbeSettingsModel'.","Change the element type for parameter 'HealthProbeSetting' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSHealthProbeSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2020","The cmdlet 'Set-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'EnabledState'.","Change the type for parameter 'EnabledState' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2020","The cmdlet 'Set-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting' for parameter 'BackendPoolsSetting'.","Change the type for parameter 'BackendPoolsSetting' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSBackendPoolsSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2020","The cmdlet 'Set-AzFrontDoor' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2010","The cmdlet 'Set-AzFrontDoor' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","2010","The cmdlet 'Set-AzFrontDoor' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","1050","The parameter set 'ByObjectParameterSet' for cmdlet 'Set-AzFrontDoor' has been removed.","Add parameter set 'ByObjectParameterSet' back to cmdlet 'Set-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","1050","The parameter set 'ByObjectWithCertificateNameCheckParameterSet' for cmdlet 'Set-AzFrontDoor' has been removed.","Add parameter set 'ByObjectWithCertificateNameCheckParameterSet' back to cmdlet 'Set-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","1050","The parameter set 'ByObjectWithBackendPoolsSettingParameterSet' for cmdlet 'Set-AzFrontDoor' has been removed.","Add parameter set 'ByObjectWithBackendPoolsSettingParameterSet' back to cmdlet 'Set-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Set-AzFrontDoor' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Set-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","1050","The parameter set 'ByResourceIdWithCertificateNameCheckParameterSet' for cmdlet 'Set-AzFrontDoor' has been removed.","Add parameter set 'ByResourceIdWithCertificateNameCheckParameterSet' back to cmdlet 'Set-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","1050","The parameter set 'ByResourceIdWithBackendPoolsSettingParameterSet' for cmdlet 'Set-AzFrontDoor' has been removed.","Add parameter set 'ByResourceIdWithBackendPoolsSettingParameterSet' back to cmdlet 'Set-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoor","Set-AzFrontDoor","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzFrontDoor' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzFrontDoor'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","1020","The cmdlet 'Set-AzFrontDoorRulesEngine' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine'.","Make cmdlet 'Set-AzFrontDoorRulesEngine' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","2000","The cmdlet 'Set-AzFrontDoorRulesEngine' no longer supports the parameter 'InputObject' and no alias was found for the original parameter name.","Add the parameter 'InputObject' back to the cmdlet 'Set-AzFrontDoorRulesEngine', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","2000","The cmdlet 'Set-AzFrontDoorRulesEngine' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Set-AzFrontDoorRulesEngine', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","2110","The element type for parameter 'Rule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule'.","Change the element type for parameter 'Rule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSRulesEngineRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","2020","The cmdlet 'Set-AzFrontDoorRulesEngine' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","2010","The cmdlet 'Set-AzFrontDoorRulesEngine' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","2010","The cmdlet 'Set-AzFrontDoorRulesEngine' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","1050","The parameter set 'ByObjectParameterSet' for cmdlet 'Set-AzFrontDoorRulesEngine' has been removed.","Add parameter set 'ByObjectParameterSet' back to cmdlet 'Set-AzFrontDoorRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Set-AzFrontDoorRulesEngine' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Set-AzFrontDoorRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.SetFrontDoorRulesEngine","Set-AzFrontDoorRulesEngine","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzFrontDoorRulesEngine' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzFrontDoorRulesEngine'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","1020","The cmdlet 'Update-AzFrontDoorWafPolicy' no longer has output type 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy'.","Make cmdlet 'Update-AzFrontDoorWafPolicy' return type 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2020","The cmdlet 'Update-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSPolicy'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2000","The cmdlet 'Update-AzFrontDoorWafPolicy' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Update-AzFrontDoorWafPolicy', or add an alias to the original parameter name." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2020","The cmdlet 'Update-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState' for parameter 'EnabledState'.","Change the type for parameter 'EnabledState' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSEnabledState'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2110","The element type for parameter 'Customrule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICustomRule'.","Change the element type for parameter 'Customrule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSCustomRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2110","The element type for parameter 'ManagedRule' has been changed from 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRule' to 'Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IManagedRuleSet'.","Change the element type for parameter 'ManagedRule' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSManagedRule'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2020","The cmdlet 'Update-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting' for parameter 'LogScrubbingSetting'.","Change the type for parameter 'LogScrubbingSetting' back to 'Microsoft.Azure.Commands.FrontDoor.Models.PSFrontDoorWafLogScrubbingSetting'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2020","The cmdlet 'Update-AzFrontDoorWafPolicy' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2010","The cmdlet 'Update-AzFrontDoorWafPolicy' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","2010","The cmdlet 'Update-AzFrontDoorWafPolicy' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." + "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.UpdateFrontDoorWafPolicy","Update-AzFrontDoorWafPolicy","0","1050","The parameter set 'ByResourceIdParameterSet' for cmdlet 'Update-AzFrontDoorWafPolicy' has been removed.","Add parameter set 'ByResourceIdParameterSet' back to cmdlet 'Update-AzFrontDoorWafPolicy'." diff --git a/tools/StaticAnalysis/Exceptions/Az.FrontDoor/SignatureIssues.csv b/tools/StaticAnalysis/Exceptions/Az.FrontDoor/SignatureIssues.csv index 5298d369d0aa..a1d90de5a58e 100644 --- a/tools/StaticAnalysis/Exceptions/Az.FrontDoor/SignatureIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.FrontDoor/SignatureIssues.csv @@ -19,3 +19,7 @@ "Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineMatchConditionObject","New-AzFrontDoorRulesEngineMatchConditionObject","1","8100","New-AzFrontDoorRulesEngineMatchConditionObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" "Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject","New-AzFrontDoorRulesEngineRuleObject","1","8100","New-AzFrontDoorRulesEngineRuleObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","1","8700","Parameter set '__AllParameterSets', 'ByFieldsWithRedirectParameterSet' of cmdlet 'New-AzFrontDoorRulesEngineActionObject' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set." +"Az.FrontDoor","Enable-AzFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","1","8700","Parameter set 'EnableViaIdentityFrontDoor', 'EnableViaIdentityFrontDoorExpanded' of cmdlet 'Enable-AzFrontDoorCustomDomainHttps' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set." +"Az.FrontDoor","Enable-AzFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","1","8700","Parameter set 'EnableViaIdentity', 'EnableViaIdentityExpanded' of cmdlet 'Enable-AzFrontDoorCustomDomainHttps' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set." +"Az.FrontDoor","New-AzFrontDoorLoadBalancingSettingObject","New-AzFrontDoorLoadBalancingSettingObject","1","8410","Parameter AdditionalLatencyInMilliseconds of cmdlet New-AzFrontDoorLoadBalancingSettingObject does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." + \ No newline at end of file From 8b94ed682a6cf798c81d1ccab6deb494994427f7 Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Fri, 31 Oct 2025 19:44:26 +1100 Subject: [PATCH 29/30] update changelog --- src/FrontDoor/FrontDoor/ChangeLog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FrontDoor/FrontDoor/ChangeLog.md b/src/FrontDoor/FrontDoor/ChangeLog.md index 3e903566b6e0..0a338a650c6d 100644 --- a/src/FrontDoor/FrontDoor/ChangeLog.md +++ b/src/FrontDoor/FrontDoor/ChangeLog.md @@ -19,6 +19,8 @@ --> ## Upcoming Release +* Migrated to autorest V4 + ## Version 1.13.0 * Added support for Captcha From 6c2a913c6df93395d09a5fc182589cad98c5072a Mon Sep 17 00:00:00 2001 From: Jingnan Xu Date: Mon, 3 Nov 2025 19:25:44 +1100 Subject: [PATCH 30/30] fix parameterset --- src/Cdn/Cdn.Autorest/docs/Az.Cdn.md | 2 +- src/FrontDoor/FrontDoor.Autorest/README.md | 7 + .../Enable-AzFrontDoorCustomDomainHttps.ps1 | 329 +++++++++--------- .../FrontDoor.Autorest/docs/Az.FrontDoor.md | 2 +- .../Enable-AzFrontDoorCustomDomainHttps.md | 28 +- .../FrontDoor.Autorest/generate-info.json | 2 +- src/FrontDoor/FrontDoor.sln | 28 +- src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 | 2 +- src/FrontDoor/FrontDoor/ChangeLog.md | 2 +- .../Enable-AzFrontDoorCustomDomainHttps.md | 29 +- .../Az.FrontDoor/SignatureIssues.csv | 2 - 11 files changed, 199 insertions(+), 234 deletions(-) diff --git a/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md b/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md index e9e53ad0a73d..97d526736184 100644 --- a/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md +++ b/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md @@ -1,6 +1,6 @@ --- Module Name: Az.Cdn -Module Guid: 7068dad4-9b7e-4b63-80b8-ee7cfe94b6b4 +Module Guid: 017e09b7-e5d5-439a-b393-82dab6354cb3 Download Help Link: https://learn.microsoft.com/powershell/module/az.cdn Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/README.md b/src/FrontDoor/FrontDoor.Autorest/README.md index e1a8c541bc02..fa1702f43233 100644 --- a/src/FrontDoor/FrontDoor.Autorest/README.md +++ b/src/FrontDoor/FrontDoor.Autorest/README.md @@ -64,6 +64,13 @@ directive: - where: variant: ^CreateViaIdentity.*$ remove: true + + - where: + variant: ^EnableViaIdentityFrontDoorExpanded$ + remove: true + - where: + variant: ^EnableViaIdentityExpanded$ + remove: true - no-inline: # choose ONE of these models to disable inlining - BackendPoolsSettings - RouteConfiguration diff --git a/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 b/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 index 11864ab2eac6..99b9f68513dd 100644 --- a/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 +++ b/src/FrontDoor/FrontDoor.Autorest/custom/Enable-AzFrontDoorCustomDomainHttps.ps1 @@ -67,176 +67,165 @@ function Enable-AzFrontDoorCustomDomainHttps { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='EnableExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Front Door which is globally unique. - ${FrontDoorName}, - - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Frontend endpoint which is unique within the Front Door. - ${FrontendEndpointName}, - - [Parameter(ParameterSetName='Enable', Mandatory)] - [Parameter(ParameterSetName='EnableExpanded', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [System.String] - # Name of the Resource group within the Azure subscription. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Enable')] - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaJsonFilePath')] - [Parameter(ParameterSetName='EnableViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] - # Identity Parameter - ${FrontDoorInputObject}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] - [System.String] - # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. - ${MinimumTlsVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The name of the Key Vault secret representing the full certificate PFX - ${SecretName}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # The version of the Key Vault secret representing the full certificate PFX - ${SecretVersion}, - - [Parameter(ParameterSetName='EnableExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityExpanded')] - [Parameter(ParameterSetName='EnableViaIdentityFrontDoorExpanded')] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Resource ID. - ${VaultId}, - - [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Path of Json file supplied to the Enable operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] - [System.String] - # Json string supplied to the Enable operation - ${JsonString}, - - [Parameter()] - [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Front Door which is globally unique. + ${FrontDoorName}, + + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Frontend endpoint which is unique within the Front Door. + ${FrontendEndpointName}, + + [Parameter(ParameterSetName='Enable', Mandatory)] + [Parameter(ParameterSetName='EnableExpanded', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [System.String] + # Name of the Resource group within the Azure subscription. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Enable')] + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='EnableViaJsonFilePath')] + [Parameter(ParameterSetName='EnableViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='EnableViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='EnableViaIdentityFrontDoor', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity] + # Identity Parameter + ${FrontDoorInputObject}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("1.0", "1.2")] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.DefaultInfo(Script='1.2')] + [System.String] + # The minimum TLS version required from the clients to establish an SSL handshake with Front Door. + ${MinimumTlsVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The name of the Key Vault secret representing the full certificate PFX + ${SecretName}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # The version of the Key Vault secret representing the full certificate PFX + ${SecretVersion}, + + [Parameter(ParameterSetName='EnableExpanded')] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Resource ID. + ${VaultId}, + + [Parameter(ParameterSetName='EnableViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Path of Json file supplied to the Enable operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='EnableViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Body')] + [System.String] + # Json string supplied to the Enable operation + ${JsonString}, + + [Parameter()] + [Parameter(ParameterSetName='ByResourceIdWithVaultParameterSet')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} ) process { diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 898f5a37b96e..4ce76a4b77e0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: 870b88c5-9743-4f2a-94e7-ebdf75b4f4e3 +Module Guid: de841666-09d0-4c1e-a6ad-b3112699a6c2 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md index 337dfc36e897..b176589826a0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Enable-AzFrontDoorCustomDomainHttps.md @@ -40,26 +40,12 @@ Enable-AzFrontDoorCustomDomainHttps -InputObject [-DefaultP [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` -### EnableViaIdentityExpanded -``` -Enable-AzFrontDoorCustomDomainHttps -InputObject [-MinimumTlsVersion ] - [-SecretName ] [-SecretVersion ] [-VaultId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - ### EnableViaIdentityFrontDoor ``` Enable-AzFrontDoorCustomDomainHttps -FrontDoorInputObject -FrontendEndpointName [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` -### EnableViaIdentityFrontDoorExpanded -``` -Enable-AzFrontDoorCustomDomainHttps -FrontDoorInputObject -FrontendEndpointName - [-MinimumTlsVersion ] [-SecretName ] [-SecretVersion ] [-VaultId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - ### EnableViaJsonFilePath ``` Enable-AzFrontDoorCustomDomainHttps -FrontDoorName -FrontendEndpointName @@ -205,7 +191,7 @@ Identity Parameter ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -Parameter Sets: EnableViaIdentityFrontDoor, EnableViaIdentityFrontDoorExpanded +Parameter Sets: EnableViaIdentityFrontDoor Aliases: Required: True @@ -235,7 +221,7 @@ Name of the Frontend endpoint which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: Enable, EnableExpanded, EnableViaIdentityFrontDoor, EnableViaIdentityFrontDoorExpanded, EnableViaJsonFilePath, EnableViaJsonString +Parameter Sets: Enable, EnableExpanded, EnableViaIdentityFrontDoor, EnableViaJsonFilePath, EnableViaJsonString Aliases: Required: True @@ -250,7 +236,7 @@ Identity Parameter ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -Parameter Sets: EnableViaIdentity, EnableViaIdentityExpanded +Parameter Sets: EnableViaIdentity Aliases: Required: True @@ -295,7 +281,7 @@ The minimum TLS version required from the clients to establish an SSL handshake ```yaml Type: System.String -Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded Aliases: Required: False @@ -355,7 +341,7 @@ The name of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded Aliases: Required: False @@ -370,7 +356,7 @@ The version of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded Aliases: Required: False @@ -401,7 +387,7 @@ Resource ID. ```yaml Type: System.String -Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded, EnableViaIdentityExpanded, EnableViaIdentityFrontDoorExpanded +Parameter Sets: ByResourceIdWithVaultParameterSet, EnableExpanded Aliases: Required: False diff --git a/src/FrontDoor/FrontDoor.Autorest/generate-info.json b/src/FrontDoor/FrontDoor.Autorest/generate-info.json index b8c1206c76d5..3a9b6b3adc85 100644 --- a/src/FrontDoor/FrontDoor.Autorest/generate-info.json +++ b/src/FrontDoor/FrontDoor.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "da504079-e4ce-4e68-b97e-284654fbcf44" + "generate_Id": "4ae3d56a-82fd-45f6-a635-d60e554db5c1" } diff --git a/src/FrontDoor/FrontDoor.sln b/src/FrontDoor/FrontDoor.sln index d54655a12a96..b4dad7bff8e1 100644 --- a/src/FrontDoor/FrontDoor.sln +++ b/src/FrontDoor/FrontDoor.sln @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{2A27B2A4-3B69-47AC-BECF-FB90107AB65E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{21B2777D-4EA2-4025-BA20-A56FE1531992}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -131,18 +131,18 @@ Global {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU {CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|x64.ActiveCfg = Debug|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|x64.Build.0 = Debug|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|x86.ActiveCfg = Debug|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Debug|x86.Build.0 = Debug|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|Any CPU.Build.0 = Release|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|x64.ActiveCfg = Release|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|x64.Build.0 = Release|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|x86.ActiveCfg = Release|Any CPU - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E}.Release|x86.Build.0 = Release|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Debug|Any CPU.Build.0 = Debug|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Debug|x64.ActiveCfg = Debug|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Debug|x64.Build.0 = Debug|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Debug|x86.ActiveCfg = Debug|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Debug|x86.Build.0 = Debug|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Release|Any CPU.ActiveCfg = Release|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Release|Any CPU.Build.0 = Release|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Release|x64.ActiveCfg = Release|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Release|x64.Build.0 = Release|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Release|x86.ActiveCfg = Release|Any CPU + {21B2777D-4EA2-4025-BA20-A56FE1531992}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,7 +154,7 @@ Global {4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958} {671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958} {31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958} - {2A27B2A4-3B69-47AC-BECF-FB90107AB65E} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} + {21B2777D-4EA2-4025-BA20-A56FE1531992} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25} diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index 92e480990836..177e74ca3921 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025/10/29 +# Generated on: 2025/11/3 # @{ diff --git a/src/FrontDoor/FrontDoor/ChangeLog.md b/src/FrontDoor/FrontDoor/ChangeLog.md index 0a338a650c6d..16ac2189d39b 100644 --- a/src/FrontDoor/FrontDoor/ChangeLog.md +++ b/src/FrontDoor/FrontDoor/ChangeLog.md @@ -19,7 +19,7 @@ --> ## Upcoming Release -* Migrated to autorest V4 +* Migrated to AutoRest PowerShell V4 ## Version 1.13.0 * Added support for Captcha diff --git a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md index 99da931ce61b..4fc06ccda87d 100644 --- a/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md +++ b/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md @@ -48,27 +48,12 @@ Enable-AzFrontDoorCustomDomainHttps -FrontendEndpointName -FrontDoorInp [-Confirm] [] ``` -### EnableViaIdentityFrontDoorExpanded -``` -Enable-AzFrontDoorCustomDomainHttps -FrontendEndpointName -FrontDoorInputObject - [-MinimumTlsVersion ] [-SecretName ] [-SecretVersion ] [-VaultId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] - [-Confirm] [] -``` - ### EnableViaIdentity ``` Enable-AzFrontDoorCustomDomainHttps -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### EnableViaIdentityExpanded -``` -Enable-AzFrontDoorCustomDomainHttps -InputObject [-MinimumTlsVersion ] - [-SecretName ] [-SecretVersion ] [-VaultId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] -``` - ### ByResourceIdWithVaultParameterSet ``` Enable-AzFrontDoorCustomDomainHttps [-MinimumTlsVersion ] [-SecretName ] @@ -207,7 +192,7 @@ Identity Parameter ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -Parameter Sets: EnableViaIdentityFrontDoor, EnableViaIdentityFrontDoorExpanded +Parameter Sets: EnableViaIdentityFrontDoor Aliases: Required: True @@ -237,7 +222,7 @@ Name of the Frontend endpoint which is unique within the Front Door. ```yaml Type: System.String -Parameter Sets: EnableExpanded, Enable, EnableViaJsonFilePath, EnableViaJsonString, EnableViaIdentityFrontDoor, EnableViaIdentityFrontDoorExpanded +Parameter Sets: EnableExpanded, Enable, EnableViaJsonFilePath, EnableViaJsonString, EnableViaIdentityFrontDoor Aliases: Required: True @@ -252,7 +237,7 @@ Identity Parameter ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IFrontDoorIdentity -Parameter Sets: EnableViaIdentity, EnableViaIdentityExpanded +Parameter Sets: EnableViaIdentity Aliases: Required: True @@ -297,7 +282,7 @@ The minimum TLS version required from the clients to establish an SSL handshake ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded, ByResourceIdWithVaultParameterSet +Parameter Sets: EnableExpanded, ByResourceIdWithVaultParameterSet Aliases: Required: False @@ -357,7 +342,7 @@ The name of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded, ByResourceIdWithVaultParameterSet +Parameter Sets: EnableExpanded, ByResourceIdWithVaultParameterSet Aliases: Required: False @@ -372,7 +357,7 @@ The version of the Key Vault secret representing the full certificate PFX ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded, ByResourceIdWithVaultParameterSet +Parameter Sets: EnableExpanded, ByResourceIdWithVaultParameterSet Aliases: Required: False @@ -403,7 +388,7 @@ Resource ID. ```yaml Type: System.String -Parameter Sets: EnableExpanded, EnableViaIdentityFrontDoorExpanded, EnableViaIdentityExpanded, ByResourceIdWithVaultParameterSet +Parameter Sets: EnableExpanded, ByResourceIdWithVaultParameterSet Aliases: Required: False diff --git a/tools/StaticAnalysis/Exceptions/Az.FrontDoor/SignatureIssues.csv b/tools/StaticAnalysis/Exceptions/Az.FrontDoor/SignatureIssues.csv index a1d90de5a58e..9889e4855a09 100644 --- a/tools/StaticAnalysis/Exceptions/Az.FrontDoor/SignatureIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.FrontDoor/SignatureIssues.csv @@ -19,7 +19,5 @@ "Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineMatchConditionObject","New-AzFrontDoorRulesEngineMatchConditionObject","1","8100","New-AzFrontDoorRulesEngineMatchConditionObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" "Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineRuleObject","New-AzFrontDoorRulesEngineRuleObject","1","8100","New-AzFrontDoorRulesEngineRuleObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" "Az.FrontDoor","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewFrontDoorRulesEngineActionObject","New-AzFrontDoorRulesEngineActionObject","1","8700","Parameter set '__AllParameterSets', 'ByFieldsWithRedirectParameterSet' of cmdlet 'New-AzFrontDoorRulesEngineActionObject' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set." -"Az.FrontDoor","Enable-AzFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","1","8700","Parameter set 'EnableViaIdentityFrontDoor', 'EnableViaIdentityFrontDoorExpanded' of cmdlet 'Enable-AzFrontDoorCustomDomainHttps' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set." -"Az.FrontDoor","Enable-AzFrontDoorCustomDomainHttps","Enable-AzFrontDoorCustomDomainHttps","1","8700","Parameter set 'EnableViaIdentity', 'EnableViaIdentityExpanded' of cmdlet 'Enable-AzFrontDoorCustomDomainHttps' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set." "Az.FrontDoor","New-AzFrontDoorLoadBalancingSettingObject","New-AzFrontDoorLoadBalancingSettingObject","1","8410","Parameter AdditionalLatencyInMilliseconds of cmdlet New-AzFrontDoorLoadBalancingSettingObject does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." \ No newline at end of file